/* =========================================================================
 *  GV Advisors — Homepage styles (premium redesign)
 *  Scoped to the front page (.gv-home / #gv-preloader / .gv-footer) so nothing
 *  leaks into the Brands Directory, Single Brand page, or the enquiry form.
 *  Palette + type taken verbatim from the GV brand guidelines.
 * ========================================================================= */

:root {
	--gv-bg: #F8F5EE;
	--gv-surface: #FFFFFF;
	--gv-forest: #1A4D3A;
	--gv-forest-dark: #15402F;
	--gv-charcoal: #1F2A28;
	--gv-brass: #B8956B;
	--gv-sage: #7A9080;
	--gv-stone: #8B8680;
	--gv-light-sage: #E8EDE9;
	--gv-border: #E6E2D8;
	--gv-shadow: rgba(26, 77, 58, .08);

	--gv-radius: 20px;
	--gv-radius-sm: 12px;
	--gv-maxw: 1280px;
	--gv-ease: cubic-bezier(.22, .61, .36, 1);
	--gv-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	--gv-sans: "Inter", "Calibri", system-ui, -apple-system, sans-serif;
}

.gv-home, .gv-home * { box-sizing: border-box; }

.gv-home {
	background: var(--gv-bg);
	color: var(--gv-charcoal);
	font-family: var(--gv-sans);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.gv-container {
	width: 100%;
	max-width: var(--gv-maxw);
	margin: 0 auto;
	padding: 0 clamp(22px, 5vw, 64px);
}

/* ---------- Headings ---------- */
.gv-home h1, .gv-home h2, .gv-home h3, .gv-home h4 {
	font-family: var(--gv-serif);
	color: var(--gv-forest);
	font-weight: 600;
	line-height: 1.08;
	margin: 0;
	letter-spacing: .2px;
}

/* ---------- Kicker ---------- */
.gv-kicker {
	font-family: var(--gv-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 3.5px;
	text-transform: uppercase;
	color: var(--gv-brass);
	margin: 0 0 20px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.gv-kicker::before {
	content: "";
	width: 34px; height: 1px;
	background: var(--gv-brass);
	display: inline-block;
}
.gv-kicker--light { color: var(--gv-brass); }
.gv-section__head--center .gv-kicker { justify-content: center; }

/* ---------- Buttons ---------- */
.gv-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 34px;
	border-radius: var(--gv-radius-sm);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .3px;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	border: 1.5px solid transparent;
	transition: transform .4s var(--gv-ease), color .4s var(--gv-ease),
		border-color .4s var(--gv-ease), box-shadow .4s var(--gv-ease);
}
.gv-btn span { position: relative; z-index: 1; }
.gv-btn::before {
	content: "";
	position: absolute; inset: 0;
	transform: translateY(100%);
	transition: transform .45s var(--gv-ease);
}
.gv-btn:hover { transform: translateY(-2px); }
.gv-btn:hover::before { transform: translateY(0); }

.gv-btn--primary { background: var(--gv-forest); color: var(--gv-bg); box-shadow: 0 12px 30px var(--gv-shadow); }
.gv-btn--primary::before { background: var(--gv-forest-dark); }
.gv-btn--primary:hover { color: #fff; }

.gv-btn--ghost { background: transparent; color: var(--gv-bg); border-color: rgba(248,245,238,.5); }
.gv-btn--ghost::before { background: rgba(248,245,238,.14); }
.gv-btn--ghost:hover { border-color: var(--gv-bg); }

.gv-btn--outline { background: transparent; color: var(--gv-forest); border-color: var(--gv-forest); }
.gv-btn--outline::before { background: var(--gv-forest); }
.gv-btn--outline:hover { color: var(--gv-bg); }

.gv-btn--cream { background: var(--gv-bg); color: var(--gv-forest); box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.gv-btn--cream::before { background: #fff; }
.gv-btn--cream:hover { color: var(--gv-forest); }

/* ---------- Section rhythm ---------- */
.gv-section { padding: clamp(76px, 10vw, 140px) 0; background: var(--gv-bg); }
.gv-section--sage { background: var(--gv-light-sage); }
.gv-section__head { max-width: 660px; margin: 0 0 clamp(44px, 5vw, 68px); }
.gv-section__head--center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.gv-section__title { font-size: clamp(34px, 4.8vw, 54px); }
.gv-section__intro { margin: 20px 0 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--gv-charcoal); opacity: .74; }
.gv-section__foot { margin-top: clamp(44px, 5vw, 64px); text-align: center; }

/* =========================================================================
 *  PRELOADER  (+ logo hand-off toward the navbar)
 * ========================================================================= */
.gv-preloader {
	position: fixed; inset: 0; z-index: 99999;
	background: var(--gv-bg);
	display: flex; align-items: center; justify-content: center;
	opacity: 1;
	transition: opacity .8s var(--gv-ease), visibility .8s var(--gv-ease);
}
.gv-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gv-preloader.is-instant { display: none; }

.gv-preloader__mark {
	opacity: 0; transform: scale(.84);
	transition: opacity .8s var(--gv-ease), transform 1s var(--gv-ease);
}
.gv-preloader.is-in .gv-preloader__mark { opacity: 1; transform: scale(1); }
/* Hand-off: drift up-left toward the header logo position, then release. */
.gv-preloader.is-handoff .gv-preloader__mark {
	transform: translate(calc(-50vw + 96px), calc(-50vh + 44px)) scale(.4);
	opacity: 0;
}
/* NOTE: .gv-monogram / .gv-monogram--sm now live in the global gv-footer.css
   (loaded on every page, including the homepage), so the preloader reuses them. */

/* =========================================================================
 *  HERO
 * ========================================================================= */
.gv-hero {
	position: relative;
	min-height: 100vh;
	display: flex; align-items: center;
	color: var(--gv-bg);
	overflow: hidden;
	background: var(--gv-forest-dark);
}
.gv-hero__media { position: absolute; inset: 0; overflow: hidden; }
.gv-hero__video {
	position: absolute; top: -8%; left: 50%; transform: translateX(-50%);
	width: 100%; height: 116%; min-width: 100%; object-fit: cover;
	background: var(--gv-forest-dark) url("../img/hero.jpg") center/cover no-repeat;
	will-change: transform;
}
.gv-hero__overlay {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(21,64,47,.30) 0%, rgba(21,64,47,.42) 55%, rgba(21,64,47,.78) 100%),
		linear-gradient(90deg, rgba(21,64,47,.55) 0%, rgba(21,64,47,.10) 70%);
}
.gv-hero__inner { position: relative; padding: 132px 0 60px; max-width: 940px; }
.gv-hero .gv-kicker { color: var(--gv-brass); }
.gv-hero__title { color: var(--gv-bg); font-size: clamp(46px, 7.2vw, 86px); font-weight: 600; letter-spacing: -.5px; }
.gv-hero__sub { margin: 26px 0 0; max-width: 560px; font-size: clamp(16px, 2vw, 21px); color: rgba(248,245,238,.9); line-height: 1.6; }
.gv-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }

.gv-hero__stats {
	display: flex; flex-wrap: wrap;
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: 36px;
	border-top: 1px solid rgba(184,149,107,.4);
}
.gv-stat { display: flex; flex-direction: column; padding-right: clamp(26px, 4vw, 52px); position: relative; }
.gv-stat:not(:last-child) { margin-right: clamp(26px, 4vw, 52px); }
.gv-stat:not(:last-child)::after {
	content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px;
	background: rgba(184,149,107,.4);
}
.gv-stat strong { font-family: var(--gv-serif); font-size: clamp(34px, 4vw, 48px); font-weight: 600; color: var(--gv-bg); line-height: 1; }
.gv-stat span { font-size: 12.5px; color: rgba(248,245,238,.72); margin-top: 10px; max-width: 140px; letter-spacing: .2px; }

.gv-hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 1px; height: 60px; overflow: hidden; }
.gv-hero__scroll-line { position: absolute; inset: 0; background: rgba(248,245,238,.4); }
.gv-hero__scroll-line::after {
	content: ""; position: absolute; top: -60%; left: 0; width: 100%; height: 60%;
	background: var(--gv-brass); animation: gv-scroll 2.2s var(--gv-ease) infinite;
}
@keyframes gv-scroll { 0% { top: -60%; } 60%,100% { top: 100%; } }

/* =========================================================================
 *  GRIDS + reveal stagger
 * ========================================================================= */
.gv-grid { display: grid; gap: clamp(22px, 2.4vw, 32px); }
.gv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gv-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================================
 *  BRAND CARD (styled here; markup untouched in gv-brand-card.php)
 * ========================================================================= */
.gv-brand-card {
	display: flex; flex-direction: column;
	background: var(--gv-surface);
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	overflow: hidden;
	text-decoration: none; color: inherit;
	box-shadow: 0 8px 26px var(--gv-shadow);
	transition: transform .45s var(--gv-ease), box-shadow .45s var(--gv-ease), border-color .45s var(--gv-ease);
	position: relative;
}
.gv-brand-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: var(--gv-brass); transform: scaleX(0); transform-origin: left;
	transition: transform .5s var(--gv-ease); z-index: 2;
}
.gv-brand-card:hover { transform: translateY(-8px); box-shadow: 0 26px 52px rgba(26,77,58,.16); border-color: transparent; }
.gv-brand-card:hover::before { transform: scaleX(1); }

