/* MarBow Homes - design tokens & global styles
   Theme: warm ivory base, black punctuation sections, gold accents.
   Display: Tenor Sans (uppercase). Body: Instrument Sans. */
:root {
  --bg: #faf8f4;
  --bg-soft: #f3efe7;
  --bg-card: #ffffff;
  --dark: #0d0d0f;
  --dark-soft: #16161a;
  --ink: #17161a;
  --ink-soft: #55504a;
  --ink-faint: #8b857c;
  --cream: #f5f1e8;
  --cream-soft: #cfc9bd;
  --gold: #b08a34;
  --gold-bright: #c9a24b;
  --gold-dim: rgba(176, 138, 52, 0.35);
  --line: rgba(23, 22, 26, 0.12);
  --line-light: rgba(245, 241, 232, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 14px 40px rgba(23, 22, 26, 0.1);
  --font-display: "Tenor Sans", "Marcellus", Georgia, serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --cta-bar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; text-transform: uppercase; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; font-weight: 600;
}
.section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.section-lede { color: var(--ink-soft); max-width: 640px; font-size: 17.5px; }

/* Dark punctuation sections */
.section-dark { background: var(--dark); color: var(--cream); }
.section-dark .section-title { color: #fff; }
.section-dark .section-lede { color: var(--cream-soft); }
.section-dark .eyebrow { color: var(--gold-bright); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--dark); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 72px; width: auto; max-width: none; }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--cream-soft); transition: color 0.25s ease; white-space: nowrap;
}
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12px; letter-spacing: 0.1em; }
  .nav-cta, .nav-call { padding: 9px 16px; }
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-cta {
  padding: 10px 22px; border: 1px solid var(--gold-bright); border-radius: 999px;
  color: var(--gold-bright) !important; transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--gold-bright); color: var(--dark) !important; }
.nav-call {
  padding: 10px 22px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #141414 !important; transition: filter 0.25s ease;
}
.nav-call:hover { filter: brightness(1.08); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 55; background: rgba(13, 13, 15, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; color: var(--cream); }
.drawer a:hover { color: var(--gold-bright); }

/* ---------- Scroll-scrubbed entry video ---------- */
.scrub { height: 260vh; position: relative; background: var(--dark); }
.scrub-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
/* Cover-crop anchored toward the top so the roofline, trees, and sky stay
   in frame on wide windows; the extra crop comes off the lawn instead. */
.scrub-sticky video { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; display: block; }
.scrub-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; transition: opacity 0.45s ease; pointer-events: none; }
.scrub-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: rgba(245, 241, 232, 0.85); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; transition: opacity 0.5s ease; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scrub-hint::after { content: "\2193"; font-size: 18px; letter-spacing: 0; animation: hintbob 1.6s ease-in-out infinite; }
@keyframes hintbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 900px) { .scrub { display: none; } }
@media (prefers-reduced-motion: reduce) { .scrub { display: none; } }

/* Hero content overlaid on the scrub's final living-room frame */
.hero.scrub-hero {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: 90px 0 40px; opacity: 0; pointer-events: none; height: auto; min-height: 0;
  background:
    linear-gradient(100deg, rgba(13,13,15,0.95) 0%, rgba(13,13,15,0.82) 55%, rgba(13,13,15,0.9) 100%);
}
.hero.scrub-hero::before, .hero.scrub-hero::after { display: none; }
.hero.scrub-hero .hero-grid { width: 100%; }

