/* ============================================================
   Jessica Mackrael — Emerald Coast Real Estate
   Luxury design system: cream paper, charcoal, elegant serif
   ============================================================ */

:root {
  --cream: #f7f3ea;
  --cream-deep: #efe9db;
  --charcoal: #2e343b;
  --charcoal-soft: #3d444c;
  --ink: #23282e;
  --gold: #b3985f;
  --gold-soft: #cbb98c;
  --mist: #aebfc9;
  --white: #fdfcf9;
  --hairline: rgba(46, 52, 59, 0.18);
  --hairline-light: rgba(247, 243, 234, 0.25);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* subtle paper texture */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.5), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(214,202,176,0.25), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  max-width: 100%;
  touch-action: pan-y;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 26px;
}

.display { font-size: clamp(42px, 6vw, 78px); letter-spacing: 0.01em; }
.headline { font-size: clamp(32px, 4.2vw, 54px); }
.subhead  { font-size: clamp(24px, 2.6vw, 32px); font-style: italic; color: var(--charcoal-soft); }

.lede { font-size: 19px; line-height: 1.9; color: var(--charcoal-soft); max-width: 62ch; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }
.section { padding: clamp(90px, 12vh, 150px) 0; }
.section-tight { padding: clamp(60px, 8vh, 100px) 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.hairline { border: 0; border-top: 1px solid var(--hairline); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1400px, calc(100% - 40px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 28px;
  border-radius: 12px;
  background: rgba(46, 52, 59, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cream);
  transition: background 0.4s ease, transform 0.45s ease, opacity 0.45s ease;
}

/* header hides on scroll down, returns on scroll up */
.site-header.header-hidden {
  transform: translateX(-50%) translateY(-160%);
  opacity: 0;
  pointer-events: none;
}

.brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--cream);
  border: 1px solid rgba(247,243,234,0.55);
  padding: 5px 14px;
  white-space: nowrap;
}

.nav { display: flex; gap: 30px; align-items: center; }
.nav a {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247,243,234,0.92);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--gold-soft); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 26px; cursor: pointer; }

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column;
    gap: 20px;
    background: rgba(46,52,59,0.96);
    border-radius: 14px;
    padding: 34px 0;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-top: clamp(140px, 18vh, 200px); /* clears the floating header so it never sits on the hero text */
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(35,40,46,0.35) 0%, rgba(35,40,46,0.15) 40%, rgba(35,40,46,0.72) 100%),
    linear-gradient(160deg, #7a8f9c 0%, #a9bcc6 30%, #d3ddda 52%, #e9e2cd 74%, #c9b98f 100%);
}
.hero-inner { position: relative; width: 100%; padding-bottom: clamp(60px, 10vh, 120px); }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: var(--cream); }
.hero p { max-width: 54ch; margin-top: 26px; font-size: 18px; color: rgba(247,243,234,0.9); }

.hero-page {
  min-height: 62vh;
  align-items: flex-end;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 17px 42px;
  border: 1px solid currentColor;
  transition: background 0.35s ease, color 0.35s ease;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
}
.btn:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn-light { color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }
.btn-solid { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn-solid:hover { background: transparent; color: var(--charcoal); }
.btn-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 44px; }

