/* ==========================================================================
   The Raya at Park Street: premium theme
   Midnight (from the dusk renders), champagne gold (from the logo), ivory.
   Display: Cormorant Garamond. Text: Jost.
   ========================================================================== */

:root {
  --night: #0b1320;
  --midnight: #101b2d;
  --midnight-2: #16233a;
  --midnight-line: rgba(214, 178, 128, 0.22);
  --ivory: #f4efe7;
  --porcelain: #fbf9f5;
  --stone: #e2d9cc;

  --gold: #c9a36b;
  --gold-soft: #e3c796;
  --gold-text: #8a5f33;          /* AA on light backgrounds */
  --gold-grad: linear-gradient(115deg, #f0d4a4 0%, #c8995f 42%, #a8773f 62%, #e8c690 100%);
  --btn-grad: linear-gradient(180deg, #ecd3a4 0%, #d3a86c 55%, #c3935a 100%);

  --text: #1c2230;
  --muted: #5a6070;
  --on-dark: #efe8dc;
  --on-dark-muted: #a9b2c2;
  --error: #b3261e;
  --focus: #d6b280;

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;

  --header-h: 78px;
  --bar-h: 0px;
  --radius: 2px;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--porcelain);
  overflow-x: hidden;
}
body.has-dialog { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold-text); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: 0.75rem 1rem; background: var(--night); color: #fff; }
.skip-link:focus { top: 1rem; color: #fff; }

.gold-text {
  color: var(--gold);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kicker {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.fine { font-size: 0.85rem; line-height: 1.55; color: var(--muted); max-width: 78ch; margin-top: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 0.82rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--btn-grad); color: var(--night); box-shadow: 0 10px 24px -14px rgba(168, 119, 63, 0.9); }
.btn--primary:hover { color: var(--night); filter: brightness(1.08) saturate(1.05); }
.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn--ghost:hover { color: var(--gold-text); }
.btn--small { min-height: 44px; padding: 0.6rem 1.1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, 0.97);
  border-bottom: 1px solid var(--stone);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold-grad); opacity: 0; transition: opacity 0.3s ease;
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1440px; height: var(--header-h);
  margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 1rem; flex-shrink: 0; min-height: 44px; text-decoration: none; }
.brand__raya { width: auto; height: 48px; }
.brand__dev { width: auto; height: 30px; }
.brand__rule { width: 1px; height: 32px; background: var(--stone); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.15rem; list-style: none; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.85rem;
  color: var(--text); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 8px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--gold-text); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-header__cta { flex-shrink: 0; }

/* ---------- Menu toggle + drawer (tablet and mobile) ---------- */
.menu-toggle {
  display: none;
  align-items: center; gap: 0.6rem;
  min-width: 44px; min-height: 44px; padding: 0 0.25rem 0 0.5rem;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  font: 500 0.75rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase;
}
.menu-toggle__icon { display: grid; gap: 5px; width: 24px; }
.menu-toggle__icon span { display: block; height: 1.5px; background: currentColor; }
.menu-toggle__icon span:nth-child(2) { width: 70%; margin-left: auto; background: var(--gold); }
.no-js .menu-toggle { display: none !important; }

.dialog.dialog--drawer { padding: 0; place-items: stretch end; }
.drawer {
  position: relative;
  display: flex; flex-direction: column; gap: 1.5rem;
  width: min(360px, 88vw); height: 100%;
  padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--night);
  color: var(--on-dark);
  border-left: 1px solid var(--midnight-line);
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__logo { height: 44px; width: auto; }
.drawer__close {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--gold-soft); cursor: pointer;
}
.drawer__list { list-style: none; border-top: 1px solid var(--midnight-line); }
.drawer__list li { border-bottom: 1px solid var(--midnight-line); }
.drawer__list a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 500;
  color: var(--on-dark); text-decoration: none;
}
.drawer__list a:hover, .drawer__list a:focus-visible { color: var(--gold-soft); }
.drawer__rera { margin: auto 0 0; font-size: 0.8rem; color: var(--on-dark-muted); }
@media (prefers-reduced-motion: no-preference) {
  .dialog--drawer:not([hidden]) .drawer { animation: drawer-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(540px, calc(100svh - var(--header-h)), 780px);
  background: var(--night);
  color: var(--on-dark);
}
.hero__media { position: relative; order: 2; min-height: 100%; overflow: hidden; background: var(--midnight-2); --slit: 31%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 19, 32, 0.55) 0%, rgba(11, 19, 32, 0) 22%);
}
.hero__media picture { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: bridge-reveal 1.6s cubic-bezier(0.16, 0.84, 0.24, 1) 0.1s both; }
}
@keyframes bridge-reveal {
  from { clip-path: inset(0 var(--slit) 0 var(--slit)); }
  to { clip-path: inset(0 0 0 0); }
}
.hero__copy {
  order: 1; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 4vw, 4.5rem);
  border-right: 1px solid var(--midnight-line);
}
.hero .kicker { color: var(--gold-soft); }
.hero__title { color: #fff; }
.hero__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
}
.hero__offer {
  display: block; margin-top: 1.25rem; max-width: 36ch;
  font-family: var(--font-body); font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 400; line-height: 1.5; color: var(--on-dark);
}
.hero__offer strong { font-weight: 600; font-size: 1.15em; }
.hero__lede { margin-top: 1.1rem; max-width: 40ch; color: var(--on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.hero .btn--ghost { color: var(--on-dark); border-color: rgba(227, 199, 150, 0.6); }
.hero .btn--ghost:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.hero__rera { margin: 1.5rem 0 0; font-size: 0.85rem; color: var(--on-dark-muted); }
.hero__rera a { color: var(--on-dark); }

/* ---------- Facts ---------- */
.facts { background: var(--midnight); border-top: 1px solid var(--midnight-line); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.facts__list li {
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.6rem 1.5rem; border-left: 1px solid var(--midnight-line);
}
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__value { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; color: var(--gold-soft); }
.facts__label { font-size: 0.85rem; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--porcelain); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--midnight); color: var(--on-dark-muted); }
.section--dark .kicker { color: var(--gold-soft); }
.section--dark .section-title,
.section--dark h3 { color: #fff; }
.section--dark .fine { color: var(--on-dark-muted); }
.section--dark a:not(.btn) { color: var(--gold-soft); }

.section-head { display: flex; align-items: flex-end; gap: 1.75rem; margin-bottom: 1.25rem; }
.section-head::after {
  content: ""; flex: 1 1 2rem; height: 1px; margin-bottom: 0.8rem;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 163, 107, 0) 100%);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.05;
}
.section-intro { max-width: 60ch; margin-bottom: 2.25rem; color: var(--muted); }
.section--dark .section-intro { color: var(--on-dark-muted); }

