:root {
  --navy: #15243c;
  --navy-deep: #0e1a2c;
  --gold: #c2a36b;
  --gold-dark: #a8874f;
  --cream: #f7f3ec;
  --cream-alt: #efe8dc;
  --ink: #1d2433;
  --muted: #5d6474;
  --line: rgba(21, 36, 60, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.eyebrow { font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font: 500 0.82rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05em 1.8em; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color 0.2s, transform 0.2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #cdb17e; }
.btn--gold:active { transform: translateY(1px); }
.btn--lg { padding: 1.25em 1.2em; font-size: 0.8rem; letter-spacing: 0.08em; }
@media (min-width: 800px) { .btn--lg { padding: 1.25em 2em; font-size: 0.86rem; letter-spacing: 0.14em; } }
.btn--sm { padding: 0.75em 1.1em; font-size: 0.7rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.3em; height: 1.3em; }
.link-light { color: #fff; opacity: 0.85; font-size: 0.92rem; text-underline-offset: 4px; }

/* ===== SHORT VERSION ===== */
.tour-hero { position: relative; min-height: min(100svh, 1000px); color: #fff; display: flex; background: var(--navy); }
.tour-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,44,.55) 0%, rgba(14,26,44,.25) 35%, rgba(14,26,44,.88) 100%); }
.tour-hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 24px; padding-bottom: 110px; }
.tour-hero .eyebrow { color: var(--gold); }
.tour-hero__title { color: #fff; font-size: clamp(2.6rem, 10.5vw, 5.4rem); max-width: 14ch; margin-bottom: 0.4em; }
.tour-hero__cred { font-size: 1rem; opacity: 0.9; max-width: 40ch; margin-bottom: 1.6rem; }
.tour-hero .btn { width: 100%; max-width: 420px; }
.tour-hero__delivery { margin-top: 1rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

.tour-facts { padding: 56px 0; }

.tour-contact { padding: 24px 0 64px; text-align: center; }
.tour-contact__inner { max-width: 560px; }
.advisor-thumb { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 2px solid var(--gold); }
.tour-contact h2 { font-size: clamp(2rem, 7vw, 2.8rem); }
.tour-contact p { color: var(--muted); }
.tour-contact__links a { color: var(--navy); font-weight: 500; text-underline-offset: 4px; line-height: 2; }
.dev-logo { max-width: 180px; max-height: 72px; width: auto; margin: 32px auto 0; opacity: 0.9; }
.dev-logo--center { margin-top: 48px; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 84px 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(14, 26, 44, 0.94); backdrop-filter: blur(8px);
}
.sticky-cta .btn { padding: 1.1em 1em; font-size: 0.74rem; letter-spacing: 0.1em; }
.page-tour .footer { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
.page-tour .wa-float { bottom: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }

/* ===== LONG VERSION ===== */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: linear-gradient(180deg, rgba(14,26,44,.7), rgba(14,26,44,0)); transition: background-color .3s; }
.topbar.is-scrolled, .topbar--solid { background: var(--navy); }
.topbar--solid { position: sticky; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.hero { position: relative; min-height: min(92svh, 1000px); display: flex; align-items: flex-end; color: #fff; background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,44,.3) 0%, rgba(14,26,44,.15) 40%, rgba(14,26,44,.85) 100%); }
.hero__content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; }
.hero .eyebrow { color: var(--gold); }
.hero__title { color: #fff; font-size: clamp(3.2rem, 13vw, 7.5rem); font-weight: 400; margin-bottom: 0.25em; }
.hero__sub { font-size: 1.1rem; max-width: 46ch; opacity: 0.92; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

.strip { background: var(--navy); color: #fff; }
.strip__grid { display: grid; grid-template-columns: 1fr 1fr; }
.strip__grid > div { padding: 26px 12px 26px 0; border-top: 1px solid rgba(194,163,107,.25); }
.strip__label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4em; }
.strip__value { font: 500 1.55rem/1.15 var(--serif); margin: 0; }

.section { padding: 80px 0; }
.section--alt { background: var(--cream-alt); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section--navy h2 { color: #fff; }
.section--navy .eyebrow { color: var(--gold); }
.section--navy .lead { color: rgba(255,255,255,.75); }
.section__head { margin-bottom: 40px; }

.split { display: grid; gap: 40px; }
.points { display: grid; gap: 28px; margin-top: 36px; }
.point { border-top: 1px solid var(--line); padding-top: 20px; }
.point h3 { margin-bottom: 0.3em; }
.point p { color: var(--muted); margin: 0; }


.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.amenities ul { list-style: none; margin: 0; padding: 0; }
.amenities li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }

.stats { display: grid; gap: 1px; background: rgba(194,163,107,.25); margin: 36px 0 24px; }
.stats > div { background: var(--navy); padding: 20px 0; }
.stats__value { font: 500 2.2rem/1.05 var(--serif); color: var(--gold); margin-bottom: 0.25em; }
.stats__label { margin: 0; font-size: 0.92rem; }
.disclaimer { font-size: 0.8rem; color: rgba(255,255,255,.6); font-style: italic; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 500 1.35rem/1.25 var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--gold-dark); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

.advisor { display: grid; gap: 36px; align-items: center; }
.advisor__links { display: flex; flex-direction: column; gap: 6px; margin-top: 1.5rem; }
.advisor__links a { color: var(--navy); font-weight: 500; text-underline-offset: 4px; }

.form-card { background: #fff; padding: 28px 20px; border: 1px solid var(--line); }

/* ===== FORM ===== */
.lead-form { display: grid; gap: 18px; }
.row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--navy); padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 300; color: var(--muted); }
.lead-form input:not([type=radio]):not([type=checkbox]), .lead-form select, .lead-form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid rgba(21,36,60,.25); border-radius: var(--radius);
  padding: 12px 14px; appearance: none; -webkit-appearance: none;
}
.lead-form select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,163,107,.25); }
.lead-form .is-invalid { border-color: #b3261e !important; }
.phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 12px 14px; border: 1px solid rgba(21,36,60,.25); border-radius: var(--radius); font-size: 0.92rem; background: #fff; transition: border-color .2s, background-color .2s; }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field--timeline.is-invalid .choice span { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #b3261e; font-size: 0.88rem; margin: 0; }
.form-note { font-size: 0.75rem; color: var(--muted); margin: 0; text-align: center; }
.lead-form button[disabled] { opacity: .6; cursor: progress; }

/* Modal */
.modal { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--cream); color: var(--ink); }
.modal::backdrop { background: rgba(14,26,44,.7); }
.modal__inner { position: relative; padding: 56px 20px 32px; max-width: 560px; margin: 0 auto; }
.modal h2 { font-size: clamp(2rem, 7vw, 2.6rem); }
.modal__close { position: absolute; top: 12px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; padding: 10px; }
body.modal-open { overflow: hidden; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 56px 0 40px; font-size: 0.88rem; }
.footer__line { color: var(--gold); letter-spacing: 0.06em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.footer__links a { text-underline-offset: 4px; }
.footer__legal { font-size: 0.74rem; color: rgba(255,255,255,.45); max-width: 80ch; margin: 24px 0 0; }

/* Thank you */
.thanks { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: var(--navy); }
.thanks__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.thanks__card { position: relative; background: var(--cream); padding: 48px 24px; max-width: 520px; text-align: center; }
.thanks__card h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
.thanks__card p { color: var(--muted); }
.thanks__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 0.5rem; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.thanks__back { margin-top: 1.5rem; font-size: 0.9rem; }

/* Plain pages */
.prose h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }
.index-title { font-size: clamp(2.6rem, 9vw, 4.2rem); }
.project-list { list-style: none; padding: 0; margin: 32px 0 0; }
.project-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.project-list span { font: 500 1.8rem/1.1 var(--serif); color: var(--navy); }
.project-list small { color: var(--muted); }

/* ===== Larger screens ===== */
@media (min-width: 640px) {
  .row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 44px; }
}

@media (min-width: 800px) {
  .wrap { padding: 0 40px; }
  .section { padding: 120px 0; }
  .tour-hero__content { padding-top: 36px; padding-bottom: 140px; }
  .tour-hero .btn { width: auto; }
  .tour-facts { padding: 96px 0; }
  .strip__grid { grid-template-columns: repeat(4, 1fr); }
  .strip__grid > div { border-top: 0; border-left: 1px solid rgba(194,163,107,.25); padding: 36px 24px; }
  .strip__grid > div:first-child { border-left: 0; padding-left: 0; }
  .hero__actions { flex-direction: row; align-items: center; gap: 2rem; }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
  .points { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .amenities { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); background: none; gap: 24px; }
  .stats > div { border-top: 1px solid rgba(194,163,107,.35); }
  .advisor { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .choice span { height: 100%; }
  .sticky-cta { left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); width: auto; padding: 0; background: none; backdrop-filter: none; }
  .sticky-cta .btn { padding: 1.15em 2.4em; font-size: 0.8rem; box-shadow: 0 12px 32px rgba(14,26,44,.35); white-space: nowrap; }
  .page-tour .wa-float { bottom: 24px; right: 24px; width: 58px; height: 58px; }
  .modal { width: min(640px, calc(100% - 48px)); height: auto; max-height: calc(100% - 48px); margin: auto; }
  .modal__inner { padding: 56px 48px 40px; }
}
.modal h2:focus { outline: none; }

/* ===== Brand, photos and galleries ===== */
.logo { display: block; width: auto; max-width: none; height: 44px; align-self: flex-start; }
.topbar__brand { display: block; }
.topbar__brand .logo { height: 40px; }
.tour-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-hero__logo { height: 52px; margin-bottom: 40px; }
.footer__logo { height: 64px; margin-bottom: 16px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; margin-top: 36px; }
.logo-row .logo--dark { height: 64px; }
.logo-row .dev-logo { margin: 0; }
.advisor-thumb { width: 120px; height: 120px; }

/* Brokerage (brand.json) */
.brokerage-logo { width: auto; height: 28px; flex: none; }
.advisor__title { display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem; }
.advisor__title p { margin: 0; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); }
.footer__affiliation { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.footer__affiliation .brokerage-logo { height: 24px; }

/* Investment: two photos */
.duo { display: grid; gap: 12px; }
.duo__img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Galleries: swipeable on phones, grids on desktop */
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 82%; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.gallery--amenities { margin-bottom: 48px; }
.gallery--amenities img { aspect-ratio: 1; }

/* Rental pool: photo background */
.section--bg { position: relative; overflow: hidden; }
.section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section--bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(21,36,60,.8), rgba(14,26,44,.88)); }
.section--bg > .wrap { position: relative; z-index: 2; }
.rental { max-width: 820px; }

