@charset "UTF-8";

:root {
  /* Brand */
  --green-deep:  #234433;
  --green-dark:  #13281f;
  --red-royal:   #681310;
  --gold:        #d6a85a;
  --gold-light:  #e7be8a;
  --cream:       #fff3e1;

  /* Derived surfaces */
  --ink:         #0d1c15;
  --surface:     #1a3327;
  --surface-2:   #234433;
  --hairline:    rgba(214, 168, 90, 0.22);
  --hairline-soft: rgba(255, 243, 225, 0.10);

  --text:        #fff3e1;
  --text-muted:  rgba(255, 243, 225, 0.66);
  --text-faint:  rgba(255, 243, 225, 0.42);

  /* Type */
  --font-head: 'Cairo', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;

  --shell: 1280px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--green-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/images/logo/siwar-mark-cream.svg');
  background-size: 200px auto;
  opacity: 0.022;
  pointer-events: none;
  z-index: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.intro, .stats, .about, .gallery, .plans, .pricing, .partners, .contact {
  scroll-margin-top: 4.75rem;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--green-dark);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ─── Typography ────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-head__eyebrow { justify-content: center; }

.section-head__eyebrow {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-head__eyebrow::after {
  content: '';
  flex: 0 0 clamp(2rem, 8vw, 4rem);
  height: 2px;
  background: linear-gradient(to left, var(--gold), transparent);
}

.section-head__title {
  font-size: clamp(1.75rem, 5.2vw, 2.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-head__lede {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.3vw, 1.1rem);
  max-width: 58ch;
  line-height: 1.7;
  text-wrap: pretty;
  text-wrap: balance;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  min-height: 48px;
  text-align: center;
}
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; min-height: 42px; }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); }

.btn--ghost { border-color: var(--hairline); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--quiet { border-color: transparent; color: var(--text-muted); }
.btn--quiet:hover { color: var(--gold); border-color: var(--hairline-soft); }

.btn--goldline {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(214, 168, 90, 0.08);
}
.btn--goldline:hover { background: var(--gold); color: var(--ink); }

.btn:active { transform: translateY(1px); }

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn[disabled]:active, .btn[aria-disabled='true']:active { transform: none; }

/* ─── Tags ──────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}
.tag--sale  { color: var(--gold); border-color: var(--hairline); background: rgba(214,168,90,0.10); }
.tag--info  { color: var(--text-muted); border-color: var(--hairline-soft); }
.tag--now   { color: var(--gold); border-color: var(--gold); background: rgba(214,168,90,0.14); }
.tag--inline { margin-inline-start: 0.6rem; vertical-align: middle; }

/* ─── Money ─────────────────────────────────────────────────────── */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon-riyal {
  width: 0.7em;
  height: 0.78em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.05em;
  flex: 0 0 auto;
}

.money {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.money--lg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.money__num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ═══ Header ══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.site-header__brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.4rem, 1.4vw, 0.55rem);
}
.site-header__brand img {
  width: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.site-header__icon { height: clamp(32px, 7.5vw, 40px); }
.site-header__word { height: clamp(25px, 5.85vw, 31px); }
.site-header.is-scrolled {
  background: rgba(19, 40, 31, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-soft);
}
.site-header.is-scrolled .site-header__brand img {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ═══ Hero ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: min(100svh, calc(100vw / 2.313));
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}
@supports not (min-height: 100svh) { .hero { height: min(100vh, calc(100vw / 2.313)); } }

.hero__stage { position: absolute; inset: 0; z-index: -2; }

.hero__video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.hero__video img,
.hero__video video,
.hero__video picture { display: block; width: 100%; height: 100%; }
.hero__video video,
.hero__video img { object-fit: cover; object-position: 50% 50%; }

@media (max-width: 767px) {
  .hero { height: min(100svh, calc(100vw / 0.5625)); }
  .hero__video video,
  .hero__video img { object-fit: contain; object-position: 50% 0%; }
}

@supports (aspect-ratio: 1) {
  .hero {
    height: auto;
    aspect-ratio: 1920 / 830;
    max-height: 100svh;
  }
  @media (max-width: 767px) {
    .hero { aspect-ratio: 1080 / 1920; }
  }
}

/* ═══ Brand intro ═════════════════════════════════════════════════ */
.intro {
  background: var(--green-dark);
  border-bottom: 1px solid var(--hairline-soft);
  padding-block: clamp(2.75rem, 9vw, 4.5rem);
}
.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 2.2vw, 0.9rem);
}
.intro__brand img { width: auto; flex-shrink: 0; }
.intro__mark   { height: clamp(44px, 10.5vw, 62px); }
.intro__lockup { height: clamp(64px, 15vw, 88px); }

