/* ==========================================================================
   Palm Jebel Ali — Private Client Landing Page
   Design system + layout
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --ink:        #0A1114;
  --ink-2:      #0F1B20;
  --ink-3:      #16262C;
  --line:       rgba(228, 216, 196, 0.14);
  --line-solid: #1E2F36;

  --cream:      #F7F3EC;
  --cream-2:    #EDE6DA;
  --sand:       #C9B79A;

  --gold:       #B4924F;
  --gold-lite:  #DCC08A;
  --gold-pale:  #F0E0BE;
  --gold-glow:  rgba(180, 146, 79, 0.28);
  /* Foil gradient used for headline accents and ornaments */
  --foil: linear-gradient(100deg, #8E6F35 0%, #DCC08A 26%, #F6E9C9 44%, #C9A961 62%, #8E6F35 100%);

  --text:       #F7F3EC;
  --text-mute:  rgba(247, 243, 236, 0.60);
  --text-dim:   rgba(247, 243, 236, 0.42);

  --ink-on-light:      #0F1B20;
  --mute-on-light:     rgba(15, 27, 32, 0.62);
  --dim-on-light:      rgba(15, 27, 32, 0.42);
  --line-on-light:     rgba(15, 27, 32, 0.12);

  /* Type */
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space */
  --gut:     clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5.5rem, 11vw, 10rem);
  --max:     1240px;
  --max-narrow: 860px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }

/* Fine film grain over the whole page — kills banding in the sky gradients
   and gives the dark sections a printed, tactile quality. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-lite); outline-offset: 3px; border-radius: 2px; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: var(--max-narrow); }
.section { padding-block: var(--section); position: relative; }
.section--light { background: var(--cream); color: var(--ink-on-light); }
.section--mid   { background: var(--ink-2); }

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-lite);
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.section--light .eyebrow { color: #8A6D2E; }
.section--light .eyebrow::before { background: #8A6D2E; }

.h-display {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h-section {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.95rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.h-sub {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
}
.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.72;
  color: var(--text-mute);
  max-width: 62ch;
}
.section--light .lede { color: var(--mute-on-light); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.gold { color: var(--gold-lite); }
.section--light .gold { color: #8A6D2E; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--light .rule { background: var(--line-on-light); }

/* Gold-foil text — used on the single accent phrase in each big headline.
   Falls back to solid gold where background-clip:text isn't supported. */
.foil {
  font-style: italic;
  color: var(--gold-lite);
  background: var(--foil);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foilShift 9s linear infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil { -webkit-text-fill-color: currentColor; background: none; }
}
@keyframes foilShift { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) { .foil { animation: none; } }

/* Palm-frond ornament between sections */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.ornament::before, .ornament::after {
  content: "";
  height: 1px; width: clamp(40px, 9vw, 96px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.ornament svg { color: var(--gold); flex: none; }

/* Thin inset gold frame on media */
.framed { position: relative; }
.framed::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(220, 192, 138, 0.30);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn { position: relative; overflow: hidden; }
.btn--gold {
  background: linear-gradient(135deg, #C9A961 0%, var(--gold) 44%, #8E6F35 100%);
  color: #0A1114;
  border-color: var(--gold-lite);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.34) inset,
              0 -1px 0 rgba(0,0,0,0.22) inset,
              0 10px 34px -14px var(--gold-glow);
}
/* Light sweeps across the button on hover — the "polished metal" tell */
.btn--gold::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s var(--ease);
}
.btn--gold:hover::after { left: 125%; }
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold-lite) 42%, var(--gold) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 16px 44px -14px var(--gold-glow);
  transform: translateY(-1px);
}
.btn--gold > * { position: relative; z-index: 1; }
.btn--ghost {
  border-color: rgba(247, 243, 236, 0.28);
  color: var(--text);
  background: rgba(247, 243, 236, 0.02);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold-lite); color: var(--gold-lite); }
