/* Berkeley Residency
   Layout concept: a tower in the canopy. Dark forest frames (hero, amenities,
   contact, footer) hold light, airy content bands between them. Real unit
   codes and square metres carry the residences section like a spec sheet.
   Single committed look: brand colours are fixed, not theme-switched. */
:root {
  --forest: #0E1F17;      /* deep canopy: hero, amenities, footer */
  --forest-2: #183224;    /* raised surfaces on forest */
  --sage: #9CCF9A;        /* logo green: accents on dark */
  --sage-deep: #2F5E3D;   /* sage for text and buttons on light */
  --mist: #EEF2EC;        /* light ground, green-biased */
  --paper: #FAFBF8;       /* cards on light */
  --ink: #16241C;         /* body text on light */
  --ink-soft: #4E5E54;    /* secondary text on light */
  --line: #D5DDD4;        /* hairlines on light */
  --on-dark: #E9F0E8;     /* text on forest */
  --on-dark-soft: #A9BBAD;
  --line-dark: rgba(156, 207, 154, .22);
  --error: #B3261E;

  --f-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --radius: 4px;
  --wrap: 1200px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(var(--s-8), 9vw, var(--s-9)); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 var(--s-3);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-deep);
}
.eyebrow-light { color: var(--sage); }
.h2, .h3, .hero-title, .h4 { font-family: var(--f-display); font-weight: 300; text-wrap: balance; margin: 0; }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.01em; }
.h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; }
.h4 { font-size: 1.4rem; line-height: 1.2; }
.section-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-7); max-width: 40rem; }
.section-sub { margin: var(--s-2) 0 0; color: var(--ink-soft); }
.text-link { font-weight: 600; color: var(--sage-deep); text-underline-offset: 4px; }
.disclaimer { margin: var(--s-5) 0 0; font-size: .85rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: .92rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-icon { animation: nudge .6s ease; }
.btn-explore { justify-self: start; margin-top: var(--s-2); }
.btn:hover .btn-arrow { animation: nudge-x .6s ease; }
@keyframes nudge-x { 40% { transform: translateX(4px); } }
@keyframes nudge { 40% { transform: translateY(3px); } }
.btn-sage { background: var(--sage); color: var(--forest); }
.btn-sage:hover { background: #B6DFB3; }
.btn-ghost { border-color: rgba(233, 240, 232, .55); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { background: rgba(233, 240, 232, .1); border-color: var(--on-dark); }
.btn-forest { background: var(--forest); color: var(--on-dark); }
.btn-forest:hover { background: var(--sage-deep); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--on-dark); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid { background: rgba(14, 31, 23, .96); box-shadow: 0 1px 0 var(--line-dark); backdrop-filter: blur(8px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand img { width: 84px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.8rem); }
.nav a:not(.btn) {
  color: var(--on-dark); text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--sage); }
.nav-cta { min-height: 42px; padding: 0 1.1rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--on-dark); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(600px, 92vh, 880px);
  display: flex; align-items: flex-end;
  background: var(--forest) url("../img/hero-poster.jpg") center / cover no-repeat;
  color: var(--on-dark);
  overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,31,23,.72) 0%, rgba(14,31,23,.15) 28%, rgba(14,31,23,.2) 50%, rgba(14,31,23,.9) 100%),
    linear-gradient(90deg, rgba(14,31,23,.55) 0%, rgba(14,31,23,0) 60%);
}
.hero-content { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: clamp(var(--s-7), 7vw, var(--s-8)); }
.hero-title { font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1; letter-spacing: -.01em; font-weight: 400; text-transform: uppercase; }
.hero-lede { max-width: 34rem; margin: var(--s-5) 0 0; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--on-dark); opacity: .9; }
.hero-price { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-price .label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.hero-price .price { font-weight: 500; font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.video-toggle {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(var(--s-5), 4vw, var(--s-7));
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(233,240,232,.4); background: rgba(14,31,23,.35); cursor: pointer;
  display: grid; place-items: center;
}
.video-toggle svg { width: 16px; height: 16px; fill: var(--on-dark); }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }

/* ---------- facts ---------- */
.facts { background: var(--forest); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.facts-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { display: grid; gap: 2px; padding: var(--s-5) var(--s-4); border-left: 1px solid var(--line-dark); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-k { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.fact-v { font-family: var(--f-display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; }
.intro-text { display: grid; gap: var(--s-4); }
.intro-text p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.intro-text .h2 { margin-bottom: var(--s-2); }
.intro-figure { margin: 0; }
.intro-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.intro-figure figcaption { margin-top: var(--s-2); font-size: .82rem; color: var(--ink-soft); }

/* ---------- residences ---------- */
.residences { background: var(--paper); border-block: 1px solid var(--line); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--forest); border-radius: var(--radius); margin-bottom: var(--s-6); max-width: 100%; }
.tab {
  display: grid; gap: 0; text-align: left;
  padding: .7rem 1.4rem; border: 0; background: transparent; cursor: pointer;
  font-weight: 600; font-size: .98rem; color: var(--forest);
}
.tab + .tab { border-left: 1px solid var(--forest); }
.tab-count { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.tab.is-active { background: var(--forest); color: var(--on-dark); }
.tab.is-active .tab-count { color: var(--sage); }

.plans { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(var(--s-5), 3vw, var(--s-7)); align-items: start; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.plan-item {
  width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px var(--s-4);
  padding: var(--s-4) var(--s-3); border: 0; border-bottom: 1px solid var(--line); background: transparent;
  cursor: pointer; text-align: left; transition: background-color .2s;
}
.plan-item:hover { background: var(--mist); }
.plan-item.is-active { background: var(--mist); box-shadow: inset 3px 0 0 var(--sage-deep); }
.pi-size { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; grid-row: span 2; min-width: 4.2ch; font-variant-numeric: lining-nums tabular-nums; }
.pi-size small { font-family: var(--f-body); font-size: .75rem; margin-left: 2px; }
.pi-title { font-weight: 600; font-size: .95rem; }
.pi-units { font-size: .8rem; color: var(--ink-soft); letter-spacing: .04em; }

.plan-viewer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(var(--s-5), 3vw, var(--s-7)); align-items: start; }
.plan-image {
  position: relative; display: block; width: 100%; padding: var(--s-5);
  background: #EFE9E1; border: 1px solid var(--line); border-radius: var(--radius); cursor: zoom-in;
  aspect-ratio: 4 / 5;
}
.plan-image img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.plan-image.is-loading img { opacity: .25; }
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 4px 8px; border-radius: 2px;
}
.plan-info { display: grid; gap: var(--s-4); }
.plan-type { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); }
.plan-size { margin: 0; font-family: var(--f-display); font-size: clamp(3.4rem, 6vw, 4.8rem); line-height: .9; font-variant-numeric: lining-nums; }
.plan-size .unit { font-size: .38em; margin-left: .15em; }
.plan-specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.plan-specs div { display: flex; justify-content: space-between; gap: var(--s-4); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.plan-specs dt { color: var(--ink-soft); font-size: .92rem; }
.plan-specs dd { margin: 0; font-weight: 600; font-size: .92rem; text-align: right; }
.plan-note { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.plan-note:empty { display: none; }
.plan-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.typical { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(var(--s-5), 4vw, var(--s-7)); align-items: center; }
.typical-text p { color: var(--ink-soft); margin: var(--s-3) 0 0; }
.typical-img { display: block; padding: 0; border: 1px solid var(--line); background: #F7F4EC; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.typical-img img { width: 100%; }

.badge-sold {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: #F3D9D6; color: #8A2A20; font-family: var(--f-body); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.plan-item.is-sold .pi-size, .plan-item.is-sold .pi-units { opacity: .5; }
.plan-item.is-sold .pi-size { text-decoration: line-through; text-decoration-thickness: 1px; }
.plan-image.is-typical { background: #F7F4EC; }

/* ---------- gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 280px); gap: var(--s-3); }
.tile { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--line); border-radius: var(--radius); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-wide { grid-column: span 2; }
.mosaic .tile:nth-child(1) { grid-row: span 2; }

/* ---------- amenities ---------- */
.amenities { background: var(--forest); color: var(--on-dark); }
.amenities .h2 { color: var(--on-dark); }
.amenity-feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-3); }
.amenity-hero, .amenity-card { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; border-radius: var(--radius); background: var(--forest-2); }
.amenity-hero img, .amenity-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.amenity-hero:hover img, .amenity-card:hover img { transform: scale(1.03); }
.amenity-hero { min-height: 420px; }
.amenity-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--s-3); }
.amenity-card { min-height: 200px; }
.amenity-label {
  position: absolute; left: 0; bottom: 0; right: 0; text-align: left;
  padding: var(--s-6) var(--s-4) var(--s-4);
  background: linear-gradient(180deg, rgba(14,31,23,0), rgba(14,31,23,.85));
  font-family: var(--f-display); font-size: 1.35rem; color: var(--on-dark);
}
.amenity-list {
  list-style: none; margin: var(--s-7) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line-dark);
}
.amenity-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-2); border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.amenity-list svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.amenity-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
.amenity-row .amenity-card { min-height: 0; aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .amenity-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- location ---------- */
.location-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; }
.location-media { display: grid; gap: var(--s-3); }
.location-figure { margin: 0; }
.location-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.map-box { position: relative; aspect-ratio: 16 / 7; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line) 27px 28px),
    var(--paper);
  font-weight: 600; color: var(--forest);
}
.map-load svg { width: 22px; height: 22px; fill: none; stroke: var(--sage-deep); stroke-width: 1.8; }
.location-text { display: grid; gap: var(--s-4); justify-items: start; }
.location-text p { margin: 0; color: var(--ink-soft); }
.address { font-style: normal; padding-left: var(--s-4); border-left: 2px solid var(--sage); line-height: 1.6; }
.location-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- how to buy + brochure ---------- */
.buy { background: var(--paper); border-block: 1px solid var(--line); }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s-6), 6vw, var(--s-9)); align-items: start; }
.steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--sage-deep); }
.step-k { font-weight: 600; }
.steps p { margin: 2px 0 0; color: var(--ink-soft); }