.intro__eyebrow {
  margin-top: clamp(1.4rem, 4.5vw, 2rem);
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.intro__tagline {
  margin-top: 0.5rem;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: var(--text);
  max-width: 34ch;
}

.intro__actions {
  margin-top: clamp(1.75rem, 5vw, 2.4rem);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem clamp(0.75rem, 2.5vw, 1rem);
}
.intro__actions .btn {
  flex: 0 1 auto;
  min-width: min(100%, 16rem);
}
@media (max-width: 479px) {
  .intro__actions { flex-direction: column; }
  .intro__actions .btn { width: 100%; min-width: 0; }
}

.intro__credit {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* ═══ Stats ═══════════════════════════════════════════════════════ */
.stats {
  padding-block: clamp(3rem, 8vw, 5rem);
  background: var(--surface);
  border-block: 1px solid var(--hairline-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}
.stats__item { text-align: center; }
.stats__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.stats__unit {
  display: block;
  font-size: 0.8125rem;
  color: var(--gold-light);
  margin-top: 0.4rem;
}
.stats__label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ═══ About ═══════════════════════════════════════════════════════ */
.about { padding-block: var(--section-y); }
.features {
  display: grid;
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature { background: var(--green-dark); padding: clamp(1.5rem, 4vw, 2.25rem); }
.feature__title {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  margin-bottom: 0.6rem;
  color: var(--cream);
  position: relative;
  padding-inline-start: 1rem;
}
.feature__title::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.feature__body { color: var(--text-muted); font-size: 0.96rem; }

/* ═══ Gallery ═════════════════════════════════════════════════════ */
.gallery { padding-block: var(--section-y); background: var(--ink); }
.gallery__grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--surface);
}
.gallery__btn img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.gallery__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.5s var(--ease);
  pointer-events: none;
}
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__btn:hover::after { border-color: var(--hairline); }

/* ═══ Floor plans ═════════════════════════════════════════════════ */
.plans { padding-block: var(--section-y); }

.floors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.floorcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.floorcard:hover { border-color: var(--hairline); transform: translateY(-2px); }
.floorcard:active { transform: translateY(0); }

.floorcard__thumb {
  display: block;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline-soft);
}
.floorcard__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--thumb-x, 50%) 50%;
  transition: transform 0.8s var(--ease);
}
.floorcard:hover .floorcard__thumb img { transform: scale(1.04); }

.floorcard__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1 1 auto;
}
.floorcard__title { font-size: clamp(1.02rem, 2.9vw, 1.2rem); color: var(--cream); }
.floorcard__sub { font-size: 0.8125rem; color: var(--text-muted); }
.floorcard__facts {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 0.15rem;
}
.floorcard__tag { margin-top: 0.7rem; }
.floorcard--minor { opacity: 0.78; }
.floorcard--minor:hover { opacity: 1; }

/* ═══ Floor-plan viewer ═══════════════════════════════════════════ */
.planview {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.planview[hidden] { display: none; }

.planview__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 11, 0.9);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.planview.is-open .planview__scrim { opacity: 1; }

.planview__panel {
  position: relative;
  width: 100%;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  background: var(--green-dark);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.planview.is-open .planview__panel { transform: none; }
@supports not (max-height: 92svh) { .planview__panel { max-height: 92vh; } }

.planview__grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline);
  margin: 0.6rem auto 0;
  flex: 0 0 auto;
}