/* ---------- stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat .num { font-family: var(--serif); font-size: clamp(40px, 4vw, 58px); color: var(--charcoal); }
.stat .label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }

/* ---------- listing / community cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 4vw, 56px);
}

.card { background: transparent; }
.card-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,243,234,0.85);
  border: 1px solid rgba(247,243,234,0.4);
  padding: 10px 18px;
  text-align: center;
}
.card h3 { font-size: 26px; margin-top: 26px; }
.card .price { font-family: var(--serif); font-size: 30px; color: var(--charcoal); margin-top: 24px; }
.card .meta {
  display: flex; gap: 18px;
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--charcoal-soft);
  border-top: 1px solid var(--hairline);
  margin-top: 14px; padding-top: 14px;
}
.card p { font-size: 15.5px; color: var(--charcoal-soft); margin-top: 12px; }
.card .card-link {
  display: inline-block; margin-top: 18px;
  font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold); padding-bottom: 5px; color: var(--charcoal);
}

/* placeholder photo palettes */
.ph-1 { background: linear-gradient(150deg, #8fa5b0, #cdd8d6 60%, #e8e0c8); }
.ph-2 { background: linear-gradient(150deg, #b7a789, #ded3b8 55%, #f0ead9); }
.ph-3 { background: linear-gradient(150deg, #56656f, #93a7ae 60%, #ccd6d2); }
.ph-4 { background: linear-gradient(150deg, #7f9086, #b4c2b3 55%, #e3e4d2); }
.ph-5 { background: linear-gradient(150deg, #9db3bd, #c2d2d4 50%, #eee7d3); }
.ph-6 { background: linear-gradient(150deg, #a89272, #cfc0a0 55%, #ece4cf); }

/* ---------- dark band ---------- */
.band-dark {
  background: linear-gradient(180deg, #2e343b, #262b31);
  color: var(--cream);
}
.band-dark h2, .band-dark h3 { color: var(--cream); }
.band-dark .lede { color: rgba(247,243,234,0.8); }
.band-dark .hairline { border-top-color: var(--hairline-light); }
.band-dark .stat .num { color: var(--cream); }

/* ---------- testimonials ---------- */
.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 30px);
  font-style: italic;
  line-height: 1.55;
  color: var(--charcoal);
}
.band-dark .quote blockquote { color: var(--cream); }
.quote cite {
  display: block;
  margin-top: 30px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-nav { display: flex; justify-content: center; gap: 14px; margin-top: 44px; }
.quote-nav button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; cursor: pointer;
  padding: 0;
}
.quote-nav button.active { background: var(--gold); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  font-family: var(--serif);
  font-size: 23px;
  color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 26px; color: var(--gold); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 0 34px; max-width: 70ch; color: var(--charcoal-soft); }

/* ---------- contact / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
input, textarea, select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 2px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus { border-bottom-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.contact-cards h3 { font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; font-family: var(--sans); color: var(--gold); }
.contact-cards p { margin-top: 12px; font-size: 18px; }
.contact-cards a { border-bottom: 1px solid var(--gold-soft); }

/* ---------- footer ---------- */
.site-footer {
  background: #23282e;
  color: rgba(247,243,234,0.78);
  padding: 90px 0 50px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr 0.9fr;
  gap: 50px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { display: inline-block; margin-bottom: 24px; }
.site-footer h4 {
  font-size: 11.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 400; margin-bottom: 20px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline-light);
  font-size: 12.5px;
  color: rgba(247,243,234,0.5);
  line-height: 1.9;
}
.footer-powered {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-light);
  display: flex;
  align-items: center;
}
.footer-powered a {
  display: inline-flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.footer-powered a:hover { opacity: 1; }
.footer-powered-label {
  font-family: 'Jost', Arial, sans-serif;
  font-style: normal;
  font-size: 11px;
  font-weight: 300;
  color: rgba(247,243,234,0.45);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  white-space: nowrap;
  margin-right: 10px;
  user-select: none;
}
.footer-powered img {
  display: block;
  filter: invert(1) brightness(2);
}

/* ---------- map section ---------- */
.map-band {
  background: linear-gradient(180deg, #9fb2bd, #b9c8ce);
  color: var(--charcoal);
}
.map-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}
.map-point {
  border: 1px solid rgba(46,52,59,0.25);
  padding: 30px 26px;
  background: rgba(247,243,234,0.55);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, transform 0.3s ease;
}
.map-point:hover { background: rgba(247,243,234,0.9); transform: translateY(-4px); }
.map-point h3 { font-size: 24px; }
.map-point p { font-size: 14.5px; color: var(--charcoal-soft); margin-top: 10px; }
.map-point .tag { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: block; margin-top: 14px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- misc ---------- */
.divider-flourish {
  width: 64px; height: 1px; background: var(--gold);
  margin: 40px auto;
}
.checklist { list-style: none; margin-top: 30px; }
.checklist li {
  padding: 18px 0 18px 40px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.checklist li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--gold);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page { background: var(--cream); }

.search-intro { padding: clamp(170px, 22vh, 220px) 0 34px; }
.search-intro .headline { margin-top: 6px; }
.search-intro .eyebrow { margin-bottom: 10px; }

.search-filters {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,243,234,0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .filter-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .filter-row { grid-template-columns: repeat(2, 1fr); } }
.search-filters label { margin-bottom: 4px; }
.search-filters select {
  border-bottom: 1px solid var(--hairline);
  padding: 8px 2px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  height: calc(100vh - 0px);
  min-height: 640px;
}
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; height: auto; }
  #map { height: 46vh; }
}
#map { width: 100%; height: 100%; background: #dfe6e3; }

.results-pane { overflow-y: auto; padding: 30px clamp(20px, 3vw, 44px) 50px; }
.results-head { margin-bottom: 22px; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 34px;
}

.listing-card { transition: opacity 0.3s ease; }
.listing-card .card-photo { aspect-ratio: 16/10; }
.listing-card .price { font-family: var(--serif); font-weight: 500; font-size: 27px; color: var(--charcoal); margin-top: 18px; }
.listing-card h3 { font-size: 19px; margin-top: 6px; }
.listing-card .listing-city { font-size: 13.5px; letter-spacing: 0.06em; color: var(--charcoal-soft); margin-top: 2px; }
.listing-card .meta { display: flex; gap: 16px; font-size: 12.5px; letter-spacing: 0.06em; color: var(--charcoal-soft); border-top: 1px solid var(--hairline); margin-top: 12px; padding-top: 12px; }
.listing-card p { font-size: 14px; color: var(--charcoal-soft); margin-top: 8px; }
.listing-card .card-link { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; color: var(--charcoal); }

.listing-tag {
  position: absolute; top: 14px; left: 14px;
  font-style: normal; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  background: var(--charcoal); color: var(--cream);
  padding: 7px 14px;
}
.listing-status {
  position: absolute; bottom: 14px; right: 14px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(247,243,234,0.9); border: 1px solid rgba(247,243,234,0.5);
  padding: 5px 12px;
}

.card-flash .card-photo { outline: 2px solid var(--gold); outline-offset: 3px; }

/* map price pins */
.price-pin {
  background: var(--charcoal);
  color: var(--cream);
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(35,40,46,0.35);
  transform: translate(-50%, -100%);
  border: 1px solid rgba(247,243,234,0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.price-pin:hover, .price-pin.pin-active {
  background: var(--gold);
  color: #23282e;
  transform: translate(-50%, -100%) scale(1.12);
}

.demo-note {
  margin-top: 44px;
  font-size: 13px;
  color: var(--charcoal-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.demo-note a { border-bottom: 1px solid var(--gold-soft); }

/* ---------- real photography (Unsplash — free license, swap for Jessica's own photos before launch) ---------- */
.ph-1, .ph-2, .ph-3, .ph-4, .ph-5, .ph-6 { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ph-1 { background-image: url("https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1200&q=80"), linear-gradient(150deg, #8fa5b0, #cdd8d6 60%, #e8e0c8); }
.ph-2 { background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1200&q=80"), linear-gradient(150deg, #b7a789, #ded3b8 55%, #f0ead9); }
.ph-3 { background-image: url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=1200&q=80"), linear-gradient(150deg, #56656f, #93a7ae 60%, #ccd6d2); }
.ph-4 { background-image: url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80"), linear-gradient(150deg, #7f9086, #b4c2b3 55%, #e3e4d2); }
.ph-5 { background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80"), linear-gradient(150deg, #9db3bd, #c2d2d4 50%, #eee7d3); }
.ph-6 { background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1200&q=80"), linear-gradient(150deg, #a89272, #cfc0a0 55%, #ece4cf); }

/* hide the "photo coming soon" pills now that real photos are in */
.ph-1 span, .ph-2 span, .ph-3 span, .ph-4 span, .ph-5 span, .ph-6 span { display: none; }

/* portrait slot on the About page stays a labeled placeholder until we get Jessica's headshot */
.ph-portrait { background: linear-gradient(150deg, #b7a789, #ded3b8 55%, #f0ead9); }

/* hero photography — dark overlay kept on top so the cream text stays readable */
.hero {
  background:
    linear-gradient(180deg, rgba(35,40,46,0.52) 0%, rgba(35,40,46,0.28) 40%, rgba(35,40,46,0.78) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2400&q=80") center/cover no-repeat,
    linear-gradient(160deg, #7a8f9c 0%, #a9bcc6 30%, #d3ddda 52%, #e9e2cd 74%, #c9b98f 100%);
}
.hero-page {
  background:
    linear-gradient(180deg, rgba(35,40,46,0.58) 0%, rgba(35,40,46,0.34) 45%, rgba(35,40,46,0.8) 100%),
    url("https://images.unsplash.com/photo-1505118380757-91f5f5632de0?auto=format&fit=crop&w=2400&q=80") center/cover no-repeat,
    linear-gradient(160deg, #56656f 0%, #7a8f9c 40%, #a9bcc6 70%, #c9b98f 100%);
}

/* home-value form extras (Sell page) */
.check-row { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.check-row label { display: flex; gap: 9px; align-items: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; margin: 0; }
.check-row input[type="checkbox"] { accent-color: #b3985f; width: 15px; height: 15px; }

/* keep the map (and its zoom buttons) underneath the sticky filter bar and header */
#map { position: relative; z-index: 0; }

/* zoom buttons sit lower on the map, clear of the filter bar */
#map .leaflet-top.leaflet-right { top: 30%; }

/* ============================================================
   HOMEPAGE HERO — full-screen beach video, centered search,
   oversized name anchored at the base (30arealestatefl-style)
   ============================================================ */
.hero-home {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  /* photographic fallback if the video ever fails to load */
  background:
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2400&q=80") center/cover no-repeat,
    linear-gradient(160deg, #7a8f9c 0%, #a9bcc6 30%, #d3ddda 52%, #e9e2cd 74%, #c9b98f 100%);
}
.hero-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-vid.vid-failed { display: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(35,40,46,0.5) 0%, rgba(35,40,46,0.2) 42%, rgba(35,40,46,0.55) 100%);
}
.hero-home-inner {
  position: relative; z-index: 3; /* above the giant name so the search dropdown never sits under it */
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: clamp(130px, 17vh, 190px);   /* clears the floating header */
  padding-bottom: clamp(150px, 24vh, 280px); /* leaves the stage to the name */
}

/* top-left statement */
.hero-statement { max-width: 640px; }
.hero-statement-loc {
  display: block;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero-statement p {
  font-size: clamp(14px, 1.35vw, 17px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 2.05;
  color: rgba(247,243,234,0.95);
  text-shadow: 0 1px 18px rgba(35,40,46,0.35);
}
.hero-statement em { font-style: italic; letter-spacing: 0.2em; }

/* front-and-center search */
.hero-search {
  position: relative;
  width: min(680px, 100%);
  margin: auto;
}
.hero-search form {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 28px;
  border-radius: 999px;
  background: rgba(247,243,234,0.14);
  border: 1px solid rgba(247,243,234,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(35,40,46,0.28);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.hero-search form:focus-within {
  background: rgba(247,243,234,0.22);
  border-color: rgba(247,243,234,0.8);
}
.hero-search .search-ico { width: 19px; height: 19px; color: var(--cream); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--cream);
}
.hero-search input:focus { border: 0; }
.hero-search input::placeholder { color: rgba(247,243,234,0.75); }

/* live results dropdown */
.hero-search-results {
  position: absolute;
  top: calc(100% + 12px); left: 0; right: 0;
  z-index: 6;
  background: rgba(253,252,249,0.97);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(35,40,46,0.4);
  overflow: hidden auto;
  max-height: min(380px, 44vh);
  text-align: left;
}
.hsr-group {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px 26px 8px;
}
.hsr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 26px;
  color: var(--ink);
  transition: background 0.2s ease;
}
.hsr-item:hover { background: var(--cream-deep); }
.hsr-main { font-size: 15.5px; line-height: 1.4; }
.hsr-main em {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
}
.hsr-price { font-family: var(--serif); font-size: 17px; color: var(--charcoal); white-space: nowrap; }
.hsr-go { color: var(--gold); font-size: 18px; }
.hsr-all { border-top: 1px solid var(--hairline); }
.hsr-all .hsr-main { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* the name, oversized and grazing the base of the hero */
.hero-name {
  position: absolute;
  left: 0; right: 0;
  bottom: -0.16em;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 9.2vw, 176px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(247,243,234,0.88);
  text-shadow: 0 2px 40px rgba(35,40,46,0.3);
  pointer-events: none;
}
@media (max-width: 640px) {
  .hero-statement p { letter-spacing: 0.1em; }
  .hero-home-inner { padding-bottom: clamp(110px, 18vh, 160px); }
}

/* ============================================================
   COLDWELL BANKER BRANDING
   North-star mark drawn inline as SVG, styled to the site
   palette. Swap in the official CB Realty asset from the brand
   portal before launch.
   ============================================================ */
.brand-lockup {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 7px 16px;
}
.brand-lockup .brand-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
/* CB logo mark, to the right of her name */
.brand-cb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(247,243,234,0.35);
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--gold-soft);
  white-space: nowrap;
}
.brand-cb .cb-mark { width: 18px; height: 18px; }
@media (max-width: 480px) { .brand-cb { display: none; } }

.cb-mark { flex-shrink: 0; display: block; object-fit: contain; }

.cb-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.cb-lockup .cb-mark { width: 30px; height: 30px; }
.cb-lockup span {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1.75;
}
.cb-lockup-dark span { color: var(--charcoal); }
.cb-lockup-light span { color: rgba(247,243,234,0.85); }
.site-footer .cb-lockup { margin: 2px 0 20px; }

/* ============================================================
   ABOUT JESSICA (homepage section)
   ============================================================ */
.about-home { padding-top: clamp(90px, 11vh, 140px); }
.about-home .two-col { align-items: start; }
.about-portrait { aspect-ratio: 3 / 4; max-width: 460px; }
.about-home .checklist { margin-top: 34px; }
.about-home .checklist li { font-size: 15.5px; padding: 14px 0 14px 36px; }

/* ============================================================
   SEARCH PAGE — keyword field in the filter bar
   ============================================================ */
.filter-row { grid-template-columns: 1.7fr repeat(6, 1fr); }
.search-filters .filter-q input {
  border-bottom: 1px solid var(--hairline);
  padding: 8px 2px;
  font-size: 15px;
}
@media (max-width: 900px) {
  .filter-row { grid-template-columns: repeat(3, 1fr); }
  .filter-q { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .filter-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PREMIUM MOTION — subtle site-wide animation layer
   ============================================================ */
:root { --ease-lux: cubic-bezier(0.22, 1, 0.36, 1); }

/* Refined reveal: slightly softer travel, luxurious deceleration */
.reveal {
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease-lux), transform 1.1s var(--ease-lux);
}

/* Cascading reveals inside grids — cards & stats arrive in sequence */
.card-grid > .reveal:nth-child(2), .stats > .reveal:nth-child(2) { transition-delay: 0.12s; }
.card-grid > .reveal:nth-child(3), .stats > .reveal:nth-child(3) { transition-delay: 0.24s; }
.card-grid > .reveal:nth-child(4), .stats > .reveal:nth-child(4) { transition-delay: 0.36s; }
.card-grid > .reveal:nth-child(5) { transition-delay: 0.48s; }
.card-grid > .reveal:nth-child(6) { transition-delay: 0.60s; }

/* Checklist rows fade in one by one once their section reveals */
.reveal .checklist li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
}
.reveal.visible .checklist li { opacity: 1; transform: none; }
.reveal.visible .checklist li:nth-child(1) { transition-delay: 0.15s; }
.reveal.visible .checklist li:nth-child(2) { transition-delay: 0.28s; }
.reveal.visible .checklist li:nth-child(3) { transition-delay: 0.41s; }
.reveal.visible .checklist li:nth-child(4) { transition-delay: 0.54s; }
.reveal.visible .checklist li:nth-child(5) { transition-delay: 0.67s; }
.reveal.visible .checklist li:nth-child(6) { transition-delay: 0.80s; }

/* Hero intro: statement, then search bar; name drifts up last */
.hero-statement.reveal { transition-delay: 0.15s; }
.hero-search.reveal { transition-delay: 0.4s; }
.hero-name { animation: hero-name-in 1.8s var(--ease-lux) 0.55s both; }
@keyframes hero-name-in {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

/* Cards: gentle lift + slow photo zoom on hover */
.card, .listing-card {
  transition: transform 0.65s var(--ease-lux);
}
.card:hover, .listing-card:hover { transform: translateY(-6px); }
.card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 1.6s var(--ease-lux);
}
.card:hover .card-photo::before,
.listing-card:hover .card-photo::before { transform: scale(1.055); }
.listing-tag { z-index: 1; }

/* Card links: ease to gold on hover */
.card-link { transition: color 0.35s ease, border-color 0.35s ease; }
.card:hover .card-link, .listing-card:hover .card-link, .card-link:hover { color: var(--gold); }

/* Buttons: quiet lift with a soft shadow */
.btn {
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
              transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(46, 52, 59, 0.5);
}

/* Nav links: hairline underline grows in from the left */
.nav a { border-bottom: none; position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-lux);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* FAQ questions warm to gold on hover */
.faq-item summary { transition: color 0.3s ease; }
.faq-item summary:hover { color: var(--gold); }

/* Footer links drift to gold */
.site-footer a { transition: color 0.3s ease; }

/* Respect reduced-motion preferences: everything appears instantly */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .checklist li, .card, .listing-card, .btn,
  .card-photo::before, .hero-name, .nav a::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal, .reveal .checklist li { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HERO SEARCH BAR — ENTRANCE ANIMATION (added Jul 2)
   The form itself is transform-animated (no overlay element).
   JS compresses the form to a centered circle via scaleX,
   then expands it — one element, one unified motion.
   Managed by js/hero-search-anim.js
   ============================================================ */

/* ============================================================
   JM PERSONAL BRAND LOGO (added Jul 2)
   assets/jm-logo.png = black, for cream backgrounds
   assets/jm-logo-light.png = cream, for dark backgrounds
   ============================================================ */

/* Footer: replaces the old text brand */
.jm-logo-footer {
  display: block;
  width: min(230px, 80%);
  height: auto;
  margin: -8px 0 6px -6px;   /* optically align flourish with column edge */
  opacity: 0.94;
}

/* Inline placement (About section, Contact page) */
.jm-logo-inline {
  display: block;
  width: min(240px, 65%);
  height: auto;
  margin: 0 0 26px -8px;     /* flourish overhangs slightly, sits optically flush */
  opacity: 0.92;
}

@media (max-width: 640px) {
  .jm-logo-footer { width: 200px; }
  .jm-logo-inline { width: 200px; margin-bottom: 20px; }
}

/* ============================================================
   LISTING DETAIL — full-screen overlay (hash-based routing)
   ============================================================ */

/* Overlay container — sits above everything, full viewport */
#listing-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Close / top bar */
.ldp-topbar {
  position: sticky;
  top: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(46,52,59,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 28px;
}
.ldp-close-btn {
  background: none;
  border: 1px solid rgba(247,243,234,0.55);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.ldp-close-btn:hover { background: rgba(247,243,234,0.15); border-color: rgba(247,243,234,0.9); }
.ldp-topbar-addr {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(247,243,234,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Photo gallery — dynamic, any number of photos ── */
.ldp-gallery {
  background: var(--ink);
}

/* Desktop: CSS grid — first item spans full height, next 2 stack right */
.ldp-gallery-inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 560px;
  overflow: hidden;
}
.ldp-gi {
  background-size: cover;
  background-position: center;
  position: relative;
}
.ldp-gi-main {
  grid-row: 1 / span 2; /* first photo takes full left column */
}
/* Items 4+ are hidden on desktop (shown in mobile scroll) */
.ldp-gi-hidden { display: none; }

/* "+N more photos" badge on the last visible desktop tile */
.ldp-more-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35,40,46,0.62);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  cursor: default;
}

.ldp-status-pill {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: rgba(46,52,59,0.82);
  backdrop-filter: blur(8px);
  color: var(--cream);
  padding: 7px 16px;
  border: 1px solid rgba(247,243,234,0.3);
}

/* ── Page layout ── */
.ldp-main {
  padding-top: 52px;
  padding-bottom: 110px;
}
.ldp-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: clamp(50px, 7vw, 100px);
  align-items: start;
}

/* ── Back link ── */
.ldp-back {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 3px;
  margin-bottom: 32px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.ldp-back:hover { color: var(--charcoal); border-bottom-color: var(--charcoal); }

/* ── Price & address ── */
.ldp-price {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 14px;
}
.ldp-address {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 6px;
}
.ldp-cityzip {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--charcoal-soft);
}

/* ── Specs bar ── */
.ldp-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  margin-top: 34px;
}
.ldp-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px;
  border-right: 1px solid var(--hairline);
  text-align: center;
}
.ldp-spec:last-child { border-right: 0; }
.ldp-spec-num {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1;
}
.ldp-spec-lbl {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 9px;
}

/* ── Section divider ── */
.ldp-rule { margin: 44px 0; }

/* ── Section wrapper ── */
.ldp-section { }
.ldp-section .eyebrow { margin-bottom: 22px; }
.ldp-body-copy { font-size: 15.5px; color: var(--charcoal-soft); line-height: 1.85; margin-top: 18px; }
.ldp-disclaimer-sm { font-size: 12.5px; color: var(--charcoal-soft); line-height: 1.7; margin-bottom: 24px; }

/* ── Property details grid ── */
.ldp-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ldp-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  gap: 12px;
}
.ldp-drow:nth-child(odd)  { padding-right: 30px; border-right: 1px solid var(--hairline); }
.ldp-drow:nth-child(even) { padding-left: 30px; }
.ldp-dlbl { color: var(--charcoal-soft); flex-shrink: 0; }
.ldp-dval { color: var(--charcoal); font-weight: 400; text-align: right; }

/* ── Cost breakdown table ── */
.ldp-cost-table {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.ldp-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px;
}
.ldp-cost-row:last-child { border-bottom: 0; }
.ldp-cost-total {
  background: var(--cream-deep);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}
.ldp-cost-amt { font-family: var(--serif); color: var(--charcoal); }
.ldp-mo { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.08em; color: var(--charcoal-soft); margin-left: 4px; }

/* ── Map ── */
.ldp-map {
  height: 380px;
  border: 1px solid var(--hairline);
}

/* ── Sidebar ── */
.ldp-sidebar {
  align-self: stretch; /* sidebar column spans full grid height so sticky has room */
}
.ldp-sidebar-card {
  position: sticky;
  top: 84px; /* clears the overlay's sticky topbar + breathing room */
  border: 1px solid var(--hairline);
  padding: 34px 30px;
  background: var(--white);
  box-shadow: 0 12px 50px rgba(35,40,46,0.08);
}
.ldp-sb-price {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
}
.ldp-sb-est {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-top: 7px;
  margin-bottom: 22px;
}
.ldp-sb-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.ldp-sb-headshot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background: var(--cream-deep);
}
.ldp-sb-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.2;
}
.ldp-sb-title {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.ldp-sb-specs {
  margin-bottom: 20px;
}
.ldp-sb-spec-row {
  display: flex;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--charcoal-soft);
}
.ldp-sb-disclaimer {
  font-size: 11px;
  color: rgba(46,52,59,0.45);
  line-height: 1.75;
}

/* ── Responsive: stack layout below 1040px ── */
@media (max-width: 1040px) {
  .ldp-layout {
    grid-template-columns: 1fr;
  }
  .ldp-sidebar {
    order: -1; /* sidebar above content on tablet / mobile */
  }
  .ldp-sidebar-card {
    position: static;
    box-shadow: 0 4px 20px rgba(35,40,46,0.07);
  }
}

/* ── Responsive: gallery — horizontal swipe strip on tablet/mobile ── */
@media (max-width: 860px) {
  .ldp-gallery-inner {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 320px;
    gap: 3px;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }
  .ldp-gallery-inner::-webkit-scrollbar { display: none; }

  /* All gallery items visible, snapping, slightly narrow so next peeks */
  .ldp-gi,
  .ldp-gi-main,
  .ldp-gi-hidden {
    display: block;
    flex: 0 0 90%;
    height: 320px;
    scroll-snap-align: start;
    grid-row: unset;
  }
  /* Hide the "+N more" badge on mobile — all photos show anyway */
  .ldp-more-badge { display: none; }
}

/* ── Responsive: phones ── */
@media (max-width: 480px) {
  .ldp-gallery { padding-top: 64px; }
  .ldp-gallery-inner { height: 260px; }
  .ldp-gi, .ldp-gi-main, .ldp-gi-hidden { height: 260px; flex: 0 0 88%; }
  .ldp-main { padding-top: 28px; padding-bottom: 60px; }
  /* 2×2 specs on phones */
  .ldp-specs { grid-template-columns: repeat(2, 1fr); }
  .ldp-spec:nth-child(2) { border-right: 0; }
  .ldp-spec:nth-child(3),
  .ldp-spec:nth-child(4) { border-top: 1px solid var(--hairline); }
  .ldp-spec:nth-child(4) { border-right: 0; }
  /* Single-column property details */
  .ldp-details { grid-template-columns: 1fr; }
  .ldp-drow { border-right: 0 !important; padding-right: 0 !important; padding-left: 0 !important; }
  .ldp-map { height: 260px; }
  /* Cost table tighter */
  .ldp-cost-row { padding: 14px 16px; font-size: 14.5px; }
  .ldp-cost-total { font-size: 16px; }
}

/* ============================================================
   MOBILE OPTIMISATION
   All desktop / laptop styles above are completely untouched.
   These rules apply only to phones and small tablets.
   ============================================================ */

/* ── Tablets + large phones  (≤ 768px) ────────────────────── */
@media (max-width: 768px) {

  /* Reveal animation: slower + deeper on mobile for a premium feel */
  .reveal {
    transform: translateY(36px);
    transition: opacity 1.6s var(--ease-lux), transform 1.6s var(--ease-lux);
  }
  /* Checklist items: slower cascade to match */
  .reveal .checklist li {
    transition: opacity 1.1s var(--ease-lux), transform 1.1s var(--ease-lux);
  }
  /* Cards stagger: slightly longer delays so each card breathes */
  .card-grid > .reveal:nth-child(2), .stats > .reveal:nth-child(2) { transition-delay: 0.18s; }
  .card-grid > .reveal:nth-child(3), .stats > .reveal:nth-child(3) { transition-delay: 0.36s; }
  .card-grid > .reveal:nth-child(4), .stats > .reveal:nth-child(4) { transition-delay: 0.54s; }
  .card-grid > .reveal:nth-child(5) { transition-delay: 0.72s; }
  .card-grid > .reveal:nth-child(6) { transition-delay: 0.90s; }

  /* Header: tighter pill so it doesn't eat the screen */
  .site-header {
    top: 10px;
    padding: 10px 20px;
    width: calc(100% - 20px);
  }

  /* Hero name: allow wrapping so "Jessica Mackrael" doesn't
     blow past the right edge of the screen */
  .hero-name {
    white-space: normal;
    font-size: clamp(32px, 9vw, 90px);
    padding: 0 4vw;
    letter-spacing: 0.025em;
    bottom: -0.08em;
    line-height: 1.05;
  }

  /* Reduce the bottom padding that makes room for the name */
  .hero-home-inner {
    padding-bottom: clamp(80px, 18vh, 140px);
  }

  /* Hero search bar: tighter horizontal padding */
  .hero-search {
    width: 100%;
  }
  .hero-search form {
    padding: 14px 18px;
    gap: 10px;
  }

  /* Hero statement: center + push down on mobile */
  .hero-statement {
    text-align: center;
    margin: 0 auto;
    margin-top: clamp(20px, 5vh, 50px);
  }
  .hero-statement p {
    letter-spacing: 0.1em;
    font-size: 13.5px;
    line-height: 1.95;
    margin-left: auto;
    margin-right: auto;
  }

  /* About portrait: much less tall on tablets */
  .about-portrait {
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  /* Btn rows: stack vertically */
  .btn-row {
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
    align-items: flex-start;
  }
  .btn-row[style*="justify-content:center"] {
    align-items: center;
  }
  .center .btn-row {
    align-items: center;
  }

  /* Map community points: 2-column grid on tablets */
  .map-points {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 40px;
  }

  /* FAQ question text: easier to read at 18px */
  .faq-item summary {
    font-size: 18px;
    gap: 20px;
    padding: 22px 0;
  }
}

/* ── Phones only  (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {

  /* Header: minimal pill */
  .site-header {
    top: 8px;
    padding: 9px 16px;
    width: calc(100% - 16px);
  }
  .brand-name { font-size: 15px; }

  /* ── Spacing ── */
  .section       { padding: clamp(56px, 10vh, 90px) 0; }
  .section-tight { padding: clamp(36px, 7vh, 60px) 0; }

  /* ── Typography ── */
  .display  { font-size: clamp(28px, 8vw, 48px); }
  .headline { font-size: clamp(22px, 6.5vw, 34px); }
  .subhead  { font-size: clamp(18px, 4.5vw, 24px); }
  .lede     { font-size: 16px; line-height: 1.85; }
  .eyebrow  { margin-bottom: 16px; }

  /* ── Hero home ── */
  .hero-name {
    font-size: clamp(22px, 9.5vw, 44px);
    bottom: -0.05em;
    padding: 0 3vw;
  }
  .hero-home-inner {
    padding-top: clamp(90px, 14vh, 130px);
    padding-bottom: clamp(55px, 14vh, 95px);
  }
  .hero-search form {
    padding: 12px 14px;
  }
  .hero-search input {
    font-size: 14.5px;
  }
  .hero-statement {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    margin-top: clamp(16px, 4vh, 40px);
  }
  .hero-statement p {
    font-size: 12.5px;
    letter-spacing: 0.07em;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Inner-page hero ── */
  .hero-page { min-height: 46vh; }

  /* ── Cards: force single column ── */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* ── Stats: 2-up grid ── */
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .stat .num   { font-size: clamp(26px, 7vw, 42px); }
  .stat .label { font-size: 10.5px; letter-spacing: 0.2em; }

  /* ── Community map points: single column ── */
  .map-points {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .map-point { padding: 20px 18px; }
  .map-point h3 { font-size: 20px; }

  /* ── About portrait: squarish so it doesn't dominate ── */
  .about-portrait {
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  /* ── Buttons: full-width for easy tapping ── */
  .btn {
    width: 100%;
    text-align: center;
    padding: 15px 22px;
    font-size: 11.5px;
    letter-spacing: 0.24em;
  }
  .btn-row {
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }
  /* Centered CTA sections: auto-width, centered */
  .btn-row[style*="justify-content:center"] .btn,
  .center .btn-row .btn {
    width: auto;
  }
  .btn-row[style*="justify-content:center"],
  .center .btn-row {
    align-items: center;
  }

  /* ── FAQ ── */
  .faq-item summary {
    font-size: 16px;
    gap: 12px;
    padding: 18px 0;
  }
  .faq-item .answer {
    font-size: 15px;
    padding-bottom: 24px;
  }

  /* ── Search page ── */
  .search-intro {
    padding: clamp(110px, 16vh, 150px) 0 18px;
  }
  /* Filter bar: much more compact on mobile */
  .search-filters {
    padding: 10px 0;
  }
  .filter-row {
    gap: 10px 14px;
  }
  .search-filters label {
    font-size: 9px;
    letter-spacing: 0.28em;
    margin-bottom: 3px;
  }
  .search-filters select {
    padding: 5px 2px;
    font-size: 13.5px;
  }
  .results-grid { grid-template-columns: 1fr; }

  /* ── Contact cards ── */
  .contact-cards { gap: 22px; }
  .contact-cards p { font-size: 16px; }

  /* ── Footer: 2-column nav grid so links sit side-by-side ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }
  /* Brand/logo column spans full width, nav columns pair up below */
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .jm-logo-footer { width: 160px; }

  /* ── Checklist ── */
  .checklist li {
    font-size: 14.5px;
    padding: 14px 0 14px 32px;
  }

  /* ── Testimonials ── */
  .quote blockquote { font-size: clamp(17px, 4.5vw, 22px); }

  /* ── Form: single column regardless ── */
  .check-row {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* ============================================================
   BAH CALCULATOR
   ============================================================ */
.bah-calc-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.bah-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  margin-top: 50px;
}
@media (max-width: 600px) { .bah-inputs { grid-template-columns: 1fr; } }
.bah-inputs select { font-size: 16px; }

.bah-result {
  margin-top: 50px;
  border: 1px solid var(--hairline);
  padding: 40px;
  background: var(--white);
  box-shadow: 0 12px 50px rgba(35,40,46,0.07);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-lux), transform 0.7s var(--ease-lux);
}
.bah-result.visible { opacity: 1; transform: none; }
.bah-result-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 600px) { .bah-result-main { grid-template-columns: 1fr; } }
.bah-figure { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: var(--charcoal); line-height: 1; }
.bah-figure-label { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.bah-range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.bah-disclaimer { font-size: 12.5px; color: var(--charcoal-soft); line-height: 1.75; margin-top: 24px; }

/* ============================================================
   FIND MY HOME QUIZ
   ============================================================ */
.quiz-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.quiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 52px;
}
.quiz-progress-dot {
  flex: 1;
  height: 2px;
  background: var(--hairline);
  transition: background 0.4s ease;
}
.quiz-progress-dot.done { background: var(--gold); }

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-q {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--charcoal);
  margin-bottom: 44px;
  line-height: 1.2;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .quiz-options { grid-template-columns: 1fr; } }

.quiz-opt {
  border: 1px solid var(--hairline);
  padding: 22px 26px;
  cursor: pointer;
  text-align: left;
  background: var(--white);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-lux);
  font-family: var(--sans);
}
.quiz-opt:hover { border-color: var(--gold-soft); background: var(--cream); transform: translateY(-2px); }
.quiz-opt.selected { border-color: var(--gold); background: var(--cream-deep); }
.quiz-opt-label { font-size: 17px; color: var(--charcoal); font-weight: 400; display: block; }
.quiz-opt-sub { font-size: 13px; color: var(--charcoal-soft); display: block; margin-top: 5px; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; }
.quiz-back { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid transparent; cursor: pointer; background: none; border: none; font-family: var(--sans); padding: 0; }
.quiz-back:hover { border-bottom-color: var(--gold-soft); }

/* Quiz results */
.quiz-result { display: none; }
.quiz-result.active { display: block; }
.quiz-result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 44px; }
.quiz-result-card {
  border: 1px solid var(--hairline);
  padding: 28px 24px;
  background: var(--white);
  position: relative;
  transition: transform 0.4s var(--ease-lux);
}
.quiz-result-card:hover { transform: translateY(-4px); }
.quiz-result-card .rank {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.quiz-result-card h3 { font-size: 22px; margin-bottom: 10px; }
.quiz-result-card p { font-size: 14px; color: var(--charcoal-soft); line-height: 1.7; }
.quiz-result-card .tag { display: inline-block; margin-top: 14px; font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

/* Quiz lead capture */
.quiz-lead-form { margin-top: 52px; border-top: 1px solid var(--hairline); padding-top: 44px; }
.quiz-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .quiz-lead-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FIND MY HOME QUIZ — popup modal (js/quiz-modal.js)
   ============================================================ */
.qm-backdrop { z-index: 400; }
.qm-modal {
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.qm-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--charcoal-soft);
  cursor: pointer;
  font-family: var(--sans);
}
.qm-close:hover { color: var(--gold); }
.qm-eyebrow { margin-bottom: 16px; }
.qm-modal .quiz-progress { margin-bottom: 34px; }
.qm-modal .quiz-q { font-size: clamp(22px, 3vw, 30px); margin-bottom: 30px; }
.qm-modal .quiz-options { gap: 14px; }
.qm-modal .quiz-opt { padding: 16px 20px; }
.qm-modal .quiz-nav { margin-top: 34px; }

.qm-email-step { margin-top: 6px; display: flex; flex-direction: column; }
.qm-email-step label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
}
.qm-email-step input {
  width: 100%;
  border: 1px solid var(--hairline);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--white);
  color: var(--charcoal);
}
.qm-email-step input:focus { outline: none; border-color: var(--gold); }
.qm-note { font-size: 13px; color: var(--gold); margin-top: 16px; line-height: 1.6; }

@media (max-width: 600px) {
  .qm-modal { padding: 44px 26px; }
}

/* ============================================================
   MARKET PULSE DASHBOARD
   ============================================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 60px;
}
@media (max-width: 860px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .market-grid { grid-template-columns: 1fr; } }

.market-tile {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 34px 28px;
  text-align: center;
}
.market-tile-num { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); color: var(--charcoal); line-height: 1; }
.market-tile-change {
  display: inline-block;
  font-size: 11.5px; letter-spacing: 0.12em;
  margin-top: 6px;
  padding: 3px 10px;
}
.market-tile-change.up { color: #2a7a56; background: rgba(42,122,86,0.09); }
.market-tile-change.down { color: #8c3a2a; background: rgba(140,58,42,0.09); }
.market-tile-label { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 14px; display: block; }

.market-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 60px;
  font-size: 15px;
}
.market-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  font-family: var(--sans);
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
}
.market-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
  color: var(--charcoal-soft);
  vertical-align: middle;
}
.market-table td:first-child { font-family: var(--serif); font-size: 18px; color: var(--charcoal); }
.market-table td.price-cell { font-family: var(--serif); font-size: 19px; color: var(--charcoal); }
.market-table tr:last-child td { border-bottom: 0; }
.market-table tr:hover td { background: var(--cream-deep); }
.market-bar-wrap { display: flex; align-items: center; gap: 12px; }
.market-bar-bg { flex: 1; height: 4px; background: var(--cream-deep); border-radius: 2px; }
.market-bar-fill { height: 4px; border-radius: 2px; background: var(--gold); }
.market-note { font-size: 12px; color: var(--charcoal-soft); margin-top: 22px; letter-spacing: 0.04em; }

/* ---------- Home Finder CTA box ---------- */
.finder-cta {
  border: 1px solid var(--hairline);
  padding: clamp(40px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.finder-cta-btn { flex-shrink: 0; }

@media (max-width: 680px) {
  .finder-section { padding-top: 0; padding-bottom: 0; }
  .finder-cta {
    grid-template-columns: 1fr;
    padding: 34px 26px;
    gap: 26px;
    text-align: center;
    margin-top: 56px;
    margin-bottom: 56px;
  }
  .finder-cta-btn { justify-self: center; width: 100%; }
  .finder-cta-btn .btn { display: block; width: 100%; text-align: center; }
}

/* ---------- Market table: stacked cards on mobile ---------- */
@media (max-width: 640px) {
  .market-table { margin-top: 36px; font-size: 14px; }
  .market-table thead { display: none; }
  .market-table, .market-table tbody, .market-table tr, .market-table td {
    display: block;
    width: 100%;
  }
  .market-table tr {
    border: 1px solid var(--hairline);
    border-radius: 2px;
    padding: 20px 22px;
    margin-bottom: 14px;
  }
  .market-table tr:hover td { background: transparent; }
  .market-table td {
    border-bottom: none;
    padding: 9px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .market-table td:first-child {
    display: block;
    padding: 0 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--hairline);
    font-size: 19px;
  }
  .market-table td:not(:first-child)::before {
    content: attr(data-label);
    font-size: 9.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: var(--sans);
    flex-shrink: 0;
  }
  .market-table .market-bar-wrap { flex: 1; justify-content: flex-end; max-width: 62%; }
  .market-table .market-bar-bg { max-width: 90px; }
}

/* ============================================================
   MORTGAGE CALCULATOR
   ============================================================ */
.mort-wrap { max-width: 960px; margin: 0 auto; }
.mort-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--hairline);
  margin-bottom: 50px;
}
.mort-tab {
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 16px 30px;
  cursor: pointer;
  color: var(--charcoal-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.3s ease, border-color 0.3s ease;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: var(--sans);
}
.mort-tab:hover { color: var(--charcoal); }
.mort-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.mort-panel { display: none; }
.mort-panel.active { display: block; }

.mort-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .mort-layout { grid-template-columns: 1fr; } }

.mort-inputs .form-group { margin-bottom: 30px; }

.mort-result-card {
  border: 1px solid var(--hairline);
  padding: 36px 30px;
  background: var(--white);
  box-shadow: 0 12px 50px rgba(35,40,46,0.07);
  position: sticky;
  top: 100px;
}
.mort-monthly {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 62px);
  color: var(--charcoal);
  line-height: 1;
}
.mort-monthly-label { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 8px; margin-bottom: 30px; display: block; }
.mort-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.mort-row:last-of-type { border-bottom: 0; }
.mort-row-label { color: var(--charcoal-soft); }
.mort-row-val { font-family: var(--serif); color: var(--charcoal); }
.mort-total-row {
  background: var(--cream-deep);
  padding: 16px 14px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mort-total-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal-soft); }
.mort-total-val { font-family: var(--serif); font-size: 22px; color: var(--charcoal); }
.mort-disclaimer { font-size: 12px; color: var(--charcoal-soft); line-height: 1.75; margin-top: 22px; }

/* range input styling */
.range-wrap { position: relative; margin-top: 6px; }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--hairline);
  border: none;
  padding: 0;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 0;
}
.range-val {
  display: inline-block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--charcoal);
  margin-top: 8px;
}

/* ============================================================
   SAVE SEARCH / EMAIL ALERTS
   ============================================================ */
.save-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
  color: var(--charcoal-soft);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.save-search-btn:hover { border-color: var(--gold); color: var(--charcoal); }
.save-search-btn.saved { border-color: var(--gold); color: var(--gold); background: rgba(179,152,95,0.06); }
.save-search-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Save search modal */
.ss-modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(35,40,46,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.ss-modal-backdrop.open { opacity: 1; pointer-events: all; }
.ss-modal {
  background: var(--cream);
  padding: 50px 44px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(35,40,46,0.35);
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-lux);
}
.ss-modal-backdrop.open .ss-modal { transform: none; }
.ss-modal h3 { font-size: 28px; margin-bottom: 10px; }
.ss-modal p { font-size: 15px; color: var(--charcoal-soft); margin-bottom: 30px; }
.ss-modal-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--charcoal-soft); padding: 6px;
}
.ss-modal { position: relative; }
.ss-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.ss-success-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.ss-success h3 { font-size: 26px; }
.ss-success p { margin-top: 10px; }

/* ============================================================
   GOOGLE REVIEWS FEED
   ============================================================ */
.reviews-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.review-card {
  border: 1px solid var(--hairline-light);
  padding: 30px 26px;
  background: rgba(253,252,249,0.08);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}
.review-card:hover { background: rgba(253,252,249,0.14); }
.review-stars {
  display: flex; gap: 4px;
  margin-bottom: 16px;
}
.review-stars span { color: var(--gold); font-size: 15px; }
.review-card blockquote {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: rgba(247,243,234,0.92);
  margin-bottom: 20px;
}
.review-card cite {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.review-card .review-date {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(247,243,234,0.4);
  display: block;
  margin-top: 6px;
}
.reviews-footer {
  text-align: center;
  margin-top: 40px;
}
.reviews-footer a {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.reviews-footer a:hover { color: #fff; border-color: #fff; }
.reviews-overall {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}
.reviews-overall-score {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--cream);
  line-height: 1;
}
.reviews-overall-detail { text-align: left; }
.reviews-overall-stars { display: flex; gap: 4px; line-height: 1; margin-top: 16px; }
.reviews-overall-stars span { color: var(--gold); font-size: 20px; line-height: 1; }
.reviews-overall-count { font-size: 12px; letter-spacing: 0.14em; color: rgba(247,243,234,0.55); margin-top: 4px; line-height: 1; }