.gv-brand-card__logo {
	height: 210px; display: flex; align-items: center; justify-content: center;
	background: var(--gv-light-sage); padding: 40px;
	transition: background .45s var(--gv-ease);
}
.gv-brand-card:hover .gv-brand-card__logo { background: #eef2ee; }
.gv-brand-card__logo img { max-height: 100%; max-width: 82%; object-fit: contain; transition: transform .5s var(--gv-ease); }
.gv-brand-card:hover .gv-brand-card__logo img { transform: scale(1.04); }
.gv-brand-card__mono { font-family: var(--gv-serif); font-size: 54px; font-weight: 700; color: var(--gv-forest); }

.gv-brand-card__body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.gv-brand-card__tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gv-sage); margin-bottom: 14px; }
.gv-brand-card__title { font-size: 28px; margin-bottom: 12px; }
.gv-brand-card__desc { font-size: 15px; color: var(--gv-charcoal); opacity: .8; margin: 0 0 20px; }
.gv-brand-card__inv { display: flex; flex-direction: column; padding: 16px 0; margin-top: auto; border-top: 1px solid var(--gv-border); }
.gv-brand-card__inv span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gv-stone); }
.gv-brand-card__inv strong { font-size: 17px; color: var(--gv-forest); margin-top: 4px; }
.gv-brand-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--gv-forest); }
.gv-brand-card__cta svg { transition: transform .35s var(--gv-ease); }
.gv-brand-card:hover .gv-brand-card__cta svg { transform: translateX(5px); }

