/* ==========================================================================
   Nashville Luxury List — "Ink & Ivory" palette
   Tuned toward a Ralph Lauren × Auberge feel: deep Polo navy, warm
   sun-washed sand and cream, hunter green, oxblood, antique brass.
   Load AFTER main.css:
   <link rel="stylesheet" href="/assets/css/palette.css?v=1">
   Every color decision lives in :root below. Change a value there and it
   updates sitewide.
   ========================================================================== */

:root {
  /* Core palette */
  --ink:          #13203A;  /* handsome navy: footer, interior heroes, primary buttons */
  --ink-soft:     #1F3152;  /* hover state for ink */
  --ivory:        #FAF7EF;  /* page base: light cream */
  --parchment:    #FFFFFF;  /* alternate sections: white */
  --stone:        #DDD0B8;  /* linen hairlines, borders */
  --taupe:        #5B5347;  /* secondary text on light */
  --charcoal:     #23211E;  /* body text on light */
  --bronze:       #A6874E;  /* antique brass: lines and icons only, never small text */
  --bronze-deep:  #735B2C;  /* small text and links on light (AA contrast) */
  --bronze-light: #D8C59A;  /* accents on dark backgrounds */
  --hunter:       #233A2C;  /* hunter green: testimonials */
  --leather:      #6B2328;  /* oxblood: italic accents, hovers (the bold Ralph Lauren note) */
  --oxblood:      #6B2328;
  --clay:         #B07A55;  /* Auberge terracotta: decorative rules only */
  --cream-white:  #FFFFFF;  /* card face */
  --ivory-muted:  #B9B3A6;  /* secondary text on dark */

  /* Remap the original theme variables so every existing rule inherits */
  --navy:        var(--ink);
  --navy-mid:    var(--ink);
  --navy-light:  var(--ink-soft);
  --gold:        var(--bronze);
  --gold-dark:   var(--bronze-deep);
  --gold-light:  var(--bronze-light);
  --off-white:   var(--ivory);
  --text-dark:   var(--charcoal);
  --text-mid:    #4A463F;
  --gray-100:    var(--parchment);
  --gray-300:    var(--stone);
  --gray-500:    var(--taupe);
  --gray-700:    #4A463F;

  /* Quieter shape language: tighter corners, almost no shadow */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --shadow-sm:   none;
  --shadow-md:   0 1px 2px rgba(20,34,26, 0.06);
  --shadow-lg:   0 12px 32px rgba(20,34,26, 0.10);
  --shadow-gold: none;
}

/* ---------- Base ---------- */
body { background: var(--ivory); color: var(--charcoal); }
a { color: var(--bronze-deep); }
a:hover { color: var(--ink); }
.eyebrow { color: var(--bronze-deep); letter-spacing: 0.18em; }
.section-title { color: var(--ink); }
.section-subtitle { color: var(--taupe); }
.divider { background: var(--bronze); height: 1px; }
::selection { background: var(--stone); color: var(--ink); }

/* ---------- Buttons ----------
   Primary = ink fill on light sections, ivory fill on dark sections.
   No gold fills anywhere. */
.btn-gold { background: var(--hunter); color: var(--ivory); border-color: var(--hunter); box-shadow: none; }
.btn-gold:hover { background: var(--hunter-deep); color: var(--ivory); box-shadow: none; }
.btn-outline-gold { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-gold:hover { background: var(--hunter-deep); color: var(--ivory); }
.btn-dark { background: var(--hunter); color: var(--ivory); }
.btn-dark:hover { background: var(--hunter-deep); color: var(--ivory); box-shadow: none; }

/* Dark contexts (navy footer, navy interior heroes, hunter testimonials, photo hovers).
   The home page testimonials band is light now (it carries data-band), so it's left out with :not([data-band]);
   otherwise the #site-footer ID in this list outranks the light-band button rules and turns the
   "Read all client reviews" button ivory on white. */
:is(.testimonials-section:not([data-band]), #site-footer, .neighborhood-card-hover,
    .page-hero, .valuation-hero, .guide-page-hero, .neighborhood-page-hero,
    .contact-hero, .blog-cta, .newsletter-hero) .btn-gold {
  background: var(--ivory); color: var(--ink); border-color: var(--ivory);
}
:is(.testimonials-section:not([data-band]), #site-footer, .neighborhood-card-hover,
    .page-hero, .valuation-hero, .guide-page-hero, .neighborhood-page-hero,
    .contact-hero, .blog-cta, .newsletter-hero) .btn-gold:hover {
  background: var(--cream-white); color: var(--ink);
}
:is(.testimonials-section:not([data-band]), #site-footer,
    .page-hero, .blog-cta) .btn-outline-gold {
  color: var(--ivory); border-color: rgba(255, 255, 255, 0.6);
}
:is(.testimonials-section:not([data-band]), #site-footer,
    .page-hero, .blog-cta) .btn-outline-gold:hover {
  background: var(--ivory); color: var(--ink);
}
/* The homepage hero is light now: its white-outline button becomes a navy outline */
.hero .btn-outline-white { color: var(--ink); border-color: var(--ink); }
.hero .btn-outline-white:hover { background: var(--hunter-deep); color: var(--ivory); }
.btn-outline-white { color: var(--ivory); border-color: rgba(247, 243, 236, 0.55); }
.btn-outline-white:hover { background: rgba(247, 243, 236, 0.10); color: var(--ivory); }

/* ---------- Header & nav (ivory, linen hairline, navy type) ----------
   Solid on every page, including over the homepage hero, so the nav
   never sits on top of photography. */
#site-header,
#site-header.transparent,
#site-header.scrolled {
  background: var(--ivory);
  box-shadow: none;
  border-bottom: 1px solid var(--stone);
}
.site-logo .logo-main { color: var(--ink); }
.site-logo .logo-sub { color: var(--bronze-deep); border-top-color: var(--stone); }
.nav-link { color: var(--charcoal); }
.nav-link:hover, .nav-link.active { color: var(--ink); background: transparent; box-shadow: inset 0 -1px 0 var(--bronze); }
.hamburger span { background: var(--ink); }

/* Mobile menu: light, like the rest of the site */
.mobile-nav { background: var(--ivory); }
.mobile-nav .nav-link { color: var(--ink); }
.mobile-nav .nav-link.active { color: var(--leather); }
.mobile-nav-close { color: var(--ink); }
.mobile-nav-phone { color: var(--taupe); }
.mobile-nav-phone:hover { color: var(--ink); }

