/* =====================================================================
   styles.css — Ace Arte, Sector 150 marketing page
   Vanilla production build. All visuals refactored from inline styles.
   ===================================================================== */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --ink:        #211d1a;
  --paper:      #faf8f6;
  --paper-2:    #ffffff;
  --muted:      #57504a;
  --faint:      #8a8177;
  --faint-2:    #a39a91;

  --accent:        #e0301b;
  --accent-dark:   #b02310;
  --accent-hover:  #c22a17;
  --accent-press:  #a3210f;
  --accent-soft:   #f7d9d3;
  --accent-warm:   #ff6a4d;
  --accent-on-dark:#ff8570;

  --dark-bg:    #171310;

  --card:       #faf8f6;
  --card-line:  #eae3dc;
  --media-bg:   #f1ece7;
  --plan-bg:    #f6f2ee;
  --loc-line:   #eee8e2;

  --input-bg:    #faf8f6;
  --input-border:#ded6ce;
  --outline-line:#cfc7bf;

  --scrollbar:  #d6cfc8;

  --serif: 'Marcellus', Georgia, serif;
  --sans:  'Archivo', system-ui, -apple-system, sans-serif;

  --container: 1400px;
  --gutter: clamp(18px, 3.4vw, 44px);
  --section-y: clamp(56px, 7vw, 110px);
}

/* ── Reset / base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* NOTE: no `scroll-behavior: smooth` here — it fights GSAP ScrollTrigger's
   scroll tracking and causes the pinned gallery to jitter. In-page anchor
   links are smooth-scrolled via JS (see app.js), which is ScrollTrigger-safe. */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

input, select, button, textarea { font-family: inherit; }

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent-soft); }
::-webkit-scrollbar { height: 8px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 8px; }

h1, h2, h3, h4, p { margin: 0; }

/* ── Layout primitives ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

/* Kicker — the small uppercase label above headings */
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.kicker--on-dark { color: var(--accent-on-dark); }
.kicker--faint   { color: var(--faint); }
.kicker--lg      { margin-bottom: 18px; }

/* Serif display headings */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.72;
  color: var(--muted);
}
.lead--max56 { max-width: 56ch; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  padding: 15px 24px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(0.5px); }
.btn:disabled, .btn[data-submitting] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(176, 35, 16, 0.3);
}
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--accent); border-color: var(--accent); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--outline-line);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost-ink {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost-ink:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--outline-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-on-dark:hover { background: var(--accent); border-color: var(--accent); }

/* size variants */
.btn--sm { padding: 12px 20px; font-size: 13px; letter-spacing: 0.02em; }
.btn--block { width: 100%; }
.btn--pad16 { padding: 16px; }

/* Header "Get price list" pill (compact, soft shadow) */
.btn--header-cta {
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(176, 35, 16, 0.28);
}

/* Circular gallery nav buttons */
.btn--round {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--outline-line);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
.btn--round:hover { border-color: var(--accent); color: var(--accent); }

/* ── Form fields ───────────────────────────────────────────────── */
.field {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: 3px;
  background: var(--input-bg);
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}
select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8177' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
  cursor: pointer;
}
.consent input {
  margin: 2px 0 0;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex: none;
}

.form-stack { display: grid; gap: 10px; }