.section--light .btn--ghost { border-color: rgba(15,27,32,0.22); color: var(--ink-on-light); background: transparent; }
.section--light .btn--ghost:hover { border-color: #8A6D2E; color: #8A6D2E; }
.btn--wa { background: #1FA855; border-color: #1FA855; color: #fff; }
.btn--wa:hover { background: #17904A; border-color: #17904A; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.2rem 2.4rem; }

/* ---------------------------------------------------------------
   CTA HIERARCHY — one gold button per screen, and only one.
   Gold is reserved exclusively for the form submit (the actual
   conversion). Every other action on the page is a ghost button or
   a quiet link, so the eye always lands on a single destination.
     • Header "Request Brochure"  → ghost  (scrolls to the form)
     • Collection cards ×3        → ghost  (scroll + preselect)
     • Form submit                → GOLD   ← the only one
     • Mobile bar "Brochure"      → gold, but it is fixed chrome and
       never renders inside the same block as a form submit.
   --------------------------------------------------------------- */
.header .btn { padding: 0.8rem 1.4rem; font-size: 0.68rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(10, 17, 20, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.brand__tag {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.25rem;
}
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color 0.3s;
  position: relative;
  padding-block: 0.4rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold-lite);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 1.1rem; }
.header__phone {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.3s;
}
.header__phone:hover { color: var(--gold-lite); }
.header .btn { padding: 0.82rem 1.5rem; font-size: 0.7rem; }
.burger {
  display: none;
  background: none; border: 0; padding: 0.5rem;
  cursor: pointer; color: var(--cream);
}

/* ---------- Language toggle ---------- */
.langtoggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(247, 243, 236, 0.26);
  border-radius: 2px;
  background: rgba(247, 243, 236, 0.04);
  backdrop-filter: blur(6px);
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
  flex: none;
}
.langtoggle:hover { border-color: var(--gold-lite); }
.langtoggle__opt {
  padding: 0.42rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.25;
  color: var(--text-dim);
  border-radius: 1px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  min-width: 30px;
  text-align: center;
}
.langtoggle__opt.is-on {
  background: linear-gradient(135deg, #C9A961, var(--gold));
  color: #0A1114;
  font-weight: 600;
}
/* The Arabic glyph sits small next to Latin caps — nudge it up */
.langtoggle__opt[data-lang-opt="ar"] { font-size: 0.92rem; line-height: 0.92; padding-top: 0.33rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* Capped so the hero never swallows a tall desktop screen — content below
     the fold stays visible and the page doesn't feel top-heavy. */
  min-height: min(86svh, 760px);
  display: flex;
  align-items: center;
  padding-top: clamp(96px, 11vh, 118px);
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
  overflow: hidden;
}
/* Dedicated landing band. The image's bright sunset horizon sits low in the
   frame, so the scrim alone left a pale strip right where the hero meets the
   section below. This sits on top of everything and resolves to solid --ink
   well before the edge, so the two blocks read as one continuous surface. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  /* Fixed px, not a percentage — the hero is a flex container and a %
     height on a pseudo-element is not reliably resolved. */
  height: 240px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10,17,20,0)    0%,
    rgba(10,17,20,0.50) 38%,
    rgba(10,17,20,0.88) 62%,
    rgba(10,17,20,1)    76%,
    rgba(10,17,20,1)    100%);
}
@media (max-width: 860px) { .hero::after { height: 170px; } }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
  /* Deepen the render's sunset without crushing the city lights */
  filter: saturate(1.06) contrast(1.04);
  animation: heroDrift 34s var(--ease) infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1.11); } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; transform: scale(1.04); } }