/* ---------- Overview ---------- */
.overview__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.overview__lede { margin-top: 1.5rem; font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.45; max-width: 40ch; color: var(--text); }
.overview__points { margin: 0; display: grid; gap: 1.5rem; }
.overview__points div { padding-top: 1.1rem; border-top: 1px solid var(--stone); }
.overview__points dt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--text); }
.overview__points dd { margin: 0.3rem 0 0; color: var(--muted); }

/* ---------- Cost sheet cards ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.unit {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.6rem 1.5rem;
  background: linear-gradient(180deg, var(--midnight-2) 0%, rgba(22, 35, 58, 0.55) 100%);
  border: 1px solid var(--midnight-line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.unit::before {
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: -1px; height: 2px;
  background: var(--gold-grad);
}
.unit:hover { border-color: rgba(214, 178, 128, 0.55); }
.unit__type { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; color: #fff; }
.unit__area { margin: 1.1rem 0 0; color: var(--on-dark); font-size: 1rem; }
.unit__num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; line-height: 1; color: #fff; }
.unit__label { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--on-dark-muted); }
.unit__carpet { display: block; }
.unit__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem;
  margin: 1.25rem 0 1.25rem; padding-top: 1.1rem;
  border-top: 1px solid var(--midnight-line);
}
.unit__from { flex-basis: 100%; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-muted); }
.unit__amount { font-family: var(--font-display); font-size: 2.35rem; font-weight: 600; line-height: 1.1; }
.unit__onwards { font-size: 0.9rem; color: var(--on-dark-muted); }
.unit .btn { margin-top: auto; }
.section--dark .unit__link {
  align-self: center; display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.35rem;
  font-size: 0.85rem; color: var(--on-dark-muted);
}
.section--dark .unit__link:hover { color: var(--gold-soft); }

.cost-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  margin-top: 2.25rem; padding: 1.6rem 1.75rem;
  border: 1px solid var(--midnight-line);
  background: rgba(201, 163, 107, 0.07);
}
.cost-band__text { margin: 0; max-width: 56ch; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.35; color: #fff; }

/* ---------- Floor plans (gated) ---------- */
.fp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.fp { margin: 0; }
.fp__media {
  position: relative; overflow: hidden;
  aspect-ratio: 800 / 566;
  background: #fff; border: 1px solid var(--stone);
}
.fp__media img, .fp__media picture { width: 100%; height: 100%; object-fit: cover; }
.fp__media > a { display: block; height: 100%; }
.fp__lock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  background: rgba(11, 19, 32, 0.38);
  color: #fff;
}
.fp__icon { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.fp__open {
  position: absolute; right: 0; bottom: 0; padding: 0.45rem 0.8rem;
  background: var(--night); color: #fff; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.fp figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.9rem; }
.fp__type { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.fp__area { font-size: 0.85rem; color: var(--muted); text-align: right; }

/* ---------- Amenities ---------- */
.amenities__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin: 1.5rem 0 0; }
.amenities__heading { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; margin-bottom: 0.75rem; }
.amenity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; list-style: none; }
.amenity-list li {
  display: flex; align-items: center; gap: 0.9rem; min-height: 66px;
  border-bottom: 1px solid var(--stone); color: var(--text); font-weight: 400;
}
.icon {
  flex-shrink: 0; width: 34px; height: 34px; fill: none;
  stroke: var(--gold-text); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Gallery ---------- */
.carousel__track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  list-style: none; scrollbar-width: none; padding-bottom: 0.25rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__slide figure { margin: 0; }
.carousel__slide a { display: block; }
.carousel__slide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--midnight-2); }
.carousel__slide figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--on-dark-muted); }
.carousel__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.carousel__btn {
  display: inline-grid; place-items: center; width: 50px; height: 50px;
  border: 1px solid rgba(227, 199, 150, 0.55); border-radius: 50%;
  background: transparent; color: var(--gold-soft); cursor: pointer;
}
.carousel__btn:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.carousel__btn[disabled] { opacity: 0.3; cursor: default; background: transparent; color: var(--gold-soft); }
.carousel__status { margin: 0; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--on-dark-muted); min-width: 7ch; }
.no-js .carousel__controls { display: none; }