/* ── slot image: fills its positioned frame ─────────────────────── */
.slot-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #efe9e3;
}
.slot-img--contain { object-fit: contain; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid rgba(33, 29, 26, 0.08);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
}
.brand__name { line-height: 1.15; }
.brand__name b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.04em;
  display: block;
}
.brand__name span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Logo image (replaces .brand__mark + .brand__name in markup) */
.brand { gap: 0; }
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
}
.footer-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 240px;
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .brand__logo { height: 34px; }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  margin-top: 0;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark-bg);
}
.hero__bg { position: absolute; inset: 0; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 12, 10, 0.64) 0%,
    rgba(15, 12, 10, 0.56) 38%,
    rgba(15, 12, 10, 0.76) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(90px, 11vw, 130px) var(--gutter) clamp(36px, 4vw, 56px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  align-items: end;
}
.hero__copy { color: #fff; max-width: 640px; will-change: transform; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 2.4vw, 26px);
  backdrop-filter: blur(6px);
}
.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.hero__sub {
  margin: clamp(16px, 2vw, 24px) 0 0;
  max-width: 50ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.86);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(26px, 3.4vw, 38px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.stat__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.stat__value {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1;
}

.hero__card {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 24px 60px rgba(15, 12, 10, 0.34);
  padding: clamp(22px, 2.4vw, 30px);
  will-change: transform;
}

/* Mobile-only hero action & lead form section — hidden on desktop */
.hero__mobile-action { display: none; }
.mobile-lead-section { display: none; }

/* success state inside hero/banner cards */
.success-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.success-title {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 10px;
}
.success-body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* form card headings */
.card-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.2;
  margin-bottom: 6px;
}
.card-intro {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
}
.form-foot {
  margin-top: 12px;
  font-size: 11px;
  color: var(--faint-2);
  text-align: center;
}

/* =====================================================================
   TRUST BAR
   ===================================================================== */
.trust {
  background: #fff;
  border-bottom: 1px solid rgba(33, 29, 26, 0.08);
}
.trust__grid {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(22px, 2.6vw, 32px) var(--gutter);
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.trust__item { display: flex; flex-direction: column; gap: 6px; }
.trust__k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.trust__v { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); }

/* =====================================================================
   INTRO / PROJECT
   ===================================================================== */
.intro {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.intro__grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: center;
}
.intro__copy p { margin-bottom: 16px; }
.intro__copy p:last-of-type { margin-bottom: 30px; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.intro__media {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.intro__media .frame--wide { grid-column: 1 / -1; }
.frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.frame--wide { aspect-ratio: 16 / 10; box-shadow: 0 14px 34px rgba(33, 29, 26, 0.13); }
.frame--sq    { aspect-ratio: 1; box-shadow: 0 10px 26px rgba(33, 29, 26, 0.11); }

/* =====================================================================
   RESIDENCES (unit cards)
   ===================================================================== */
.residences {
  background: #fff;
  border-top: 1px solid rgba(33, 29, 26, 0.08);
  border-bottom: 1px solid rgba(33, 29, 26, 0.08);
}
.residences__inner { padding: clamp(56px, 7vw, 104px) var(--gutter); max-width: var(--container); margin-inline: auto; }
.residences__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.residences__head p { margin: 0; max-width: 36ch; font-size: 14px; line-height: 1.65; color: var(--faint); }

.residences__grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.unit-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .35s ease, transform .35s ease;
}
.unit-card:hover {
  box-shadow: 0 20px 44px rgba(33, 29, 26, 0.14);
  transform: translateY(-4px);
}
.unit-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--media-bg); }
.unit-card__body {
  padding: clamp(20px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.unit-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.unit-card__name { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.unit-card__size {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.divider { height: 1px; background: var(--card-line); }
.unit-card__price { display: flex; align-items: baseline; gap: 8px; }
.unit-card__price .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.unit-card__price .val { font-size: 16px; font-weight: 600; color: var(--ink); }
.unit-card__eoi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: -4px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 4px;
}
.unit-card__eoi .lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.unit-card__eoi .val {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-dark);
}
.unit-card__note { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.unit-card__cta { margin-top: auto; }

/* =====================================================================
   LIFESTYLE (dark)
   ===================================================================== */
.lifestyle { background: var(--dark-bg); color: #fff; position: relative; }
.lifestyle__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  gap: clamp(32px, 4.5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}
.lifestyle__col { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 30px); }
.lifestyle__head h2 { margin-bottom: 18px; max-width: 20ch; }
.lifestyle__head p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, 0.72); }
.lifestyle__cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 4px; }
.lifestyle__cta-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

