/* ============================================================
   NM HOME GUIDE — Redesign Concept
   Palette: High-desert neutral + warm terracotta + deep clay
   Fonts: Cormorant Garamond (display) / Inter (body)
   ============================================================ */

:root {
  --sand:      #f5efe6;
  --sand-deep: #eae0d0;
  --paper:     #ffffff;
  --clay:      #b5452a;   /* terracotta */
  --clay-dark: #8f341f;
  --embers:    #d4622f;   /* warm orange */
  --sage:      #7a8a6f;
  --dark:      #2b241c;   /* deep espresso */
  --dark-2:    #3d342a;
  --ink:       #4a4137;
  --muted:     #8a7d6c;
  --line:      rgba(43, 36, 28, 0.12);
  --white:     #fff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --shadow-sm: 0 6px 18px rgba(43, 36, 28, 0.08);
  --shadow-md: 0 18px 44px rgba(43, 36, 28, 0.14);
  --shadow-lg: 0 30px 70px rgba(43, 36, 28, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
select, input, button { font-family: inherit; font-size: inherit; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--dark); line-height: 1.1; font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 em { font-style: italic; }
h3 { font-size: 1.55rem; }
.tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
}
.tagline.light { color: #f0b08c; }

.section-head { text-align: left; margin-bottom: 2.6rem; }
.section-head.center { text-align: center; max-width: 640px; margin-inline: auto; }
.section-head.center p { margin-top: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--embers) 0%, var(--clay) 100%);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(181, 69, 42, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(181, 69, 42, 0.45); }
.btn-outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: var(--sand); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); backdrop-filter: blur(4px); background: rgba(43,36,28,0.18); }
.btn-ghost:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--dark); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.see-all { text-align: center; margin-top: 2.4rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: padding 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  background: linear-gradient(to bottom, rgba(43,36,28,0.28), transparent);
}
.site-header.scrolled {
  padding: 0.6rem 0;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; }

.brand { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.brand-mark { color: var(--white); display: inline-flex; transition: color 0.3s; }
.scrolled .brand-mark { color: var(--clay); }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.brand-accent { font-style: italic; font-weight: 500; }
.scrolled .brand-text { color: var(--dark); }

.nav-links { display: flex; gap: 1.7rem; margin-inline: auto; flex-wrap: nowrap; min-width: 0; }
.nav-links a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--embers);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.scrolled .nav-links a { color: var(--dark-2); }

.nav-cta { display: flex; gap: 0.7rem; flex: 0 0 auto; align-items: center; }

/* Header sits over a dark hero photo: the outline button needs light
   styling there, and dark styling once the header turns cream on scroll. */
.nav-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(43, 36, 28, 0.22);
  backdrop-filter: blur(4px);
}
.nav-cta .btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}
.scrolled .nav-cta .btn-outline {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
  backdrop-filter: none;
}
.scrolled .nav-cta .btn-outline:hover {
  background: var(--dark);
  color: var(--sand);
}

.hamburger { display: none; position: relative; flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: rgba(255,255,255,0.92); border: none; border-radius: 12px; cursor: pointer; padding: 0 10px; z-index: 120; }
.hamburger span { display: block; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center 40%;
  background-image:
    linear-gradient(115deg, rgba(30,24,18,0.82) 0%, rgba(30,24,18,0.45) 40%, rgba(30,24,18,0.15) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=1920&auto=format&fit=crop");
}
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--sand) 0%, transparent 28%); }
/* .hero-inner shares its element with .container, so capping it at 780px
   let .container's auto margins centre the whole block. Keep the container
   width and cap the children instead, so the copy starts at the logo's edge. */
.hero-inner { padding: 9rem 0 6.5rem; }
.hero-inner > * { max-width: 780px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f2c9a8;
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--embers); }