/* ---------- Hero (Lennar-style split: copy left, media mosaic right) ---------- */
.hero { position: relative; background: var(--dark); color: var(--cream); padding: 150px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/client-living.jpg") center 35% / cover no-repeat;
  opacity: 0.28; filter: saturate(0.65) brightness(1);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,13,15,0.82) 0%, rgba(13,13,15,0.3) 55%, rgba(13,13,15,0.55) 100%),
    linear-gradient(180deg, rgba(13,13,15,0.25) 0%, rgba(13,13,15,0) 45%, rgba(13,13,15,0.8) 100%);
}
.hero .hero-grid { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); margin-bottom: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p { font-size: 18px; color: var(--cream-soft); max-width: 460px; margin-bottom: 34px; }
.hero-micro { font-size: 13.5px !important; color: var(--ink-faint) !important; margin-top: 14px; margin-bottom: 0 !important; letter-spacing: 0.04em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-mosaic {
  display: grid; gap: 14px;
  grid-template-columns: 1.05fr 0.95fr 1.7fr;
  grid-template-rows: 245px 245px;
  grid-template-areas:
    "a a b"
    "c d e";
}
.hero-tile { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--dark-soft); }
.hero-tile img, .hero-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tile-a { grid-area: a; }
.hero-tile-b { grid-area: b; }
.hero-tile-c { grid-area: c; }
.hero-tile-d { grid-area: d; }
.hero-tile-e { grid-area: e; }

/* Crossfading image stacks inside hero tiles */
.hero-fade img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-fade img.on { opacity: 1; }