.form-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(var(--s-5), 4vw, var(--s-7)); }
.form-sub { margin: var(--s-2) 0 var(--s-5); color: var(--ink-soft); }
.lead-form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field label, .field legend { font-size: .85rem; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #B9C5BA; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage-deep); outline-offset: 0; border-color: var(--sage-deep); }
.field .is-invalid, .field input[aria-invalid="true"] { border-color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: .55rem 1rem; border: 1px solid #B9C5BA; border-radius: 999px; font-size: .92rem; background: var(--paper); }
.chip input:checked + span { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.chip input:focus-visible + span { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.consent { display: flex; gap: var(--s-2); align-items: flex-start; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--sage-deep); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: var(--error); font-size: .92rem; font-weight: 500; }
.lead-form button[disabled] { opacity: .6; cursor: progress; }
.form-success { display: grid; gap: var(--s-3); justify-items: start; }
.form-success p { margin: 0; color: var(--ink-soft); }
.preview-note { font-size: .82rem; font-style: italic; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); }
.about-intro .h2 { margin-bottom: var(--s-6); }
.about-stats { display: flex; gap: var(--s-7); flex-wrap: wrap; }
.about-stats div { display: grid; }
.stat-v { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--sage-deep); }
.stat-k { font-size: .85rem; color: var(--ink-soft); max-width: 12ch; }
.about-body p { margin: 0 0 var(--s-4); max-width: 38rem; }
.about-body p:first-child { font-size: 1.15rem; }
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-8); }
.mv-item { background: var(--forest); color: var(--on-dark); padding: clamp(var(--s-5), 4vw, var(--s-7)); border-radius: var(--radius); }
.mv-k { margin: 0 0 var(--s-3); font-family: var(--f-body); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.mv-item p { margin: 0; font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; }
.values-title { margin-top: var(--s-8); margin-bottom: var(--s-5); }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.values li { border-top: 2px solid var(--sage-deep); padding-top: var(--s-4); }
.values h4 { margin: 0 0 var(--s-2); font-size: 1rem; }
.values p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); }
.faq-grid .section-sub a { color: var(--sage-deep); font-weight: 600; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  font-weight: 400;
  list-style: none; cursor: pointer; padding: var(--s-5) 2.5rem var(--s-5) 0; position: relative;
  font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--sage-deep); border-bottom: 1.5px solid var(--sage-deep);
  transform: rotate(45deg); transition: transform .25s;
}
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion details p { margin: 0 0 var(--s-5); color: var(--ink-soft); max-width: 40rem; }