.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* Vertical scrim. Must resolve to EXACTLY --ink (10,17,20) at 100% —
       any other value leaves a visible seam where the hero meets the
       section below it. The last two stops do the landing: 88% starts the
       fall, 100% is fully opaque page-background. */
    linear-gradient(180deg,
      rgba(10,17,20,0.88) 0%,
      rgba(10,17,20,0.26) 26%,
      rgba(10,17,20,0.46) 50%,
      rgba(10,17,20,0.80) 68%,
      rgba(10,17,20,0.97) 82%,
      rgba(10,17,20,1)    90%,
      rgba(10,17,20,1)    100%),
    /* horizontal: heavy left scrim so the headline holds over a bright sky */
    linear-gradient(90deg, rgba(10,17,20,0.94) 0%, rgba(10,17,20,0.66) 34%, rgba(10,17,20,0.10) 68%),
    /* warm the Gulf horizon toward gold */
    radial-gradient(120% 70% at 78% 46%, rgba(180,146,79,0.16) 0%, transparent 62%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  width: 100%;
}
.hero__title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 4.1vw, 3.35rem);
}
.hero__lede { margin-bottom: 1.9rem; max-width: 50ch; font-size: 1rem; color: rgba(247,243,236,0.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.1rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  gap: 1rem;
}
.stat__k {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--cream);
  line-height: 1.1;
}
.stat__l {
  font-size: 0.62rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Lead form card
   ========================================================================== */
.leadcard {
  background: rgba(15, 27, 32, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.45rem, 2.1vw, 1.85rem);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85);
  position: relative;
}
.leadcard::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.leadcard--solid { background: var(--ink-2); backdrop-filter: none; }
.leadcard__title {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.leadcard__sub { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 1.15rem; line-height: 1.58; }

.field { margin-bottom: 0.72rem; }
.field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}
.field input, .field select {
  width: 100%;
  background: rgba(247, 243, 236, 0.04);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--cream);
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder { color: rgba(247,243,236,0.28); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(247, 243, 236, 0.07);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B4924F' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field select option { background: var(--ink-2); color: var(--cream); }
.field.is-invalid input, .field.is-invalid select { border-color: #C4623F; }
.field__err { font-size: 0.7rem; color: #E08863; margin-top: 0.35rem; display: none; }
.field.is-invalid .field__err { display: block; }

.phonerow { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 0.5rem; }
.form__row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }

.form__note {
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-top: 1rem;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.form__note svg { flex: none; margin-top: 0.18rem; }

/* success state */
.formsuccess { display: none; text-align: center; padding: 1rem 0 0.5rem; }
.formsuccess.is-on { display: block; animation: fadeUp 0.6s var(--ease); }
.form.is-done { display: none; }
.formsuccess__mark {
  width: 54px; height: 54px; margin: 0 auto 1.2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold-lite);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Trust strip
   ========================================================================== */
/* Same background as the hero's gradient endpoint, so the two meet with no
   seam. Only the lower border separates it from the section beneath. */
.trust { background: var(--ink); border-bottom: 1px solid var(--line); padding-block: 2.1rem; }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
}
.trust__item { display: flex; align-items: center; gap: 0.85rem; }
.trust__item svg { flex: none; color: var(--gold); }
.trust__k { font-size: 0.85rem; color: var(--cream); line-height: 1.3; }
.trust__l { font-size: 0.63rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.15rem; }

/* ==========================================================================
   Agency credibility band
   ========================================================================== */
.creds {
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(180,146,79,0.10) 0%, transparent 62%),
    var(--ink);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.6rem, 5vw, 3.6rem);
  text-align: center;
}
.creds__intro { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.7rem; }
.creds__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.cred { background: var(--ink); padding: 1.5rem 0.9rem; }
.cred__k { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1; color: var(--gold-lite); }
.cred__l { font-size: 0.6rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.55rem; line-height: 1.45; }
.creds__partners {
  margin-top: 1.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.creds__partners b { color: var(--cream); font-weight: 400; letter-spacing: 0.19em; }

/* ==========================================================================
   Construction status
   ========================================================================== */
.status {
  border: 1px solid rgba(180,146,79,0.34);
  background:
    linear-gradient(135deg, rgba(180,146,79,0.09) 0%, transparent 55%),
    var(--ink-2);
  border-radius: 3px;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
  margin-top: 3rem;
}
.status__pulse {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold-lite);
  position: relative;
  flex: none;
}
.status__pulse::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.55); opacity: 0; } }
.status h3 { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 0.45rem; }
.status p { font-size: 0.9rem; color: var(--text-mute); line-height: 1.68; }
.status b { color: var(--gold-lite); font-weight: 400; }

/* ==========================================================================
   Split feature (island)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split__media { position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.split__badge {
  position: absolute;
  right: -1px; bottom: -1px;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 1.1rem 1.5rem;
  text-align: center;
}
.split__badge .stat__k { color: var(--gold-lite); }

.factgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.6rem;
}
.fact { background: var(--ink); padding: 1.4rem 1.2rem; }
.section--light .factgrid { background: var(--line-on-light); border-color: var(--line-on-light); }
.section--light .fact { background: var(--cream); }
.fact__k {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
  color: var(--gold-lite);
}
.section--light .fact__k { color: #8A6D2E; }
.fact__l { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.55rem; line-height: 1.5; }
.section--light .fact__l { color: var(--dim-on-light); }

/* ==========================================================================
   Collections
   ========================================================================== */