.hero-title {
  font-size: clamp(2.1rem, 6.5vw, 5.3rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.hero-title em {
  font-style: italic;
  color: #f0a578;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 600px;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-section { margin-top: -2.5rem; position: relative; z-index: 5; }
.search-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.4rem 2.6rem;
}
.search-intro h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.4rem; }
.search-controls { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field select {
  appearance: none;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--dark);
  font-weight: 500;
  cursor: pointer;
}
.btn-search { padding: 0.85rem 1.6rem; border-radius: 12px; }
.search-note { margin-top: 1.3rem; font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   ervice paths (Buy / Finance / Sell)
   ============================================================ */
.paths { padding: 6rem 0 2rem; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.path-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  opacity: 0.14;
  transition: transform 0.4s var(--ease);
  background: radial-gradient(circle, var(--embers), transparent 70%);
}
.path-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.path-card:hover::before { transform: scale(1.5); }
.path-card.path-buy { border-top-color: var(--sage); }
.path-card.path-finance { border-top-color: var(--clay); }
.path-card.path-sell { border-top-color: var(--embers); }
.path-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; color: var(--clay); background: rgba(181,69,42,0.08); margin-bottom: 1.4rem; }
.path-card h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.path-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.path-link { display: inline-block; margin-top: 1.4rem; font-weight: 600; font-size: 0.92rem; color: var(--dark); }
.path-link:hover { color: var(--clay); }

/* ============================================================
   NEIGHBORHOODS
   ============================================================ */
.neighborhoods { padding: 5rem 0; }
.nb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.nb-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.nb-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,24,18,0.82) 0%, transparent 55%);
  transition: opacity 0.3s;
}
.nb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.nb-label { z-index: 1; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.15rem; }
.nb-label strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 600; }
.nb-label span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