.planview__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 1.5rem);
  border-bottom: 1px solid var(--hairline-soft);
  flex: 0 0 auto;
}
.planview__title { font-size: clamp(1.05rem, 3.2vw, 1.35rem); color: var(--cream); }
.planview__summary {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 0.15rem;
  line-height: 1.5;
}
.planview__close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--cream);
  border: 1px solid var(--hairline-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: -2px;
}
.planview__close:hover { color: var(--gold); border-color: var(--gold); }

.planview__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.planview__stage {
  direction: ltr;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  max-height: 58svh;
}
@supports not (max-height: 58svh) { .planview__stage { max-height: 58vh; } }
.planview__canvas {
  position: relative;
  width: calc(100% * var(--plan-zoom, 2.4));
}
.planview__canvas img { width: 100%; display: block; }

.planview__spots { position: absolute; inset: 0; }

.planview__spot {
  position: absolute;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: rgba(214, 168, 90, 0.16);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.planview__spot:hover,
.planview__spot:focus-visible {
  background: rgba(214, 168, 90, 0.5);
  border-color: var(--red-royal);
}
.planview__spot--taken {
  background: rgba(104, 19, 16, 0.78);
  border-color: rgba(58, 10, 8, 0.9);
}
.planview__spot--taken:hover,
.planview__spot--taken:focus-visible {
  background: rgba(104, 19, 16, 0.92);
  border-color: var(--ink);
}

.planview__spot--phase {
  background: rgba(13, 28, 21, 0.34);
  border: 1px dashed rgba(13, 28, 21, 0.7);
}
.planview__spot--phase:hover,
.planview__spot--phase:focus-visible {
  background: rgba(13, 28, 21, 0.5);
  border-color: var(--ink);
}

.planview__hint {
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem);
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.8125rem;
  color: var(--text-faint);
  text-align: center;
}
.planview__hint[hidden] { display: none; }
.planview__key { display: inline-flex; align-items: center; gap: 0.35rem; margin-inline-start: 0.9rem; }
.planview__key::before {
  content: '';
  width: 11px; height: 11px;
  border-radius: 2px;
  background: rgba(214, 168, 90, 0.5);
}
.planview__key--taken::before { background: rgba(104, 19, 16, 0.85); }
.planview__key--phase::before {
  background:
    linear-gradient(rgba(13, 28, 21, 0.34), rgba(13, 28, 21, 0.34)),
    var(--cream);
}

/* ─── Units on this floor ───────────────────────────────────────── */
.planview__units {
  padding: clamp(1.25rem, 5vw, 2rem) clamp(1rem, 4vw, 1.5rem)
           calc(clamp(1.25rem, 5vw, 2rem) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline-soft);
}
.planview__units[hidden] { display: none; }
.planview__unitsTitle {
  font-family: var(--font-head);
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}

.planview__toTop {
  position: fixed;
  inset-block-end: calc(clamp(1rem, 4vw, 2rem) + 6.5rem);
  inset-inline-end: clamp(1rem, 4vw, 2rem);
  z-index: 320;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--cream);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0s linear 0.35s;
}
.planview__toTop:hover,
.planview__toTop:focus-visible { color: var(--gold); border-color: var(--gold); }
.planview__toTop.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.planview__toTop svg { width: 1.25rem; height: 1.25rem; }
.planview__toTop svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══ Pricing ═════════════════════════════════════════════════════ */
.pricing { padding-block: var(--section-y); background: var(--ink); }

