/* ================================================================
   Crystal Kilpatrick Group — Sprint 1
   Editorial luxury. Warm neutrals. Restraint over decoration.
   ================================================================ */

/* ---- Tokens ---- */
:root {
  --bg: #FAF8F5;
  --bg-white: #FFFFFF;
  --text: #1C1C1C;
  --text-secondary: #6B6560;
  --gold: #B5975A;
  --gold-dark: #9A7F47;
  /* Emphasis colors for inline elements (strong, em). Light sections use --fg-emphasis;
     dark sections override strong to --fg-emphasis-on-dark via section-scoped rules. */
  --fg-emphasis: var(--text);
  --fg-emphasis-on-dark: var(--bg);
  --border: #E8E2DA;
  --overlay: rgba(28, 28, 28, 0.55);
  --overlay-light: rgba(28, 28, 28, 0.15);

  --max-width: 1200px;
  --section-pad: 96px;
  --section-pad-mobile: 56px;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-height: 84px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

::selection {
  background: var(--gold);
  color: #FFFFFF;
}
::-moz-selection {
  background: var(--gold);
  color: #FFFFFF;
}

/* ---- Reveal animation ---- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Scroll reveal (applied by IntersectionObserver in main.js) ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside a revealed grid for a cascade feel */
.reveal-stagger.active > * {
  animation: fade-in-up 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}
.reveal-stagger.active > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.active > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-stagger.active > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-stagger.active > *:nth-child(4) { animation-delay: 0.35s; }
.reveal-stagger.active > *:nth-child(5) { animation-delay: 0.45s; }
.reveal-stagger.active > *:nth-child(6) { animation-delay: 0.55s; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.02em; }
p { margin: 0 0 1.2em; color: var(--text-secondary); }
p.lead { font-size: 1.2rem; color: var(--text); line-height: 1.6; }
strong { color: var(--fg-emphasis); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25em;
  display: inline-block;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: var(--section-pad) 0;
}
.section--tight { padding: 64px 0; }
.section--bg-white { background: var(--bg-white); }
.section--bg-charcoal { background: var(--text); color: var(--bg); }
.section--bg-charcoal h1, .section--bg-charcoal h2, .section--bg-charcoal h3 { color: var(--bg); }
.section--bg-charcoal p { color: rgba(250, 248, 245, 0.78); }
.section--bg-charcoal strong { color: var(--fg-emphasis-on-dark); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---- Buttons ---- */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
.button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #FFFFFF;
  border-color: var(--gold-dark);
}
.button-primary:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  border-color: var(--gold-dark);
  filter: brightness(1.05);
}
.button-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.button-secondary:hover { background: var(--gold); color: #FFFFFF; }
.button-ghost {
  background: rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: var(--bg);
  border-color: rgba(250, 248, 245, 0.85);
}
.button-ghost:hover { background: var(--bg); color: var(--text); border-color: var(--bg); }
.button + .button { margin-left: 12px; }

/* =================================================================
   NAV
   ================================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.06);
  border-bottom-color: var(--border);
}
.site-nav .container {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1400px;        /* nav needs more breathing room than text content */
}
.site-nav .nav-actions { justify-self: end; }
.site-nav .nav-social { order: 0; }
.site-nav .brand { order: 1; }
.site-nav nav { order: 2; justify-self: center; }
.site-nav .nav-actions { order: 3; }

/* Inner pages: nav starts solid */
.site-nav.is-inner {
  background: var(--bg-white);
  border-bottom-color: var(--border);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--text);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}
