/* ==========================================================================
   Coventry — project landing page design system
   Built to design_handoff_coventry_project_lp/README.md (authoritative).
   Tokens first, then components in document order.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Colour */
  --white: #FFFFFF;
  --mint: #EDF3EE;
  --mint-line: #DCE5DE;
  --forest: #103021;
  --forest-deep: #0B2417;
  --ink: #2B2B2B;
  --ink-2: #5A5A5A;
  --ink-3: #9A9A9A;
  --ink-4: #A0A0A0;
  --line: #E4E4E4;
  --line-soft: #EDEDED;
  --on-forest: #FFFFFF;
  --on-forest-2: #B6C6BB;
  --on-forest-3: #8FA394;
  --mint-ink: #7A8B7E;
  --mint-ink-2: #6A756D;
  --mint-num: #A3B0A6;
  /* Added to the palette for form validation only — desaturated red. */
  --error: #B4564B;

  /* Shape */
  --r-chip: 10px;
  --r-card: 14px;
  --r-media: 16px;
  --r-pill: 999px;

  /* Elevation */
  --lift: 0 14px 44px rgba(16, 48, 33, .09);
  --lift-hi: 0 14px 44px rgba(16, 48, 33, .14);
  --hero-scrim: linear-gradient(180deg, rgba(20, 32, 25, .18) 0%, rgba(20, 32, 25, .05) 42%, rgba(20, 32, 25, .62) 100%);

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: 240ms;
  --reveal: 800ms;

  /* Layout */
  --page-margin: 48px;
  --section-y: 130px;
}

@media (max-width: 1100px) { :root { --page-margin: 32px; } }
@media (max-width: 768px)  { :root { --page-margin: 24px; --section-y: 72px; } }

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Poppins, Gilroy, Montserrat, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--ink); }
input, button, select, textarea { font: inherit; color: inherit; }
input::placeholder { color: var(--ink-3); }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Type scale --------------------------------------------------------- */

