/* ==========================================================================
   Vedhav — Pearl-style header + scroll-driven hero
   Reference: https://pearlconstructions.com/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap');

:root {
	--vh-cream: #f4efec;
	--vh-dark: #111111;
	--vh-accent: #ef7c00;
	--vh-green: #16a34a;
	--vh-header-h: 74px;
}

/* Hide the old theme header + hero only on the homepage */
body.vedhav-home .main-header,
body.vedhav-home .hero {
	display: none !important;
}

body.vedhav-home {
	overflow-x: hidden;
}

body.vedhav-home.vh-menu-open {
	overflow: hidden;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.vh-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(244, 239, 236, 0.85);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transform: translateY(0);
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		background 0.4s ease, box-shadow 0.4s ease;
}

.vh-header.is-scrolled {
	background: rgba(244, 239, 236, 0.98);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.vh-header__inner {
	max-width: 1400px;
	margin: 0 auto;
	min-height: var(--vh-header-h);
	padding: 12px 28px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
}

.vh-header__left {
	display: flex;
	align-items: center;
	gap: 30px;
}

.vh-header__left a {
	font-family: var(--accent-font, 'Space Grotesk', sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: var(--vh-dark);
	text-decoration: none;
	transition: opacity 0.25s ease, color 0.25s ease;
}

.vh-header__left a:hover {
	color: var(--vh-accent);
}

.vh-header__logo {
	justify-self: center;
	display: block;
	line-height: 0;
}

.vh-header__logo img {
	height: 42px;
	width: auto;
	max-width: 190px;
	object-fit: contain;
	display: block;
}

.vh-header__right {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 12px;
}

.vh-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	border: 1px solid rgba(17, 17, 17, 0.55);
	border-radius: 999px;
	font-family: var(--accent-font, 'Space Grotesk', sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: var(--vh-dark);
	text-decoration: none;
	transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.vh-header__cta:hover {
	border-color: var(--vh-accent);
	background: var(--vh-accent);
	color: #fff;
}

.vh-header__burger {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border: none;
	border-radius: 8px;
	background: var(--vh-green);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	transition: background 0.25s ease;
}

.vh-header__burger span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform 0.3s ease, opacity 0.2s ease;
}

.vh-header__burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.vh-header__burger.is-open span:nth-child(2) {
	opacity: 0;
}

.vh-header__burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Drawer */
.vh-drawer {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(17, 17, 17, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vh-drawer.is-open {
	opacity: 1;
	visibility: visible;
}

.vh-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(340px, 86vw);
	height: 100%;
	background: var(--vh-cream);
	padding: calc(var(--vh-header-h) + 30px) 30px 30px;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
}

.vh-drawer.is-open .vh-drawer__panel {
	transform: translateX(0);
}

.vh-drawer__panel ul {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.vh-drawer__panel a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--vh-dark);
	text-decoration: none;
	transition: color 0.25s ease, padding-left 0.25s ease;
}

.vh-drawer__panel a:hover {
	color: var(--vh-accent);
	padding-left: 8px;
}

.vh-drawer__phone {
	font-family: var(--accent-font, 'Space Grotesk', sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--vh-dark);
	text-decoration: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.vh-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	background: var(--vh-cream);
}

/* Layer 0 — decorative base plate (Bg-PL) */
.vh-plate {
	position: absolute;
	inset: 0;
	background-image: url('../images/hero/hero-img/Bg-PL.avif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

/* Layer 1 — sky background */
.vh-sky {
	position: absolute;
	inset: 0;
	background-image: url('../images/hero/hero-img/hero-sky-bg.avif');
	background-size: cover;
	background-position: center 20%;
	background-repeat: no-repeat;
	z-index: 2;
}

/* Two-column hero grid */
.vh-hero__grid {
	position: relative;
	z-index: 10;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: end;
	gap: clamp(16px, 3vw, 48px);
	height: 100%;
	padding: calc(var(--vh-header-h) + 24px) clamp(24px, 4vw, 64px) 0;
	max-width: 1440px;
	margin: 0 auto;
}

/* Left column — intro copy */
.vh-copy {
	position: relative;
	align-self: end;
	padding-bottom: clamp(32px, 8vh, 72px);
	text-align: left;
}

/* Right column — building anchored to banner bottom */
.vh-building-wrap {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.vh-building {
	width: auto;
	height: min(88vh, 920px);
	max-height: calc(100svh - var(--vh-header-h) - 12px);
	max-width: 100%;
	object-fit: contain;
	object-position: bottom center;
	display: block;
}

.vh-copy h1 {
	margin: 0 0 12px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(30px, 5vw, 72px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--vh-dark);
	text-transform: capitalize;
}

.vh-copy p {
	margin: 0 0 22px;
	font-family: var(--default-font, 'DM Sans', sans-serif);
	font-size: clamp(15px, 1.7vw, 20px);
	font-weight: 500;
	color: rgba(17, 17, 17, 0.72);
}

.vh-copy__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 34px;
	border-radius: 10px;
	background: var(--vh-dark);
	color: #fff;
	font-family: var(--accent-font, 'Space Grotesk', sans-serif);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.3s ease, transform 0.3s ease;
}

.vh-copy__btn:hover {
	background: var(--vh-accent);
	color: #fff;
	transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
	.vh-hero__grid {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
		padding-left: clamp(18px, 3vw, 40px);
		padding-right: clamp(18px, 3vw, 40px);
	}

	.vh-building {
		height: min(82vh, 760px);
	}
}

/* Tablet & mobile — stacked layout */
@media (max-width: 991px) {
	:root {
		--vh-header-h: 64px;
	}

	.vh-header__left {
		display: none;
	}

	.vh-header__inner {
		grid-template-columns: 1fr auto;
		padding: 10px 18px;
	}

	.vh-header__logo {
		justify-self: start;
	}

	.vh-header__cta {
		display: none;
	}

	.vh-hero {
		height: 100svh;
	}

	.vh-hero__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		align-items: stretch;
		gap: 12px;
		padding: calc(var(--vh-header-h) + 16px) 18px 0;
	}

	.vh-copy {
		align-self: start;
		padding-bottom: 0;
		text-align: left;
	}

	.vh-building-wrap {
		align-items: flex-end;
		min-height: 0;
	}

	.vh-building {
		height: auto;
		width: 112%;
		max-width: 112%;
		max-height: none;
	}
}

@media (max-width: 575px) {
	.vh-header__logo img {
		height: 34px;
	}

	.vh-copy h1 {
		font-size: clamp(26px, 8vw, 40px);
	}

	.vh-building {
		width: 118%;
		max-width: 118%;
	}
}