/* When nav is transparent over hero, brand text goes light */
.site-nav:not(.is-solid):not(.is-inner) .brand,
.site-nav:not(.is-solid):not(.is-inner) .nav-links a {
  color: #FFFFFF;
}
/* Phone stays gold across all nav states — it's the most actionable element in the bar */
.site-nav:not(.is-solid):not(.is-inner) .brand-sub {
  color: rgba(255, 255, 255, 0.72);
}
.site-nav:not(.is-solid):not(.is-inner) .nav-sep {
  color: rgba(255, 255, 255, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 10px 18px;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav-links a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: currentColor;
  opacity: 0.4;
  align-self: center;
  font-size: 0;     /* hide the "|" text node — keeps HTML semantics, kills the baseline mismatch */
  color: var(--border);
  user-select: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Social icons inside nav-actions, sits to the right of "Schedule a Consult".
   SVGs use stroke="currentColor" so they inherit the nav text color
   (white over hero, dark on solid/inner pages). */
.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* The base nav already gets cramped at typical desktop widths — only show
   social icons in the header on truly wide monitors. Mobile users get them
   in the burger menu; the footer always has them. */
@media (max-width: 1499px) {
  .site-nav .nav-social { display: none; }
}
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.nav-social a:hover {
  color: var(--gold);
  transform: translateY(-1px);
  background: rgba(181, 151, 90, 0.10);
}
.nav-social svg { width: 16px; height: 16px; display: block; }
.site-nav:not(.is-solid):not(.is-inner) .nav-social a { color: rgba(255, 255, 255, 0.78); }
.site-nav:not(.is-solid):not(.is-inner) .nav-social a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.10); }
.nav-phone {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-phone::before {
  /* small phone glyph in gold so the number reads as "call me" not just text */
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  vertical-align: -1px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56a.977.977 0 0 0-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56a.977.977 0 0 0-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/></svg>") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.nav-phone:hover {
  color: var(--gold-dark);
  transform: translateY(-1px);
}
.nav-phone:hover::before {
  background: var(--gold-dark);
  transform: rotate(-12deg);
}
.nav-cta {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
  padding: 12px 22px;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.35s ease;
}
.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  transform: skewX(-20deg);
}
.nav-cta:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(181, 151, 90, 0.35);
}
.nav-cta:hover::before {
  animation: nav-cta-shimmer 0.9s ease-out;
}
@keyframes nav-cta-shimmer {
  0%   { left: -120%; }
  100% { left: 220%; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.site-nav:not(.is-solid):not(.is-inner) .nav-toggle { color: #FFFFFF; }

/* ---- Mobile nav overlay ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 32px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-close {
  width: 40px; height: 40px;
  font-size: 28px;
  line-height: 1;
}
.mobile-nav-links {
  list-style: none;
  padding: 0; margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text);
  padding: 14px 0;
  display: block;
}
.mobile-nav-links a:hover { color: var(--gold); }
.mobile-nav-foot {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  padding-top: 24px;
}
.mobile-nav-foot a { color: var(--text); display: block; margin-bottom: 8px; }

body.nav-open { overflow: hidden; }

/* =================================================================
   HERO (homepage)
   ================================================================= */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 80px) 0 96px;
  background: #2A2622;
  color: #FFFFFF;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.52) 42%, rgba(0,0,0,0.12) 72%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.56) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1,
.hero p.lead,
.hero-supporting,
.hero-eyebrow {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
}
.hero h1 {
  color: #FFFFFF;
  max-width: 16ch;
  margin-bottom: 28px;
}
.hero p.lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  font-size: 1.25rem;
}
.hero-supporting {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  max-width: 60ch;
  margin: 16px 0 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-actions .button + .button { margin-left: 0; }
.about-hero-actions { margin-top: 26px; }

/* =================================================================
   DESIGNATIONS BAND (homepage, under hero)
   ================================================================= */
.designations-band {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 48px 0 44px;
  text-align: center;
}
.designations-band .eyebrow { margin-bottom: 14px; }
.designations-band-letters {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 0 0 14px;
  line-height: 1.1;
}
.designations-band-key {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 880px;
}
@media (max-width: 720px) {
  .designations-band { padding: 36px 0 32px; }
  .designations-band-key { font-size: 11px; letter-spacing: 0.06em; }
}

/* =================================================================
   CREDIBILITY BAR
   ================================================================= */
.credibility {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.credibility-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.credibility-item:last-child { border-right: 0; }
.credibility-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 400;
}
.credibility-item span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* =================================================================
   OFF-MARKET BLOCK (homepage differentiator)
   ================================================================= */
.off-market {
  padding: var(--section-pad) 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(181, 151, 90, 0.18) 0%, rgba(181, 151, 90, 0) 60%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(181, 151, 90, 0.08) 0%, rgba(181, 151, 90, 0) 55%),
    linear-gradient(180deg, #1F1A14 0%, #14110D 100%);
  color: var(--bg);
  position: relative;
}
.off-market::before {
  /* hairline gold accent rule running along the top edge — premium magazine feel */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(181, 151, 90, 0.5) 50%, transparent 100%);
}
.off-market .eyebrow { color: var(--gold); }
.off-market h2 { color: var(--bg); max-width: 18ch; }
.off-market-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.off-market-lede {
  display: flex;
  flex-direction: column;
}
.off-market-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(181, 151, 90, 0.15) 100%);
  margin: 28px 0 32px;
  width: 100%;
  max-width: 240px;
}
.off-market-creds {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.off-market-creds > div { margin: 0; }
.off-market-creds dt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.off-market-creds dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bg);
  line-height: 1.5;
}
.off-market p { color: rgba(250, 248, 245, 0.78); }
.off-market strong { color: var(--fg-emphasis-on-dark); }
.off-market ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.off-market li {
  padding: 14px 0;
  border-top: 1px solid rgba(250, 248, 245, 0.12);
  font-size: 1rem;
  color: rgba(250, 248, 245, 0.92);
  display: flex;
  gap: 16px;
}
.off-market li:last-child { border-bottom: 1px solid rgba(250, 248, 245, 0.12); }
.off-market li::before {
  content: "—";
  color: var(--gold);
  font-weight: 500;
}