/* ---------- Location ---------- */
.location__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.location__lede { font-family: var(--font-display); font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.45; color: var(--text); max-width: 36ch; }
.location__address { font-style: normal; font-size: 0.95rem; color: var(--muted); margin: 0 0 1rem; max-width: 40ch; }
.plain-list { list-style: none; margin-bottom: 1.75rem; }
.plain-list li { padding: 0.6rem 0 0.6rem 1.25rem; border-bottom: 1px solid var(--stone); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.location__media { position: relative; padding-bottom: 12%; }
.location__media figure { margin: 0; }
.location__view img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.location__view figcaption { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted); text-align: right; }
.location .section-head::after { display: none; }
.location__site {
  position: absolute; left: -8%; bottom: 0; width: 46%;
  padding: 0.5rem; background: var(--porcelain);
  box-shadow: 0 24px 40px -24px rgba(11, 19, 32, 0.55);
  border-top: 2px solid var(--gold);
}
.location__site a { display: block; }
.location__site figcaption { margin-top: 0.4rem; font-size: 0.75rem; color: var(--muted); }

/* ---------- Developer ---------- */
.developer__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 1.5rem 0 0; }
.developer__facts div { padding-top: 1.1rem; border-top: 1px solid var(--gold); }
.developer__facts dt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.developer__facts dd { margin: 0; color: var(--muted); }