.pricing__table thead { display: none; }
.pricing__table tbody { display: grid; gap: 1rem; }
.pricing__table tr {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.pricing__table tr.is-featured {
  border-color: var(--hairline);
  background: linear-gradient(160deg, rgba(214,168,90,0.10), var(--surface) 55%);
}
.pricing__table th[scope='row'] {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: start;
  color: var(--cream);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.pricing__table td {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.4rem;
  font-size: 0.95rem;
}
.pricing__table td::before {
  content: attr(data-label);
  color: var(--text-faint);
  font-size: 0.8125rem;
  flex: 0 0 auto;
}
.pricing__table td:not(.price-withheld) { color: var(--gold-light); font-weight: 500; }
.price-withheld {
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.875rem;
  border-top: 1px solid var(--hairline-soft);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}
.price-withheld::before { content: none; }

.pricing__note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing__note--legal { color: var(--text-faint); font-size: 0.8125rem; }

/* ─── Payment plan ──────────────────────────────────────────────── */
.payplan {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.payplan__title { font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
.payplan__sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.75rem; }

.payplan__list { display: grid; gap: 0.75rem; }

.payplan__card {
  background: var(--green-dark);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
}
.payplan__card.is-first {
  border-color: var(--hairline);
  background: linear-gradient(160deg, rgba(214, 168, 90, 0.10), var(--green-dark) 60%);
}

.payplan__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.payplan__no {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}
.payplan__pct {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.payplan__meta { display: grid; gap: 0.5rem; }
.payplan__meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.payplan__meta dt { font-size: 0.8125rem; color: var(--text-faint); }
.payplan__meta dd {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--gold-light);
  text-align: end;
}
.payplan__milestone { font-size: 0.875rem; font-weight: 500; }

.payplan__note {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ═══ Units ═══════════════════════════════════════════════════════ */

.units__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  padding: clamp(1.75rem, 6vw, 2.75rem) 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(214, 168, 90, 0.09), transparent 60%),
    var(--surface);
}
.units__mark { height: 40px; width: auto; opacity: 0.75; margin-bottom: 0.35rem; }
.units__statusTitle {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  font-weight: 700;
  color: var(--cream);
}
.units__statusText { color: var(--text-muted); font-size: 0.96rem; max-width: 44ch; }
.units__statusActions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 0.6rem; }
.units__status[hidden] { display: none; }

.units__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.units__grid[hidden] { display: none; }

.unit {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.35s var(--ease);
}
.unit:hover { border-color: var(--hairline); }
.unit__num {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}
.unit__area { font-size: 0.875rem; color: var(--text-muted); }
.unit__tier { font-size: 0.8125rem; color: var(--gold-light); }
.unit__price {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}
.unit__state { font-size: 0.8125rem; color: var(--text-faint); }
.unit__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.unit__cta .btn { width: 100%; }
.unit__wa { font-size: 0.8125rem; padding-inline: 0.4rem; }
.unit.is-sold > :not(.unit__badge) { opacity: 0.5; }

/* ═══ Next-phase unit ═════════════════════════════════════════════ */
.unit.is-phase {
  border-style: dashed;
  background: transparent;
}
.unit.is-phase:hover { border-color: var(--hairline); }

.unit__phase {
  align-self: flex-start;
  margin-top: 0.15rem;
}

/* ═══ Buyer badge ═════════════════════════════════════════════════ */
.unit__badge {
  width: 100%;
  aspect-ratio: 5 / 2;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.unit__badge--tall {
  aspect-ratio: auto;
  height: auto;
}
.unit__badge__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 3px);
}
.unit__badge__text {
  width: 100%;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes unitFlash {
  0%   { box-shadow: 0 0 0 0 rgba(214, 168, 90, 0); }
  18%  { box-shadow: 0 0 0 3px rgba(214, 168, 90, 0.55), 0 0 34px rgba(214, 168, 90, 0.45); }
  70%  { box-shadow: 0 0 0 3px rgba(214, 168, 90, 0.4), 0 0 26px rgba(214, 168, 90, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(214, 168, 90, 0); }
}
.unit.is-flash {
  border-color: var(--gold);
  animation: unitFlash 1.8s var(--ease) 1;
}

.units__soon {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ═══ Partners ════════════════════════════════════════════════════ */
.partners {
  padding-block: var(--section-y);
  background: var(--ink);
}

.partners__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.partners__item {
  display: grid;
  grid-template-rows: auto 1fr;
  place-items: center;
  gap: 0.6rem;
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 4vw, 2rem);
}

.partners__role {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.partners__logo {
  width: auto;
  max-width: 100%;
  max-height: clamp(58px, 10vw, 104px);
}

.partners__logo--athar {
  max-height: clamp(67px, 11.5vw, 120px);
}

/* ═══ Contact ═════════════════════════════════════════════════════ */
.contact { padding-block: var(--section-y); background: var(--ink); }
.contact__grid { display: grid; gap: 1.5rem; }
.contact__panel {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
}
.contact__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.contact__row:last-child { border-bottom: 0; }
.contact__label { font-size: 0.8125rem; color: var(--text-faint); }
.contact__value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.3s var(--ease);
  width: fit-content;
}
a.contact__value:hover { color: var(--gold-light); }
.contact__value--plain { color: var(--cream); font-size: 0.98rem; font-weight: 400; line-height: 1.6; }

.contact__actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.contact__actions .btn { flex: 1 1 10rem; }

.contact__actions .contact__waBtn { flex-basis: 100%; }

.contact__maplink {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.contact__maplink:hover { color: var(--gold); }

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background: var(--surface);
  min-height: 320px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ═══ Footer ══════════════════════════════════════════════════════ */
.site-footer {
  padding-block: clamp(2.5rem, 7vw, 4rem);
  border-top: 1px solid var(--hairline-soft);
  background: var(--green-dark);
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
.site-footer__logo { height: clamp(64px, 15vw, 84px); width: auto; opacity: 0.95; }
.site-footer__credit { font-family: var(--font-head); color: var(--gold-light); font-size: 0.95rem; }
.site-footer__copy { color: var(--text-faint); font-size: 0.8125rem; }

/* ═══ Lightbox ════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 15, 11, 0.95);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--cream);
}
.lightbox__figure figcaption { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.lightbox__close {
  position: absolute;
  inset-block-start: clamp(0.75rem, 3vw, 1.5rem);
  inset-inline-end: clamp(0.75rem, 3vw, 1.5rem);
  width: 48px; height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--cream);
  border: 1px solid var(--hairline-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { color: var(--gold); border-color: var(--gold); }

/* ═══ Booking breakdown ═══════════════════════════════════════════ */
.bookmodal {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bookmodal[hidden] { display: none; }

.bookmodal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 7, 0.82);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.bookmodal.is-open .bookmodal__scrim { opacity: 1; }

.bookmodal__panel {
  position: relative;
  width: 100%;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  background: var(--green-dark);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.bookmodal.is-open .bookmodal__panel { transform: none; }
@supports not (max-height: 92svh) { .bookmodal__panel { max-height: 92vh; } }

.bookmodal__grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline);
  margin: 0.6rem auto 0;
  flex: 0 0 auto;
}

.bookmodal__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 1.75rem);
  border-bottom: 1px solid var(--hairline-soft);
  flex: 0 0 auto;
}
.bookmodal__eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  line-height: 1.4;
}
.bookmodal__title {
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  color: var(--cream);
  margin-top: 0.1rem;
}
.bookmodal__meta {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 0.1rem;
  line-height: 1.5;
}
.bookmodal__close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--cream);
  border: 1px solid var(--hairline-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: -2px;
}
.bookmodal__close:hover { color: var(--gold); border-color: var(--gold); }

