/* =========================================================
   Aurelia Residences — landing page styles
   Palette: ivory / white / charcoal / champagne gold
   ========================================================= */
:root {
  --white: #FFFFFF;
  --ivory: #F7F4EE;
  --sand: #E9E2D4;
  --line: #E5DDCF;
  --line-soft: #EFE9DE;
  --ink: #1C1B19;
  --ink-2: #34312C;
  --body: #57524A;
  --muted: #6B655C;
  --gold: #B8935A;
  --gold-text: #876735;
  --gold-light: #E8D3A6;
  --error: #A3341F;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-variant-numeric: lining-nums; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-text); }
a:hover { color: #5E4722; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--body); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { max-width: 1320px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: var(--section-y) 0; background: var(--white); }
.section.alt { background: var(--ivory); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.split { display: flex; flex-wrap: wrap; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split.center { align-items: center; }
.narrow { max-width: 700px; }
.center-text { text-align: center; align-items: center; }
.muted { max-width: 380px; font-size: 15px; line-height: 1.7; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.6; }
.h3 { font-size: clamp(28px, 3vw, 40px); }
.h2-sm { font-size: clamp(30px, 3.6vw, 48px); }
.h2-lg { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow-line { display: flex; align-items: center; gap: 14px; }
.eyebrow-line::before { content: ""; width: 36px; height: 1px; background: var(--gold); flex: none; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .stack-sm { max-width: 680px; }
.stack-lg > .section-head { margin-bottom: 0; }

/* Images (illustrations now; swap for photos by changing the url) */
.img { position: relative; overflow: hidden; background-color: var(--sand); background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: .03em; cursor: pointer; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); color: var(--white); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #C8A46C; }
.btn-gold-line { min-height: 44px; padding: 0 18px; background: var(--white); color: #5E4722; border-color: var(--gold); font-size: 13px; white-space: nowrap; }
.btn-gold-line:hover { background: #FBF6EC; }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--gold-text); text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #ECE5D8; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.brand-loc { font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: #3A3631; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--gold-text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 2px; background: var(--white); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid #ECE5D8; background: var(--white); padding: 8px var(--pad-x) 18px; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid #F0EBE1; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--ivory); }
.hero-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(32px, 4vw, 64px); padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { color: var(--gold-text); }
.lede { max-width: 540px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px; padding-top: 22px; border-top: 1px solid #E2D9C8; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.price { margin-top: 6px; font-family: var(--serif); font-size: clamp(38px, 4vw, 50px); line-height: 1; }
.price span { font-size: 24px; color: var(--gold-text); }
.possession { margin-top: 6px; font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 200px; max-width: 260px; }
.hero-media { flex: 1 1 480px; min-width: 0; min-height: clamp(420px, 60vw, 640px); display: flex; align-items: flex-end; justify-content: flex-end; padding: clamp(14px, 2.5vw, 32px); }
.hero-media .form-slot { width: 100%; max-width: 420px; }

/* ---------- Lead form ---------- */
.lead-card { background: var(--white); border-top: 3px solid var(--gold); border-radius: 2px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 28px 60px -32px rgba(28,27,25,.38); }
.lead-card.flat { box-shadow: none; }
.lead-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.lead-head { display: flex; flex-direction: column; gap: 6px; padding-right: 28px; }
.lead-title { font-size: 30px; font-weight: 600; line-height: 1.1; }
.lead-sub { font-size: 14px; line-height: 1.55; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #2D2925; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #D4CAB5; border-radius: 2px; background: var(--white); font-family: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field select { padding: 0 12px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(184,147,90,.25); }
.phone-row { display: flex; align-items: stretch; min-height: 48px; border: 1px solid #D4CAB5; border-radius: 2px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.phone-row:focus-within { border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(184,147,90,.25); }
.phone-row .cc { display: flex; align-items: center; padding: 0 12px; border-right: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.phone-row input { flex: 1; min-width: 0; border: 0; box-shadow: none !important; }
.err { display: none; font-size: 12px; font-weight: 500; color: var(--error); }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid .phone-row { border-color: var(--error); }
.lead-form .btn { min-height: 52px; margin-top: 4px; font-size: 15px; }
.lead-form .btn[disabled] { opacity: .7; cursor: wait; }
.consent { font-size: 11px; line-height: 1.55; color: var(--muted); }
.safe { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lead-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.lead-done h2 { font-size: 32px; font-weight: 600; }
.lead-done p { font-size: 15px; line-height: 1.65; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 10px 12px; background: #FBEDEA; color: var(--error); font-size: 13px; font-weight: 600; line-height: 1.5; }

/* ---------- Highlights ---------- */
.highlights { background: var(--white); border-bottom: 1px solid #ECE5D8; }
.hl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 1px solid #ECE5D8; }
.hl-grid > div { padding: 28px 22px; border-right: 1px solid #ECE5D8; border-bottom: 1px solid #ECE5D8; display: flex; flex-direction: column; gap: 6px; }
.hl-grid b { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.05; }
.hl-grid span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Overview collage ---------- */
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collage .tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.collage .sq { aspect-ratio: 1 / 1; }

/* ---------- Residence cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(28,27,25,.35); }
.card-img { aspect-ratio: 4 / 3; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title h3 { font-size: 34px; font-weight: 600; }
.card-title span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.card-meta small { display: block; font-size: 12px; color: var(--muted); }
.card-meta b { display: block; margin-top: 4px; font-size: 17px; }
.card .btn { margin-top: auto; }

/* ---------- Price table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.price-table thead tr { background: var(--ivory); text-align: left; }
.price-table th { padding: 16px 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
.price-table td { padding: 16px 22px; border-top: 1px solid var(--line-soft); color: #3A3631; }
.price-table td b { color: var(--ink); }
.price-table .cfg { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.price-table .r { text-align: right; }

/* ---------- Pills / tabs ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; }
.pill { flex: none; min-height: 46px; padding: 0 22px; border: 1px solid #D6CCB9; border-radius: 2px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pills-scroll .pill { min-height: 44px; padding: 0 20px; border-radius: 999px; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 700; }

/* ---------- Floor plans ---------- */
.plans { align-items: center; }
.plans > .stack { flex: 1 1 360px; }
.plans > .plan-box { flex: 1 1 480px; }
.plan-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.plan-meta dt { font-size: 12px; color: var(--muted); }
.plan-meta dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.plan-box { position: relative; background: #FBFAF7; border: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.plan-blur { width: 100%; height: 100%; filter: blur(5px); opacity: .7; }
.plan-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; background: rgba(255,255,255,.4); }
.plan-name { font-family: var(--serif); font-size: 26px; }

/* ---------- Amenities ---------- */
.counter { font-family: var(--serif); font-size: 22px; color: var(--muted); }
.amen-panel { display: flex; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); }
.amen-img { flex: 1 1 520px; min-width: 0; min-height: clamp(240px, 52vw, 460px); transition: background-image .3s ease; }
.amen-body { flex: 1 1 380px; min-width: 0; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.amen-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; }
.amen-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.amen-list li::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.arrows { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.section-head .arrows { margin-top: 0; gap: 14px; }
.arrow { width: 48px; height: 48px; border: 1px solid #D6CCB9; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.arrow:hover { background: var(--ivory); }
.arrow-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.arrow-dark:hover { background: var(--ink-2); }

/* ---------- Location ---------- */
.loc-row { display: flex; flex-wrap: wrap; gap: 22px; }
.map { flex: 1 1 520px; min-width: 0; min-height: clamp(260px, 60vw, 460px); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-grid { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.loc-card { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.loc-card h3 { margin-bottom: 4px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.loc-card p { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #F0EBE1; font-size: 14px; line-height: 1.5; color: #3A3631; }
.loc-card b { color: var(--ink); white-space: nowrap; }

/* ---------- Gallery ---------- */
.gal-main { width: 100%; aspect-ratio: 16 / 9; min-height: 220px; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; background: linear-gradient(0deg, rgba(28,27,25,.55), rgba(28,27,25,0)); color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { min-height: 64px; width: 100%; padding: 0; border: 3px solid transparent; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.thumb[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }
.thumb:hover { opacity: 1; }

/* ---------- Developer ---------- */
.section.dev { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid #ECE5D8; }
.dev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px; }
.dev-stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 46px); color: var(--gold-text); line-height: 1.1; }
.dev-stats span { font-size: 13px; color: var(--body); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 960px; display: flex; flex-direction: column; gap: 36px; }
.faq { border-top: 1px solid #E2D9C8; }
.faq-item { border-bottom: 1px solid #E2D9C8; }
.faq-q { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; border: 0; background: none; text-align: left; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; color: var(--ink); cursor: pointer; }
.faq-q svg { flex: none; transition: transform .25s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { padding: 0 2px 24px; max-width: 780px; font-size: 16px; }

/* ---------- Contact ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #3A3631; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: ""; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23876735' stroke-width='2'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.contact-img { aspect-ratio: 16 / 7; margin-top: 8px; }
.split > .form-col { flex: 0 1 440px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #BDB7AC; padding: 56px 0 112px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-brand { font-family: var(--serif); font-size: 28px; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--gold-light); }
.footer-rera { font-size: 13px; color: #DCD6CB; }
.disclaimer { max-width: 1000px; font-size: 12px; line-height: 1.7; color: #BDB7AC; }
.copy { font-size: 12px; }

/* ---------- Floating + mobile bar ---------- */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #1F8F5F; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); transition: transform .2s; }
.fab:hover { transform: scale(1.06); }
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(28,27,25,.3); }
.mbar a, .mbar button { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.mbar button { flex: 1.4; background: var(--ink); color: var(--white); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(28,27,25,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; animation: fade .25s ease; }
.modal-box { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; width: 100%; max-width: 780px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-wrap: wrap; background: var(--white); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); animation: rise .3s ease; }
.modal-close { position: absolute; top: 6px; right: 6px; z-index: 3; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-side { flex: 1 1 280px; min-height: 420px; display: flex; align-items: flex-end; padding: 28px; }
.modal-perks { position: relative; background: rgba(255,255,255,.92); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #3A3631; }
.modal-perks b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.modal-form { flex: 1 1 380px; min-width: 0; }
body.modal-open { position: fixed; left: 0; right: 0; overflow: hidden; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Header states, skip link, touch ---------- */
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(28,27,25,.45); }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a[aria-current="true"] { color: var(--gold-text); border-bottom-color: var(--gold); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 70; padding: 12px 16px; background: var(--ink); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--white); }
a, button { -webkit-tap-highlight-color: rgba(184,147,90,.2); }
button, input, select { touch-action: manipulation; }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 36px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23876735' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.mobile-nav { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }

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

/* ---------- Breakpoints ---------- */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .mbar { display: flex; }
  .fab { display: none; } /* the bottom bar already has WhatsApp */
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-grid > div { padding: 20px 16px; }
  .hl-grid b { font-size: 27px; }
  .hero-ctas .btn { max-width: none; flex-basis: 100%; }
  .section-head { align-items: flex-start; }
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 92vh; max-height: 92dvh; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 19px; }
  .brand svg { width: 34px; height: 34px; }
  .lead-title { font-size: 26px; }
  .card-title h3 { font-size: 30px; }
}

/* ---------- Tablet layout (761–1040px) ---------- */
@media (min-width: 761px) and (max-width: 1040px) {
  /* Residence cards as rows, so three never leave one on its own */
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { flex-direction: row; }
  .card-img { flex: 0 0 44%; aspect-ratio: auto; min-height: 260px; }
  .card-body { justify-content: center; }
  .card .btn { margin-top: 0; }
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media { justify-content: center; }
  .split > .form-col { flex: 1 1 100%; max-width: 560px; margin: 0 auto; }
}

/* ---------- Phone layout ---------- */
@media (max-width: 760px) {
  /* Picture first, then the form overlapping its lower edge */
  .hero-media { min-height: 0; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 230px 12px 12px; background-position: center top; }
  .hero-media .form-slot { max-width: none; }

  /* Each price row becomes a card, so nothing scrolls sideways */
  .table-wrap { overflow: visible; border: 0; }
  .price-table { display: block; min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .price-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; padding: 16px; border: 1px solid var(--line); }
  .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; }
  .price-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-size: 17px; }
  .price-table .r { grid-column: 1 / -1; padding-top: 10px; }
  .price-table .r .btn { width: 100%; }
}
