/* ============================================================================
   NARWAL REAL ESTATE — design system
   Warm, cinematic, luxury. Fraunces (display) + Hanken Grotesk (sans).
   One continuous sunset → cream → espresso world. No cold blue, no pure black.
   ========================================================================== */

:root {
  /* ---- core warm family ---- */
  --dusk:      #2b1b2e;   /* deep plum — top of sky / darkest band */
  --plum:      #45283f;
  --wine:      #7a3f4e;
  --terra:     #b25e4f;   /* terracotta */
  --sunset:    #d9774a;   /* coral-orange */
  --amber:     #ec9a52;
  --gold:      #c8964a;   /* metallic accent — kickers, rules, hovers */
  --gold-2:    #b07d33;
  --gold-soft: #e7c98a;
  --honey:     #f6d49a;
  --cream:     #f8f1e6;   /* primary light bg */
  --cream-2:   #fdf8ef;   /* lightest */
  --sand:      #efe2cf;
  --espresso:  #241712;   /* darkest — warm, never black */
  --espresso-2:#33241b;
  --ink:       #2c2219;   /* body text on light */
  --ink-soft:  #5a4d3f;
  --muted:     #7a6c5b;   /* secondary text */
  --line:      #ece0cf;   /* hairlines */
  --line-dark: rgba(255,255,255,.13);

  /* legacy aliases kept so any stray rule still resolves to warm tones */
  --navy: var(--espresso);
  --navy-2: var(--espresso-2);
  --navy-3: #4d3b2c;
  --bg: #ffffff;
  --bg-alt: var(--cream);

  /* ---- section background sequence (top → bottom of page) ---- */
  --bg-hero-base: #f9e7cf;
  --bg-intro:     var(--cream);
  --bg-stats:     var(--espresso);
  --bg-chev:      var(--espresso);
  --bg-video:     #1c110b;
  --bg-areas:     var(--sand);
  --bg-rows:      var(--espresso-2);
  --bg-how:       var(--plum);
  --bg-about:     var(--cream);
  --bg-cta:       var(--terra);
  --bg-contact:   var(--cream-2);
  --bg-footer:    var(--espresso);

  /* ---- type ---- */
  --font-display: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-sans:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fr-soft: "opsz" 144, "SOFT" 40, "WONK" 0;

  --step-kicker:  clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --step-body:    clamp(1rem,    0.97rem + 0.3vw, 1.16rem);
  --step-h3:      clamp(1.25rem, 1.10rem + 0.9vw, 1.6rem);
  --step-h2:      clamp(1.95rem, 1.40rem + 2.5vw, 3.1rem);
  --step-h1:      clamp(2.6rem,  1.70rem + 4.6vw, 5.0rem);
  --step-display: clamp(3.4rem,  1.50rem + 9vw,  8rem);
  --leading-tight: 1.04;
  --leading-snug:  1.16;
  --leading-body:  1.62;
  --tracking-kicker: .2em;
  --tracking-display: -0.018em;

  /* ---- motion tokens ---- */
  --ease-standard: cubic-bezier(.2,.7,.2,1);
  --ease-out-soft: cubic-bezier(.22,.61,.36,1);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-in-out:   cubic-bezier(.65,.05,.36,1);
  --dur-micro:  140ms;
  --dur-ui:     320ms;
  --dur-reveal: 760ms;
  --dur-cine:  1200ms;
  --stagger:    90ms;

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --shadow-soft: 0 18px 50px rgba(60,38,20,.12);
  --shadow-lift: 0 30px 80px rgba(40,22,12,.20);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-body);
  color: var(--ink);
  background: var(--cream);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  margin: 0 0 .5em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1440px; }

a { color: var(--gold-2); text-decoration: none; }
section[id] { scroll-margin-top: 84px; }

/* a subtle gold animated link underline for inline links */
.link-u { position: relative; color: var(--gold-2); }
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-ui) var(--ease-out-soft);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- kickers / titles ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: var(--tracking-kicker);
  font-size: var(--step-kicker); font-weight: 700; color: var(--gold);
  margin: 0 0 18px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .8; }
.kicker-center { justify-content: center; }
.kicker-light { color: var(--gold-soft); }

.section-title {
  font-size: var(--step-h2);
  color: var(--espresso);
  letter-spacing: var(--tracking-display);
  max-width: 20ch;
  margin: 0 0 .6em;
}
.section-title-light { color: var(--cream-2); }
.lede { font-size: clamp(1.05rem, 1rem + .6vw, 1.3rem); color: var(--muted); max-width: 60ch; }