.bookmodal__body {
  --bm-pad: clamp(1.1rem, 4vw, 1.75rem);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--bm-pad);
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3.5vw, 1.5rem);
}

/* ─── 1 · قيمة الوحدة ───────────────────────────────────────────── */
.bookmodal__secTitle {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.bookmodal__figure { color: var(--gold); }

.bookmodal__table {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.bookmodal__table th,
.bookmodal__table td {
  padding: 0.48rem 0;
  text-align: start;
  vertical-align: baseline;
}
.bookmodal__table thead th {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.5rem;
  white-space: nowrap;
}
.bookmodal__table tbody th {
  font-weight: 500;
  color: var(--text-muted);
  padding-inline-end: 0.75rem;
}
.bookmodal__table tbody td { color: var(--cream); }
.bookmodal__table tbody tr + tr th,
.bookmodal__table tbody tr + tr td { border-top: 1px solid var(--hairline-soft); }

.bookmodal__milestone {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 0.1rem;
}

.bookmodal__table tfoot th,
.bookmodal__table tfoot td {
  border-top: 1px solid var(--hairline);
  padding-top: 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cream);
}
.bookmodal__amt {
  text-align: end !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ─── 2 · العمولة والضريبة ──────────────────────────────────────── */
.bookmodal__sec--comm {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: clamp(0.9rem, 3.5vw, 1.25rem);
}
.bookmodal__rows { display: flex; flex-direction: column; gap: 0.15rem; }
.bookmodal__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  font-size: 0.94rem;
}
.bookmodal__row + .bookmodal__row { border-top: 1px solid var(--hairline-soft); }
.bookmodal__row dt { color: var(--text-muted); }
.bookmodal__row dd {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
}
.bookmodal__pct {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  margin-top: 0.1rem;
}

/* ─── 3 · الإجمالي المستحق الآن ─────────────────────────────────── */
.bookmodal__total {
  position: sticky;
  bottom: calc(-1 * var(--bm-pad));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: clamp(1rem, 3.5vw, 1.35rem) clamp(1rem, 3.5vw, 1.4rem);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(to left, rgba(214, 168, 90, 0.14), rgba(214, 168, 90, 0.04)),
    var(--green-dark);
  box-shadow: 0 -14px 28px -14px rgba(0, 0, 0, 0.7);
}
.bookmodal__totalTitle {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  font-weight: 700;
  color: var(--cream);
}
.bookmodal__totalHint {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.1rem;
}
.bookmodal__totalFigure { color: var(--gold); margin-inline-start: auto; }

/* ─── Note ──────────────────────────────────────────────────────── */
.bookmodal__note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-faint);
  padding-inline-start: 0.85rem;
  border-inline-start: 2px solid var(--hairline-soft);
}