.amenities-panel { position: sticky; top: clamp(80px, 9vw, 96px); align-self: start; }
.amenities-panel__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.amenities-panel__top .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.amenities-panel__top .count { font-family: var(--serif); font-size: 18px; color: var(--accent-on-dark); }
.amenities-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.amenity {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: clamp(14px, 1.5vw, 17px) 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.amenity svg { flex: none; }
.amenity span { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, 0.9); }

/* =====================================================================
   PLANS
   ===================================================================== */
.plans { max-width: var(--container); margin-inline: auto; padding: var(--section-y) var(--gutter); }
.plans__title { margin-bottom: clamp(28px, 3.4vw, 44px); }
.plans__grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.plan-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 5px;
  padding: clamp(18px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .35s ease, transform .35s ease;
}
.plan-card:hover {
  box-shadow: 0 20px 44px rgba(33, 29, 26, 0.14);
  transform: translateY(-4px);
}
.plan-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--plan-bg); border-radius: 3px; overflow: hidden; }
.plan-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-card__name { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.plan-card__size { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.plan-card__cta { margin-top: auto; }

/* =====================================================================
   LOCATION
   ===================================================================== */
.location {
  background: #fff;
  border-top: 1px solid rgba(33, 29, 26, 0.08);
  border-bottom: 1px solid rgba(33, 29, 26, 0.08);
}
.location__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter) clamp(30px, 4vw, 54px);
}
.location__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.4vw, 42px);
}
.location__head h2 { max-width: 24ch; }
.location__grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.location__map {
  position: relative;
  min-height: clamp(300px, 32vw, 440px);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(33, 29, 26, 0.12);
}
.loc-item { padding: clamp(16px, 1.8vw, 20px) 0; border-bottom: 1px solid var(--loc-line); }
.loc-item__title { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); margin-bottom: 6px; }
.loc-item__body { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(18px, 2.6vh, 30px);
  padding: clamp(74px, 8vh, 88px) 0 clamp(26px, 4vh, 46px);
  overflow: hidden;
}
.gallery__head {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.gallery__head h2 { font-size: clamp(28px, 3.2vw, 46px); }
.gallery__controls { display: flex; align-items: center; gap: 16px; }
.gallery__index {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.gallery__nav { display: flex; gap: 10px; }

.gallery__viewport {
  flex: 1;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  width: max-content;
  padding: 4px var(--gutter);
}
.gallery figure {
  margin: 0;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-snap-align: center;
}
.gallery figure .media {
  position: relative;
  height: clamp(230px, 46vh, 520px);
  aspect-ratio: 3 / 2;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(33, 29, 26, 0.14);
}
.gallery figure .media .zoom-wrap { position: absolute; inset: -6%; }
.gallery figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.gallery figcaption .n { color: #c9c0b8; }

.gallery__bar-wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.gallery__bar { height: 2px; background: #e7e0d9; position: relative; overflow: hidden; }
.gallery__bar > i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* GPU-promote the elements animated during the pinned scroll so the track
   translate, the image parallax, and the progress bar stay on their own
   compositor layers (prevents repaint jitter while pinned). */
.gallery__track,
.gallery figure .media .zoom-wrap,
.gallery__bar > i { will-change: transform; }

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta { background: var(--accent); color: #fff; }
.cta__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(50px, 6vw, 96px) var(--gutter);
  display: grid;
  gap: clamp(30px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
}
.cta__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}
.cta h2 { margin-bottom: 18px; max-width: 20ch; }
.cta__copy { margin: 0 0 28px; max-width: 44ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__btn-call {
  border-radius: 3px;
  background: #fff;
  color: var(--accent-dark);
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 600;
}
.cta__btn-call:hover { background: var(--ink); color: #fff; }
.cta__btn-wa {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  color: #fff;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 600;
}
.cta__btn-wa:hover { background: rgba(255, 255, 255, 0.14); }
.cta__card {
  background: #fff;
  border-radius: 5px;
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: 0 20px 50px rgba(90, 18, 8, 0.28);
  color: var(--ink);
}
.cta__card-title { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); margin-bottom: 16px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--paper);
  border-top: 1px solid rgba(33, 29, 26, 0.08);
}
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(44px, 5vw, 80px) var(--gutter) clamp(96px, 9vw, 120px);
}
.site-footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.footer-col__title { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 16px; }
.footer-col__title--faint { color: var(--faint); }
.footer-col h3 { margin-bottom: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); }
.footer-col p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 52ch; }
.footer-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 4px;
  padding: 20px;
}
.footer-card b { font-size: 15px; font-weight: 600; }
.footer-card .sub { margin-top: 5px; font-size: 14px; color: var(--muted); }
.footer-card__sep { height: 1px; background: var(--loc-line); margin: 16px 0; }
.footer-phone {
  display: block;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-phone:hover { color: var(--accent); }
.footer-address { font-size: 14px; line-height: 1.7; color: var(--muted); }

.footer-divider { height: 1px; background: var(--card-line); margin: clamp(30px, 4vw, 48px) 0 22px; }
.footer-details { margin-bottom: 20px; }
.footer-details summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-details p { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--faint-2); max-width: 100ch; }
.footer-disclaimer { font-size: 11.5px; line-height: 1.7; color: var(--faint-2); max-width: 110ch; }
.footer-credit { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--faint-2); }
.footer-credit code { font-family: ui-monospace, monospace; font-size: 10.5px; background: #efeae4; padding: 1px 5px; border-radius: 3px; }

/* =====================================================================
   DOCK (fixed bottom bar)
   ===================================================================== */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  gap: 1px;
  background: var(--card-line);
  border-top: 1px solid rgba(33, 29, 26, 0.1);
  box-shadow: 0 -4px 18px rgba(33, 29, 26, 0.08);
}
.dock a, .dock button {
  flex: 1;
  background: #fff;
  padding: 15px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.dock a:hover { background: #faf0ee; color: var(--accent-dark); }
.dock .dock--primary { flex: 1.4; background: var(--accent); color: #fff; }
.dock .dock--primary:hover { background: var(--accent-hover); }

/* =====================================================================
   MODAL
   ===================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 19, 16, 0.7);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__card {
  width: min(450px, 100%);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(15, 12, 10, 0.4);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(24px, 3vw, 34px);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.modal__kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.modal__title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.15; }
.modal__close {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--input-border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal__body { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.modal__done { margin: 0 0 20px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.modal__wa {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.modal__wa:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =====================================================================
   STATE TOGGLES (no-JS friendly: hidden via [hidden] / .is-hidden)
   ===================================================================== */
[hidden], .is-hidden { display: none !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Hamburger toggle — hidden on desktop, shown at <=900px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--outline-line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .28s ease, opacity .28s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phone link lives inside the mobile nav panel; hidden in the inline desktop nav */
.site-nav__phone { display: none; }

/* <=900px : hamburger header + dropdown nav panel */
@media (max-width: 900px) {
  .site-header__inner { flex-wrap: nowrap; gap: 10px; }
  .nav-toggle { display: inline-flex; }

  /* Panel drops just below the sticky header. .site-header is the
     containing block (position: sticky != static). */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(33, 29, 26, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 13px 4px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--loc-line);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .site-nav__phone {
    display: block;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--loc-line);
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
  }

  /* Dimmed backdrop while the panel is open — a click on it (target = body)
     closes the menu via JS. Sits below the header (z60) but above the page. */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(23, 19, 16, 0.4);
    z-index: 55;
  }
  body.nav-open { overflow: hidden; }

  .amenities-panel { position: static; }

  /* Trust bar — 2×2 grid on tablet */
  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ── Mobile Hero (<900px) ── */
  .hero {
    min-height: calc(100svh - 58px);
    min-height: clamp(520px, 86svh, 740px);
    display: flex;
    align-items: flex-end;
  }
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(15, 12, 10, 0.12) 0%,
      rgba(15, 12, 10, 0.28) 32%,
      rgba(15, 12, 10, 0.72) 65%,
      rgba(15, 12, 10, 0.92) 88%,
      rgba(15, 12, 10, 0.98) 100%);
  }
  .hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: clamp(60px, 10vh, 100px) var(--gutter) 24px;
    gap: 0;
  }
  .hero .hero__card {
    display: none !important;
  }
  .hero__copy {
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
  }
  .hero__title {
    font-size: clamp(26px, 6.8vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.015em;
  }
  .hero__sub {
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.5;
    margin-top: 10px;
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.88);
  }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .stat__label {
    font-size: 9px;
    letter-spacing: 0.14em;
    margin-bottom: 4px;
  }
  .stat__value {
    font-size: clamp(16px, 4vw, 22px);
  }
  .hero__mobile-action {
    display: block;
    margin-top: 18px;
  }
  .btn--hero-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(224, 48, 27, 0.35);
  }
  .btn--hero-mobile svg {
    transition: transform 0.2s ease;
  }
  .btn--hero-mobile:active svg {
    transform: translateY(2px);
  }

  /* ── Mobile Lead Section (<900px) ── */
  .mobile-lead-section {
    display: block;
    background: var(--paper);
    padding: clamp(32px, 6vw, 44px) var(--gutter);
    border-bottom: 1px solid var(--card-line);
  }
  .mobile-lead-container {
    max-width: 460px;
    margin-inline: auto;
  }
  .mobile-lead-card {
    background: #ffffff;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 19, 16, 0.06);
    padding: clamp(22px, 5.5vw, 30px);
  }
  .mobile-lead-kicker {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 6px;
  }
  .mobile-lead-title {
    font-family: var(--serif);
    font-size: clamp(23px, 5.8vw, 28px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 6px;
  }
  .mobile-lead-subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .mobile-lead-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--loc-line);
  }
  .mobile-lead-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--card-line);
    padding: 4px 10px;
    border-radius: 100px;
  }
  .mobile-lead-badge-item svg {
    color: var(--accent);
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
  }
  .hero__stats .stat:last-child {
    grid-column: 1 / -1;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
  }
}