/* ---------- Final enquiry ---------- */
.section.enquire { background: var(--night); }
.enquire__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.enquire__copy p { margin-top: 1.25rem; max-width: 42ch; }
.steps { margin-top: 1.5rem; padding-left: 1.4rem; display: grid; gap: 0.75rem; }
.steps li::marker { color: var(--gold); font-family: var(--font-display); font-weight: 600; }
.enquire__form {
  position: relative;
  background: var(--porcelain); color: var(--text);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.enquire__form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 1rem; }
.lead-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.9rem; color: var(--text); }
.req { color: var(--error); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select {
  width: 100%; min-height: 50px; padding: 0.65rem 0.9rem;
  border: 1px solid #8f8a80; border-radius: var(--radius);
  background: #fff; color: var(--text); font: 400 1rem/1.3 var(--font-body);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231c2230' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem;
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { margin: 0; font-size: 0.88rem; font-weight: 500; color: var(--error); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.25rem 0.75rem; }
.field--check input { width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--gold-text); }
.field--check label { font-weight: 400; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.field--check .field__error { grid-column: 1 / -1; }
.form-privacy { margin: -0.25rem 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { padding: 1rem 1.1rem; border: 2px solid var(--error); background: #fdf3f2; color: var(--text); }
.error-summary[hidden] { display: none; }
.error-summary__title { margin: 0 0 0.4rem; font-weight: 600; color: var(--error); }
.error-summary ul { padding-left: 1.2rem; }
.error-summary a { color: var(--error); }

/* ---------- Dialogs ---------- */
.dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.dialog[hidden] { display: none; }
.dialog__backdrop { position: absolute; inset: 0; background: rgba(8, 13, 22, 0.82); }
.dialog__panel {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 2rem);
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--porcelain);
}
.dialog__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
.dialog__close {
  position: absolute; top: 0.6rem; right: 0.6rem; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.dialog__title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1.05; padding-right: 2.5rem; }
.dialog__desc { margin: 0.75rem 0 1.25rem; color: var(--muted); font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .dialog:not([hidden]) .dialog__panel { animation: rise 0.3s ease-out; }
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.dialog--lightbox { padding: 0; grid-template-rows: 1fr auto; }
.dialog--lightbox .dialog__backdrop { background: rgba(8, 13, 22, 0.95); }
.lightbox__figure { position: relative; margin: 0; padding: 1rem 1rem 0; display: grid; place-items: center; align-self: stretch; min-height: 0; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; background: #fff; }
.lightbox__caption { margin-top: 0.6rem; color: var(--on-dark-muted); font-size: 0.9rem; text-align: center; max-width: 80ch; }
.lightbox__controls { position: relative; display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); }
.lightbox__btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(227, 199, 150, 0.5); border-radius: 50%;
  background: transparent; color: var(--gold-soft); cursor: pointer;
}
.lightbox__btn:hover { border-color: var(--gold-soft); }
.lightbox__btn[hidden] { display: none; }
.lightbox__count { margin: 0; color: var(--on-dark-muted); font-size: 0.9rem; min-width: 5ch; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding-block: 2rem; font-size: 0.85rem; border-top: 1px solid var(--midnight-line); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold-soft); }
.footer { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; }
.footer__rera, .footer__partner { display: flex; align-items: center; gap: 1rem; }
.footer__qr { width: 120px; height: 120px; padding: 6px; background: #fff; }
.footer__logo { width: 160px; height: auto; background: #fff; }
.footer__num { font-size: 0.95rem; color: var(--on-dark); }
.footer__disclaimer, .footer__links { grid-column: 1 / -1; max-width: 120ch; }
.footer__disclaimer { padding-top: 1.25rem; border-top: 1px solid var(--midnight-line); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Simple pages ---------- */
.simple { padding-block: clamp(3rem, 8vw, 5.5rem); background: var(--ivory); }
.simple__wrap { max-width: 980px; }
.simple__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.05; margin-bottom: 1.25rem; }
.simple__lede { font-size: 1.1rem; }
.simple__sub { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
.simple .steps li::marker { color: var(--gold-text); }
.simple .fp-grid { margin-top: 1rem; }
.simple__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 2rem 0 0.5rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4rem; }
.prose p, .prose li { max-width: 70ch; }

/* ---------- Thank-you page ---------- */
.thanks {
  display: grid; place-items: center;
  min-height: calc(100svh - var(--header-h) - 220px);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background: radial-gradient(ellipse at 50% 0%, var(--midnight-2) 0%, var(--night) 70%);
}
.thanks__card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  border: 1px solid var(--midnight-line);
  background: rgba(16, 27, 45, 0.6);
}
.thanks__card::before { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 2px; background: var(--gold-grad); }
.thanks__logo { width: 180px; height: auto; margin: 0 auto 1.75rem; }
.thanks__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; color: #fff; }
.thanks__text { margin: 1rem auto 2rem; max-width: 34ch; font-size: 1.1rem; color: var(--on-dark-muted); }

/* ---------- Backend (leads.php) ---------- */
.admin .wrap { max-width: 1240px; }
.admin__login { max-width: 420px; }
.admin__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.admin__bar form { margin: 0; }
.admin__count { margin: 0 1rem 0 0; font-size: 1.1rem; }
.admin__table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--stone); }
.admin__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin__table th, .admin__table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--stone); white-space: nowrap; }
.admin__table th { background: var(--ivory); color: var(--text); font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__cta { margin-left: auto; }
}
@media (max-width: 1023px) {
  .fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .developer__facts { grid-template-columns: 1fr; gap: 1.25rem; }
  .amenity-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .overview__grid, .location__grid, .enquire__grid { grid-template-columns: 1fr; }
  .location__media { padding-bottom: 0; }
  .unit-grid { grid-template-columns: 1fr; max-width: 520px; }
  .location__media .location__site { position: relative; left: auto; width: 72%; margin: 0.75rem 0 0 auto; }
  .location__view figcaption { text-align: left; }
  .amenities__grid { grid-template-columns: 1fr; gap: 2rem; }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__list li:nth-child(n + 3) { border-top: 1px solid var(--midnight-line); }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; --bar-h: calc(74px + env(safe-area-inset-bottom)); }
  .brand { gap: 0.7rem; }
  .brand__raya { height: 38px; }
  .brand__dev { height: 24px; }
  .brand__rule { height: 26px; }
  .site-header__cta { display: none; }
  .menu-toggle { margin-left: auto; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: 1; height: min(115vw, 58svh); min-height: 0; --slit: 18%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(11, 19, 32, 0.6) 0%, rgba(11, 19, 32, 0) 30%); }
  .hero__copy { order: 2; padding-block: 1.75rem 2.25rem; border-right: 0; }
  .hero__actions .btn { flex: 1 1 100%; }

  .facts__list li { padding: 1rem 0.75rem; }
  .facts__value { font-size: 1.4rem; }
  .section-head::after { display: none; }

  .unit-grid, .fp-grid { grid-template-columns: 1fr; }
  .unit { padding: 1.4rem 1.25rem 1.25rem; }
  .unit__num { font-size: 2.2rem; }
  .unit__amount { font-size: 2.1rem; }
  .cost-band { padding: 1.25rem; }
  .cost-band .btn { width: 100%; }

  .footer { grid-template-columns: 1fr; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.5rem;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(11, 19, 32, 0.97);
    border-top: 1px solid var(--midnight-line);
  }
  .mobile-bar .btn { padding-inline: 0.75rem; }
  .mobile-bar .btn--ghost { color: var(--on-dark); border-color: rgba(227, 199, 150, 0.6); }
}
@media (max-width: 400px) {
  .facts__list { grid-template-columns: 1fr; }
  .facts__list li { border-left: 0; padding-left: 0; border-top: 1px solid var(--midnight-line); }
  .facts__list li:first-child { border-top: 0; }
  .brand__dev { height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .site-header, .mobile-bar, .dialog, .hero__actions { display: none !important; }
}