/* =================================================================
   THREE-PILLAR SERVICE BLOCK
   ================================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.pillar {
  padding: 56px 40px;
  border-right: 1px solid var(--border);
  background: var(--bg-white);
}
.pillar:last-child { border-right: 0; }
.pillar-icon {
  width: 36px; height: 36px;
  margin-bottom: 28px;
  color: var(--gold);
}
.pillar h3 { margin-bottom: 16px; }
.pillar p { color: var(--text-secondary); margin-bottom: 28px; min-height: 5em; }
.pillar-link {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  display: inline-block;
}
.pillar-link:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* =================================================================
   FEATURED MARKETS
   ================================================================= */
.markets-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.markets-head h2 { margin: 0; max-width: 22ch; }
.markets-head p { margin: 0; max-width: 36ch; color: var(--text-secondary); }
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.market {
  display: block;
  position: relative;
  min-height: 154px;
  padding: 24px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.3) 100%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  animation: fade-in-up 0.8s ease-out both;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.market::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.28s ease;
}
.market::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--gold);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.market:nth-child(1) { animation-delay: 0.05s; }
.market:nth-child(2) { animation-delay: 0.15s; }
.market:nth-child(3) { animation-delay: 0.25s; }
.market:nth-child(4) { animation-delay: 0.35s; }
.market:hover {
  background: var(--bg-white);
  border-color: rgba(181, 151, 90, 0.45);
  box-shadow: 0 18px 40px rgba(31, 26, 20, 0.07);
  transform: translateY(-4px);
}
.market:hover::before { width: 100%; }
.market:hover::after { opacity: 1; transform: translateX(0); }
.market:hover .market-name { color: var(--gold); }
.market-body {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
}
.market-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.market-zip {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.market-descriptor {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials {
  background: var(--bg);
}
.testimonials-head { text-align: center; margin-bottom: 64px; }
.testimonials-head h2 { margin: 0 auto; max-width: 18ch; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  background: var(--bg-white);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.12);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 24px;
  flex: 1;
}
.testimonial blockquote::before {
  content: "“";
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 0;
  display: block;
  margin-bottom: 16px;
}
.testimonial cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: block;
}
.testimonial cite span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
.testimonial-stars {
  display: block;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin: 0 0 16px;
  line-height: 1;
}
.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.testimonial-source svg { width: 12px; height: 12px; }
.testimonials-cta { text-align: center; margin-top: 48px; }
.testimonials-cta a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

/* Marquee scroller — homepage testimonials.
   Track is duplicated in HTML; we translate -50% to loop seamlessly. */