.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.col {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.col:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 146, 79, 0.42);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,0.9);
}
.col__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.col__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.col:hover .col__media img { transform: scale(1.055); }
.col__flag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(10,17,20,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 0.42rem 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lite);
}
.col__body { padding: 1.7rem; display: flex; flex-direction: column; flex: 1; }
.col__name { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; margin-bottom: 0.35rem; }
.col__beds { font-size: 0.68rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.25rem; }
.col__specs { border-top: 1px solid var(--line); margin-bottom: 1.4rem; }
.col__spec {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.col__spec dt { color: var(--text-dim); }
.col__spec dd { margin: 0; color: var(--cream); text-align: right; }
.col__price { margin-top: auto; margin-bottom: 1.2rem; }
.col__price small { display: block; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.25rem; }
.col__price b { font-family: var(--display); font-weight: 400; font-size: 1.75rem; color: var(--gold-lite); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 15vw, 210px);
  gap: 0.75rem;
  margin-top: 4rem;
}
.gitem {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
  background: var(--ink-2);
  border: 0; padding: 0;
}
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; }
.gitem:hover img { transform: scale(1.06); }
.gitem::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(10,17,20,0.9));
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.45s var(--ease);
}
.gitem:hover::after { opacity: 1; transform: none; }
.gitem--wide { grid-column: span 2; }
.gitem--tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 11, 13, 0.96);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-on { display: flex; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 2px; }
.lightbox__cap { text-align: center; margin-top: 1.1rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); }
.lightbox__x, .lightbox__nav {
  position: absolute;
  background: rgba(247,243,236,0.06);
  border: 1px solid var(--line);
  color: var(--cream);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.3s;
}
.lightbox__x:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox__x { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav--prev { left: clamp(0.6rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(0.6rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Amenities
   ========================================================================== */
.amenities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-on-light);
  border: 1px solid var(--line-on-light);
  margin-top: 4rem;
}
.amenity {
  background: var(--cream);
  padding: 2.4rem 1.4rem;
  transition: background 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  text-align: center;
  min-height: 168px;
}
.amenity:hover { background: #FFFDF8; }
.amenity svg { color: #8A6D2E; }
.amenity h3 { font-family: var(--display); font-size: 1.22rem; line-height: 1.25; }

/* ==========================================================================
   Relocation / value block
   ========================================================================== */
.value {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 4rem;
}
.value__item { background: var(--ink); padding: 2rem 1.9rem; display: flex; gap: 1.2rem; }
.value__num {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--gold);
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
}
.value__item h3 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 0.45rem; }
.value__item p { font-size: 0.88rem; color: var(--text-mute); line-height: 1.68; }

/* ==========================================================================
   Location
   ========================================================================== */
.location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.drives { border-top: 1px solid var(--line); margin-top: 2.4rem; }
.drive {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.drive__t { font-family: var(--display); font-size: 1.5rem; color: var(--gold-lite); line-height: 1; }
.drive__t span { font-size: 0.62rem; font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-left: 0.28rem; }
.drive__p { font-size: 0.95rem; color: var(--cream); }
.drive__d { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.15rem; }

/* ==========================================================================
   Payment plan
   ========================================================================== */
.plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.plan__step {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.2rem 1.8rem;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.plan__step::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: var(--fill, 20%);
  background: linear-gradient(90deg, var(--gold), var(--gold-lite));
}
.plan__pct { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--cream); }
.plan__when { font-size: 0.68rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--gold-lite); margin-top: 0.9rem; }
.plan__note { font-size: 0.85rem; color: var(--text-mute); margin-top: 0.7rem; line-height: 1.6; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { margin-top: 3rem; border-top: 1px solid var(--line-on-light); }
.faq__item { border-bottom: 1px solid var(--line-on-light); }
.faq__q {
  width: 100%;
  background: none; border: 0;
  padding: 1.5rem 3rem 1.5rem 0;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  color: var(--ink-on-light);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}
.faq__q:hover { color: #8A6D2E; }
.faq__q::after {
  content: "";
  position: absolute; right: 0.4rem; top: 50%;
  width: 13px; height: 1px;
  background: #8A6D2E;
  transform: translateY(-50%);
}
.faq__q::before {
  content: "";
  position: absolute; right: 0.4rem; top: 50%;
  width: 13px; height: 1px;
  background: #8A6D2E;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.faq__item.is-open .faq__q::before { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__a p { padding-bottom: 1.6rem; font-size: 0.95rem; line-height: 1.75; color: var(--mute-on-light); max-width: 74ch; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.finale { position: relative; overflow: hidden; }
.finale__bg { position: absolute; inset: 0; z-index: 0; }
.finale__bg img { width: 100%; height: 100%; object-fit: cover; }
.finale__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,17,20,0.95) 0%, rgba(10,17,20,0.78) 48%, rgba(10,17,20,0.55) 100%);
}
.finale__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.finale__points { margin-top: 2.2rem; display: grid; gap: 0.95rem; }
.finale__points li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-mute); }
.finale__points svg { flex: none; color: var(--gold); margin-top: 0.28rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #060C0E; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.8rem; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-lite); margin-bottom: 1.1rem; }
.footer li { margin-bottom: 0.6rem; font-size: 0.88rem; color: var(--text-mute); }
.footer a:hover { color: var(--gold-lite); }
.footer__legal { padding-top: 1.8rem; font-size: 0.72rem; line-height: 1.75; color: var(--text-dim); }
.footer__legal p + p { margin-top: 0.7rem; }
.footer__bar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.72rem; color: var(--text-dim); }
.footer__barRight { display: flex; align-items: center; gap: 1.1rem; }