/* =========================================================================
 *  INDUSTRIES
 * ========================================================================= */
.gv-industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 22px); }
.gv-industry {
	display: flex; align-items: center; gap: 24px;
	padding: 30px 34px;
	background: var(--gv-surface);
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	text-decoration: none; color: inherit;
	transition: transform .4s var(--gv-ease), box-shadow .4s var(--gv-ease), background .4s var(--gv-ease);
	position: relative; overflow: hidden;
}
.gv-industry:hover { transform: translateY(-4px); background: var(--gv-forest); box-shadow: 0 22px 44px rgba(26,77,58,.18); }
.gv-industry__index { font-family: var(--gv-serif); font-size: 22px; color: var(--gv-brass); min-width: 34px; }
.gv-industry__body { display: flex; flex-direction: column; flex: 1; }
.gv-industry__name { font-family: var(--gv-serif); font-size: 26px; font-weight: 600; color: var(--gv-forest); transition: color .4s var(--gv-ease); }
.gv-industry__count { font-size: 13px; color: var(--gv-stone); margin-top: 6px; transition: color .4s var(--gv-ease); }
.gv-industry__arrow { color: var(--gv-forest); opacity: .35; transform: translateX(-6px); transition: transform .4s var(--gv-ease), opacity .4s var(--gv-ease), color .4s var(--gv-ease); }
.gv-industry:hover .gv-industry__name { color: var(--gv-bg); }
.gv-industry:hover .gv-industry__count { color: rgba(248,245,238,.7); }
.gv-industry:hover .gv-industry__arrow { color: var(--gv-brass); opacity: 1; transform: translateX(0); }

/* =========================================================================
 *  WHY GV
 * ========================================================================= */
