/* ============================================================
   SOLVEST — Design System
   Palette: midnight ink / warm white / sand / champagne
   Type: Marcellus (display) · Outfit (UI/body) · IBM Plex Sans Arabic (RTL)
   ============================================================ */

:root {
  /* Official SOLVEST brand palette (from the master logo artwork) */
  --ink: #0B2027;
  --ink-2: #122C35;
  --ink-3: #1E3D48;
  --paper: #FFFFFF;
  --paper-2: #F9F9F9;
  --sand: #EFE7D8;
  --sand-2: #DDD3BF;
  --champagne: #B98C3A;
  --champagne-2: #D7B87A;
  --champagne-deep: #7A6437;
  --text: #2B303A;
  --muted: #756F63;
  --line: #E2DCCF;
  --line-dark: #2A3345;
  --success: #3E6B4F;
  --error: #A0463A;
  --whatsapp: #1FA855;
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --shadow-soft: 0 2px 24px rgba(13, 19, 29, 0.07);
  --shadow-lift: 0 18px 44px rgba(13, 19, 29, 0.14);
  --radius: 4px;
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); letter-spacing: 0 !important; }
html[lang="ar"] .eyebrow, html[lang="ar"] .btn, html[lang="ar"] .nav-links a { letter-spacing: 0 !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--ink); margin: 0 0 0.5em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-ar); font-weight: 500; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46em; }
::selection { background: var(--champagne); color: #fff; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

.container { width: min(1240px, 92vw); margin-inline: auto; }
.container--narrow { width: min(860px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--ink { background: var(--ink); color: #C9CFDA; }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--sand { background: var(--paper-2); }

/* Signature: horizon eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--champagne); margin-bottom: 18px;
}
.eyebrow--center { justify-content: center; }
.section-head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-3); }
.btn--gold { background: var(--champagne); color: #fff; }
.btn--gold:hover { background: #A57F42; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { border-color: rgba(250,248,244,0.55); color: var(--paper); background: transparent; }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #178B45; }
.btn--sm { padding: 10px 20px; font-size: 0.72rem; }
.btn--block { width: 100%; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--champagne); padding-bottom: 4px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--champagne); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s, border-color 0.35s;
}
.site-header .container { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.site-header--overlay { background: transparent; border-bottom-color: rgba(250,248,244,0.14); backdrop-filter: none; }
.site-header--overlay.is-scrolled { background: rgba(13, 19, 29, 0.9); backdrop-filter: blur(14px); border-bottom-color: var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-logo--rev { display: none; }
.site-header--overlay .brand-logo--ink { display: none; }
.site-header--overlay .brand-logo--rev { display: block; }
.mobile-nav .brand-logo, .footer-brand .brand-logo { height: 46px; }
.admin-side .brand-logo { height: 40px; }
@media (max-width: 640px) { .brand-logo { height: 36px; } }
.site-header--overlay .brand-word { color: var(--paper); }
.site-header--overlay .brand .mono-a { fill: var(--paper); }
.brand .mono-a { fill: var(--ink); }
.brand .mono-b { fill: var(--champagne); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.15vw, 20px); list-style: none; margin: 0 auto; padding: 0; flex-wrap: nowrap; }
.nav-links a {
  font-size: clamp(0.7rem, 0.82vw, 0.8rem); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); padding: 6px 1px; border-bottom: 1px solid transparent;
  white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.site-header--overlay .nav-links a { color: rgba(250,248,244,0.85); }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--champagne); color: var(--champagne); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn--advisor { padding: 10px 18px; font-size: 0.68rem; letter-spacing: 0.09em; }
.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-ar); font-size: 0.82rem; padding: 8px 14px; cursor: pointer; color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--champagne); color: var(--champagne); }
.site-header--overlay .lang-toggle { color: var(--paper); border-color: rgba(250,248,244,0.35); }
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }
.site-header--overlay .nav-burger span { background: var(--paper); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: flex; flex-direction: column; padding: 28px 8vw 40px;
  transform: translateX(105%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
html[dir="rtl"] .mobile-nav { transform: translateX(-105%); }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-close { background: none; border: 0; color: var(--paper); font-size: 2rem; cursor: pointer; line-height: 1; padding: 4px 10px; }
.mobile-nav a.mnav-link {
  font-family: var(--font-display); font-size: 1.7rem; color: var(--paper);
  padding: 13px 0; border-bottom: 1px solid var(--line-dark);
}
html[lang="ar"] .mobile-nav a.mnav-link { font-family: var(--font-ar); }
.mobile-nav a.mnav-link:hover { color: var(--champagne-2); }
.mobile-nav .btn { margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--paper); overflow: hidden; padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero-bg img, .hero-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,19,29,0.55) 0%, rgba(13,19,29,0.22) 45%, rgba(13,19,29,0.7) 100%); }

/* Hero slideshow: crossfade + slow Ken Burns drift */
.hero-slides .hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slides .hero-slide.is-active {
  opacity: 1;
  animation: kenburns 9s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07) translateY(-1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-slide { transition: none; animation: none !important; }
}
.hero-inner { position: relative; width: min(1240px, 92vw); margin-inline: auto; padding-block: 8vh; }
.hero h1 { color: #FFFFFF; max-width: 12em; margin-bottom: 0.4em; text-shadow: 0 2px 24px rgba(13,19,29,0.55); }
.hero .lede { color: #FFFFFF; margin-bottom: 2em; text-shadow: 0 1px 14px rgba(13,19,29,0.65); font-weight: 400; }
.hero .eyebrow { color: var(--champagne-2); text-shadow: 0 1px 10px rgba(13,19,29,0.6); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vh, 72px); }

/* Hero page (interior) */
.page-hero { background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--paper); }
.page-hero .lede { color: rgba(250,248,244,0.75); }
.page-hero--img { min-height: 52vh; display: flex; align-items: flex-end; }
.page-hero--img .hero-bg::after { background: linear-gradient(180deg, rgba(13,19,29,0.5), rgba(13,19,29,0.78)); }
.breadcrumbs { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,248,244,0.6); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--champagne-2); }
.breadcrumbs span[aria-hidden] { color: var(--champagne); }

/* ---------- Search bar ---------- */
.search-bar {
  background: rgba(250, 248, 244, 0.97); border-radius: 6px; box-shadow: var(--shadow-lift);
  padding: 18px; display: grid; gap: 12px;
  grid-template-columns: repeat(6, 1fr) auto;
  align-items: end; color: var(--text);
}
.search-bar label { display: grid; gap: 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.search-bar select, .search-bar input,
.field select, .field input, .field textarea {
  font-family: inherit; font-size: 0.95rem; font-weight: 300; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px; width: 100%; transition: border-color 0.2s;
}
.search-bar select:focus, .field select:focus, .field input:focus, .field textarea:focus { border-color: var(--champagne); outline: none; }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prop-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.35s, box-shadow 0.35s;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.prop-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.prop-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.prop-card:hover .prop-card-media img { transform: scale(1.045); }
.prop-badges { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; flex-wrap: wrap; gap: 7px; z-index: 2; }
.badge {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; background: rgba(13,19,29,0.82); color: var(--paper);
  backdrop-filter: blur(4px);
}
.badge--gold { background: var(--champagne); color: #fff; }
.badge--light { background: rgba(250,248,244,0.92); color: var(--ink); }
.badge--green { background: var(--success); color: #fff; }
.prop-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-card-body h3 { font-size: 1.28rem; margin: 0; }
.prop-card-loc { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prop-card-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--champagne); margin-top: 6px; }
html[lang="ar"] .prop-card-price { font-family: var(--font-ar); }
.prop-card-price small { font-family: var(--font-sans); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.prop-specs { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.prop-specs b { font-weight: 500; color: var(--ink); }
.prop-card-cta { margin-top: 16px; }

/* ---------- Community / tile cards ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3.1;
  display: flex; align-items: flex-end; color: var(--paper); background: var(--ink-2);
}
.tile--wide { grid-column: span 2; aspect-ratio: auto; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,19,29,0) 35%, rgba(13,19,29,0.82) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile-body { position: relative; z-index: 2; padding: 24px 26px; width: 100%; }
.tile-body h3 { color: var(--paper); margin: 0 0 4px; font-size: 1.3rem; }
.tile-body p { margin: 0; font-size: 0.82rem; color: rgba(250,248,244,0.75); letter-spacing: 0.06em; }
.tile-count { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(13,19,29,0.7); padding: 6px 12px; border-radius: 3px; }

/* ---------- Developer grid ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dev-card {
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  padding: 30px 26px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.dev-card:hover { border-color: var(--champagne); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.dev-mono {
  width: 46px; height: 46px; border-radius: 4px; background: var(--ink);
  color: var(--paper); font-family: var(--font-display); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.dev-logo { height: 46px; display: flex; align-items: center; margin-bottom: 8px; }
.dev-logo img { max-height: 40px; max-width: 150px; width: auto; object-fit: contain; }
.dev-card h3 { margin: 0; font-size: 1.12rem; }
.dev-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.dev-card .dev-count { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--champagne); margin-top: 8px; }

/* ---------- Value props / why ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; }
.value-cell { background: var(--ink); padding: 36px 32px; }
.value-cell h3 { font-size: 1.15rem; color: var(--paper); }
.value-cell p { font-size: 0.92rem; color: #98A1B3; margin: 0; }

/* Light variant */
.value-grid--light { background: var(--line); border-color: var(--line); }
.value-grid--light .value-cell { background: #fff; }
.value-grid--light .value-cell h3 { color: var(--ink); }
.value-grid--light .value-cell p { color: var(--muted); }

/* ---------- Fact cards (invest) ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px; }
.fact-card h3 { font-size: 1.1rem; }
.fact-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.fact-src { font-size: 0.72rem; letter-spacing: 0.06em; color: #A39C8B; border-top: 1px dashed var(--line); padding-top: 10px; margin: 0; }

/* ---------- Steps (international process) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border-inline-start: 1px solid var(--line); padding: 4px 22px 8px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--champagne); display: block; margin-bottom: 6px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--muted); }
.form-success { text-align: center; padding: 40px 20px; }
.form-success h3 { color: var(--success); }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; direction: ltr; }

/* ---------- Property detail ---------- */
.pd-hero { padding-top: var(--header-h); background: var(--ink); }
/* Property gallery: full-size auto-cycling slider — images are never cropped */
.pd-gallery {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh;
  background: var(--ink); overflow: hidden;
}
.pd-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out;
  display: flex; align-items: center; justify-content: center;
}
.pd-slide.is-active { opacity: 1; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* soft blurred fill so letterboxing reads as intentional, never as empty bars */
.pd-slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--slide-bg); background-size: cover; background-position: center;
  filter: blur(34px) brightness(0.45); transform: scale(1.15);
}
.pd-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 3;
}
.pd-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,0.45); transition: background 0.25s, width 0.25s;
}
.pd-dots button.is-active { background: var(--champagne); width: 26px; border-radius: 5px; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(11,32,39,0.5); color: #fff; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.pd-nav:hover { background: rgba(11,32,39,0.85); }
.pd-nav--prev { inset-inline-start: 16px; }
.pd-nav--next { inset-inline-end: 16px; }
@media (max-width: 640px) { .pd-gallery { aspect-ratio: 4 / 3; } .pd-nav { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .pd-slide { transition: none; } }
.pd-topbar { background: var(--ink); color: var(--paper); padding: 18px 0 20px; }
.pd-topbar .container { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; flex-wrap: wrap; }
.pd-title h1 { color: var(--paper); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 4px; }
.pd-topbar .breadcrumbs { margin-bottom: 10px; }
.pd-title .pd-loc { color: rgba(250,248,244,0.65); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pd-price { text-align: end; }
.pd-price .amount { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--champagne-2); }
.pd-price .label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,248,244,0.55); }
.spec-strip { border-block: 1px solid var(--line-dark); background: var(--ink-2); color: var(--paper); }
.spec-strip .container { display: flex; flex-wrap: wrap; }
.spec-strip .spec { padding: 16px 28px; border-inline-end: 1px solid var(--line-dark); font-size: 0.8rem; color: #98A1B3; }
.spec-strip .spec b { display: block; font-weight: 400; font-size: 1rem; color: var(--paper); }
.pd-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.pd-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.pd-aside .form-card { padding: 26px; }
.pd-section { margin-bottom: clamp(36px, 5vw, 56px); }
.pd-section h2 { font-size: 1.5rem; }
.amenity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.amenity-list li { font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.amenity-list li::before { content: ""; width: 5px; height: 5px; background: var(--champagne); flex-shrink: 0; border-radius: 1px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.plan-table th, .plan-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.plan-table th { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: 6px; filter: grayscale(0.4); }

/* Mobile sticky action bar */
.mobile-actionbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 80; display: none;
  grid-template-columns: 1fr 1fr 1.3fr; background: var(--ink); border-top: 1px solid var(--line-dark);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px;
}
.mobile-actionbar .btn { padding: 12px 8px; font-size: 0.7rem; }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.calc-results { background: var(--ink); color: #C9CFDA; border-radius: 6px; padding: clamp(28px, 3.6vw, 44px); position: sticky; top: calc(var(--header-h) + 20px); }
.calc-results h3 { color: var(--paper); }
.calc-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.92rem; }
.calc-row b { font-weight: 400; color: var(--paper); font-variant-numeric: tabular-nums; }
.calc-row.calc-row--hero { border-bottom: 0; padding-top: 20px; }
.calc-row--hero b { font-family: var(--font-display); font-size: 1.7rem; color: var(--champagne-2); }
.calc-bars { display: grid; gap: 10px; margin-top: 22px; }
.calc-bar { height: 10px; border-radius: 5px; background: var(--ink-3); overflow: hidden; }
.calc-bar i { display: block; height: 100%; background: var(--champagne); border-radius: 5px; transition: width 0.6s cubic-bezier(0.22,1,0.36,1); }
.calc-bar-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: #98A1B3; }
.disclaimer { font-size: 0.76rem; color: var(--muted); border-inline-start: 2px solid var(--champagne); padding: 4px 16px; background: var(--paper-2); border-radius: 3px; }
.section--ink .disclaimer, .calc-results .disclaimer { background: var(--ink-2); color: #98A1B3; }

/* ---------- Insights ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.article-card .a-media { aspect-ratio: 16/9; overflow: hidden; background: var(--ink-2); }
.article-card .a-media img { width: 100%; height: 100%; object-fit: cover; }
.article-card .a-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-cat { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--champagne); }
.article-card h3 { font-size: 1.2rem; margin: 0; }
.article-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.article-meta { font-size: 0.76rem; color: #A39C8B; margin-top: auto; padding-top: 12px; }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.2em; color: var(--text); }
.prose blockquote { border-inline-start: 2px solid var(--champagne); margin: 1.6em 0; padding: 4px 22px; color: var(--muted); font-style: italic; }

/* Filter pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 100px; cursor: pointer;
  padding: 9px 20px; font-family: inherit; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  transition: 0.2s;
}
.pill:hover { border-color: var(--champagne); color: var(--champagne); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Search page toolbar ---------- */
.filters-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; margin-bottom: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.results-bar .count { font-size: 0.9rem; color: var(--muted); }
.results-bar select { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font-family: inherit; font-size: 0.85rem; background: #fff; }
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }

/* ---------- Stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band .stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--champagne-2); font-weight: 400; }
.stat-band .stat span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #98A1B3; }
.stat-band .stat small { display:block; font-size: 0.68rem; color: #6B7488; margin-top: 4px; letter-spacing: 0.02em; text-transform:none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); text-align: center; }
.cta-band h2 { color: var(--paper); max-width: 18em; margin-inline: auto; }
.cta-band .lede { color: rgba(250,248,244,0.7); margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #98A1B3; padding: clamp(56px, 7vw, 88px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; }
.footer-brand .brand-word { color: var(--paper); }
.footer-tag { font-family: var(--font-display); font-size: 1.05rem; color: var(--sand); margin: 18px 0 14px; }
html[lang="ar"] .footer-tag { font-family: var(--font-ar); }
.footer-grid h4 { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 0.9rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--champagne-2); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: 0.25s;
}
.footer-social a:hover { border-color: var(--champagne); color: var(--champagne-2); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-legal { border-top: 1px solid var(--line-dark); padding: 22px 0; font-size: 0.78rem; }
.footer-legal .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-legal ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-reg { font-size: 0.74rem; color: #6B7488; padding-bottom: 26px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 85;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(31, 168, 85, 0.4); transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
body.has-actionbar .wa-float { bottom: 92px; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #98A1B3; padding: 28px 0; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { padding: 0 26px 26px; }
.admin-side nav a { display: block; padding: 12px 26px; font-size: 0.85rem; border-inline-start: 2px solid transparent; }
.admin-side nav a:hover, .admin-side nav a.is-active { color: var(--paper); border-color: var(--champagne); background: rgba(255,255,255,0.03); }
.admin-main { padding: 36px clamp(20px, 4vw, 48px); background: var(--paper-2); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-soft); font-size: 0.88rem; }
.admin-table th { text-align: start; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: 14px 16px; }
.admin-table td { padding: 13px 16px; border-top: 1px solid var(--line); }
.admin-table .btn { margin: 2px; }
.tag { display: inline-block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; background: var(--sand); color: var(--ink); }
.tag--gold { background: var(--champagne); color: #fff; }
.tag--dark { background: var(--ink); color: var(--paper); }

/* ---------- Admin gate ---------- */
.admin-gate {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: var(--ink); padding: 24px;
}
.admin-gate__card { width: 100%; max-width: 340px; text-align: center; }
.admin-gate__card .brand-logo { height: 34px; margin-bottom: 28px; }
.admin-gate__card h2 { color: var(--paper); font-size: 1.3rem; margin-bottom: 8px; }
.admin-gate__card p { color: #98A1B3; font-size: 0.88rem; margin-bottom: 22px; }
.admin-gate__card input {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.05); color: var(--paper); font-size: 0.95rem; margin-bottom: 14px;
}
.admin-gate__card input:focus { outline: 2px solid var(--champagne); outline-offset: 2px; }
.admin-gate__card .btn { width: 100%; }
.admin-gate__error { color: #E28080; font-size: 0.8rem; margin: 12px 0 0; }

/* ---------- Dubai Investment Hotspots (schematic map) ---------- */
.hotspots-map {
  position: relative; height: min(72vh, 640px); border-radius: 10px;
  background:
    linear-gradient(rgba(215,184,122,0.05) 1px, transparent 1px) 0 0/100% 40px,
    linear-gradient(90deg, rgba(215,184,122,0.05) 1px, transparent 1px) 0 0/40px 100%,
    radial-gradient(130% 95% at 50% 105%, #24334d 0%, #101a2c 52%, #070c15 100%);
  border: 1px solid var(--line-dark); overflow: hidden; box-shadow: inset 0 0 60px rgba(0,0,0,0.35);
}
.hotspot-coast { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hotspot-coast__glow { fill: none; stroke: #6FA9C7; stroke-width: 3.2; stroke-linecap: round; opacity: 0.16; filter: blur(2px); vector-effect: non-scaling-stroke; }
.hotspot-coast__line { fill: none; stroke: rgba(215,184,122,0.5); stroke-width: 0.7; stroke-linecap: round; stroke-dasharray: 1.2 2.4; vector-effect: non-scaling-stroke; }
.hotspots-map__tag {
  position: absolute; top: 16px; inset-inline-start: 18px; z-index: 3;
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8B96AB;
}
.hotspots-map__compass {
  position: absolute; top: 14px; inset-inline-end: 18px; z-index: 3;
  width: 26px; height: 26px; border: 1px solid rgba(215,184,122,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; letter-spacing: 0.05em; color: var(--champagne-2);
}
.hotspots-hint {
  position: absolute; bottom: 14px; inset-inline-start: 50%; translate: -50% 0; z-index: 3;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8B96AB;
  background: rgba(13,19,29,0.55); padding: 6px 14px; border-radius: 100px; pointer-events: none;
}
html[dir="rtl"] .hotspots-hint { translate: 50% 0; }
.hotspot-node {
  position: absolute; z-index: 5; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.hotspot-pin {
  position: relative; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--champagne-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(215,184,122,0.12), 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hotspot-pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(215,184,122,0.45);
  animation: hotspotPulse 2.6s ease-out infinite;
}
.hotspot-pin__num { font-size: 0.6rem; font-weight: 600; color: var(--champagne-2); line-height: 1; }
.hotspot-node:hover .hotspot-pin, .hotspot-node:focus-visible .hotspot-pin { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(215,184,122,0.18), 0 2px 8px rgba(0,0,0,0.5); }
@keyframes hotspotPulse { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
.hotspot-label {
  position: absolute; top: 26px; left: 50%; translate: -50% 0; z-index: 4;
  font-size: 0.64rem; letter-spacing: 0.04em; white-space: nowrap; color: #C9CFDA;
  background: rgba(10,16,26,0.72); backdrop-filter: blur(2px); padding: 3px 8px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06); pointer-events: none;
}
.hotspot-card {
  position: absolute; bottom: 30px; left: 50%; transform: translate(-50%, 6px);
  background: rgba(255,255,255,0.98); color: var(--ink); border-radius: 8px; border-top: 3px solid var(--champagne);
  padding: 14px 16px; width: max-content; max-width: 240px; box-shadow: var(--shadow-lift);
  display: grid; gap: 6px; opacity: 0; visibility: hidden; transition: opacity 0.22s, transform 0.22s; z-index: 6;
}
.hotspot-node:hover .hotspot-card, .hotspot-node:focus-visible .hotspot-card { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hotspot-card b { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; display: block; margin-bottom: 2px; }
html[lang="ar"] .hotspot-card b { font-family: var(--font-ar); }
.hotspot-card__row { display: flex; justify-content: space-between; gap: 14px; font-size: 0.78rem; }
.hotspot-card__row i { font-style: normal; color: var(--muted); }
.hotspot-card__row strong { font-weight: 600; color: var(--ink); }
.hotspot-card em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--champagne-deep); margin-top: 4px; }
@media (hover: none) {
  .hotspot-card { opacity: 1; visibility: visible; transform: translate(-50%, 0); font-size: 0.9em; }
  .hotspot-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hotspot-pin::after { animation: none; } }
@media (max-width: 900px) { .hotspots-map { height: 62vw; min-height: 360px; } }

/* ---------- Favorites (save/heart) ---------- */
.fav-btn {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(13,19,29,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s;
}
.fav-btn:hover { transform: scale(1.1); background: rgba(13,19,29,0.75); }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; transition: fill 0.2s, stroke 0.2s; }
.fav-btn.is-active svg { fill: var(--champagne); stroke: var(--champagne); }
.fav-link { position: relative; display: inline-flex; align-items: center; padding: 8px; color: inherit; }
.fav-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-header--overlay .fav-link { color: var(--paper); }
.fav-count {
  position: absolute; top: 0; inset-inline-end: 0; min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--champagne); color: #fff; font-size: 0.62rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.fav-count:empty { display: none; }

/* ---------- Mobile call button ---------- */
.call-float {
  position: fixed; bottom: 94px; inset-inline-end: 26px; z-index: 85; display: none;
  width: 58px; height: 58px; border-radius: 50%; background: var(--ink);
  align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(13,19,29,0.4);
}
.call-float svg { width: 24px; height: 24px; fill: var(--paper); }
@media (max-width: 900px) {
  .call-float { display: flex; }
  body.has-actionbar .call-float { display: none; }
}

/* ---------- Key facts strip ---------- */
.facts { border-top: 2px solid var(--ink); max-width: 560px; }
.facts-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 17px 4px; border-bottom: 2px solid var(--ink);
}
.facts-row > span:first-child { font-weight: 500; color: var(--ink); font-size: 1.02rem; }
.facts-row > span:last-child {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem; letter-spacing: 0.08em; color: var(--muted); text-align: end;
}
.facts-note { font-size: 0.74rem; color: #A39C8B; margin-top: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .prop-card, .tile img, .btn, .article-card { transition: none !important; }
}

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.media-frame { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lift); }
.media-frame img, .media-frame svg { width: 100%; height: 100%; object-fit: cover; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .search-bar { grid-template-columns: repeat(3, 1fr); }
  .search-bar .btn { grid-column: 1 / -1; }
  .prop-grid, .tile-grid, .article-grid, .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-aside { position: static; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}
@media (max-width: 1150px) {
  .nav-links { display: none; }
  .header-actions .btn--advisor { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .filters-panel { grid-template-columns: repeat(2, 1fr); }
  .pd-gallery { grid-template-columns: 1fr; max-height: none; }
  .pd-gallery .g-main { grid-row: auto; }
  .pd-gallery > div:not(.g-main) { display: none; }
}
@media (max-width: 640px) {
  .prop-grid, .tile-grid, .article-grid, .fact-grid, .value-grid, .steps, .dev-grid { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 100px 1fr; }
  .mobile-actionbar.is-enabled { display: grid; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .spec-strip .spec { padding: 12px 16px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
}