.nb-1 { background-image: url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?q=80&w=800&auto=format&fit=crop"); }
.nb-2 { background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=800&auto=format&fit=crop"); }
.nb-3 { background-image: url("https://images.unsplash.com/photo-1568605114967-8130f3a36994?q=80&w=800&auto=format&fit=crop"); }
.nb-4 { background-image: url("https://images.unsplash.com/photo-1591474200742-8e512e6f98f8?q=80&w=800&auto=format&fit=crop"); }
.nb-5 { background-image: url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?q=80&w=800&auto=format&fit=crop"); }
.nb-6 { background-image: url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?q=80&w=800&auto=format&fit=crop"); }

/* ============================================================
   FINANCE
   ============================================================ */
.finance {
  background:
    radial-gradient(1000px 500px at 90% 10%, rgba(212,98,47,0.16), transparent 60%),
    linear-gradient(160deg, #332a21 0%, #241e16 100%);
  color: var(--sand);
  padding: 6.5rem 0;
}
.finance-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.finance-text h2 { color: var(--white); margin-bottom: 1.2rem; }
.finance-text > p { color: rgba(255,255,255,0.78); margin-bottom: 1.6rem; }

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.92);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(212,98,47,0.9);
  color: var(--white);
  font-size: 0.75rem;
  display: grid; place-items: center;
}
.finance-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.calculator-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 2.2rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
}
.calculator-card .tagline { color: #f0b08c; }
.calc-head h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 1.4rem; }
.calc-row { display: flex; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.09); color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.calc-row strong { color: var(--white); font-weight: 500; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1.4rem 0 0.4rem; }
.calc-total span { color: rgba(255,255,255,0.8); }
.calc-total strong { font-family: var(--font-display); font-size: 2.6rem; color: #f0a578; font-weight: 700; }
.calc-note { font-size: 0.76rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   SELLER
   ============================================================ */
.seller { padding: 6rem 0; }
.seller-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 4rem; align-items: center; }
.seller-visual {
  position: relative;
  height: 540px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(43,36,28,0.15), rgba(43,36,28,0.45)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=900&auto=format&fit=crop")
    center/cover;
  box-shadow: var(--shadow-lg);
}
.sold-badge {
  position: absolute;
  top: -22px; right: -18px;
  background: linear-gradient(135deg, var(--embers), var(--clay));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  padding: 1rem 1.7rem;
  border-radius: 16px;
  transform: rotate(6deg);
  box-shadow: var(--shadow-md);
}
.seller-text h2 { margin-bottom: 1.2rem; }
.seller-text > p { color: var(--muted); margin-bottom: 2rem; max-width: 560px; }
.seller-steps { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 2.2rem; }
.step { display: flex; gap: 1.3rem; align-items: flex-start; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clay);
  background: rgba(181,69,42,0.09);
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.step strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--dark); font-weight: 600; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   VALUATION
   ============================================================ */
.valuation { padding: 3rem 0 6rem; }
.valuation-card {
  background: var(--paper);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}
.val-left { padding: 3.4rem; }
.val-left h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.val-left > p { color: var(--muted); margin-bottom: 1.5rem; }
.val-left .check-list li { color: var(--ink); }

.val-form {
  background: linear-gradient(160deg, #332a21, #241e16);
  padding: 3rem 3.4rem;
  color: var(--sand);
}
.val-form h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 1.4rem; }
.val-form input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
}
.val-form input::placeholder { color: rgba(255,255,255,0.45); }
.val-form input:focus { outline: none; border-color: var(--embers); background: rgba(255,255,255,0.1); }
.fineprint { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.9rem; text-align: center; }
.val-thanks { background: linear-gradient(160deg, #332a21, #241e16); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: var(--sand); }
.val-thanks .thanks-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--embers), var(--clay));
  color: white; font-size: 1.6rem;
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.val-thanks h3 { color: var(--white); margin-bottom: 0.6rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: 5rem 0; background: var(--sand-deep); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.t-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stars { color: #e0912f; letter-spacing: 0.15em; margin-bottom: 1rem; font-size: 0.95rem; }
.t-card blockquote {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--ink);
  flex: 1;
}
.t-card figcaption { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.t-card figcaption strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--dark); }
.t-card figcaption span { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 4rem; align-items: center; }
.about-photo {
  height: 560px;
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(212,98,47,0.25), transparent 60%),
    linear-gradient(160deg, rgba(43,36,28,0.2), rgba(43,36,28,0.5)),
    url("https://images.unsplash.com/photo-1560185007-c5ca9d2c014d?q=80&w=900&auto=format&fit=crop")
    center/cover;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-photo::after {
  content: "";
  position: absolute;
  top: 26px; left: 26px; right: 26px; bottom: 26px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 18px;
}
.about-text h2 { margin-bottom: 1.2rem; }
.about-text > p { color: var(--muted); margin-bottom: 1rem; max-width: 560px; }
.about-text em { font-style: italic; color: var(--clay); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 2rem; }
.badge {
  background: rgba(181,69,42,0.08);
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(181,69,42,0.18);
}
.about-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { padding: 2rem 0 6rem; }
.newsletter-card {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(212,98,47,0.2), transparent 60%),
    linear-gradient(160deg, #332a21, #241e16);
  border-radius: 26px;
  padding: 3.6rem 3rem;
  text-align: center;
  color: var(--sand);
  box-shadow: var(--shadow-lg);
}
.newsletter-card h2 { color: var(--white); font-size: clamp(2rem, 3.5vw, 2.7rem); margin-bottom: 0.8rem; }
.newsletter-card > p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; }
.nl-form { display: flex; gap: 0.7rem; max-width: 480px; margin: 0 auto; }
.nl-form input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  color: var(--white);
}
.nl-form input::placeholder { color: rgba(255,255,255,0.5); }
.nl-form input:focus { outline: none; border-color: var(--embers); }
.nl-thanks { font-weight: 600; color: #f0b08c !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1e1812; color: rgba(245,239,230,0.75); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.f-brand p { margin-top: 1.2rem; font-size: 0.92rem; max-width: 300px; color: rgba(245,239,230,0.6); }
.f-brand .brand-mark, .f-brand .brand-text { color: var(--sand); }
.f-brand .brand-accent { color: #f0a578; }
.f-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0a578;
  margin-bottom: 1.1rem;
}
.f-col a { display: block; margin-bottom: 0.65rem; font-size: 0.92rem; transition: color 0.25s; }
.f-col a:hover { color: var(--white); }
.f-col address { font-style: normal; font-size: 0.92rem; color: rgba(245,239,230,0.65); line-height: 1.7; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(245,239,230,0.12);
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(245,239,230,0.5);
}
.footer-bottom .eho { letter-spacing: 0.04em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Between 1020px and ~1300px the five nav links, brand and both CTAs
   no longer fit on one line — tighten spacing before the mobile menu. */
@media (max-width: 1300px) {
  .nav-wrap { gap: 1rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.86rem; }
  .brand-text { font-size: 1.15rem; }
  .nav-cta { gap: 0.5rem; }
  .nav-cta .btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

@media (max-width: 1120px) {
  /* Drop the secondary CTA before the links start colliding;
     the phone number is the one that must survive. */
  .nav-cta .btn-outline { display: none; }
}

@media (max-width: 1020px) {
  .search-controls { grid-template-columns: 1fr 1fr; }
  .btn-search { grid-column: 1 / -1; }
  .path-grid { grid-template-columns: 1fr; }
  .finance-grid, .seller-grid, .about-grid, .valuation-card { grid-template-columns: 1fr; }
  .finance-visual { max-width: 520px; }
  .seller-visual, .about-photo { height: 420px; }
  .seller-grid .seller-visual { order: 2; }
  .val-left { padding: 2.6rem; }
  .val-form { padding: 2.6rem; }
  .t-grid, .nb-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    /* Reset the desktop flex sizing — these would otherwise fight
       the fixed overlay and let links spill over the header. */
    margin-inline: 0;
    min-width: 0;
    width: 100%;
    background: rgba(245,239,230,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease), visibility 0.4s;
    z-index: 110;
    /* A transformed element is still rendered and clickable:
       take it out of the layer entirely while closed. */
    visibility: hidden;
    overflow-y: auto;
    /* Clear the header bar so the first link is never tucked behind it. */
    padding: 5.5rem 1.5rem 2rem;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }

  /* backdrop-filter on the scrolled header creates a containing block for
     fixed-position descendants, which traps this overlay inside the header
     bar. Drop the blur while the menu is open — the header background is
     already 98% opaque, so nothing changes visually. */
  .site-header.scrolled:has(.nav-links.open) { backdrop-filter: none; }
  /* Fallback for browsers without :has() — set from the toggle script. */
  body.menu-open .site-header.scrolled { backdrop-filter: none; }
  /* Stop the page behind the overlay from scrolling under the menu. */
  body.menu-open { overflow: hidden; }
  .nav-links a { color: var(--dark); font-size: 1.3rem; font-weight: 500; }
  .nav-links a::after { display: none; }
  .scrolled .nav-links a { color: var(--dark); }
  .hamburger { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .hide-mobile { display: none; }

  .hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-stats { flex-direction: column; gap: 1.2rem; }

  /* Centre the hero on phones and let it size to its content rather than
     a full viewport, so there is no dead space above the headline. */
  .hero { min-height: auto; }
  .hero-inner { text-align: center; }
  .hero-inner > * { margin-inline: auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { align-items: center; }
  .stat { align-items: center; }
  .search-card { padding: 1.8rem; }
  .search-controls { grid-template-columns: 1fr; }
  .t-grid, .nb-grid { grid-template-columns: 1fr; }
  .nb-card { height: 240px; }
  .nl-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-inner { padding: 7rem 0 3.5rem; }
  .calc-total strong { font-size: 2.2rem; }

  /* The header floats over content once scrolled, so give it an opaque
     ground instead of letting sections show through behind the links. */
  .site-header.scrolled { background: rgba(245, 239, 230, 0.98); }

  /* Brand | phone | hamburger must share one row without overflowing. */
  .nav-wrap { gap: 0.6rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-text { font-size: 1.05rem; letter-spacing: 0.02em; }
  .brand-mark svg { width: 28px; height: 28px; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-sm { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
}

/* ---------- Phones ---------- */
@media (max-width: 480px) {
  .container { width: min(1180px, 100% - 2rem); }

  .brand-text { font-size: 0.95rem; }
  .nav-cta .btn-sm { padding: 0.45rem 0.7rem; font-size: 0.75rem; }

  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.14em; }
  .hero-eyebrow::before { width: 20px; }
  .hero-sub { font-size: 1rem; }

  /* Full-width tap targets, the way a native app stacks its actions. */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 0.95rem 1.4rem; font-size: 0.95rem; }

  /* 16px prevents iOS Safari zooming on focus; 44px is Apple's
     minimum comfortable touch target. */
  input, select, textarea { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }
  .nav-links a { padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
}