/* ---------- Hero (cream wash over photography, navy type) ---------- */
/* Light cream wash (#FAF7EF), the darker of the two site creams */
.hero { background: #FAF7EF; }
.hero-bg { background: #FAF7EF; }
.hero-overlay {
  /* Lighter cream wash: the photo shows through; text side keeps enough cream to stay readable */
  background: linear-gradient(90deg,
    rgba(250, 247, 239, 0.86) 0%,
    rgba(250, 247, 239, 0.74) 38%,
    rgba(250, 247, 239, 0.28) 64%,
    rgba(250, 247, 239, 0) 100%);
}
/* A see-through cream over green grass mixes to olive. Where supported, strip the photo's colour
   behind the text first (fading out toward the house), then lay the cream on top, so the wash stays
   a true warm cream while the photo stays visible and in full colour on the right. */
@supports ((backdrop-filter: grayscale(1)) or (-webkit-backdrop-filter: grayscale(1))) {
  .hero-overlay { background: none; }
  .hero-overlay::before, .hero-overlay::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
  .hero-overlay::before {
    -webkit-backdrop-filter: grayscale(1) sepia(0.35) brightness(1.08);
    backdrop-filter: grayscale(1) sepia(0.35) brightness(1.08);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.45) 60%, transparent 76%);
    mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.45) 60%, transparent 76%);
  }
  .hero-overlay::after {
    background: linear-gradient(90deg,
      rgba(250, 247, 239, 0.8) 0%,
      rgba(250, 247, 239, 0.66) 38%,
      rgba(250, 247, 239, 0.24) 64%,
      rgba(250, 247, 239, 0) 100%);
  }
}
/* Soft cream halo behind hero type so it stays crisp over the lighter wash */
.hero-eyebrow, .hero h1, .hero-description, .hero-links, .hero-stat-value, .hero-stat-label {
  text-shadow: 0 0 18px rgba(250, 247, 239, 0.9), 0 0 2px rgba(250, 247, 239, 0.6);
}
.hero > .container { width: 100%; }
.hero-content { max-width: 640px; }
.hero-eyebrow { color: var(--bronze-deep); }
.hero-eyebrow::before { background: var(--bronze); }
.hero h1 { color: var(--ink); }
.hero h1 em { color: var(--leather); }
.hero-description { color: #3A362F; }

/* Stats strip */
.hero-stats { border-top-color: var(--stone); }
.hero-stat-value { color: var(--ink); }
.hero-stat-label { color: var(--taupe); letter-spacing: 0.12em; }
.hero-scroll { color: var(--taupe); }

/* Phones: photo on top, text below on cream, never text over the photo */
@media (max-width: 768px) {
  .hero {
    display: block;
    min-height: 0;
    padding: var(--header-h) 0 3rem;
    background: #FAF7EF;
  }
  .hero-bg {
    position: relative;
    height: min(46vh, 340px);
    transform: none;
  }
  .hero-overlay { display: none; }
  .hero-content { padding-top: 2rem; }
}

/* ---------- Valuation bar (parchment) ---------- */
/* Home bands alternate between the two creams: #FAF7EF (cream) and #FFFFFF (white) */
.valuation-bar { background: var(--cream-white); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.valuation-bar-text { color: var(--ink); }
.valuation-bar input { background: var(--ivory); border: 1px solid var(--stone); box-shadow: none; color: var(--charcoal); }
.valuation-bar .btn { background: var(--hunter); color: var(--ivory); }
.valuation-bar .btn:hover { background: var(--hunter-deep); color: var(--ivory); }

/* ---------- Trust bar (ivory, quiet small caps) ---------- */
.trust-bar { background: #FAF7EF; border-bottom: 1px solid var(--stone); }
.trust-item { color: var(--taupe); letter-spacing: 0.1em; }

/* Phones: a compact two-column grid instead of five tall rows */
@media (max-width: 768px) {
  .trust-bar { padding: 1rem 0; }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    justify-items: start;
  }
  .trust-item { font-size:.875rem; letter-spacing: 0.03em; gap: 0.45rem; line-height: 1.3; }
  .trust-item svg { width: 14px; height: 14px; }
  .trust-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; }
}
.trust-item svg { color: var(--bronze); }

/* ---------- The difference / value props (ivory) ---------- */
.value-props { background: var(--ivory); }
.value-card { background: transparent; border: 1px solid var(--stone); box-shadow: none; }
.value-card:hover { border-color: var(--bronze); box-shadow: none; }
.value-icon { background: transparent; color: var(--bronze); border: 1px solid var(--stone); }
.value-card h3 { color: var(--ink); }
.value-card p { color: var(--taupe); }

/* ---------- Featured listings (parchment field, white cards) ---------- */
.listings-section { background: var(--parchment); }
.listing-card { background: var(--cream-white); border: 1px solid var(--stone); box-shadow: none; }
.listing-card:hover { box-shadow: var(--shadow-lg); }
.listing-img { background: var(--parchment); }
.listing-badge {
  background: var(--ivory); color: var(--ink);
  letter-spacing:.01em; text-transform:none; font-weight: 500;
}
.listing-badge.off-market { background: var(--hunter); color: var(--ivory); }
.listing-price { background: rgba(20,34,26, 0.88); color: var(--ivory); }
.listing-location { color: var(--bronze-deep); letter-spacing: 0.08em; }
.listing-title { color: var(--ink); }
.listing-specs { color: var(--taupe); }

/* ---------- Neighborhoods (ivory section, photo cards keep a navy scrim) ---------- */
.neighborhoods-section { background: var(--ivory); }
.neighborhoods-section .section-title,
.neighborhoods-section .section-title.light { color: var(--ink); }
.neighborhoods-section .section-subtitle { color: var(--taupe); }
.neighborhoods-section .eyebrow { color: var(--bronze-deep); }
.neighborhoods-section > .container > p { color: var(--taupe); }
.neighborhoods-section > .container > p a { color: var(--bronze-deep); }
.neighborhood-card-bg { background-color: var(--parchment); }
.neighborhood-card-overlay {
  background: linear-gradient(to top, rgba(20,34,26, 0.85) 0%, rgba(20,34,26, 0.2) 55%, transparent 100%);
}
.neighborhood-card-hover { background: rgba(20,34,26, 0.82); }
.neighborhood-name { color: var(--ivory); }
.neighborhood-meta { color: var(--bronze-light); }

/* ---------- Free resources / guides (ivory, parchment cards) ---------- */
.guides-section { background: var(--parchment); }
.guide-card { background: var(--cream-white); border: 1px solid var(--stone); box-shadow: none; }
.guide-card:hover { border-color: var(--bronze); box-shadow: none; }
.guide-header { background: var(--hunter); }
.guide-header h3 { color: var(--ivory); }
.guide-header p { color: var(--ivory-muted); }
.guide-icon { background: transparent; color: var(--bronze-light); border: 1px solid rgba(196, 165, 116, 0.4); }
.guide-features li { color: #4A463F; }
.guide-features li::before { color: var(--bronze); }
.guide-secondary-link { color: var(--bronze-deep); }

/* ---------- Testimonials (the one hunter-green moment) ---------- */
.testimonials-section { background: var(--hunter); }
.testimonials-section .section-title { color: #F2EDE3; }
.testimonials-section .section-subtitle { color: rgba(242, 237, 227, 0.7); }
.testimonials-section .eyebrow { color: var(--bronze-light); }
.testimonial-card { background: transparent; border: 1px solid rgba(242, 237, 227, 0.14); }
.testimonial-card:hover { background: rgba(242, 237, 227, 0.04); border-color: rgba(196, 165, 116, 0.45); }
.testimonial-stars { color: var(--bronze-light); letter-spacing: 0.2em; }
.testimonial-quote { color: rgba(242, 237, 227, 0.88); font-family: var(--font-serif); font-style: italic; }
.testimonial-avatar { background: transparent; color: var(--bronze-light); border: 1px solid rgba(196, 165, 116, 0.5); }
.testimonial-name { color: #F2EDE3; }
.testimonial-role { color: rgba(242, 237, 227, 0.55); }

/* ---------- Contact / lead capture (parchment, light form) ---------- */
.lead-capture-section { background: var(--ivory); color: var(--charcoal); }
.lead-capture-section::before { display: none; }
.lead-capture-section .section-title,
.lead-capture-section .section-title.light,
.lead-capture-section h2,
.lead-capture-section h3 { color: var(--ink); }
.lead-capture-section .section-subtitle,
.lead-capture-section .section-subtitle.light,
.lead-capture-section p { color: var(--taupe); }
.lead-capture-section .eyebrow { color: var(--bronze-deep); }
.lead-capture-section a { color: var(--ink); }
.lead-capture-section a:hover { color: var(--bronze-deep); }
.lead-form-wrapper { background: var(--cream-white); border: 1px solid var(--stone); }
.form-label { color: #4A463F; }
.form-control {
  background: var(--cream-white); border: 1px solid var(--stone); color: var(--charcoal);
}
.form-control::placeholder { color: #A39A8C; }
.form-control:focus { background: var(--cream-white); border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(168, 134, 90, 0.15); }
.form-note { color: var(--taupe); }
.form-success h3 { color: var(--ink); }
.form-success p { color: var(--taupe); }
/* The contact block in index.html sets white text inline; !important is the
   only way to beat inline styles from a stylesheet. */
.lead-capture-section h3[style] { color: var(--ink) !important; }
.lead-capture-section p[style] { color: var(--taupe) !important; }
.lead-capture-section a[style] { color: var(--ink) !important; }
.lead-capture-section .btn-gold,
.lead-capture-section button[type="submit"] { background: var(--hunter); color: var(--ivory); border-color: var(--hunter); }

/* Dark-page heroes keep the original light-on-dark form styling */
:is(.valuation-hero, .contact-hero, .newsletter-hero) .form-control {
  background: rgba(247, 243, 236, 0.08); border-color: rgba(247, 243, 236, 0.18); color: var(--ivory);
}
:is(.valuation-hero, .contact-hero, .newsletter-hero) .form-label { color: rgba(247, 243, 236, 0.75); }

/* ---------- About Jason (ivory) ---------- */
.agent-section { background: var(--parchment); }
.agent-photo { background: var(--stone); box-shadow: none; }
.agent-name { color: var(--ink); }
.agent-title { color: var(--bronze-deep); letter-spacing: 0.08em; }
.agent-bio { color: #4A463F; }
.agent-bio a { color: var(--bronze-deep); text-decoration: underline; text-underline-offset: 3px; }
.credential { color: #4A463F; }
.credential svg { color: var(--bronze); }

/* ---------- FAQ (ivory, hairline dividers) ---------- */
.faq-section { background: var(--ivory); }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0; box-shadow: none; }
.faq-question { color: var(--ink); }
.faq-question:hover, .faq-question.open { color: var(--bronze-deep); }
.faq-chevron { background: transparent; color: var(--bronze-deep); border: 1px solid var(--stone); }
.faq-answer { color: #4A463F; }

/* ---------- Newsletter band (parchment instead of gold) ---------- */
.newsletter-section { background: var(--parchment); border-top: 1px solid var(--stone); }
.newsletter-text h2 { color: var(--ink); }
.newsletter-text p { color: var(--taupe); }
.newsletter-note { color: var(--taupe); }
.newsletter-form input { background: var(--cream-white); border: 1px solid var(--stone); box-shadow: none; }
.newsletter-form input:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(168, 134, 90, 0.15); }

/* ---------- Footer (ink, single bronze rule) ----------
   Every footer color lives here. The footer markup (scripts/bake_site_chrome.py) carries no inline
   colors, so change a value below and it updates on every page. */
:root {
  --footer-bg:         var(--ink);
  --footer-text:       var(--ivory-muted);          /* tagline and body copy */
  --footer-name:       var(--ivory);                /* "Nashville Luxury List" wordmark */
  --footer-sub:        rgba(247, 243, 236, 0.9);    /* "Compass Luxury Division" */
  --footer-heading:    var(--bronze-light);         /* column headings */
  --footer-link:       var(--ivory-muted);
  --footer-link-hover: var(--ivory);
  --footer-rule:       rgba(247, 243, 236, 0.08);   /* hairlines between footer rows */
  --footer-border:     var(--bronze);               /* single rule along the top of the footer */
  --footer-social:     rgba(247, 243, 236, 0.18);
  --footer-fine-print: rgba(247, 243, 236, 0.62);   /* copyright and broker disclaimer */
  --footer-legal:      rgba(247, 243, 236, 0.66);
}
#site-footer { background: var(--parchment); color: var(--footer-text); border-top: 0; } /* navy lives on the inner <footer>; no navy strip above the newsletter band */
#site-footer > footer, .site-footer-main { background: var(--footer-bg); color: var(--footer-text); border-top: 1px solid var(--footer-border); }
.footer-grid { border-bottom-color: var(--footer-rule); }
.footer-bottom { border-top-color: var(--footer-rule); }
.footer-brand .logo-main, .footer-name { color: var(--footer-name); }
.footer-sub { color: var(--footer-sub); }
.footer-tagline { color: var(--footer-text); }
.footer-col h3, .footer-col h4 { color: var(--footer-heading); letter-spacing: 0.14em; }
.footer-links a { color: var(--footer-link); }
.footer-links a:hover { color: var(--footer-link-hover); }
.social-link { border-color: var(--footer-social); color: var(--footer-link); }
.social-link:hover { color: var(--footer-link-hover); background: transparent; border-color: var(--footer-heading); }
.footer-disclaimer { color: var(--footer-fine-print); }
.footer-legal a { color: var(--footer-legal); }
.footer-legal a:hover { color: var(--footer-link-hover); }

/* ---------- Floating contact buttons ---------- */
.fcta-phone { background: var(--hunter); color: var(--ivory); box-shadow: 0 0 0 1px rgba(247, 243, 236, 0.3), var(--shadow-lg); }
.fcta-chat { background: var(--ivory); color: var(--ink); border: 1px solid var(--stone); }
.floating-label { background: var(--hunter); color: var(--ivory); }

/* ---------- Interior pages: flat ink heroes, no gradients ---------- */
:is(.page-hero, .valuation-hero, .guide-page-hero, .neighborhood-page-hero, .contact-hero) {
  background: var(--hunter);
}
.page-hero-sub { color: var(--ivory-muted); }
.newsletter-hero .page-hero-title em { color: var(--bronze-light); }
.val-step-num, .ndc-price { background: var(--hunter); color: var(--ivory); }
.guide-step-number { background: var(--hunter); color: var(--bronze-light); }
.contact-method-icon { background: transparent; color: var(--bronze); border: 1px solid var(--stone); }
.tab-btn.active, .filter-btn.active { background: var(--hunter); color: var(--ivory); }
.filter-btn:hover, .tab-btn:hover { color: var(--bronze-deep); background: transparent; }
.blog-index { background: var(--ivory); }
.blog-card { background: var(--cream-white); border: 1px solid var(--stone); box-shadow: none; }
.blog-card-date, .blog-card-link, .blog-pager-link span { color: var(--bronze-deep); }
.blog-cta { background: var(--hunter); }
.neighborhood-stats, .ndc-tag, .guide-step-tags span { background: var(--parchment); }
.neighborhood-full-card, .neighborhood-detail-card, .contact-form-box {
  background: var(--cream-white); border: 1px solid var(--stone); box-shadow: none;
}
.text-gold { color: var(--bronze-deep); }
.prose a { color: var(--bronze-deep); }

/* ==========================================================================
   Site-specific adjustments for the palette
   ========================================================================== */

/* Lead-capture sections are light now: inline white text inside them
   (checklists, contact rows, success messages) needs to switch to ink/taupe. */
.lead-capture-section :is(li, div, span)[style*="rgba(255,255,255"],
.lead-capture-section :is(li, div, span, h3, p)[style*="var(--white)"] { color: var(--taupe) !important; }
.lead-capture-section :is(h3, h2)[style*="var(--white)"] { color: var(--ink) !important; }
.lead-capture-section .form-success div[style*="var(--gold)"] { color: var(--bronze) !important; }
.lead-capture-section .trust-item svg,
.lead-capture-section li svg { color: var(--bronze); }

/* Form cards are white everywhere, including the one in the dark newsletter hero */
.newsletter-hero .newsletter-card .form-control {
  background: var(--cream-white); border: 1px solid var(--stone); color: var(--charcoal);
}
.newsletter-hero .newsletter-card .form-control:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(168, 134, 90, 0.15); }
.newsletter-hero .newsletter-card .form-label { color: #4A463F; }
.newsletter-card-title { color: var(--ink); }
.newsletter-card-sub { color: var(--taupe); }
.newsletter-prefs { border-color: var(--stone); }
.newsletter-prefs summary { color: var(--bronze-deep); }
.newsletter-prefs summary span { color: var(--taupe); }
.newsletter-hero .newsletter-card .btn-gold { background: var(--hunter); color: var(--ivory); border-color: var(--hunter); }
.newsletter-hero .newsletter-card .btn-gold:hover { background: var(--hunter-deep); color: var(--ivory); }
.newsletter-card .form-success h3[style] { color: var(--ink) !important; }
.newsletter-card .form-success p[style] { color: var(--taupe) !important; }
.newsletter-card .form-success div[style] { color: var(--bronze) !important; }
.newsletter-benefits li { color: rgba(247, 243, 236, 0.82); }
.newsletter-benefits li span { color: var(--bronze-light); }
.newsletter-lede { color: rgba(247, 243, 236, 0.8); }


/* Blog: back link and meta on the ink hero */
.blog-back { color: var(--bronze-light); }
.blog-back:hover { color: var(--ivory); }
.blog-meta { color: var(--ivory-muted); }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--bronze-deep); }

/* Gold accents used inline on light sections read as bronze-deep for contrast */
.listing-spec + .listing-spec::before { color: var(--bronze); }

/* Header CTA sits on the ivory header, so it takes the navy treatment */
#site-header .btn-gold { background: var(--hunter); color: var(--ivory); border-color: var(--hunter); }
#site-header .btn-gold:hover { background: var(--hunter-deep); color: var(--ivory); }

/* ---------- Off-market signup popup ---------- */
.om-popup { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.om-popup[hidden] { display: none; }
.om-popup-backdrop { position: absolute; inset: 0; background: rgba(20,34,26, 0.6); opacity: 0; transition: opacity 0.3s ease; }
.om-popup-card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--ivory); border: 1px solid var(--stone); border-top: 3px solid var(--bronze);
  padding: 2.5rem 2rem 1.75rem; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(16px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.om-popup.open .om-popup-backdrop, .om-popup.open .om-popup-card { opacity: 1; transform: none; }
.om-popup-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.25rem; height: 2.25rem;
  background: none; border: 0; color: var(--taupe); font-size: 1.1rem; cursor: pointer;
}
.om-popup-close:hover { color: var(--ink); }
.om-popup .eyebrow { color: var(--bronze-deep); }
.om-popup-title { color: var(--ink); font-size: 1.6rem; line-height: 1.2; margin: 0.4rem 0 0.5rem; }
.om-popup-sub { color: var(--taupe); font-size: 0.9rem; margin-bottom: 1.5rem; }
.om-popup .form-group { margin-bottom: 1rem; }
.om-popup .btn-gold { background: var(--hunter); color: var(--ivory); border-color: var(--hunter); margin-top: 0.25rem; }
.om-popup .btn-gold:hover { background: var(--hunter-deep); color: var(--ivory); }
.om-popup .form-note { text-align: center; margin: 0.9rem 0 0; }
.om-popup-check { font-size: 2.75rem; color: var(--bronze); margin-bottom: 0.75rem; }
.om-popup .form-success { padding: 1rem 0; }
@media (max-width: 520px) {
  .om-popup-card { padding: 2.25rem 1.25rem 1.5rem; }
  .om-popup-title { font-size: 1.35rem; }
  .om-popup .form-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .om-popup-backdrop, .om-popup-card { transition: none; }
}

/* ---------- Dropdown menus (desktop) ---------- */
.header-inner { position: relative; }
.site-nav { gap: .15rem; }
.nav-item { position: relative; }
.nav-item.is-mega { position: static; }
.nav-trigger { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 500; letter-spacing: .02em; }
.nav-chev { transition: transform .2s ease; opacity: .8; }
.nav-item.open .nav-chev { transform: rotate(180deg); }
.nav-item.open > .nav-trigger { color: var(--ink); box-shadow: inset 0 -1px 0 var(--bronze); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: -1rem; z-index: 1002;
  background: var(--ivory); color: var(--ink);
  border: 1px solid var(--stone); border-top: 2px solid var(--bronze);
  box-shadow: 0 18px 40px rgba(20,34,26, .18);
  min-width: 560px; text-align: left;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav-item.is-mega .nav-menu { left: 0; right: 0; min-width: 0; }
.nav-menu-inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 1.75rem; padding: 1.6rem 1.75rem; }
.nav-item.is-mega .nav-menu-inner { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; }
.nav-col ul { list-style: none; margin: 0; padding: 0; }
.nav-col-h { display: block; font-size:.875rem; letter-spacing:.01em; text-transform:none; color: var(--bronze-deep); font-weight: 600; margin: 0 0 .7rem; padding-bottom: .55rem; border-bottom: 1px solid var(--stone); }
.nav-col li a { display: block; padding: .42rem 0; color: var(--ink); text-decoration: none; }
.nav-col li a:hover .nav-t, .nav-col li a:focus-visible .nav-t, .nav-col li a[aria-current="page"] .nav-t { color: var(--bronze-deep); text-decoration: underline; text-underline-offset: 3px; }
.nav-t { display: block; font-size: .92rem; font-weight: 500; line-height: 1.35; }
.nav-d { display: block; font-size:.875rem; color: #5E5850; line-height: 1.45; margin-top: .1rem; }
.nav-col.compact li a { padding: .26rem 0; }
.nav-col.compact .nav-t { font-size:.875rem; }
.nav-col li a.nav-more .nav-t { font-size:.875rem; color: var(--bronze-deep); }
.nav-feature { display: flex; flex-direction: column; gap: .45rem; background: var(--hunter); color: var(--ivory); padding: 1.3rem 1.3rem 1.2rem; text-decoration: none; max-width: 260px; align-self: start; }
.nav-feature .nav-col-h { color: var(--bronze-light); border-color: rgba(196,165,116,.35); }
.nav-feature-t { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; }
.nav-feature .nav-d { color: rgba(247,243,236,.78); }
.nav-feature-cta { margin-top: .35rem; font-size:.875rem; font-weight: 600; color: var(--bronze-light); }
.nav-feature:hover .nav-feature-cta { text-decoration: underline; text-underline-offset: 3px; }
.nav-menu-foot { display: flex; flex-wrap: wrap; gap: 1.75rem; padding: .85rem 1.75rem; border-top: 1px solid var(--stone); background: var(--parchment); }
.nav-menu-foot a { font-size:.875rem; font-weight: 600; color: var(--bronze-deep); text-decoration: none; }
.nav-menu-foot a:hover { text-decoration: underline; }
@media (max-width: 1360px) { .nav-trigger { font-size:.875rem; } .nav-menu-inner { gap: 1.25rem; padding: 1.35rem 1.4rem; } }
@media (max-width: 1250px) { .nav-item[data-menu="about"] .nav-feature, .nav-item[data-menu="buyers"] .nav-feature { display: none; } }
/* keep the right-most dropdown on screen */
.nav-item[data-menu="sellers"] .nav-menu { left: auto; right: -12rem; }

/* ---------- Mobile menu (accordion) ---------- */
.mobile-nav { align-items: stretch; justify-content: flex-start; padding: 4.5rem 1.5rem 2.5rem; gap: 0; }
.mnav { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; }
.mnav-link, .mnav-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .95rem .25rem; font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--stone); text-align: left; cursor: pointer; text-decoration: none; }
.mnav-link.active { color: var(--leather); }
.mnav-trigger .nav-chev { width: 14px; height: 14px; transition: transform .2s ease; }
.mnav-trigger[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.mnav-panel { padding: .4rem .25rem 1rem; border-bottom: 1px solid var(--stone); }
.mnav-h { font-size:.875rem; letter-spacing:.01em; text-transform:none; color: var(--bronze-deep); font-weight: 600; margin: .9rem 0 .35rem; }
.mnav-panel ul { list-style: none; margin: 0; padding: 0; }
.mnav-panel a { display: block; padding: .5rem 0; color: var(--charcoal); font-size: 1rem; text-decoration: none; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
.mnav-panel a[aria-current="page"] { color: var(--leather); }
.mnav-cta { margin-top: 1.5rem; text-align: center; }
.mnav .mobile-nav-phone { margin-top: 1rem; text-align: center; }

/* Top-level items are links to hub pages; the chevron button opens the menu (hover also opens) */
.nav-item.has-menu { display: inline-flex; align-items: center; }
.nav-item .nav-top { padding-right: .2rem; }
.nav-item .nav-trigger { padding: .5rem .45rem .5rem .15rem; color: var(--charcoal); border-radius: var(--radius-sm); min-height: 36px; }
.nav-item .nav-trigger:hover, .nav-item.open > .nav-trigger { color: var(--ink); box-shadow: none; }
.nav-item.open > .nav-top { color: var(--ink); box-shadow: inset 0 -1px 0 var(--bronze); }
.nav-trigger:focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; }
.mnav-overview { display: flex; align-items: center; min-height: 44px; margin-top: .4rem; color: var(--bronze-deep) !important; font-weight: 600; font-size: .95rem; text-decoration: none; }

/* Neighborhood hub photos */
.ndc-photo{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--parchment)}
.mg-photo{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;background:var(--parchment)}

/* ---------- Section bands ----------
   scripts/bake_site_chrome.py tags each full-width section data-band="ivory|sand|white|anchor".
   Light bands alternate between the two site creams: "sand" bands are #FAF7EF, "ivory" and "white"
   bands are #FFFFFF. Ivory and white bands never touch, so every boundary is still a visible step.
   Navy is kept for the contact anchor; the newsletter band above the footer is hunter green. */
:root { --band-sand: #FAF7EF; }
section[data-band="ivory"] { background: var(--cream-white) !important; }
section[data-band="white"] { background: var(--cream-white) !important; }
section[data-band="sand"]  { background: var(--band-sand) !important; }
section[data-band="sand"] .ap-strip, section[data-band="sand"].ap-strip { border-color: var(--stone); }

/* Sections that used to be navy mid-page now sit in the light rotation */
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) { color: var(--charcoal); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(.section-title, h3) { color: var(--ink); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .section-title em { color: var(--leather); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .eyebrow { color: var(--bronze-deep); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(.ap-lede, .rl-lede, p, li, span) { color: #4A463F; }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(.ap-note, .rl-note, .muted, small, time) { color: var(--taupe); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(.ap-step, .ap-sales li, .rl-step, .rl-day li, .cg-day li) { border-color: var(--stone); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(.ap-step .n, .rl-step .n, h3.ap-sub, .ap-sub) { color: var(--bronze-deep); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .ap-sales li b { color: var(--ink); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .ap-sales li span { color: var(--bronze-deep); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) a:not(.btn) { color: var(--bronze-deep); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .btn-gold { background: var(--hunter); color: var(--ivory); border-color: var(--hunter); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .ap-outline-light { color: var(--ink) !important; border-color: var(--bronze) !important; }

body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(div, strong, b, .bg-tags, .rl-bar-label, .rl-bar-val, .rl-callout) { color: inherit; }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(.bg-tags, .rl-bar-label small, .rl-bar-val) { color: #4A463F; }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) :is(.rl-callout, .rl-panel) { background: rgba(20,34,26, 0.04); border-color: var(--stone); color: var(--charcoal); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .rl-bar-track { background: rgba(20,34,26, 0.08); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) em { color: var(--leather); }

/* The home page testimonials band, also formerly dark */
body .testimonials-section[data-band] .section-title { color: var(--ink); }
body .testimonials-section[data-band] .testimonial-card { background: var(--cream-white); border-color: var(--stone); }
body .testimonials-section[data-band] .testimonial-quote { color: var(--charcoal); }
body .testimonials-section[data-band] .testimonial-name { color: var(--ink); }
body .testimonials-section[data-band] .testimonial-role { color: var(--taupe); }
body .testimonials-section[data-band] .testimonial-stars { color: var(--bronze); }
body .testimonials-section[data-band] .btn-gold { background: var(--hunter); color: var(--ivory); border-color: var(--hunter); }
body .testimonials-section[data-band] .btn-outline-gold { color: var(--ink); border-color: var(--ink); background: transparent; }
body .testimonials-section[data-band] .btn-outline-gold:hover { background: var(--hunter-deep); color: var(--ivory); }

/* Inline light-on-dark colors inside those formerly dark bands */
body :is(:is(.ap-sec, .rl-sec).dark, .testimonials-section):is([data-band="ivory"], [data-band="white"], [data-band="sand"]) [style*="color:var(--bronze-light)"] { color: var(--bronze-deep) !important; }
body :is(:is(.ap-sec, .rl-sec).dark, .testimonials-section):is([data-band="ivory"], [data-band="white"], [data-band="sand"]) [style*="color:var(--ivory)"] { color: var(--ink) !important; }
body :is(:is(.ap-sec, .rl-sec).dark, .testimonials-section):is([data-band="ivory"], [data-band="white"], [data-band="sand"]) [style*="color:var(--ivory-muted)"] { color: var(--taupe) !important; }

/* Contact anchor on the home page ("Let's Connect"): navy, with the form card staying white */
body .lead-capture-section[data-band="anchor"] { background: var(--hunter) !important; }
body .lead-capture-section[data-band="anchor"] .grid-2 > div:first-child :is(h2, .section-title, .section-title.light) { color: var(--ivory); }
body .lead-capture-section[data-band="anchor"] .grid-2 > div:first-child .eyebrow { color: var(--bronze-light); }
body .lead-capture-section[data-band="anchor"] .grid-2 > div:first-child :is(p, p[style], .trust-item, .trust-item span) { color: rgba(247, 243, 236, 0.8) !important; }
body .lead-capture-section[data-band="anchor"] .grid-2 > div:first-child :is(a, a[style]) { color: var(--ivory) !important; }
body .lead-capture-section[data-band="anchor"] .grid-2 > div:first-child svg { color: var(--bronze-light); }

/* Newsletter anchor: hunter green */
body .newsletter-section { background: var(--hunter); border-top: 0; }
body .newsletter-section .eyebrow { color: var(--bronze-light); }
body .newsletter-section .newsletter-text h2 { color: #F2EDE3; }
body .newsletter-section .newsletter-text p, .newsletter-section .newsletter-note { color: rgba(242, 237, 227, 0.8); }
body .newsletter-section .newsletter-form input { border-color: transparent; }
body .newsletter-section .btn-dark { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
body .newsletter-section .btn-dark:hover { background: var(--cream-white); color: var(--ink); }
body .newsletter-section .form-success { background: rgba(255, 255, 255, 0.08); }
body .newsletter-section .form-success h3 { color: #F2EDE3; }
body .newsletter-section .form-success :is(p, .footer-success-mark) { color: rgba(242, 237, 227, 0.8); }
body section[data-band="sand"] .section-title em { color: var(--leather); }
body :is(.ap-sec, .rl-sec).dark:is([data-band="ivory"], [data-band="white"], [data-band="sand"]) .bg-tags { color: var(--bronze-deep) !important; }
body section[data-band="sand"] .section-title em[style*="color:var(--bronze)"] { color: var(--leather) !important; }

/* ---------- Mobile usability ----------
   Floors on phones: 12px for labels, eyebrows and badges; 14px for anything a buyer reads.
   Tap targets: 44px for standalone links, buttons and form controls. */
#site-header { transition: transform .25s ease, box-shadow .25s ease; }
#site-header.header-hidden { transform: translateY(-100%); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { #site-header { transition: none; } }

/* Testimonials: one swipeable carousel on phones and tablets */
@media (max-width: 1024px) {
  .testimonial-grid { display: flex !important; grid-template-columns: none !important; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding: 0 0 1rem; margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2rem)); padding-inline: clamp(1.25rem, 4vw, 2rem); scroll-padding-inline: clamp(1.25rem, 4vw, 2rem); scrollbar-width: thin; }
  .testimonial-grid > .testimonial-card { flex: 0 0 86%; scroll-snap-align: start; }
}

@media (max-width: 768px) {
  /* 12px floor: labels, eyebrows, badges, small caps */
  .site-logo .logo-sub, .footer-sub, .eyebrow, .hero-eyebrow, .listing-badge, .nll-kicker, .ap-sub, h3.ap-sub,
  .idx-field label, .form-label, .ap-updated, .cg-card-head p, .ps-badge, .nav-col-h, .mnav-h, .faq-chevron,
  .ap-stat small, .nll-stat-label, .nll-school-type, .bg-tags, .access-step-label, .footer-col h3 { font-size: 12px !important; }
  /* 14px: text a buyer reads */
  .listing-location, .listing-spec, .neighborhood-meta, .testimonial-role, .form-note, .newsletter-note, .trust-item,
  .hero-stat-label, .agent-title, .credential, .ap-crumbs, .ap-crumbs a, .ap-note, .ap-stat span, .ap-sales li small,
  .ap-quote figcaption, .ap-hood small, .ap-area small, .ap-area span, .ap-card-contact, .ap-card-contact a, .ap-card-contact span,
  .nll-stat-sub, .nll-desc, .nll-school p, .nll-updated, .cg-consent, .cg-card-alt, .footer-disclaimer, .footer-legal a,
  .idx-summary, .blog-card-meta, .blog-card-excerpt, .ap-table td, .ap-table th, .ap-table caption, .ap-faq-a,
  .newsletter-card-sub, .ps-loc, .ps-spec, .guide-secondary-link, main small, main figcaption, main time { font-size: 14px !important; }
  .btn-sm, .idx-go, .social-link { font-size: 14px !important; }

  /* 44px tap targets */
  .site-logo, .hamburger, .mobile-nav-close { min-height: 44px; }
  .hamburger { min-width: 44px; justify-content: center; align-items: center; }
  .idx-field select { min-height: 44px; font-size: 16px; }
  .idx-search .idx-go, .btn, .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .footer-links { gap: 0; }
  .footer-links a { display: flex !important; align-items: center; min-height: 44px; padding: 0 !important; }
  .footer-col:nth-child(2) .footer-links, .footer-col:nth-child(3) .footer-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .footer-legal a, .ap-crumbs a, .guide-secondary-link, .faq-more a, .ap-card-contact a, .idx-sub a, .mnav-panel a, .mnav-overview,
  .ap-note a, .nll-faq a, .listing-actions a, .neighborhood-card a, .ps-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .ap-crumbs { line-height: 1.2; }
  details > summary { min-height: 44px; }
}
@media (max-width: 768px) {
  a[data-tap], .ap-hood a.go, .nh-body a.go, .rl-hood .go, .blog-card-link, .blog-back, .blog-card-title a, .hero-links a,
  .trust-item a, .nll-crumbs a, .rl-crumbs a, .idx-area, .ap-faq-a > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
  .filter-btn, .tab-btn, .idx-area { min-height: 44px; }
  /* 12px floor, part 2 */
  .nll-section em, .nh-tags span, .neighborhoods dt, dt, .nll-commute-label, .cg-group h3, .ap-creds span, .rl-creds span, .rl-meta span,
  .nll-eyebrow, .nll-pull span, .rl-table th, th, .span.tag, span.tag, .nh-group, .rl-fit h3, .mc-k, .rl-cover b, .rl-cover i,
  .idx-areas-title, .form-label .opt, .ap-card-head p, .mobile-bar a, body .bg-tags, .relocation-num, sup { font-size:14px !important; }
  /* 14px, part 2 */
  .ap-compliance p, .faqp-compliance p, .idx-note, .idx-note span, p.src, .nh-body a.go, .ap-hood a.go, .rl-hood .go, .rl-day p,
  .rl-consent, .rl-consent a, .rl-sms, .rl-note, .rl-table caption, .rl-bar-label, .idx-fine, .nll-crumbs, .nll-crumbs a, .rl-crumbs, .rl-crumbs a,
  .faqp-author p, .ap-sticky .btn, .idx-area, .ps-links a, .nh-body p, .rl-bar-val { font-size: 14px !important; }
}
@media (max-width: 768px) {
  main p[style*="font-size:.72rem"], main p[style*="font-size:.7rem"], main p[style*="font-size:.68rem"], main span[style*="font-size:.7"] { font-size:14px !important; }
  .rl-steps span, .rl-step span, .rl-num, .rl-index span { font-size:14px !important; }
}
@media (max-width: 768px) { .rl-toc li > span { font-size:14px !important; } }
@media (max-width: 768px) { body .rl-card-head p { font-size:14px !important; } }

/* FAQ page: each answer section sits on its own colored band inside the reading column, so inset the
   text from the band's edges (same spacing as the neighborhood guides). */
.faqp section[data-band] {
  padding-left: clamp(1.25rem, 4vw, 2.75rem);
  padding-right: clamp(1.25rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

/* ==========================================================================
   Signature layer: Ralph Lauren × Auberge
   Ralph Lauren: deep navy, crisp double rules, tracked capitals, bold contrast.
   Auberge: sun-warmed sand, generous air, light editorial serifs, quiet clay accents.
   ========================================================================== */

/* Editorial serif: lighter, more refined headline weights */
h1, h2, h3, h4, h5 { font-weight: 500; letter-spacing: -0.005em; }
h1, .hero h1, .page-hero-title { font-weight:500; line-height: 1.08; letter-spacing: -0.012em; }
.section-title { font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
:is(h1, h2, .section-title, .page-hero-title) em { font-style: normal; font-weight: 400; }
.hero h1 em, .section-title em { color: var(--leather); }
.listing-title, .agent-name, .value-card h3, .guide-header h3, .testimonial-name, .faq-question { font-weight: 500; }
body { line-height: 1.7; }
.section-subtitle { line-height: 1.75; }

/* Tracked capitals for labels, the Ralph Lauren way */
.eyebrow, .hero-eyebrow { font-weight: 500; font-size:.875rem; letter-spacing: 0.3em; }
.hero-eyebrow::before { background: var(--clay); }
.site-logo .logo-main { font-weight: 500; letter-spacing: 0.06em; }
.site-logo .logo-sub { letter-spacing: 0.32em; font-weight: 500; }
.footer-col h3, .footer-col h4 { font-size:.875rem; letter-spacing:.01em; font-weight: 500; text-transform:none; }
.listing-location, .agent-title { text-transform:none; font-size:.875rem; letter-spacing:.01em; font-weight: 500; }
.hero-stat-label, .trust-item { letter-spacing: 0.18em; }

/* Buttons: squared, tailored, tracked capitals */
.btn {
  border-radius: 0;
  border-width: 1px;
  font-size:.875rem;
  font-weight: 600;
  letter-spacing:.01em;
  text-transform:none;
  padding: 1rem 2.25rem;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.btn-lg { padding: 1.15rem 2.75rem; font-size:.875rem; }
.btn-sm { padding: 0.7rem 1.4rem; font-size:.875rem; letter-spacing: 0.18em; }
.btn:hover { transform: none; }

/* Divider: a short brass rule with a clay center, like a monogram stripe */
.divider { width: 64px; height: 1px; background: linear-gradient(90deg, var(--bronze) 0 40%, var(--clay) 40% 60%, var(--bronze) 60% 100%); }

/* Header: crisp double rule (hairline + brass pinstripe) */
#site-header, #site-header.transparent, #site-header.scrolled {
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 4px 0 -3px rgba(166, 135, 78, 0.55);
}
#site-header.header-hidden { box-shadow: none; }

/* Squared, tailored cards and imagery */
.listing-card, .guide-card, .blog-card, .value-card, .testimonial-card, .lead-form-wrapper,
.neighborhood-card, .neighborhood-full-card, .neighborhood-detail-card, .contact-form-box,
.listing-badge, .listing-price, .form-control, .newsletter-form input, .nav-menu, .om-popup-card,
.agent-photo, .neighborhood-card-bg, .listing-img { border-radius: 0; }
.listing-card { transition: box-shadow .4s ease, border-color .4s ease; }
.listing-card:hover { border-color: var(--bronze); box-shadow: 0 18px 40px rgba(20,34,26, 0.10); }
.listing-price { background: rgba(20,34,26, 0.92); font-family: var(--font-serif); letter-spacing: 0.02em; }
.listing-badge.off-market { background: var(--oxblood); }

/* Inset frame on the agent portrait (gallery-style mat) */
.agent-photo { outline: 1px solid var(--bronze); outline-offset: 10px; }

/* Testimonials: large italic serif quotes */
.testimonial-quote { font-weight: 400; font-size: 1.08rem; line-height: 1.7; }
.testimonial-stars { color: var(--bronze); }

/* FAQ: serif questions */
.faq-question { font-family: var(--font-serif); font-size: 1.12rem; }

/* Interior heroes: deep navy with a brass pinstripe along the base */
:is(.page-hero, .valuation-hero, .guide-page-hero, .neighborhood-page-hero, .contact-hero, .newsletter-hero) {
  box-shadow: inset 0 -1px 0 rgba(216, 197, 154, 0.45);
}
.page-hero-title em, .newsletter-hero .page-hero-title em { color: var(--bronze-light); }

/* Footer: double brass rule on top, Ralph Lauren style */
#site-footer > footer, .site-footer-main {
  border-top: 1px solid var(--footer-border);
  box-shadow: inset 0 4px 0 -3px rgba(216, 197, 154, 0.35);
}
.social-link { border-radius: 0; }

/* Newsletter band (hunter green): brass hairline frame */
body .newsletter-section { box-shadow: inset 0 1px 0 rgba(216, 197, 154, 0.35); }

/* Forms: tailored focus */
.form-control:focus, .newsletter-form input:focus { box-shadow: 0 0 0 1px var(--bronze); }

::selection { background: var(--ink); color: var(--ivory); }

/* ---------- Home: search bar under the hero (navy strip, brass hairlines) ---------- */
/* Shorter hero on desktop so the search bar sits above the fold */
@media (min-width: 769px) {
  .hero:has(+ .search-bar) { min-height: calc(100svh - 8.5rem); }
}
.search-bar {
  background: var(--hunter);
  border-top: 1px solid rgba(216, 197, 154, 0.45);
  border-bottom: 1px solid rgba(216, 197, 154, 0.45);
  box-shadow: inset 0 4px 0 -3px rgba(216, 197, 154, 0.25), inset 0 -4px 0 -3px rgba(216, 197, 154, 0.25);
  padding: clamp(1.25rem, 2.6vw, 1.75rem) 0;
}
.search-bar .idx-search {
  margin: 0 auto; max-width: 1160px;
  border-color: rgba(216, 197, 154, 0.5); border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.search-bar .idx-search .idx-go { border-radius: 1px; }

/* ---------- Home: off-market (hunter-green band, veiled cards; no live listings) ---------- */
.off-market-band { background: var(--hunter); color: rgba(242, 237, 227, 0.85); }
.om-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.om-eyebrow {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--bronze-light); margin: 0 0 0.9rem; letter-spacing: 0;
}
.om-title {
  font-family: var(--font-display); font-weight:500; color: #F6F1E7;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0; max-width: 14ch;
}
.om-lede {
  font-family: var(--font-serif); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65;
  color: rgba(242, 237, 227, 0.82); margin: 0; max-width: 38rem;
}
.om-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.om-card {
  display: block; padding: clamp(0.85rem, 1.2vw, 1.25rem);
  border: 1px solid rgba(216, 197, 154, 0.22); color: #F6F1E7; text-decoration: none;
  transition: border-color 0.35s ease;
}
.om-card:hover, .om-card:focus-visible { border-color: rgba(216, 197, 154, 0.6); color: #F6F1E7; }
.om-card-frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #3B4A3E; }
.om-card-frame img {
  position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover;
  filter: blur(22px) saturate(0.8) brightness(0.92); transform: scale(1.05);
  transition: transform 0.8s ease;
}
.om-card:hover .om-card-frame img { transform: scale(1.12); }
.om-card-frame::after { content: ""; position: absolute; inset: 0; background: rgba(20, 28, 22, 0.18); }
.om-card-text {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 1.25rem; gap: 0.7rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.om-card-label { font-family: var(--font-display); font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.15; color: #FFFDF8; }
.om-card-sub { font-size: clamp(0.85rem, 1.1vw, 0.98rem); color: rgba(255, 253, 248, 0.9); }
.om-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.om-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0.85rem 2.25rem; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.03em;
  border: 1px solid rgba(246, 241, 231, 0.85); text-decoration: none; transition: var(--transition);
}
.om-btn-solid { background: #F6F1E7; color: var(--hunter); }
.om-btn-solid:hover { background: #FFFDF8; color: var(--hunter); }
.om-btn-outline { background: transparent; color: #F6F1E7; }
.om-btn-outline:hover { background: rgba(246, 241, 231, 0.1); color: #FFFDF8; }
@media (max-width: 900px) {
  .om-head { grid-template-columns: 1fr; align-items: start; }
  .om-grid { grid-template-columns: 1fr 1fr; }
  .om-grid .om-card:last-child { display: none; }
}
@media (max-width: 560px) {
  .om-grid { grid-template-columns: 1fr; }
  .om-grid .om-card:last-child { display: block; }
  .om-card-frame { aspect-ratio: 16 / 11; }
  .om-btn { width: 100%; }
}

/* ---------- Home: about (editorial portrait + letter) ---------- */
.home-about-grid {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center; max-width: 1180px; margin: 0 auto;
}
.home-about-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.home-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.home-about-text { max-width: 600px; }
.home-about-title {
  font-family: var(--font-display); font-weight:500; color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -0.005em; margin: 0 0 1.75rem;
}
.home-about-body { font-family: var(--font-serif); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.65; color: #2E2B26; margin: 0 0 2rem; }
.home-about-sig { font-family: var(--font-display); font-style: normal; font-size: clamp(1.7rem, 2.4vw, 2rem); letter-spacing: 0.01em; color: var(--ink); margin: 0; line-height: 1.2; }
.home-about-role { font-size: 0.92rem; color: var(--taupe); margin: 0.35rem 0 0; }
.home-about-stats {
  list-style: none; margin: 2rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--stone);
  display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2rem, 5vw, 4rem);
}
.home-about-stats li { font-size: 0.92rem; color: var(--taupe); line-height: 1.3; }
.home-about-stats span { display: block; font-family: var(--font-serif); font-size: clamp(1.9rem, 2.8vw, 2.4rem); color: var(--ink); line-height: 1.1; margin-bottom: 0.2rem; }
.home-about-link {
  display: inline-block; margin-top: 2rem; padding-bottom: 3px;
  color: var(--bronze-deep); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor;
}
.home-about-link:hover { color: var(--leather); }
@media (max-width: 768px) {
  .home-about-grid { grid-template-columns: 1fr; }
  .home-about-photo { max-width: 460px; }
}

/* ---------- Headline face: Playfair Display, body: Lato (Nov 2026) ---------- */
h1, .hero h1, .page-hero-title, .section-title { font-family: var(--font-display); }
/* Display has no italic, so italic accents inside titles use the Text italic */
:is(h1, .section-title, .page-hero-title, .home-about-title, .om-title) :is(em, i) { font-family: var(--font-serif); }