/* ─── Footer ────────────────────────────────────────────────────── */
.bookmodal__foot {
  flex: 0 0 auto;
  display: flex;
  gap: 0.7rem;
  padding: clamp(0.85rem, 3.5vw, 1.15rem) clamp(1rem, 4vw, 1.75rem)
           calc(clamp(0.85rem, 3.5vw, 1.15rem) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline-soft);
  background: var(--ink);
}
.bookmodal__foot .btn { flex: 1 1 auto; }
.bookmodal__foot .btn--ghost { flex: 0 1 auto; }

@media (min-width: 768px) {
  .bookmodal { align-items: center; padding: clamp(1rem, 4vh, 2.5rem) 1.5rem; }
  .bookmodal__panel {
    width: min(560px, 100%);
    max-height: 88svh;
    border-bottom: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .bookmodal.is-open .bookmodal__panel { transform: none; opacity: 1; }
  @supports not (max-height: 88svh) { .bookmodal__panel { max-height: 88vh; } }
  .bookmodal__grip { display: none; }
  .bookmodal__table { font-size: 0.94rem; }
}

/* ═══ Terms & conditions ══════════════════════════════════════════ */
.bookmodal--terms {
  z-index: 370;
}
@media (min-width: 768px) {
  .bookmodal--terms .bookmodal__panel { width: min(600px, 100%); }
}

.terms__doc {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: start;
}
.terms__lede {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 1.4rem;
}

.terms__list { counter-reset: term; display: flex; flex-direction: column; gap: 1.35rem; }
.terms__list > li {
  counter-increment: term;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0 0.7rem;
}
.terms__list > li::before {
  content: counter(term);
  grid-row: 1 / span 2;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

/* ─── Consent gate ──────────────────────────────────────────────── */
.bookmodal__foot--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}
.terms__consent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--cream);
  cursor: pointer;
  user-select: none;
}
.terms__check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.terms__consent:hover { color: var(--gold-light); }

.terms__actions { display: flex; gap: 0.7rem; }

/* ═══ Customer data ═══════════════════════════════════════════════ */
.bookmodal--lead {
  z-index: 380;
}
@media (min-width: 768px) {
  .bookmodal--lead .bookmodal__panel { width: min(520px, 100%); }
}

.lead__form { display: flex; flex-direction: column; gap: 1.05rem; }
.lead__form[hidden] { display: none; }
.bookmodal__foot[hidden] { display: none; }

.lead__lede {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ─── Fields ────────────────────────────────────────────────────── */
.lead__field { display: flex; flex-direction: column; gap: 0.4rem; }

.lead__label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.5;
}
.lead__req { color: var(--gold); }
.lead__opt { font-weight: 400; font-size: 0.8125rem; color: var(--text-faint); }