.gv-why {
	padding: 40px 32px 36px;
	background: var(--gv-surface);
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	transition: transform .4s var(--gv-ease), box-shadow .4s var(--gv-ease);
}
.gv-why:hover { transform: translateY(-6px); box-shadow: 0 22px 44px var(--gv-shadow); }
.gv-why__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--gv-light-sage); color: var(--gv-forest);
	margin-bottom: 24px;
}
.gv-why__icon svg { width: 26px; height: 26px; }
.gv-why__title { font-size: 26px; margin: 0 0 14px; }
.gv-why p { font-size: 15px; color: var(--gv-charcoal); opacity: .8; margin: 0; }

/* =========================================================================
 *  PROCESS
 * ========================================================================= */
.gv-steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 2.6vw, 40px);
	position: relative;
}
.gv-steps::before {
	content: ""; position: absolute; top: 23px; left: 6%; right: 6%; height: 1px;
	background: linear-gradient(90deg, transparent, var(--gv-brass) 12%, var(--gv-brass) 88%, transparent);
	opacity: .55;
}
.gv-step { position: relative; padding-top: 66px; }
.gv-step__no {
	position: absolute; top: 0; left: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--gv-brass); background: var(--gv-light-sage);
	font-family: var(--gv-serif); font-size: 19px; color: var(--gv-forest);
}
.gv-section:not(.gv-section--sage) .gv-step__no { background: var(--gv-bg); }
.gv-step__title { font-size: 26px; margin: 0 0 12px; }
.gv-step p { font-size: 15px; color: var(--gv-charcoal); opacity: .8; margin: 0; }

/* =========================================================================
 *  EDITORIAL STATEMENT BAND
 * ========================================================================= */
.gv-statement {
	position: relative;
	background-color: var(--gv-forest-dark);
	background-size: cover; background-position: center; background-attachment: fixed;
	padding: clamp(96px, 13vw, 180px) 0;
	color: var(--gv-bg);
}
.gv-statement__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,64,47,.9) 0%, rgba(21,64,47,.7) 100%); }
.gv-statement__inner { position: relative; max-width: 900px; }
.gv-statement__quote {
	font-family: var(--gv-serif); font-style: italic; font-weight: 500;
	font-size: clamp(28px, 4vw, 46px); line-height: 1.28; color: var(--gv-bg); margin: 0;
}

/* =========================================================================
 *  TESTIMONIALS
 * ========================================================================= */
.gv-slider { position: relative; overflow: hidden; max-width: 940px; margin: 0 auto; }
.gv-slider__track { display: flex; transition: transform .6s var(--gv-ease); will-change: transform; }
.gv-quote {
	flex: 0 0 100%; margin: 0;
	padding: clamp(40px, 5.5vw, 68px);
	background: var(--gv-surface);
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	box-shadow: 0 14px 40px var(--gv-shadow);
	position: relative;
}
.gv-quote__mark { font-family: var(--gv-serif); font-size: 130px; line-height: .5; color: var(--gv-brass); opacity: .32; display: block; height: 54px; }
.gv-quote__text { font-family: var(--gv-serif); font-size: clamp(22px, 2.8vw, 31px); font-style: italic; font-weight: 500; color: var(--gv-charcoal); line-height: 1.4; margin: 0 0 30px; }
.gv-quote__by { display: flex; flex-direction: column; }
.gv-quote__name { font-weight: 600; color: var(--gv-forest); font-size: 16px; }
.gv-quote__meta { font-size: 13px; color: var(--gv-stone); margin-top: 5px; }
.gv-quote__disclaimer { text-align: center; font-size: 12.5px; color: var(--gv-stone); margin-top: 28px; }

.gv-slider__nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; }
.gv-slider__btn {
	width: 50px; height: 50px; border-radius: 50%;
	border: 1px solid var(--gv-border); background: var(--gv-surface);
	color: var(--gv-forest); font-size: 18px; cursor: pointer;
	transition: background .35s var(--gv-ease), color .35s var(--gv-ease), border-color .35s var(--gv-ease), transform .35s var(--gv-ease);
}
.gv-slider__btn:hover { background: var(--gv-forest); color: var(--gv-bg); border-color: var(--gv-forest); transform: translateY(-2px); }
.gv-slider__dots { display: flex; gap: 9px; }
.gv-slider__dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: var(--gv-border); cursor: pointer; transition: background .35s var(--gv-ease), transform .35s var(--gv-ease); }
.gv-slider__dots button.is-active { background: var(--gv-forest); transform: scale(1.4); }

/* =========================================================================
 *  FINAL CTA
 * ========================================================================= */