/* ==========================================================================
   Mobile action bar
   ========================================================================== */
.mobilebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(10, 17, 20, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobilebar a {
  padding: 0.85rem 0.4rem;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  border-right: 1px solid var(--line);
}
.mobilebar a:last-child { border-right: 0; }
.mobilebar a svg { color: var(--gold); }
.mobilebar a.is-primary { background: linear-gradient(135deg, var(--gold), #9C7C3E); color: var(--ink); }
.mobilebar a.is-primary svg { color: var(--ink); }

/* Floating WhatsApp (desktop) */
.wafloat {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #1FA855;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 34px -10px rgba(31, 168, 85, 0.6);
  transition: transform 0.35s var(--ease);
}
.wafloat:hover { transform: scale(1.08); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; gap: 2.6rem; }
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 4rem; }
  .hero__scroll { display: none; }
  .collections { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .creds__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status { grid-template-columns: 1fr; gap: 1.1rem; }
  .split, .location, .finale__grid { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: block; }
  .langtoggle__opt { padding: 0.36rem 0.5rem; min-width: 26px; font-size: 0.64rem; }
  .langtoggle__opt[data-lang-opt="ar"] { font-size: 0.86rem; }
  .header__inner { height: 68px; }
  .mobilebar { display: grid; }
  .wafloat { display: none; }
  body { padding-bottom: 62px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .creds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gitem--wide, .gitem--tall { grid-column: auto; grid-row: auto; }
  .form__row2 { grid-template-columns: 1fr; gap: 0; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .amenities { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .phonerow { grid-template-columns: 106px minmax(0, 1fr); }
  .drive { grid-template-columns: 66px minmax(0, 1fr); gap: 1rem; }
  .value__item { padding: 1.6rem 1.3rem; }
}

/* ==========================================================================
   العربية — Arabic typography + RTL
   ========================================================================== */
html[lang="ar"] {
  --display: "Amiri", "Cormorant Garamond", serif;
  --sans: "IBM Plex Sans Arabic", "Inter", sans-serif;
}
/* Arabic sits optically smaller and needs more leading than Latin */
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .h-display,
html[lang="ar"] .h-section,
html[lang="ar"] .h-sub { line-height: 1.32; letter-spacing: 0; }
html[lang="ar"] .hero__title { font-size: clamp(1.95rem, 3.6vw, 3rem); }
html[lang="ar"] .lede { line-height: 1.95; }
/* Arabic has no uppercase — tracking and text-transform only hurt it */
html[lang="ar"] .eyebrow,
html[lang="ar"] .stat__l, html[lang="ar"] .cred__l, html[lang="ar"] .fact__l,
html[lang="ar"] .trust__l, html[lang="ar"] .col__beds, html[lang="ar"] .col__flag,
html[lang="ar"] .creds__intro, html[lang="ar"] .creds__partners,
html[lang="ar"] .plan__when, html[lang="ar"] .field label, html[lang="ar"] .footer h4,
html[lang="ar"] .nav a, html[lang="ar"] .btn, html[lang="ar"] .mobilebar a,
html[lang="ar"] .col__price small, html[lang="ar"] .brand__tag,
html[lang="ar"] .gitem::after, html[lang="ar"] .lightbox__cap,
html[lang="ar"] .drive__t span, html[lang="ar"] .hero__scroll {
  text-transform: none;
  letter-spacing: 0;
}
html[lang="ar"] .eyebrow { font-size: 0.78rem; font-weight: 500; }
html[lang="ar"] .btn { font-size: 0.86rem; font-weight: 500; }
html[lang="ar"] .stat__l, html[lang="ar"] .cred__l, html[lang="ar"] .fact__l,
html[lang="ar"] .trust__l { font-size: 0.74rem; }
html[lang="ar"] .field label { font-size: 0.74rem; }
html[lang="ar"] .footer h4 { font-size: 0.8rem; }
/* Keep prices and dial codes in Latin digits, reading left-to-right */
html[lang="ar"] .stat__k, html[lang="ar"] .fact__k, html[lang="ar"] .cred__k,
html[lang="ar"] .col__price b, html[lang="ar"] .plan__pct, html[lang="ar"] .drive__t,
html[lang="ar"] .value__num, html[lang="ar"] .header__phone span,
html[lang="ar"] [data-dial] { direction: ltr; unicode-bidi: isolate; }

/* ---------- RTL layout fixes ---------- */
[dir="rtl"] .hero__bg::after {
  background:
    linear-gradient(180deg,
      rgba(10,17,20,0.88) 0%,
      rgba(10,17,20,0.26) 26%,
      rgba(10,17,20,0.46) 50%,
      rgba(10,17,20,0.80) 68%,
      rgba(10,17,20,0.97) 82%,
      rgba(10,17,20,1)    90%,
      rgba(10,17,20,1)    100%),
    linear-gradient(270deg, rgba(10,17,20,0.94) 0%, rgba(10,17,20,0.66) 34%, rgba(10,17,20,0.10) 68%),
    radial-gradient(120% 70% at 22% 46%, rgba(180,146,79,0.16) 0%, transparent 62%);
}
[dir="rtl"] .finale__bg::after {
  background: linear-gradient(270deg, rgba(10,17,20,0.95) 0%, rgba(10,17,20,0.78) 48%, rgba(10,17,20,0.55) 100%);
}
[dir="rtl"] .nav a::after { left: auto; right: 0; }
[dir="rtl"] .col__spec dd { text-align: left; }
[dir="rtl"] .split__badge { right: auto; left: -1px; }
[dir="rtl"] .mobilebar a { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .mobilebar a:last-child { border-left: 0; }
[dir="rtl"] .wafloat { right: auto; left: 22px; }
[dir="rtl"] .faq__q { padding: 1.5rem 0 1.5rem 3rem; text-align: right; }
[dir="rtl"] .faq__q::after, [dir="rtl"] .faq__q::before { right: auto; left: 0.4rem; }
[dir="rtl"] .field select {
  background-position: left 0.95rem center;
  padding-right: 0.95rem;
  padding-left: 2.4rem;
}
[dir="rtl"] .lightbox__nav--prev { left: auto; right: clamp(0.6rem, 2.5vw, 2rem); }
[dir="rtl"] .lightbox__nav--next { right: auto; left: clamp(0.6rem, 2.5vw, 2rem); }
[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }
[dir="rtl"] .lightbox__x { right: auto; left: clamp(1rem, 3vw, 2rem); }
[dir="rtl"] .btn--gold::after { left: auto; right: -60%; transform: skewX(18deg); }
[dir="rtl"] .btn--gold:hover::after { right: 125%; left: auto; }
[dir="rtl"] .drive__t span { margin-left: 0; margin-right: 0.28rem; }
[dir="rtl"] .plan__step::before { left: auto; right: 0; }
[dir="rtl"] .split__media { order: 0; }
@media (max-width: 1080px) { [dir="rtl"] .split__media { order: -1; } }

/* Mobile nav drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 17, 20, 0.98);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  padding: 1.4rem var(--gut) 2rem;
}
.drawer.is-on { display: flex; animation: fadeIn 0.3s ease; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.drawer nav { display: grid; gap: 0.4rem; }
.drawer nav a {
  font-family: var(--display);
  font-size: 1.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}
.drawer__foot { margin-top: auto; display: grid; gap: 0.8rem; }