.lead__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  text-align: start;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.lead__input[dir='ltr'] { text-align: right; }
.lead__input::placeholder { color: var(--text-faint); }
.lead__input:hover { border-color: var(--hairline); }
.lead__input:focus {
  outline: none;
  border-color: var(--gold);
  background: #0a1610;
}
.lead__input[aria-invalid='true'] {
  border-color: var(--red-royal);
  background: rgba(104, 19, 16, 0.45);
}
.lead__input[aria-invalid='true']:focus {
  border-color: var(--gold);
  background: #0a1610;
}
.lead__input[disabled] { opacity: 0.55; cursor: not-allowed; }

.lead__err {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gold-light);
}

/* ─── Phone verification (OTP) ──────────────────────────────────── */

.lead__phoneRow { display: flex; flex-direction: column; gap: 0.5rem; }

@media (min-width: 480px) {
  .lead__phoneRow { flex-direction: row; align-items: stretch; }
  .lead__phoneRow .lead__input { flex: 1 1 auto; min-width: 0; }
  .lead__otpSend { flex: 0 0 auto; }
}
.lead__otpSend { white-space: nowrap; }
.lead__otpSend[hidden] { display: none; }

/* ─── Confirmed state ───────────────────────────────────────────── */
.lead__otpOk {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}
.lead__otpOk[hidden] { display: none; }
.lead__otpTick { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.lead__otpTick circle,
.lead__otpTick path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Code entry ────────────────────────────────────────────────── */
.lead__otp {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.15rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  background: rgba(214, 168, 90, 0.045);
}
.lead__otp[hidden] { display: none; }

.lead__otpLabel {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cream);
}

.lead__otpHint {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.lead__otpSender {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.lead__otpClock { unicode-bidi: isolate; direction: ltr; color: var(--gold-light); }

.lead__otpRow { display: flex; align-items: stretch; gap: 0.5rem; }

.lead__input.lead__otpInput {
  flex: 0 1 9.5rem;
  min-width: 0;
  text-align: center;
  letter-spacing: 0.3em;
  padding-inline-end: calc(0.9rem - 0.3em);
  font-size: 1.05rem;
}
.lead__otpVerify { flex: 0 0 auto; white-space: nowrap; }

.lead__otpResend {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}
.lead__otpResend[hidden] { display: none; }
.lead__otpResend:hover { color: var(--gold-light); }
.lead__otpResend[disabled] {
  color: var(--text-faint);
  text-decoration: none;
  cursor: not-allowed;
}

/* ─── Gate hint ─────────────────────────────────────────────────── */
#leadFoot { flex-wrap: wrap; }
.lead__gateHint {
  flex: 1 0 100%;
  order: -1;
  margin-bottom: 0.1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-faint);
}
.lead__gateHint[hidden] { display: none; }

/* ─── Inline alert ──────────────────────────────────────────────── */
.lead__alert {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--cream);
  background: rgba(104, 19, 16, 0.28);
  border: 1px solid rgba(104, 19, 16, 0.85);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
}
.lead__alert[hidden] { display: none; }
.lead__alert.is-gone {
  background: rgba(214, 168, 90, 0.10);
  border-color: var(--hairline);
}
.lead__alertHint { color: var(--text-muted); font-size: 0.8125rem; }

.lead__privacy {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-faint);
  padding-inline-start: 0.85rem;
  border-inline-start: 2px solid var(--hairline-soft);
}

/* ─── Busy state ────────────────────────────────────────────────── */
.lead__spin { display: none; }
.is-busy > .lead__spin {
  display: block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: lead-spin 0.7s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }

/* ─── Confirmation ──────────────────────────────────────────────── */
.lead__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: clamp(0.5rem, 3vw, 1.25rem) 0;
}
.lead__done[hidden] { display: none; }

.lead__doneMark { width: 68px; height: 68px; color: var(--gold); }
.lead__doneMark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.lead__doneMark circle {
  opacity: 0.45;
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
  animation: lead-draw 0.55s var(--ease) forwards;
}
.lead__doneMark path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: lead-draw 0.4s var(--ease) 0.35s forwards;
}
@keyframes lead-draw { to { stroke-dashoffset: 0; } }