/* Real logo sits on a pure black square; screen blending melts it into dark surfaces */
.nav-logo img, footer .foot-grid img { mix-blend-mode: screen; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; font-size: 13.5px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-body);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--dark); color: #fff; }
.btn-gold:hover { background: var(--gold); color: #fff; }
.btn-ghost { border-color: rgba(23, 22, 26, 0.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero .btn-gold, .section-dark .btn-gold { background: #fff; color: var(--dark); }
.hero .btn-gold:hover, .section-dark .btn-gold:hover { background: var(--gold-bright); color: var(--dark); }
.hero .btn-ghost, .section-dark .btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.hero .btn-ghost:hover, .section-dark .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Listing filter chips + carousel ---------- */
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.chip {
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-soft); font-family: var(--font-body);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }

.grid-empty {
  grid-column: 1 / -1; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 48px 36px; text-align: center;
}
.grid-empty h3 { font-size: 22px; margin-bottom: 10px; }
.grid-empty p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 22px; }

/* Recently Sold links to its own page, so it gets the gold treatment */
.chip-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent; color: #141414; font-weight: 600;
}
.chip-gold:hover { color: #141414; border-color: transparent; filter: brightness(1.08); }

/* Phones: compact chips so the five filters sit in two rows (3 + 2),
   not three rows with a stranded button */
@media (max-width: 600px) {
  .chip-row { gap: 8px; margin-top: 28px; }
  .chip { padding: 9px 11px; font-size: 12px; }
}

.carousel-shell { position: relative; margin-top: 32px; }
.carousel {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 4px 18px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { flex: 0 0 320px; scroll-snap-align: start; }
.car-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 18px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(23,22,26,0.15);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.car-arrow:hover { background: var(--dark); color: #fff; }
.car-prev { left: -14px; }
.car-next { right: -14px; }
.car-arrow[disabled] { opacity: 0.25; pointer-events: none; }

/* ---------- Listings grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-top: 48px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-name { font-family: var(--font-display); text-transform: uppercase; font-size: 21px; letter-spacing: 0.03em; }
.card-price { color: var(--ink); font-family: var(--font-display); font-size: 19px; }
.card-area { color: var(--ink-faint); font-size: 14px; }
.card-specs { display: flex; gap: 18px; color: var(--ink-soft); font-size: 14.5px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.card-specs b { color: var(--ink); font-weight: 600; }
.card-link {
  margin-top: auto; padding-top: 14px;
  color: var(--gold); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.card-link::after { content: "→"; transition: transform 0.25s ease; }
.card:hover .card-link::after { transform: translateX(5px); }

/* Card action row: schedule-a-tour pill + round floor plan button */
.card-go { display: block; }
.card-actions { display: flex; gap: 10px; padding: 0 24px 18px; align-items: center; }
.card-tour {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.card-tour:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.card-plan {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  flex: 0 0 36px; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.card-plan svg { width: 17px; height: 17px; }
.card-plan:hover { border-color: var(--gold); color: var(--gold); }

/* Selected-home highlight on the tour form */
.tour-home {
  display: flex; gap: 18px; align-items: center; margin-top: 36px;
  background: var(--bg-card); border: 1.5px solid var(--gold); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.tour-home img { width: 150px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.tour-home .th-price { font-family: var(--font-display); font-size: 21px; }
.tour-home .th-addr { color: var(--ink-soft); font-size: 14.5px; }
.tour-home .th-tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 4px; }

/* ---------- Property detail ---------- */
.detail-hero { position: relative; height: 58vh; min-height: 380px; overflow: hidden; background: var(--dark); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,15,0.42), rgba(13,13,15,0.06) 45%, rgba(13,13,15,0.55)); }
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 48px 0 34px; }
.detail-head h1 { font-size: clamp(30px, 4.5vw, 46px); }
.detail-price { font-size: 26px; color: var(--ink); font-family: var(--font-display); }
.detail-specs { display: flex; gap: 26px; flex-wrap: wrap; color: var(--ink-faint); font-size: 15px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.detail-specs b { color: var(--ink); font-size: 19px; font-weight: 400; display: block; font-family: var(--font-display); }

.media-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.media-tab {
  padding: 11px 24px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); font-family: var(--font-body); font-size: 12.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.media-tab.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.media-tab:not(.active):hover { border-color: var(--gold); color: var(--gold); }
.media-stage {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
}
.media-stage img, .media-stage iframe, .media-stage video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.media-stage .plan-img { object-fit: contain; background: #ffffff; }
.media-thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.media-thumbs img {
  width: 110px; height: 70px; object-fit: cover; border-radius: var(--radius-sm);
  cursor: pointer; opacity: 0.6; border: 2px solid transparent; transition: opacity 0.25s ease, border-color 0.25s ease;
}
.media-thumbs img.active, .media-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.media-note { color: var(--ink-faint); font-size: 14px; margin-top: 12px; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.detail-desc h2 { font-size: 25px; margin-bottom: 16px; }
.detail-desc p { color: var(--ink-soft); margin-bottom: 16px; }
.detail-panel {
  background: var(--dark); color: var(--cream); border-radius: var(--radius);
  padding: 30px; position: sticky; top: 96px;
}
.detail-panel h3 { font-size: 20px; margin-bottom: 6px; color: #fff; }
.detail-panel .sub { color: var(--cream-soft); font-size: 14.5px; margin-bottom: 20px; }
.detail-panel .btn { width: 100%; margin-bottom: 12px; }
.detail-panel .btn-gold { background: #fff; color: var(--dark); }
.detail-panel .btn-gold:hover { background: var(--gold-bright); }
.detail-panel .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.detail-panel .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Incentive band ---------- */
.incentive {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim); border-radius: var(--radius);
  padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.incentive h3 { font-size: 23px; margin-bottom: 8px; }
.incentive p { color: var(--ink-soft); max-width: 560px; }

/* ---------- About / story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 36px; }
.stat b { display: block; font-family: var(--font-display); font-size: 29px; color: var(--ink); font-weight: 400; white-space: nowrap; }
.stat span { color: var(--ink-faint); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.section-dark .stat b { color: #fff; }
.section-dark .stat span { color: var(--cream-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 48px; }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step .num { font-family: var(--font-display); font-size: 38px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.quote { background: var(--dark-soft); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 30px; }
.quote .stars { color: var(--gold-bright); letter-spacing: 4px; margin-bottom: 14px; }
.quote p { color: var(--cream-soft); font-size: 16px; margin-bottom: 16px; }
.quote cite { color: var(--ink-faint); font-style: normal; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Forms ---------- */
.form-shell { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 640px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); margin: 18px 0 8px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; transition: border-color 0.25s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.consent input { margin-top: 4px; accent-color: var(--gold); }
.form-fine { font-size: 13px; color: var(--ink-faint); margin-top: 16px; }
.form-fine a { color: var(--gold); text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success h3 { font-size: 24px; margin-bottom: 12px; color: var(--gold); }
.form-success p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: var(--cream); padding: 72px 0 120px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 72px; margin-bottom: 18px; }
.foot-grid p { color: var(--cream-soft); font-size: 14.5px; max-width: 320px; }
.foot-grid h4 { font-family: var(--font-display); font-weight: 400; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 16px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid li a { color: var(--cream-soft); font-size: 15px; }
.foot-grid li a:hover { color: var(--gold-bright); }
.foot-social { display: flex; gap: 12px; margin-top: 22px; }
.foot-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: center; color: var(--cream-soft);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.foot-social a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.foot-social svg { width: 18px; height: 18px; display: block; }
/* Pages with the compact footer center the icons above the legal line */
.foot-social-center { justify-content: center; margin-top: 0; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light); color: rgba(245,241,232,0.55); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-legal a { color: inherit; }

/* ---------- Mobile CTA bar ---------- */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; height: var(--cta-bar-h);
  display: none; grid-template-columns: repeat(4, 1fr);
  background: rgba(13, 13, 15, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201, 162, 75, 0.4);
}
.cta-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; letter-spacing: 0.06em; color: var(--cream-soft);
}
.cta-bar a svg { width: 20px; height: 20px; stroke: var(--gold-bright); }
.cta-bar a:active { background: rgba(201,162,75,0.14); }

/* ---------- Property page: info rail left, media right ---------- */
.prop-layout { display: grid; grid-template-columns: 350px 1fr; gap: 48px; align-items: start; }
.prop-info { position: sticky; top: 100px; }
.prop-info h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 6px 0 10px; }
.prop-info .detail-price { font-size: 24px; margin-bottom: 20px; }
.prop-info .detail-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
  padding: 20px 0; margin-bottom: 24px;
}
.prop-info .detail-specs b { font-size: 18px; }
.prop-ctas { display: flex; flex-direction: column; gap: 12px; }
.prop-ctas .btn { width: 100%; }
.prop-reach { margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); }
.prop-reach a { color: var(--gold); text-decoration: underline; }

@media (max-width: 900px) {
  .prop-layout { grid-template-columns: 1fr; gap: 32px; }
  .prop-info { position: static; }
  .prop-media { order: -1; }
}

/* ---------- Lead modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: flex-start; justify-content: center; overflow-y: auto;
  background: rgba(13, 13, 15, 0.72); padding: 60px 20px;
}
.modal.open { display: flex; }
.modal-card {
  position: relative; background: var(--bg); border-radius: var(--radius);
  padding: 40px; max-width: 560px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0;
  font-size: 30px; line-height: 1; color: var(--ink-faint); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .split, .detail-grid, .foot-grid { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .cta-bar { display: grid; }
  body { padding-bottom: var(--cta-bar-h); }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 118px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-mosaic { grid-template-rows: 150px 150px; gap: 10px; }
  .section-title { font-size: 22px; }
  .nav-logo img { height: 53px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat b { font-size: 21px; }
  .stat span { font-size: 9.5px; letter-spacing: 0.06em; }
}

/* ---------- Sold portfolio ---------- */
.ribbon-sold {
  position: absolute; top: 22px; left: -38px; width: 150px; text-align: center;
  transform: rotate(-45deg); background: var(--gold); color: #141414;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 7px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.card-sold .card-media { position: relative; }
.card-sold .card-media img { filter: saturate(0.8); }
.card-sold:hover { transform: translateY(-4px); }

/* Under-contract banner on live listing cards */
.card .card-media { position: relative; overflow: hidden; }
.ribbon-contract {
  position: absolute; top: 28px; left: -50px; width: 200px; text-align: center;
  transform: rotate(-45deg); background: var(--gold); color: #141414;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* Coming-soon cards: the home stays veiled until it is real inventory */
.card-soon .card-media img { filter: blur(16px) saturate(0.5) brightness(0.72); transform: scale(1.15); }
.soon-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; text-align: center;
  padding: 0 20px; background: rgba(13, 13, 15, 0.32);
}
.soon-title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 21px; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.soon-sub {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245, 241, 232, 0.9);
}
.card-soon .card-body a { color: var(--gold); text-decoration: underline; }
.media-stage .ribbon-sold { top: 30px; left: -34px; z-index: 5; }
.media-stage { position: relative; }