.gv-cta {
	position: relative;
	background-color: var(--gv-forest);
	background-size: cover; background-position: center;
	padding: clamp(64px, 8vw, 104px) 0;
	color: var(--gv-bg); text-align: center;
}
.gv-cta__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,64,47,.88), rgba(21,64,47,.94)); }
.gv-cta__inner { position: relative; max-width: 720px; margin: 0 auto; }
.gv-cta__inner .gv-kicker { justify-content: center; }
.gv-cta__title { color: var(--gv-bg); font-size: clamp(34px, 5vw, 56px); font-weight: 600; }
.gv-cta__text { font-size: clamp(16px, 2vw, 19px); color: rgba(248,245,238,.85); margin: 18px 0 34px; }

/* NOTE: The .gv-footer styles and the global Houzez-footer hide now live in
   assets/css/gv-footer.css (loaded on every page). Kept out of this file to
   avoid duplication. */

/* =========================================================================
 *  REVEAL + STAGGER
 * ========================================================================= */
.gv-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--gv-ease), transform .8s var(--gv-ease); }
.gv-reveal.is-visible { opacity: 1; transform: none; }
.gv-stagger.is-visible > * { animation: gv-rise .8s var(--gv-ease) both; }
.gv-stagger.is-visible > *:nth-child(1) { animation-delay: .04s; }
.gv-stagger.is-visible > *:nth-child(2) { animation-delay: .12s; }
.gv-stagger.is-visible > *:nth-child(3) { animation-delay: .20s; }
.gv-stagger.is-visible > *:nth-child(4) { animation-delay: .28s; }
.gv-stagger.is-visible > *:nth-child(5) { animation-delay: .36s; }
.gv-stagger.is-visible > *:nth-child(6) { animation-delay: .44s; }
.gv-stagger:not(.is-visible) > * { opacity: 0; }
@keyframes gv-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* =========================================================================
 *  HEADER: existing Houzez header transparent over hero, solid on scroll.
 *  Scoped to body.home. Add your header wrapper class if it differs.
 * ========================================================================= */
body.home #header-container,
body.home .header-map,
body.home header#header,
body.home .main-header-wrapper {
	background: transparent !important;
	box-shadow: none !important;
	transition: background .45s var(--gv-ease), box-shadow .45s var(--gv-ease) !important;
}
body.home.gv-scrolled #header-container,
body.home.gv-scrolled .header-map,
body.home.gv-scrolled header#header,
body.home.gv-scrolled .main-header-wrapper {
	background: var(--gv-surface) !important;
	box-shadow: 0 2px 22px var(--gv-shadow) !important;
}
/* Premium menu hover underline (targets common Houzez menu anchors on home). */
body.home .main-nav a::after,
body.home #main-nav a::after { content: ""; display: block; height: 1px; width: 0; background: var(--gv-brass); transition: width .3s var(--gv-ease); }
body.home .main-nav a:hover::after,
body.home #main-nav a:hover::after { width: 100%; }

/* =========================================================================
 *  RESPONSIVE
 * ========================================================================= */
@media (max-width: 1024px) {
	.gv-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.gv-steps { grid-template-columns: repeat(2, 1fr); }
	.gv-steps::before { display: none; }
}
@media (max-width: 760px) {
	.gv-grid--3, .gv-grid--4 { grid-template-columns: 1fr; }
	.gv-industries { grid-template-columns: 1fr; }
	.gv-steps { grid-template-columns: 1fr; }
	.gv-hero { min-height: 88vh; }
	.gv-hero__inner { padding-top: 116px; }
	.gv-hero__actions .gv-btn { flex: 1 1 auto; }
	.gv-statement { background-attachment: scroll; }
}
@media (max-width: 460px) {
	.gv-stat { padding-right: 20px; }
	.gv-stat:not(:last-child) { margin-right: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.gv-reveal, .gv-stagger.is-visible > * { opacity: 1 !important; transform: none !important; animation: none !important; }
	.gv-stagger:not(.is-visible) > * { opacity: 1; }
	.gv-slider__track { transition: none; }
	.gv-hero__scroll-line::after { animation: none; }
	.gv-btn:hover, .gv-brand-card:hover, .gv-industry:hover, .gv-why:hover { transform: none; }
	.gv-preloader, .gv-preloader__mark { transition: none; }
	.gv-statement { background-attachment: scroll; }
}