/* Advisor: circle on phones, wide shot with the office wall on desktop */
.advisor__photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }

/* WhatsApp button uses the brand icon */
.wa-float { background: #fff; }
.wa-float img { width: 70%; height: auto; }

@media (min-width: 800px) {
  .topbar__brand .logo { height: 48px; }
  .tour-hero__logo { height: 64px; }
  .duo { grid-template-columns: repeat(6, 1fr); }
  .duo__img--1 { grid-column: 1 / 7; }
  .duo__img--2 { grid-column: 2 / 7; aspect-ratio: 16 / 9; margin-top: -60px; border: 8px solid var(--cream); }
  .gallery { display: grid; overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .gallery--residences { grid-template-columns: repeat(6, 1fr); }
  .gallery--residences figure:nth-child(-n+2) { grid-column: span 3; }
  .gallery--residences figure:nth-child(-n+2) img { aspect-ratio: 3 / 2; }
  .gallery--residences figure:nth-child(n+3) { grid-column: span 2; }
  .gallery--amenities { grid-template-columns: repeat(4, 1fr); }
  .gallery--amenities figure:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .gallery--amenities figure:first-child img { flex: 1; aspect-ratio: auto; min-height: 0; }
  .gallery--amenities figure:nth-last-child(-n+2) { grid-column: span 2; }
  .gallery--amenities figure:nth-last-child(-n+2) img { aspect-ratio: 2 / 1; }
  .advisor { grid-template-columns: 1.1fr 0.9fr; }
  .advisor__photo { width: 100%; height: auto; border-radius: 0; border: 0; aspect-ratio: 1000 / 960; }
}
.hero .eyebrow, .tour-hero .eyebrow, .hero__sub, .tour-hero__cred { text-shadow: 0 1px 12px rgba(14,26,44,.8); }
.hero::after { background: linear-gradient(180deg, rgba(14,26,44,.35) 0%, rgba(14,26,44,.15) 30%, rgba(14,26,44,.7) 62%, rgba(14,26,44,.92) 100%); }
.tour-hero::after { background: linear-gradient(180deg, rgba(14,26,44,.55) 0%, rgba(14,26,44,.2) 28%, rgba(14,26,44,.72) 55%, rgba(14,26,44,.92) 100%); }

/* Sticky CTA appears after the hero (main.js toggles .is-hidden) */
.sticky-cta { transition: transform .35s ease, opacity .35s ease; }
.sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.gallery--amenities figure { min-width: 0; }
@media (min-width: 800px) {
  .gallery--amenities { margin-bottom: 72px; }
  .sticky-cta.is-hidden { transform: translate(-50%, 120%); }
  .page-tour .footer { padding-bottom: 120px; }
  .advisor { grid-template-columns: 0.8fr 1.2fr; }
  .advisor__photo { aspect-ratio: 4 / 5; max-width: 460px; }
}
.hero .eyebrow, .tour-hero .eyebrow { color: #e3cb98; }
.turnstile { min-height: 65px; }

/* Tour facts: gold dividers between cells, no outer box. Stacked on phones, 2x2 from 900px. */
:root { --gold-line: rgba(194, 163, 107, 0.4); }
.tour-facts .facts-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1040px; margin: 0 auto; }
.fact { min-width: 0; padding: 36px 4px; }
.fact + .fact { border-top: 1px solid var(--gold-line); }
.fact__label { font: 500 0.7rem/1.3 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 16px; }
.fact__value { font: 500 clamp(2.6rem, 11vw, 3.4rem)/1 var(--serif); color: var(--navy); margin: 0 0 16px; white-space: nowrap; overflow-wrap: normal; }
.fact__text { font-size: 0.92rem; line-height: 1.6; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .tour-facts .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 52px 44px; }
  .fact + .fact { border-top: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--gold-line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--gold-line); }
  .fact__value { font-size: clamp(3rem, 4.4vw, 3.8rem); }
}
@media (max-width: 359px) { .fact__text { font-size: 0.84rem; } }
@media (max-width: 339px) { .fact__text { font-size: 0.8rem; } }
