/* ============================================================
   G&W REALTY — LEAD CAPTURE FUNNEL
   Color palette: Gold (#C8973A) + Deep Navy (#1B2A4A) + White
   Fonts: Cabinet Grotesk (display) + Satoshi (body)
   ============================================================ */

:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.4rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(2.6rem,   1.5rem  + 4.5vw,  5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  /* Brand colors */
  --gold:           #C8973A;
  --gold-hover:     #e0aa45;
  --gold-light:     #2a1f08;
  --navy:           #1B2A4A;
  --navy-mid:       #263655;
  --navy-light:     #111827;

  /* DEFAULT = DARK (BLACK) */
  --color-bg:            #000000;
  --color-surface:       #0d0d0d;
  --color-surface-2:     #141414;
  --color-border:        #2a2a2a;
  --color-text:          #f0ede8;
  --color-text-muted:    #999690;
  --color-primary:       var(--gold);
  --color-primary-hover: var(--gold-hover);

  /* Radius */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.7);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.8);

  /* Transitions */
  --tr: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-default: 1120px;
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
}

[data-theme='light'] {
  --gold-hover:       #b07e28;
  --gold-light:       #f5e9d0;
  --navy-light:       #e8ecf4;
  --color-bg:         #f8f7f4;
  --color-surface:    #ffffff;
  --color-surface-2:  #f3f1ec;
  --color-border:     #e0ddd6;
  --color-text:       #1a1814;
  --color-text-muted: #6b6960;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);
}

[data-theme='dark'] {
  --color-bg:         #000000;
  --color-surface:    #0d0d0d;
  --color-surface-2:  #141414;
  --color-border:     #2a2a2a;
  --color-text:       #f0ede8;
  --color-text-muted: #999690;
  --navy-light:       #111827;
  --gold-light:       #2a1f08;
  --gold:             #C8973A;
  --gold-hover:       #e0aa45;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.7);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:         #000000;
    --color-surface:    #0d0d0d;
    --color-surface-2:  #141414;
    --color-border:     #2a2a2a;
    --color-text:       #f0ede8;
    --color-text-muted: #999690;
    --navy-light:       #111827;
    --gold-light:       #2a1f08;
  }
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
body { font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); min-height: 100dvh; line-height: 1.6; }
img, svg { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; text-decoration: none; transition: color var(--tr), opacity var(--tr); }
button { cursor: pointer; background: none; border: none; font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---- CONTAINER ---- */
.container { max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(var(--space-6), 5vw, var(--space-12)); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-sm); padding: 0.75em 1.5em;
  border-radius: var(--radius-full, 9999px);
  transition: background var(--tr), color var(--tr), transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-hover); box-shadow: 0 4px 16px rgba(200,151,58,0.4); }