/* >=1024px : the fixed dock is a mobile/tablet aid only — hide it on
   desktop and trim the footer bottom padding that only existed to clear it. */
@media (min-width: 1024px) {
  .dock { display: none; }
  .site-footer__inner { padding-bottom: clamp(44px, 5vw, 80px); }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
    --section-y: 40px;
  }

  .header-phone { display: none; }
  .btn--header-cta { display: none; }

  /* ── Hero ── */
  .hero__title { font-size: clamp(26px, 7.5vw, 34px); }
  .stat__value { font-size: clamp(16px, 4.4vw, 20px); }

  /* ── Trust bar ── */
  .trust__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trust__item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(33, 29, 26, 0.08);
  }
  .trust__item:last-child { border-bottom: none; }

  /* ── Intro ── */
  .intro__grid { gap: 24px; }
  .intro__media { grid-template-columns: 1fr; }

  /* ── Residences ── */
  .residences__inner { padding-block: 40px; }
  .residences__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
  }

  /* ── Lifestyle ── */
  .lifestyle__inner { padding-block: 40px; }

  /* ── Amenities ── */
  .amenities-panel__grid {
    grid-template-columns: 1fr 1fr;
  }
  .amenity { padding: 12px 0; gap: 10px; }
  .amenity span { font-size: 13px; }

  /* ── Plans ── */
  .plans { padding-block: 40px; }
  .plans__grid { grid-template-columns: 1fr; }
  .plan-card { padding: 16px; }
  .plans__title { margin-bottom: 20px; }

  /* ── Location ── */
  .location__inner { padding-block: 40px; }
  .location__head { margin-bottom: 20px; gap: 16px; }
  .location__grid { gap: 20px; }

  /* ── Gallery ── */
  .gallery {
    padding-top: clamp(48px, 6vh, 70px);
    padding-bottom: clamp(20px, 3vh, 36px);
  }
  .gallery figure .media { height: clamp(200px, 38vh, 320px); }

  /* ── CTA ── */
  .cta__inner { padding-bottom: clamp(60px, 8vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