.t-display {
  font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02;
  font-weight: 400; text-transform: uppercase;
}
.t-h2 {
  font-size: clamp(32px, 3.6vw, 54px); line-height: 1.12;
  font-weight: 400; text-transform: uppercase;
}
.t-h3 {
  font-size: clamp(28px, 3vw, 42px); line-height: 1.14;
  font-weight: 400; text-transform: uppercase;
}
.t-h4 {
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.16;
  font-weight: 400; text-transform: uppercase;
}
.t-stat { font-size: 30px; line-height: 1.1; font-weight: 400; }
.t-row-title { font-size: 17px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; }
.t-body-l { font-size: 19px; line-height: 1.7; }
.t-body { font-size: 16px; line-height: 1.7; }
.t-small { font-size: 15px; line-height: 1.65; }
.t-label {
  font-size: 13px; line-height: 1.5; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4);
}
.t-lede { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.t-muted { color: var(--ink-2); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border-radius: var(--r-pill); cursor: pointer; white-space: nowrap;
  font-size: 12px; line-height: 1; letter-spacing: .13em;
  text-transform: uppercase; font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.btn--outline {
  padding: 17px 34px; border: 1px solid var(--forest);
  background: transparent; color: var(--forest);
}
.btn--outline:hover { background: var(--forest); color: var(--on-forest); }

.btn--solid {
  padding: 18px 34px; border: none; background: var(--forest); color: var(--on-forest);
}
.btn--solid:hover { background: var(--forest-deep); color: var(--on-forest); }

.btn--white {
  padding: 19px 40px; border: none; background: var(--white); color: var(--forest);
}
.btn--white:hover { background: var(--mint); color: var(--forest); }

.btn--ghost-light {
  padding: 17px 34px; border: 1px solid rgba(255, 255, 255, .45);
  background: transparent; color: var(--on-forest);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: var(--on-forest); }

.btn--sm { padding: 15px 30px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn__arrow { font-size: 15px; letter-spacing: 0; }

/* --- Header ------------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 22px var(--page-margin);
  background: var(--white); border-bottom: 1px solid var(--line-soft);
}
/* Co-brand lockup: Coventry (the agency) and Mira Verde (the development),
   separated by a hairline rule. Cap heights are matched optically, not by
   box height — the Coventry mark carries built-in padding, the Mira Verde
   wordmark is cropped tight to its glyphs. */
.header__logo { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.header__logo-mark { height: 22px; width: auto; }
.header__logo-mark--partner { height: 15px; }
.header__logo-rule { flex: 0 0 1px; width: 1px; height: 20px; background: var(--line); }

/* One call to action pinned in the header at every width. On the narrowest
   phones the label shortens — the button is never dropped. */
.header__cta { flex: 0 0 auto; }
.header__cta-short { display: none; }

.nav {
  display: flex; gap: 44px;
  font-size: 13px; line-height: 1; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink);
}
.nav a { color: inherit; }
.nav a:hover { color: var(--forest); }

.header__burger {
  display: none; flex: 0 0 44px; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: transparent; cursor: pointer;
}
.header__burger span {
  display: block; width: 18px; height: 1px; margin: 4px auto; background: var(--ink);
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(16, 32, 22, .5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity var(--fast) var(--ease), visibility var(--fast);
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 86vw);
  background: var(--white); padding: 28px 32px 40px;
  display: flex; flex-direction: column; gap: 32px;
  transform: translateX(100%); transition: transform var(--fast) var(--ease);
}
.drawer[data-open="true"] .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close {
  border: none; background: transparent; font-size: 26px; font-weight: 300;
  color: var(--ink-3); cursor: pointer; line-height: 1;
}
.drawer__nav { display: grid; gap: 4px; }
.drawer__nav a {
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}

/* --- Layout ------------------------------------------------------------- */

.section { padding: var(--section-y) var(--page-margin); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--mint { background: var(--mint); }
.section--center { text-align: center; }

.split {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 96px;
}
.split--even { grid-template-columns: 1fr 1fr; gap: 80px; }
.split--wide-right { grid-template-columns: 1fr 1.3fr; }
.split--amenities { grid-template-columns: 1fr 1.2fr; }
.split--invest { grid-template-columns: 1fr 2.1fr; gap: 80px; }
.split--middle { align-items: center; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; flex-wrap: wrap; margin-bottom: 48px;
}
.section__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stack-24 > * + * { margin-top: 24px; }
.stack-32 > * + * { margin-top: 32px; }
.measure-34 { max-width: 34ch; }
.measure-44 { max-width: 44ch; }
.measure-52 { max-width: 52ch; }
.measure-56 { max-width: 56ch; }
.measure-62 { max-width: 62ch; }
.measure-70 { max-width: 70ch; }

/* --- Media -------------------------------------------------------------- */

.media {
  border-radius: var(--r-media); overflow: hidden; background: var(--mint);
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--zoom img { transition: transform var(--fast) var(--ease); }
.media--zoom:hover img { transform: scale(1.04); }
/* Floor plans are line drawings on the developer's own paper tone — matching
   the letterbox to it keeps the card seamless. Rendered as a button so the
   drawing can be opened full-screen; the button chrome is stripped back. */
.media--plan {
  background: #E2DDD1; display: block; width: 100%;
  padding: 0; border: none; cursor: zoom-in;
}
.media--plan img { object-fit: contain; }

.ratio-16-9  { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-3   { aspect-ratio: 4 / 3; }
.ratio-3-4   { aspect-ratio: 3 / 4; }
.ratio-21-8  { aspect-ratio: 21 / 8; }

.media-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }

/* --- Hero --------------------------------------------------------------- */

.hero { padding: 14px var(--page-margin) 0; }

.hero__frame {
  position: relative; height: 78vh; min-height: 600px;
  border-radius: var(--r-media); overflow: hidden; background: #DCE3DE;
}
.hero__layer {
  position: absolute; top: -12%; left: 0; right: 0; height: 124%;
  will-change: transform;
}
.hero__layer img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: var(--hero-scrim); }

.hero__content {
  position: absolute; left: 52px; right: 52px; bottom: 52px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end;
}
.hero__eyebrow {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); opacity: .82; margin-bottom: 22px;
}
.hero__title { color: var(--white); max-width: 15ch; }
.hero__lede {
  font-size: 17px; line-height: 1.62; color: var(--white);
  margin-bottom: 28px; max-width: 40ch;
}
.hero__logo { height: 34px; width: auto; margin-bottom: 26px; opacity: .95; }

.figures {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
  padding: 44px 4px 0;
}
.figure { border-top: 1px solid var(--line); padding-top: 20px; }
.figure__label {
  font-size: 13px; line-height: 1.5; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}

/* --- Fact list ---------------------------------------------------------- */

.fact {
  display: flex; justify-content: space-between; gap: 32px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.fact__k { font-size: 15px; color: var(--ink-3); }
.fact__v { font-size: 17px; text-align: right; text-transform: uppercase; letter-spacing: .02em; }

/* --- Alternating text / image rows --------------------------------------
   Replaces the three- and four-column prose grids. Long-form copy set in
   narrow parallel columns is read as a wall and skipped; one column at a
   sane measure, alternating side with the image, is read. */

.alt-rows { display: grid; gap: clamp(48px, 6vw, 88px); }
.alt-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.alt-row:nth-child(even) .alt-row__media { order: -1; }
.alt-row__n {
  display: block; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.alt-row__text h3 {
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1.24;
  letter-spacing: .02em; text-transform: uppercase; font-weight: 400;
  margin-bottom: 18px; max-width: 24ch;
}
.alt-row__text p { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 54ch; }
.alt-row__text p + p { margin-top: 14px; }

/* A row with no image to pair against: the copy takes the full measure
   rather than leaving a hole where the picture would have been. */
.alt-row--full { grid-template-columns: 1fr; }
.alt-row--full .alt-row__text p { max-width: 82ch; }

/* --- Note list ----------------------------------------------------------
   Heading left, paragraph right, stacked. Used where three columns of
   supporting prose were previously set side by side. */

.notes { display: grid; border-top: 1px solid var(--line); }
.note {
  display: grid; grid-template-columns: .8fr 2fr; gap: clamp(20px, 4vw, 64px);
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.note h3 {
  font-size: 17px; line-height: 1.4; letter-spacing: .03em;
  text-transform: uppercase; font-weight: 400;
}
.note p { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 78ch; }
.section--mint .notes, .section--mint .note { border-color: var(--mint-line); }

/* --- Amenity cards ------------------------------------------------------
   Six cards, three across. The previous two-column split left the list
   pinned to the right of a half-empty row. */

.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.amenity-card {
  background: var(--white); border: 1px solid var(--mint-line);
  border-radius: var(--r-card); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.amenity-card__n { font-size: 13px; letter-spacing: .12em; color: var(--mint-num); }
.amenity-card__t {
  font-size: 17px; line-height: 1.35; letter-spacing: .03em;
  text-transform: uppercase; font-weight: 400;
}
.amenity-card__d { font-size: 15px; line-height: 1.65; color: var(--mint-ink-2); }

/* --- Master plan drawing ------------------------------------------------
   The plan is the artwork; it is shown whole, not cropped to a ratio. */

.planshot {
  display: block; width: 100%; padding: 0; border: none;
  border-radius: var(--r-media); overflow: hidden; background: var(--mint);
  position: relative; cursor: zoom-in;
}
.planshot img { width: 100%; height: auto; }

.zoom-hint {
  position: absolute; right: 14px; bottom: 14px;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92); box-shadow: var(--lift);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast) var(--ease);
}
.zoom-hint svg { width: 16px; height: 16px; fill: var(--forest); }
.planshot:hover .zoom-hint, .media--plan:hover .zoom-hint { background: var(--white); }

/* --- Residence cards ---------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r-media); overflow: hidden;
  background: var(--white); display: flex; flex-direction: column;
  transition: box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.card__body { padding: 28px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 19px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.card__note { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin-bottom: 14px; }
.card__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--line-soft);
}
.card__row span:first-child { font-size: 14px; color: var(--ink-3); }
.card__row span:last-child { font-size: 15px; text-align: right; }
.card__cta { margin-top: auto; padding-top: 22px; }
.card__cta .btn { padding: 15px; font-size: 11px; }
.footnote { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin-top: 22px; }

/* --- Forest inset block ------------------------------------------------- */

.forest {
  background: var(--forest); border-radius: var(--r-media);
  padding: 88px 72px; color: var(--on-forest);
}
.forest .t-lede, .forest p { color: var(--on-forest-2); }
.forest .t-label { color: var(--on-forest-3); }

.plan-bar {
  display: flex; height: 4px; border-radius: var(--r-pill); overflow: hidden;
  background: rgba(255, 255, 255, .18); margin-bottom: 32px;
}
.plan-bar__seg--1 { background: var(--white); }
.plan-bar__seg--2 { background: rgba(255, 255, 255, .62); }
.plan-bar__seg--3 { background: rgba(255, 255, 255, .3); }
.plan-bar__gap { width: 2px; }

.plan-figures { display: grid; grid-template-columns: 60fr 40fr; gap: 32px; }
.plan-figures--thirds { grid-template-columns: 20fr 40fr 40fr; }
.plan-figures__n { font-size: 44px; line-height: 1.1; font-weight: 400; }
.plan-figures__c { font-size: 15px; line-height: 1.55; color: var(--on-forest-2); margin-top: 10px; }

.ledger { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ledger__row {
  display: grid; grid-template-columns: 1.2fr .6fr 2fr; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.ledger__row--head {
  font-size: 13px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--on-forest-3); padding: 14px 0;
}
.ledger__k { font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.ledger__v { font-size: 17px; }
.ledger__c { font-size: 15px; color: var(--on-forest-2); }
.forest__note {
  font-size: 15px; line-height: 1.7; color: var(--on-forest-2);
  margin-top: 32px; max-width: 70ch;
}

/* --- Investment cards --------------------------------------------------- */

.invest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.invest-grid--2 { grid-template-columns: repeat(2, 1fr); }
.invest-card {
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px;
  min-height: 210px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--white);
}
.invest-card__chip {
  width: 44px; height: 44px; border-radius: var(--r-chip); background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #5A6B5E;
}
.invest-card__figure { font-size: 26px; line-height: 1.2; font-weight: 400; margin-bottom: 10px; }
.invest-card__label { font-size: 14px; line-height: 1.5; color: #7A7A7A; }

/* --- Gallery ------------------------------------------------------------ */

.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filter {
  padding: 11px 24px; border-radius: var(--r-pill); font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: all var(--fast) var(--ease);
}
.filter:hover { border-color: var(--forest); color: var(--forest); }
.filter[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px; gap: 20px;
}
.gallery__tile {
  border-radius: var(--r-media); overflow: hidden; cursor: pointer;
  padding: 0; border: none; background: var(--mint);
}
.gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--fast) var(--ease); }
.gallery__tile:hover img { transform: scale(1.04); }
.gallery__tile--lead { grid-column: span 2; grid-row: span 2; }
.gallery__tile--wide { grid-column: span 2; }

/* --- Travel times ------------------------------------------------------- */

.travel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.travel__row {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--mint-line);
}
.travel__min { font-size: 15px; color: var(--mint-num); }
.travel__label { font-size: 16px; text-transform: uppercase; letter-spacing: .03em; text-align: right; }

.map {
  border-radius: var(--r-media); overflow: hidden; background: var(--mint-line);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map--footer { height: 280px; }

/* --- FAQ ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__head {
  display: flex; justify-content: space-between; gap: 32px; align-items: center;
  width: 100%; padding: 26px 0; background: transparent; border: none;
  text-align: left; cursor: pointer;
  font-size: 17px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase;
}
.faq__sign { font-size: 22px; font-weight: 300; color: var(--ink-3); line-height: 1; }
.faq__body {
  font-size: 16px; line-height: 1.7; color: #6A6A6A;
  padding: 0 0 28px; max-width: 70ch;
}
.faq__item[data-open="false"] .faq__body { display: none; }

/* --- Forms -------------------------------------------------------------- */

.field { display: block; }
.field__control { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.field input {
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 16px; color: var(--ink);
}
.field__error { font-size: 13px; line-height: 1.5; color: var(--error); margin-top: 8px; display: none; }
.field[data-invalid="true"] .field__control { border-bottom-color: var(--error); }
.field[data-invalid="true"] .field__error { display: block; }

.form-consent { font-size: 13px; line-height: 1.6; color: var(--ink-3); text-align: center; }
.form-consent a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* Fields on forest */
.forest .field__control, .cta__panel .field__control { border-bottom-color: rgba(255, 255, 255, .3); }
.forest .field input, .cta__panel .field input { color: var(--white); }
.forest .field input::placeholder, .cta__panel .field input::placeholder { color: rgba(255, 255, 255, .6); }
.cta__panel .field[data-invalid="true"] .field__control { border-bottom-color: #E7A79F; }
.cta__panel .field__error { color: #E7A79F; }

.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor; border-top-color: transparent;
  animation: cv-spin 700ms linear infinite; display: inline-block;
}
@keyframes cv-spin { to { transform: rotate(360deg); } }

.form-success {
  font-size: 16px; line-height: 1.7; color: var(--ink-2);
}
.forest .form-success, .cta__panel .form-success { color: var(--on-forest-2); }

/* --- Closing CTA -------------------------------------------------------- */

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.cta__panel {
  background: var(--forest); border-radius: var(--r-media); padding: 72px 64px;
  color: var(--on-forest); text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.cta__panel h2 { margin: 0 auto 16px; max-width: 22ch; }
.cta__sub { font-size: 16px; line-height: 1.6; color: var(--on-forest-2); margin: 0 auto 44px; }
.cta__form { display: grid; gap: 30px; max-width: 440px; margin: 0 auto; text-align: left; width: 100%; }
.cta__wa { font-size: 14px; color: var(--white); text-align: center; }
.cta__wa a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.cta__panel .form-consent { color: var(--on-forest-3); font-size: 12px; }
.cta__panel .form-consent a { color: var(--on-forest-2); }
/* Absolutely positioned so the render fills the column instead of setting its
   height — the row is sized by the form panel, with 520px as the floor. */
.cta__media {
  position: relative; border-radius: var(--r-media); overflow: hidden;
  min-height: 520px; background: var(--mint);
}
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Footer ------------------------------------------------------------- */

.footer { padding: 0 var(--page-margin) 48px; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 64px; padding-bottom: 56px; }
.footer__details { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 32px; }
.footer__label {
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 14px;
}
.footer__value { font-size: 15px; line-height: 1.6; text-transform: uppercase; }
.footer__links { display: grid; gap: 11px; font-size: 15px; text-transform: uppercase; }
.footer__social { display: flex; gap: 18px; font-size: 15px; text-transform: uppercase; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap; padding-top: 8px; margin-top: 36px;
}
.footer__legal {
  flex: 1 1 auto; min-width: 0;
  font-size: 13px; line-height: 1.7; color: var(--ink-3); text-align: right;
}
.footer__legal a { color: var(--ink-2); }

/* --- Mobile action bar --------------------------------------------------
   The desktop corner widgets were removed at the client's request; the phone
   bar stays, because on a phone it is the only persistent call to action. */

.quickbar { display: none; }

/* --- Modal -------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16, 32, 22, .62); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal__panel {
  background: var(--white); border-radius: var(--r-media); padding: 52px;
  width: 100%; max-width: 600px; position: relative; margin: auto;
}
.modal__close {
  position: absolute; top: 24px; right: 28px;
  font-size: 26px; font-weight: 300; line-height: 1; color: var(--ink-3);
  background: transparent; border: none; cursor: pointer;
}
.modal__kicker { margin-bottom: 16px; }
.modal__title { font-size: 34px; line-height: 1.14; font-weight: 400; text-transform: uppercase; margin-bottom: 14px; }
.modal__body { font-size: 16px; line-height: 1.65; color: #6A6A6A; margin-bottom: 38px; max-width: 48ch; }
.modal__fields { display: grid; gap: 26px; margin-bottom: 32px; }

/* --- Lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(16, 32, 22, .82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 48px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; border-radius: var(--r-media);
  width: auto; height: auto; object-fit: contain;
}
.lightbox__close {
  position: absolute; top: 24px; right: 32px;
  font-size: 30px; font-weight: 300; line-height: 1; color: rgba(255, 255, 255, .8);
  background: transparent; border: none; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .4); background: transparent;
  color: rgba(255, 255, 255, .85); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* --- Scroll reveal ------------------------------------------------------ */

/* Gated on `.js` so the page still reads with scripting disabled or blocked. */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --- Responsive --------------------------------------------------------- */

/* The co-brand lockup costs the header ~180px, so the two nav thresholds sit
   ~180px higher than the layout breakpoints below. */
@media (max-width: 1460px) {
  .nav { gap: 28px; font-size: 12px; }
}

@media (max-width: 1280px) {
  .nav { display: none; }
  .header__burger { display: block; }
}

@media (max-width: 1100px) {
  .split, .split--even, .split--wide-right, .split--amenities, .split--invest {
    grid-template-columns: 1fr; gap: 48px;
  }
  .cards, .invest-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .alt-row { grid-template-columns: 1fr; gap: 28px; }
  /* Image above copy on every row once stacked — an alternating order reads
     as a mistake in a single column. */
  .alt-row:nth-child(even) .alt-row__media { order: 0; }
  .alt-row__media { order: -1; }
  .note { grid-template-columns: 1fr; gap: 12px; }
  .figures { gap: 32px; }
  .forest { padding: 64px 44px; }
  .cta { grid-template-columns: 1fr; }
  .cta__media { min-height: 420px; }
  .footer__top { grid-template-columns: 1fr; gap: 44px; }
  .gallery { grid-auto-rows: 200px; }
  .hero__content { left: 32px; right: 32px; bottom: 40px; grid-template-columns: 1fr; gap: 28px; }
  .hero__title { max-width: 20ch; }
}

@media (max-width: 768px) {
  .header { gap: 12px; }
  /* Side by side the lockup crowds out the callback button — stack it. */
  .header__logo { flex-direction: column; align-items: flex-start; gap: 7px; }
  .header__logo-rule { display: none; }
  .header__logo-mark { height: 17px; }
  .header__logo-mark--partner { height: 11px; }
  .header__cta.btn--sm { padding: 13px 18px; letter-spacing: .1em; }
  .header__cta-long { display: none; }
  .header__cta-short { display: inline; }
  .hero__frame { height: 64vh; min-height: 460px; }
  .hero__lede { font-size: 16px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; }
  .media-row { grid-template-columns: 1fr; }
  .cards, .invest-grid { grid-template-columns: 1fr; gap: 24px; }
  .amenity-grid { grid-template-columns: 1fr; }
  .travel { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__tile--lead { grid-column: span 2; grid-row: span 2; }
  .gallery__tile--wide { grid-column: span 2; }
  .forest { padding: 48px 28px; }
  .plan-figures, .plan-figures--thirds { grid-template-columns: 1fr; gap: 28px; }
  .plan-figures__n { font-size: 36px; }
  .ledger__row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .ledger__c { grid-column: 1 / -1; }
  .cta__panel { padding: 48px 28px; }
  .cta__media { min-height: 320px; }
  .modal__panel { padding: 40px 26px; }
  .modal__title { font-size: 28px; }
  .footer__details { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { justify-content: flex-start; }
  .footer__legal { text-align: left; }
  .section__head { margin-bottom: 32px; }

  .quickbar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
    display: flex; align-items: center; gap: 10px;
    background: var(--forest); padding: 10px; border-radius: var(--r-pill);
    box-shadow: var(--lift-hi);
  }
  .quickbar a {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, .45); color: var(--white);
    display: flex; align-items: center; justify-content: center;
  }
  .quickbar a:hover { color: var(--white); }
  .quickbar svg { width: 20px; height: 20px; fill: currentColor; }
  .quickbar .btn { flex: 1; padding: 14px 10px; }
  body { padding-bottom: 84px; }
  .lightbox { padding: 20px; }
}

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none !important; transition: opacity 300ms linear; }
  .hero__layer { transform: none !important; }
  .media--zoom:hover img, .gallery__tile:hover img { transform: none; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .header, .quickbar, .modal, .lightbox, .drawer { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