.testimonials-marquee {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 12px 0;            /* breathing room for card hover lift */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.testimonials-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: testimonials-scroll 180s linear infinite;
}
.testimonials-marquee:hover .testimonials-track,
.testimonials-marquee:focus-within .testimonials-track {
  animation-play-state: paused;
}
.testimonials-track > .testimonial {
  flex: 0 0 380px;            /* fixed card width — keeps scroll math predictable */
  margin: 0;
}
@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .testimonials-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* Reviews page — full grid */
.reviews-page-head { text-align: center; padding: calc(var(--nav-height) + 80px) 0 24px; }
.reviews-page-head .eyebrow { color: var(--gold); }
.reviews-page-head h1 { margin: 8px auto 16px; max-width: 22ch; }
.reviews-page-head p { max-width: 56ch; margin: 0 auto; color: var(--text-secondary); }
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 56px 0 24px;
}
.reviews-page-cta {
  text-align: center;
  padding: 24px 0 var(--section-pad);
}
.reviews-page-cta .button + .button { margin-left: 12px; }
@media (max-width: 760px) {
  .reviews-page-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   AUTHORITY STRIP
   ================================================================= */
.authority {
  padding: 56px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.authority-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  text-align: center;
}
.authority-badge {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-style: italic;
}
.authority-badge img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.authority-badge img:hover { transform: scale(1.04); }

/* =================================================================
   BOTTOM CTA
   ================================================================= */
.bottom-cta {
  padding: var(--section-pad) 0;
  background: var(--text);
  color: var(--bg);
  text-align: center;
}
.bottom-cta h2 { color: var(--bg); margin-bottom: 18px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.bottom-cta p { color: rgba(250, 248, 245, 0.78); max-width: 44ch; margin: 0 auto 36px; }
.bottom-cta strong { color: var(--fg-emphasis-on-dark); }

/* =================================================================
   PAGE HEADER (inner pages)
   ================================================================= */
.page-header {
  padding: calc(var(--nav-height) + 64px) 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { max-width: 20ch; margin-bottom: 16px; }
.page-header .lead { max-width: 50ch; }

/* =================================================================
   ABOUT PAGE
   ================================================================= */
.about-hero {
  padding: calc(var(--nav-height) + 72px) 0 var(--section-pad);
  background: var(--bg);
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-hero-text h1 { margin-bottom: 16px; }
.about-hero-text .lead { max-width: 56ch; }
.about-hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}
.about-hero-photo {
  aspect-ratio: 1 / 1;
  margin: 0;
  position: relative;
  overflow: hidden;
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-object-position, center top);
}
.about-hero-photo:hover {
  transform: scale(1.1);
}

.quick-facts {
  background: var(--bg-white);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quick-facts h2 { margin-bottom: 48px; max-width: 24ch; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.fact {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
}
.fact:nth-child(odd) { border-right: 1px solid var(--border); }
.fact dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}
.fact dd {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

.answer-summary {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.answer-summary p {
  max-width: 72ch;
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}
.answer-summary strong { color: var(--gold-dark); }

.bio {
  padding: var(--section-pad) 0;
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.bio-grid h2 { margin: 0; }
.bio-body p { font-size: 1.075rem; color: var(--text); }
.bio-body p:not(:last-child) { margin-bottom: 1.4em; }
.bio-photo { margin: 2em 0; }
.bio-photo img { display: block; width: 100%; height: auto; }

.designations {
  background: var(--bg);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}
.designations h2 { margin-bottom: 56px; max-width: 24ch; }
.designations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.designation {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.designation:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.12);
}
.designation-code {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.designation-name {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}
.designation p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }

.awards {
  padding: var(--section-pad) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.awards h2 { margin-bottom: 48px; max-width: 24ch; }
.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.awards-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.awards-list .year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.awards-list .award-name { color: var(--text); font-size: 1rem; }

.team {
  padding: var(--section-pad) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.team h2 { margin-bottom: 56px; max-width: 24ch; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}
.team-member-photo {
  aspect-ratio: 1 / 1;
  background-color: var(--border);
  background-size: cover;
  background-position: center top;
  margin-bottom: 24px;
}
.team-member-photo--amy { background-image: url("/images/amy-goldberg.jpg"); }
.team-member-photo--kelly { background-image: url("/images/kelly-gosey.jpg"); background-position: center 20%; }

.team-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  background-image: url("/images/team-group.jpg");
  background-size: cover;
  background-position: center 30%;
  margin: -32px 0 56px;
  position: relative;
}
.team-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,0) 60%, rgba(28,28,28,0.25) 100%);
}
.team-member h3 { margin-bottom: 4px; }
.team-member-role {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

/* =================================================================
   CONTACT PAGE
   ================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: var(--section-pad) 0;
}
.contact-methods h2 { margin-bottom: 36px; }
.contact-method {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
}
.contact-method:last-child { border-bottom: 1px solid var(--border); }
.contact-method dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.contact-method dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0;
}
.contact-method dd a { color: inherit; }
.contact-method dd a:hover { color: var(--gold); }
/* Form */
.contact-form h2 { margin-bottom: 36px; }
.form-success {
  background: var(--bg-white);
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  padding: 32px;
}
.form-success h2 { margin: 0 0 12px; }
.form-success p { margin: 0; color: var(--text-secondary); }
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 0;
  border-color: var(--gold);
}
.form-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.form-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}
.form-radios input[type="radio"] { margin: 0; accent-color: var(--gold); }
.form-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 28px 0;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.form-consent input {
  margin-top: 4px;
  width: 18px; height: 18px;
  accent-color: var(--gold);
}
.form-consent label {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
.form-honeypot { position: absolute; left: -9999px; }

.contact-map {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* =================================================================
   STUB PAGE
   ================================================================= */
.stub {
  padding: calc(var(--nav-height) + 96px) 0 var(--section-pad);
  text-align: center;
}
.stub h1 { max-width: 22ch; margin: 0 auto 24px; }
.stub p { max-width: 50ch; margin: 0 auto 36px; }
.stub-note {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: block;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--text);
  color: rgba(250, 248, 245, 0.78);
  padding: 80px 0 32px;
  font-size: 14px;
}
.site-footer strong { color: var(--fg-emphasis-on-dark); }
.site-footer h4 {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.site-footer a { color: rgba(250, 248, 245, 0.78); transition: color 0.18s ease; }
.site-footer a:hover { color: #FFFFFF; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 248, 245, 0.12);
}
.footer-brand .brand-name { color: #FFFFFF; font-size: 26px; }
.footer-brand .brand-sub { color: rgba(250, 248, 245, 0.55); }
.footer-tagline {
  margin: 24px 0 24px;
  max-width: 36ch;
  color: rgba(250, 248, 245, 0.72);
}
.footer-contact { font-size: 13px; line-height: 1.85; }
.footer-contact a { color: #FFFFFF; }

.footer-list {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-list li { margin-bottom: 10px; }

.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}
.footer-social a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-legal {
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  font-size: 12px;
  color: rgba(250, 248, 245, 0.58);
}
.footer-legal p { margin: 0 0 8px; color: rgba(250, 248, 245, 0.58); }
.footer-disclosures {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0;
}
.footer-disclosures a {
  text-decoration: underline;
  color: #FFFFFF;
  font-size: 12px;
}
.footer-eho {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: rgba(250, 248, 245, 0.78);
}
.eho-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 960px) {
  :root { --section-pad: var(--section-pad-mobile); }
  .container { padding: 0 24px; }

  .nav-links, .nav-phone, .nav-cta, .nav-social { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { gap: 8px; }

  .hero { min-height: 78vh; padding: calc(var(--nav-height) + 60px) 0 64px; }
  .hero h1 { font-size: 2.6rem; }
  .hero p.lead { font-size: 1.12rem; }

  .credibility-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .credibility-item:nth-child(even) { border-right: 0; }
  .credibility-item:last-child { grid-column: 1 / -1; border-bottom: 0; }

  .off-market-inner { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--border); padding: 40px 28px; }
  .pillar:last-child { border-bottom: 0; }

  .markets-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonial { padding: 32px 24px; }

  .authority-row { gap: 24px 32px; }

  .about-hero { padding: calc(var(--nav-height) + 48px) 0 var(--section-pad-mobile); }
  .about-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-hero-photo { width: 100%; max-width: none; aspect-ratio: 4 / 3; }
  .about-hero-text h1 { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .about-hero-subtitle { margin-bottom: 18px; }

  .facts-grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .fact:nth-child(odd) { border-right: 0; }

  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-grid h2 { font-size: 1.75rem; }

  .designations-grid { grid-template-columns: 1fr; border-left: 0; }

  .awards-list li { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }

  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-banner { aspect-ratio: 5 / 4; margin: -16px 0 32px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; padding: var(--section-pad-mobile) 0; }
  .contact-method { grid-template-columns: 1fr; gap: 4px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-legal { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 2.1rem; }
  .hero { min-height: 72vh; }
  .hero-supporting { margin-bottom: 24px; }
  .button { padding: 14px 26px; font-size: 12px; }
  .button + .button { margin-left: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { text-align: center; }
}

/* ---- Print / reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  background: var(--text);
  color: #FFFFFF;
  padding: 12px 18px;
  z-index: 999;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Visually hidden ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---- /neighborhoods/ index page ---- */
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 56px 0;
}
.guide-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.guide-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.12);
}
.guide-card-photo {
  aspect-ratio: 16 / 10;
  background-color: var(--border);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  /* Fallback treatment for cards without a photo class — branded gradient instead of dead gray block */
  background-image: linear-gradient(135deg, #2A2421 0%, #4A3F35 50%, #6B5B47 100%);
}
.guide-card-photo::after {
  /* subtle scrim only on photo'd cards — has no visible effect on the gradient fallback */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.guide-card-photo--belterra { background-image: url("/images/markets-research/belterra-bear-creek-78737/01-bear-creek-river-austin-texas.webp"); }
.guide-card-photo--south-austin { background-image: url("/images/markets/south-austin-78745.jpg"); }
.guide-card-photo--barton-creek { background-image: url("/images/markets/barton-creek-78735.jpg"); }
.guide-card-photo--new-braunfels { background-image: url("/images/markets/new-braunfels.jpg"); }
.guide-card-photo--buda { background-image: url("/images/markets/buda-78610.jpg"); }
.guide-card-photo--cedar-park { background-image: url("/images/markets/cedar-park-78613.jpg"); }
.guide-card-photo--dripping-springs { background-image: url("/images/markets/dripping-springs-78620.jpg"); }
.guide-card-photo--kyle { background-image: url("/images/markets/kyle-78640.jpg"); }
.guide-card-photo--maple-run { background-image: url("/images/markets/southwest-austin-maple-run-78749.jpg"); background-position: center 35%; }
.guide-card-photo--circle-c { background-image: url("/images/markets/southwest-austin-maple-run-78749.jpg"); background-position: center 35%; }
.guide-card-photo--westlake { background-image: url("/images/aerial-luxury-home.webp"); }
.guide-card-photo--shady-hollow { background-image: url("/images/markets/southwest-austin-maple-run-78749.jpg"); background-position: center 35%; }
.guide-card:hover .guide-card-photo { transform: scale(1.04); transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
.guide-card-body { padding: 28px 32px 32px; }
.guide-card-zip {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.guide-card h3 { margin: 0 0 12px; font-size: 1.4rem; }
.guide-card p { color: var(--text-secondary); font-size: 0.95rem; margin: 0 0 16px; }
.guide-card-link {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.guide-tier-note {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}
@media (max-width: 720px) {
  .guide-list { grid-template-columns: 1fr; gap: 20px; }
}

/* =================================================================
   FAQ ACCORDION
   Native <details>/<summary> — accessible, keyboard-navigable, no JS.
   Usage:
     <div class="faq-list">
       <details class="faq-item">
         <summary>Question text</summary>
         <div class="faq-answer"><p>Answer paragraph.</p></div>
       </details>
       ... repeat ...
     </div>
   ================================================================= */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 56px 28px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  position: relative;
  transition: color 0.2s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/></svg>") center / contain no-repeat;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.faq-item[open] > summary { color: var(--gold); }
.faq-item[open] > summary::after { transform: rotate(45deg); /* + becomes × */ }
.faq-item > summary:hover { color: var(--gold); }
.faq-answer {
  padding: 0 0 28px;
  max-width: 70ch;
  color: var(--text-secondary);
}
.faq-answer p:last-child { margin-bottom: 0; }

/* =================================================================
   SUBTLE SCROLL EFFECTS
   Restrained, trust-focused motion added as progressive enhancement.
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease var(--reveal-delay, 0s),
    transform 0.7s ease var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.site-nav.scrolled {
  background: rgba(28, 28, 28, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(250, 248, 245, 0.16);
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.site-nav.scrolled .brand,
.site-nav.scrolled .nav-links a,
.site-nav.scrolled .nav-phone,
.site-nav.scrolled .nav-toggle {
  color: var(--bg);
}
.site-nav.scrolled .brand-sub,
.site-nav.scrolled .nav-sep {
  color: rgba(250, 248, 245, 0.64);
}
.site-nav.scrolled .nav-social a {
  color: rgba(250, 248, 245, 0.78);
}

.testimonial {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial:hover {
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.active {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .testimonial,
  .testimonial:hover {
    transform: none !important;
  }
}