/* ---------- contact ---------- */
.contact { background: var(--forest); color: var(--on-dark); }
.contact .h2 { color: var(--on-dark); margin-bottom: var(--s-4); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s-6), 6vw, var(--s-9)); align-items: start; }
.contact-info > p { color: var(--on-dark-soft); margin: 0; max-width: 32rem; }
.contact-list { margin: var(--s-6) 0; display: grid; }
.contact-list div { padding: var(--s-3) 0; border-top: 1px solid var(--line-dark); display: grid; gap: 2px; }
.contact-list dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.contact-list dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.form-card-dark { background: var(--forest-2); border-color: var(--line-dark); }
.form-card-dark .h3 { margin-bottom: var(--s-5); }
.form-card-dark .field label { color: var(--on-dark); }
.form-card-dark .form-success p { color: var(--on-dark-soft); }
.form-card-dark .form-error { color: #FFB4AB; }

/* ---------- footer ---------- */
.site-footer { background: #0A1711; color: var(--on-dark-soft); padding-block: var(--s-8) calc(var(--s-7) + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: var(--s-4); }
.footer-logo { width: 110px; }
.footer-dev { margin: 0; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); }
.footer-nav a { color: var(--on-dark); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--sage); }
.powered {
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-2); margin-top: var(--s-4);
  padding-top: var(--s-5); border-top: 1px solid var(--line-dark);
  color: var(--on-dark-soft); text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .85; transition: opacity .2s;
}
.powered:hover { opacity: 1; }
.powered img { width: 140px; height: auto; }
.footer-legal { margin: var(--s-4) 0 0; font-size: .8rem; max-width: 40rem; }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: calc(clamp(14px, 3vw, 28px) + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { position: relative; width: 30px; height: 30px; fill: #fff; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  animation: wa-pulse 2.6s ease-out infinite; z-index: -1;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #FF4D4D; border: 2px solid #fff; }
.wa-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: var(--paper); color: var(--ink);
  font-size: .88rem; font-weight: 600; padding: .5rem .85rem; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
@media (max-width: 600px) { .wa-label { display: none; } }

/* ---------- brochure pop-up ---------- */
.brochure-cta { display: grid; justify-items: start; }
.brochure-cta .form-sub { margin-bottom: var(--s-5); }
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 18, 13, .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.modal-card {
  position: relative; width: min(560px, 100%); margin: auto;
  background: var(--paper); color: var(--ink); border-radius: 8px;
  padding: clamp(var(--s-5), 5vw, var(--s-7)); padding-top: clamp(var(--s-6), 5vw, var(--s-7));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.75,.2,1);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--ink-soft); font-size: 1.9rem; line-height: 1; cursor: pointer; border-radius: 50%;
}
.modal-close:hover { background: var(--mist); color: var(--ink); }
.modal-card .h3 { padding-right: 40px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 18, 13, .94); display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.lb-figure { margin: 0; display: grid; gap: var(--s-3); justify-items: center; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); object-fit: contain; background: #EFE9E1; }
.lb-figure figcaption { color: var(--on-dark); font-size: .92rem; text-align: center; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--on-dark); font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest); padding: var(--s-3) clamp(16px, 4vw, 40px) var(--s-5);
    border-top: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav-cta { margin-top: var(--s-4); min-height: 48px; }
  .menu-btn { display: block; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact:first-child { border-left: 0; padding: var(--s-4) 0; border-top: 1px solid var(--line-dark); }
  .fact:first-child { grid-column: 1 / -1; border-top: 0; }
  .intro-grid, .location-grid, .buy-grid, .about-grid, .faq-grid, .contact-grid, .typical { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-list { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; border-top: 0; gap: var(--s-2); padding-bottom: var(--s-2); scroll-snap-type: x mandatory; }
  .plan-item { border: 1px solid var(--line); border-radius: var(--radius); scroll-snap-align: start; }
  .plan-item.is-active { box-shadow: inset 0 -3px 0 var(--sage-deep); }
  .plan-list { grid-auto-columns: minmax(168px, 1fr); }
  .plan-item { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; height: 100%; }
  .pi-size { grid-row: auto; }
  .plan-viewer { grid-template-columns: minmax(0, 1fr); }
  .amenity-feature { grid-template-columns: minmax(0, 1fr); }
  .amenity-hero { min-height: 300px; }
  .amenity-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .mosaic .tile:nth-child(1) { grid-row: span 1; }
  .mv { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { min-height: 640px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .amenity-side { grid-template-columns: minmax(0, 1fr); }
  .amenity-list { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 230px; }
  .tile-wide { grid-column: span 1; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .plan-image { aspect-ratio: 1 / 1; padding: var(--s-3); }
  .map-box { aspect-ratio: 4 / 3; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: .65rem .6rem; font-size: .88rem; }
  .tab-count { font-size: .72rem; }
  .plan-actions .btn { flex: 1 1 100%; }
}

/* ---------- soft image frames ---------- */
:root {
  --r-img: 16px;
  --shadow-img: 0 1px 2px rgba(14,31,23,.06), 0 12px 28px -8px rgba(14,31,23,.22), 0 28px 60px -24px rgba(14,31,23,.28);
  --shadow-img-dark: 0 14px 34px -10px rgba(0,0,0,.55), 0 30px 70px -30px rgba(0,0,0,.6);
}
.intro-figure img, .location-figure img { border-radius: var(--r-img); box-shadow: var(--shadow-img); }
.plan-image, .typical-img, .tile, .map-box { border-radius: var(--r-img); box-shadow: var(--shadow-img); }
.tile, .typical-img, .map-box { overflow: hidden; }
.amenity-hero, .amenity-card { border-radius: var(--r-img); box-shadow: var(--shadow-img-dark); }
.mosaic { gap: var(--s-4); }
.amenity-feature, .amenity-side { gap: var(--s-4); }
.tile, .amenity-hero, .amenity-card, .typical-img { transition: transform .4s ease, box-shadow .4s ease; }
.tile:hover, .typical-img:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(14,31,23,.06), 0 18px 40px -10px rgba(14,31,23,.3), 0 40px 80px -30px rgba(14,31,23,.32); }
.lb-figure img { border-radius: 10px; }
.zoom-hint { border-radius: 999px; padding: 4px 10px; }

/* ---------- soft form frames (match images) ---------- */
.form-card { border-radius: var(--r-img); box-shadow: var(--shadow-img); border-color: rgba(14,31,23,.06); }
.form-card-dark { box-shadow: var(--shadow-img-dark); border-color: var(--line-dark); }
.modal-card { border-radius: var(--r-img); }
.field input, .field select, .field textarea { border-radius: 10px; box-shadow: 0 1px 2px rgba(14,31,23,.05); }
.lead-form .btn, .form-card .btn, .form-success .btn { border-radius: 10px; }

/* ---------- motion (only when script is running; see initMotion) ---------- */
.js-anim .rise {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.2,1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-anim .rise.is-in { opacity: 1; transform: none; }

.js-anim .split .w {
  display: inline-block; opacity: 0;
  transform: translateY(.55em) scale(.85); transform-origin: 50% 100%;
  transition: opacity .45s ease, transform .6s cubic-bezier(.34,1.56,.64,1);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.js-anim .split.is-in .w { opacity: 1; transform: none; }

.typing .caret {
  display: inline-block; width: .08em; min-width: 2px; height: .95em; margin-left: .06em;
  vertical-align: -.08em; background: currentColor;
  animation: caret-blink .8s steps(1) infinite;
}
.hero-title .caret { background: var(--sage); width: .06em; }
.typed .caret { animation: caret-blink .8s steps(1) infinite, caret-out .4s ease 1.4s forwards; }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