/* ============================ header ============================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background var(--dur-ui) var(--ease-standard),
              backdrop-filter var(--dur-ui) var(--ease-standard),
              border-color var(--dur-ui) var(--ease-standard),
              transform var(--dur-ui) var(--ease-standard);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(36,23,18,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  color: var(--gold-soft);
  filter: drop-shadow(0 3px 8px rgba(180,90,50,.35));
}
.brand-mark svg { overflow: visible; display: block; }
#brandKeysG { transform-box: view-box; transform-origin: 22px 8px; will-change: transform; }
@media (prefers-reduced-motion: reduce) { #brandKeysG { transform: none !important; } }
.brand-name { font-family: var(--font-display); font-size: 19px; letter-spacing: .2px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.86); font-weight: 500; font-size: 15px; transition: color var(--dur-micro); }
.nav-links a:hover { color: #fff; }

/* scroll progress bar (under header) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--sunset), var(--gold-soft));
}

/* ============================ buttons ============================ */
.btn {
  --btn-bg: var(--espresso);
  --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  font-family: var(--font-sans); border: 1px solid transparent; cursor: pointer;
  letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: transform var(--dur-micro) var(--ease-standard), color var(--dur-ui), box-shadow var(--dur-ui);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--sunset), var(--gold));
  transform: translateY(102%); transition: transform var(--dur-ui) var(--ease-out-expo);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 34px rgba(200,110,60,.34); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform var(--dur-ui) var(--ease-out-expo); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; padding: 17px; font-size: 16px; }
.btn-gold { --btn-bg: linear-gradient(120deg, var(--sunset), var(--gold)); }
.btn-gold::before { background: var(--espresso); }
.btn-gold:hover { color: #fff; }
.btn-outline {
  background: transparent; color: var(--espresso); border-color: rgba(60,40,24,.4);
}
.btn-outline::before { background: var(--espresso); }
.btn-outline:hover { color: #fff; border-color: transparent; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost::before { background: rgba(255,255,255,.16); }
.btn-ghost:hover { color: #fff; }
.on-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.on-dark .btn-outline:hover { color: var(--espresso); }
.on-dark .btn-outline::before { background: #fff; }

/* ============================ generic sections ============================ */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--plum); color: var(--cream-2); }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================ about ============================ */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-grid p { color: var(--ink-soft); }
.about-quote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.4; color: var(--espresso);
  margin: 0 0 24px; letter-spacing: -.01em;
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-soft);
}
.facts strong { display: block; font-family: var(--font-display); color: var(--espresso); font-size: 19px; }
.facts span { color: var(--muted); font-size: 14.5px; }

/* ============================ contact ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-intro p { color: var(--ink-soft); }
.contact-meta { margin-top: 22px; font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.contact-meta a { color: var(--gold-2); }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-lift);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--ink); letter-spacing: .01em; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: var(--cream-2);
  transition: border-color var(--dur-ui), box-shadow var(--dur-ui), background var(--dur-ui);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(200,150,74,.18);
}
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 10px 0 22px; line-height: 1.55; }
.consent input { margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--gold-2); }
.consent a { color: var(--gold-2); }

/* ============================ footer ============================ */
.site-footer { background: var(--espresso); color: #cabbab; padding: 72px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 360px; }
.site-footer .brand-name { color: #fff; font-size: 21px; }
.footer-meta { font-size: 14.5px; margin: 12px 0 0; color: #a4937f; line-height: 1.8; }
.footer-meta a { color: #cabbab; }
.footer-links { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.footer-links a { color: #cabbab; font-size: 14.5px; transition: color var(--dur-micro); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-fine { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px; }
.footer-fine p { font-size: 13px; color: #8a7969; margin: 0; }

/* ============================ doc + thanks pages ============================ */
.doc { padding: 120px 0 84px; }
.doc .container { max-width: 800px; }
.doc h1 { color: var(--espresso); font-size: clamp(2rem,5vw,2.6rem); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.doc h2 { color: var(--espresso); font-size: 1.4rem; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--gold-2); }
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.thanks h1 { color: var(--espresso); font-size: clamp(2rem,6vw,3rem); margin: 0 0 12px; }
.thanks p { color: var(--muted); max-width: 46ch; margin: 0 auto 24px; }

/* ============================ responsive ============================ */
@media (max-width: 880px) {
  .nav-links a:not(.btn) { display: none; }
  .nav { height: 64px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
}