.btn-sm { font-size: var(--text-xs); padding: 0.6em 1.2em; }
.btn-full { width: 100%; justify-content: center; padding: 1em; font-size: var(--text-base); }
.btn-white { background: #fff; color: var(--navy); font-weight: 700; }
.btn-white:hover { background: #f0f0f0; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.radius-full { border-radius: 9999px; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: var(--space-3); }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.02em; }
.logo-amp { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.nav-link { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.nav-link:hover { color: var(--color-text); }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); color: var(--color-text-muted); transition: background var(--tr), color var(--tr); }
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

/* ---- HERO ---- */
.hero { position: relative; padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-16), 8vw, var(--space-20)); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-shape-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(200,151,58,0.12) 0%, transparent 65%); top: -250px; right: -150px; }
.hero-shape-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,151,58,0.06) 0%, transparent 65%); bottom: -150px; left: -100px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-16)); align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: var(--space-6); }
.badge { display: inline-flex; align-items: center; font-size: var(--text-xs); font-weight: 700; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.4em 1em; border-radius: 9999px; background: var(--gold-light); color: var(--gold-hover); width: fit-content; }
.badge-blue { background: var(--navy-light); color: var(--navy); }
[data-theme='dark'] .badge { background: rgba(200,151,58,0.15); color: #e0a840; }
[data-theme='dark'] .badge-blue { background: rgba(27,42,74,0.5); color: #8aaee0; }
.hero-headline { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.headline-accent { color: var(--gold); }
.hero-sub { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.trust-list li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 500; }
.trust-list svg { color: var(--gold); flex-shrink: 0; }

/* ---- FORM CARD ---- */
.form-card { background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); border: 1px solid var(--color-border); overflow: hidden; }
.form-card-header { background: #0d0d0d; border-bottom: 1px solid #2a2a2a; padding: var(--space-6) var(--space-8); }
.form-card-header h2 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: #fff; margin-bottom: var(--space-1); }
.form-card-header p { font-size: var(--text-xs); color: rgba(255,255,255,0.65); }
.lead-form { padding: var(--space-6) var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
label { font-size: var(--text-xs); font-weight: 700; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
input, select {
  padding: 0.75em 1em; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--text-sm); color: var(--color-text);
  transition: border-color var(--tr), box-shadow var(--tr);
}
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,151,58,0.15); }
input::placeholder { color: var(--color-text-muted); opacity: 0.6; }
.form-disclaimer { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; line-height: 1.5; }

/* ---- SOCIAL BAR ---- */
.social-bar { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding-block: var(--space-6); }
.social-bar-inner { display: flex; align-items: center; justify-content: center; gap: clamp(var(--space-8), 4vw, var(--space-16)); flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }
.divider-v { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* ---- SECTIONS ---- */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section-alt { background: var(--color-surface-2); }
.section-header { text-align: center; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.03em; }
.section-sub { font-size: var(--text-base); color: var(--color-text-muted); margin-top: var(--space-4); max-width: 56ch; margin-inline: auto; }

/* ---- HOW IT WORKS ---- */
.steps { display: flex; align-items: flex-start; gap: var(--space-4); }
.step { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.step-num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--gold); line-height: 1; opacity: 0.8; }
.step h3 { font-size: var(--text-lg); font-weight: 700; }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.step-arrow { display: flex; align-items: center; padding-top: 2.5rem; color: var(--color-border); flex-shrink: 0; }

/* ---- AREAS GRID ---- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.area-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr); }
.area-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.area-icon { font-size: 2rem; margin-bottom: var(--space-3); }
.area-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.area-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.area-stat { margin-top: var(--space-4); font-size: var(--text-xs); font-weight: 700; font-family: var(--font-display); color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- TEAM BLOCK ---- */
.team-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-16)); align-items: center; }
.team-content { display: flex; flex-direction: column; gap: var(--space-6); }
.team-content .badge { margin-bottom: var(--space-2); }
.team-content p { color: var(--color-text-muted); }
.team-contacts { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr); }
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.contact-avatar { width: 44px; height: 44px; border-radius: 50%; background: #1a1208; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); flex-shrink: 0; }
.contact-card strong { display: block; font-family: var(--font-display); font-weight: 700; }
.contact-card span { font-size: var(--text-sm); color: var(--color-text-muted); }
.brokerage-note { font-size: var(--text-xs); color: var(--color-text-muted); }
.team-visual { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.kw-badge { display: flex; align-items: center; gap: var(--space-4); }
.kw-badge strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: #fff; }
.kw-badge span { font-size: var(--text-xs); color: rgba(255,255,255,0.6); }
.value-props { display: flex; flex-direction: column; gap: var(--space-3); }
.vp { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.vp svg { color: var(--gold); flex-shrink: 0; }

/* ---- FEATURES GRID ---- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.feature-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: box-shadow var(--tr), transform var(--tr); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: var(--space-4); }
.feature-card h3 { font-size: var(--text-base); font-weight: 700; font-family: var(--font-display); margin-bottom: var(--space-2); }
.feature-card p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- CTA SECTION ---- */
.cta-section { background: linear-gradient(135deg, #0d0d0d 0%, #1a1208 100%); border-top: 1px solid var(--color-border); padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.cta-inner h2 { font-size: var(--text-2xl); font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: var(--text-base); }
.cta-btns { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }

/* ---- THANK YOU PAGE ---- */
.thankyou-section { min-height: calc(100dvh - 68px); display: flex; align-items: center; padding-block: var(--space-16); }
.thankyou-card { max-width: 600px; margin-inline: auto; text-align: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-8), 5vw, var(--space-12)); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.ty-icon { margin-bottom: var(--space-2); }
.thankyou-card h1 { font-size: var(--text-xl); font-weight: 800; }
.thankyou-card > p { color: var(--color-text-muted); }
.ty-next { width: 100%; text-align: left; background: var(--color-surface-2); border-radius: var(--radius-lg); padding: var(--space-6); }
.ty-next h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-4); }
.ty-next ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.ty-next li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.ty-step { width: 28px; height: 28px; background: #1a1208; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); flex-shrink: 0; }
.ty-contacts { width: 100%; }
.ty-contacts p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); text-align: center; }

/* ---- FOOTER ---- */
.footer { background: var(--color-surface-2); border-top: 1px solid var(--color-border); padding-block: var(--space-10); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; margin-bottom: var(--space-8); }
.footer-legal { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); line-height: 1.6; }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--tr); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { font-size: var(--text-xs); color: var(--color-text-muted); border-top: 1px solid var(--color-border); padding-top: var(--space-6); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .team-block { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .divider-v { display: none; }
  .social-bar-inner { gap: var(--space-6); }
}

@media (max-width: 640px) {
  .nav-link { display: none; }
  .areas-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { width: 100%; justify-content: center; }
  .social-bar-inner { gap: var(--space-5); }
  .footer-inner { flex-direction: column; }
  .team-contacts { flex-direction: column; }
}

/* ---- SCROLL ANIMATIONS ---- */
.anim-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-hidden.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- REAL LOGO & TEAM PHOTO STYLES ---- */
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.logo-img-sm {
  height: 40px;
}
.kw-footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-top: var(--space-3);
  filter: brightness(0.85);
  max-width: 220px;
}
[data-theme='dark'] .kw-footer-logo {
  filter: brightness(0.7);
}
.team-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.kw-badge-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
  margin-top: var(--space-2);
}
[data-theme='dark'] .kw-badge-logo {
  filter: brightness(0.75);
}