.lead__doneMsg {
  font-family: var(--font-head);
  font-size: clamp(1.02rem, 3.2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--cream);
  max-width: 30ch;
}

.lead__ref {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.lead__refLabel {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  line-height: 1.5;
}
.lead__refValue {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.lead__doneHint {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 34ch;
}

/* ═══ Toast ═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  inset-block-end: clamp(1rem, 4vw, 2rem);
  inset-inline: clamp(1rem, 4vw, 2rem);
  z-index: 400;
  margin-inline: auto;
  max-width: 30rem;
  background: var(--surface-2);
  color: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.95rem 1.35rem;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast[hidden] { display: none; }
.toast.is-visible { opacity: 1; transform: none; }

/* ═══ Scroll reveal ═══════════════════════════════════════════════ */
.reveal-ready .reveal { opacity: 0; transform: translateY(26px); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ═══ Breakpoints ═════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .site-header__brand img { opacity: 1; transform: none; pointer-events: auto; }
  .section-head__lede { max-width: 40ch; }
}

@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .gallery__item--wide { grid-column: span 2; }
  .units__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .features { grid-template-columns: repeat(2, 1fr); }

  .floors { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .partners__grid { grid-template-columns: repeat(3, 1fr); }
  .partners__item { padding-inline: clamp(0.25rem, 1.2vw, 0.75rem); }

  /* ─── Sheet → centred modal ─────────────────────────────────────── */
  .planview { align-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
  .planview__panel {
    max-width: 1100px;
    max-height: 88svh;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .planview.is-open .planview__panel { transform: none; opacity: 1; }
  .planview__grip { display: none; }
  .planview__stage { border-radius: 0; }
  .planview__canvas { --plan-zoom: 1; }
  .planview__hint { padding-bottom: 0.7rem; }
}

@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .units__grid { grid-template-columns: repeat(4, 1fr); }
  .stats__grid { grid-template-columns: repeat(6, 1fr); }

  .partners__item { padding-inline: clamp(1rem, 4vw, 2rem); }

  .contact__grid { grid-template-columns: 1fr 1.15fr; align-items: stretch; }
  .contact__map { min-height: 100%; }

  /* ─── Pricing table ─────────────────────────────────────────────── */
  .pricing__table { border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); overflow: hidden; }
  .pricing__table thead { display: table-header-group; }
  .pricing__table tbody { display: table-row-group; }
  .pricing__table tr { display: table-row; background: transparent; border: 0; border-radius: 0; padding: 0; }
  .pricing__table th, .pricing__table td { display: table-cell; padding: 1.15rem 1.35rem; text-align: start; vertical-align: middle; }
  .pricing__table thead th {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold);
    background: rgba(214, 168, 90, 0.07);
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
  }
  .pricing__table tbody tr + tr { border-top: 1px solid var(--hairline-soft); }
  .pricing__table th[scope='row'] {
    font-size: 1rem;
    border-bottom: 0;
    margin: 0;
    padding-bottom: 1.15rem;
    color: var(--cream);
    white-space: nowrap;
  }
  .pricing__table td::before { content: none; }
  .pricing__table tbody tr.is-featured { background: linear-gradient(to left, rgba(214,168,90,0.10), transparent 70%); }
  .pricing__table tbody tr.is-withheld th[scope='row'],
  .pricing__table tbody tr.is-withheld td { color: var(--text-muted); }
  .price-withheld {
    text-align: center;
    border-top: 0;
    margin: 0;
    padding-top: 1.15rem;
    color: var(--text-faint) !important;
    font-style: normal;
  }

  /* ─── Payment cards ─────────────────────────────────────────────── */
  .payplan__card {
    display: grid;
    grid-template-columns: minmax(9rem, 0.9fr) 1.6fr;
    align-items: center;
    gap: 0 2rem;
    padding: 1.1rem 1.5rem;
  }
  .payplan__head {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
    border-inline-end: 1px solid var(--hairline-soft);
    padding-inline-end: 2rem;
    margin-inline-end: -2rem;
  }
  .payplan__meta {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: space-between;
    gap: 2rem;
  }
  .payplan__meta div {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
  }
  .payplan__meta dd { text-align: start; }
}

/* ═══ Reduced motion ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
}
