/* ==========================================================================
   Ofok Albunyan Real Estate — Design system
   Premium navy / gold / cream palette, elegant serif display type.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #08152b;
  --navy-850: #0b1a33;
  --navy-800: #10233f;
  --navy-700: #16305e;
  --navy-600: #1d3d75;
  --navy-500: #2a5296;
  --navy-200: #c8d3e6;
  --navy-100: #e6ecf7;
  --navy-050: #f4f7fc;

  --gold-700: #9a7420;
  --gold-600: #b0852a;
  --gold-500: #c19335;
  --gold-400: #d4af4a;
  --gold-300: #e3c778;
  --gold-100: #f8f0dc;

  --cream: #f7f3ec;
  --cream-200: #efe8dc;
  --ivory: #fdfbf7;
  --white: #ffffff;

  --ink: #101828;
  --muted: #6b7790;
  --muted-dark: #9aa8c2;
  --line: #e4e1d8;
  --line-soft: #efede6;

  --ok: #1f7a4d;
  --ok-bg: #e7f5ee;
  --warn: #a35c00;
  --warn-bg: #fdf1e0;
  --err: #b3261e;
  --err-bg: #fdeceb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(8, 21, 43, .05);
  --shadow-sm: 0 6px 18px rgba(8, 21, 43, .07);
  --shadow-md: 0 14px 38px rgba(8, 21, 43, .11);
  --shadow-lg: 0 28px 70px rgba(8, 21, 43, .18);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Cormorant Garamond', 'Marcellus', Georgia, 'Times New Roman', serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 64px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy-900);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

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

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

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -70px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(44px, 6vw, 80px) 0; }
.section--navy { background: var(--navy-850); color: #c3cee2; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--cream { background: var(--cream); }
.section--ivory { background: var(--ivory); }
.section--alt { background: var(--cream); }

.section-head { max-width: 760px; margin: 0 auto clamp(34px, 5vw, 60px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.03rem; margin: 0; }
.section--navy .section-head p { color: var(--muted-dark); }
.section-head h2 { margin-bottom: .35em; }

/* Letter-spaced uppercase label with a rule on each side */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 30px; height: 1px; background: currentColor; opacity: .55;
}
.section--navy .eyebrow { color: var(--gold-400); }
/* Single-side variant (hero) */
.eyebrow--lead::after { display: none; }
.eyebrow--lead { gap: 14px; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: end; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  text-align: center; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn i { font-size: .95rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #241a04;
  box-shadow: 0 12px 30px rgba(176, 133, 42, .32);
}
.btn--gold:hover { color: #241a04; box-shadow: 0 16px 38px rgba(176, 133, 42, .42); }

.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--ghost {
  background: transparent; color: var(--navy-800);
  border-color: rgba(16, 35, 63, .3);
}
.btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-900); background: #fff; }

.btn--ghost-light {
  background: rgba(255, 255, 255, .05); color: #fff;
  border-color: rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.btn--sm { padding: 11px 22px; font-size: .7rem; }
.btn--lg { padding: 17px 40px; font-size: .8rem; }
.btn--block { width: 100%; }

.btn--pulse { position: relative; }
.btn--pulse::after {
  content: ''; position: absolute; inset: -3px; border-radius: inherit;
  border: 1px solid var(--gold-400); opacity: 0; animation: ring 2.8s infinite;
}
@keyframes ring {
  0% { opacity: .6; transform: scale(.97); }
  70% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); }
}

.link-arrow { font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 21, 43, .96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 8px 30px rgba(8, 21, 43, .35); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; background: #fff; padding: 5px 7px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  color: #fff; letter-spacing: .06em;
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 700;
}

.nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: block; padding: 11px 15px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #c3cee2;
}
.nav-list a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-list a.is-active { color: var(--gold-400); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .05);
  color: #e6ecf7; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .18s var(--ease);
}
.lang-toggle:hover { border-color: var(--gold-400); color: var(--gold-300); background: rgba(212, 175, 74, .1); }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .05);
  border-radius: 10px; color: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle i { font-size: 1.15rem; }

@media (max-width: 1140px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--navy-850); border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .32s var(--ease);
  }
  .nav.is-open { max-height: 76vh; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 24px; }
  .nav-list a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 560px) { .lang-toggle span { display: none; } .lang-toggle { padding: 11px 13px; } }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 900px);
  display: flex; align-items: center;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Deep navy scrim, darkest on the copy side for readability */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 15, 33, .97) 0%, rgba(6, 15, 33, .9) 38%, rgba(6, 15, 33, .62) 66%, rgba(6, 15, 33, .45) 100%),
    linear-gradient(0deg, rgba(6, 15, 33, .85), rgba(6, 15, 33, .25) 45%, rgba(6, 15, 33, .5) 100%);
}
/* NOTE: only vertical padding here — setting the `padding` shorthand with a
   0 horizontal value would override .container's gutter (same specificity,
   declared later) and jam the copy against the viewport edge. */
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: clamp(96px, 12vw, 150px);
  padding-bottom: clamp(110px, 13vw, 170px);
}
.hero-content { max-width: 690px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem); color: #b9c6dd;
  max-width: 560px; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-badges {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(44px, 6vw, 76px); padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 640px;
}
.hero-badge strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500;
  color: var(--gold-400); line-height: 1;
}
.hero-badge span {
  display: block; margin-top: 9px; font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark);
}

/* ---------- 7. Search / quick filter bar ---------- */
.quickbar { position: relative; z-index: 5; margin-top: -52px; }
.quickbar-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 18px; align-items: end;
}

/* ---------- 8. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}

/* Project card */
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy-100); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media .tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(8, 21, 43, .84); color: #fff;
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.project-media .tag--ready { background: rgba(31, 122, 77, .92); }
.project-media .tag--offplan { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #241a04; }
/* Launch badge sits opposite the status tag — used for the newest releases. */
.project-media .tag--launch {
  inset-inline-start: auto; inset-inline-end: 14px;
  background: #fff; color: var(--navy-900);
  letter-spacing: .1em; padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}
/* A project saved without an image URL gets a branded placeholder instead of a
   broken-image icon. */
.project-media--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-600));
}
.project-media--placeholder .project-media-icon {
  display: grid; place-items: center;
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(212, 175, 74, .16);
  border: 1px solid rgba(212, 175, 74, .42);
  color: var(--gold-300); font-size: 1.5rem;
}

/* ---------- Project photo uploader (admin form) ---------- */
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-preview {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--cream); max-width: 320px;
}
.upload-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.upload-hint { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.upload-url { margin-top: 12px; }
.upload-url summary {
  cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--navy-700);
}
.upload-url summary:hover { color: var(--gold-600); }
.upload-url .input { margin-top: 10px; }
.upload-bar {
  margin-top: 12px; height: 6px; border-radius: 999px;
  background: var(--navy-100); overflow: hidden;
}
.upload-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  transition: width .2s var(--ease);
}
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-dev {
  display: flex; align-items: center; gap: 10px;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px;
}
.project-dev .logo-badge { width: 28px; height: 28px; border-radius: 7px; }
.project-card h3 { font-size: 1.28rem; margin-bottom: 7px; }
.project-loc { font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.project-loc i { color: var(--gold-500); }
.project-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; padding: 16px 0 0; margin-top: auto;
  border-top: 1px solid var(--line-soft);
}
.project-meta div span {
  display: block; font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.project-meta div strong { font-size: .92rem; color: var(--navy-900); font-weight: 600; font-family: var(--font-sans); }
.project-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

/* Feature card */
.feature-card { padding: 32px 28px; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--gold-100); color: var(--gold-600); font-size: 1.3rem;
}
.feature-card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.7; }

/* Numbered "why choose us" cards */
.why-card {
  position: relative; padding: 34px 28px 30px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  transition: border-color .28s var(--ease), background-color .28s var(--ease), transform .28s var(--ease);
}
.why-card:hover { border-color: rgba(212, 175, 74, .5); background: rgba(255, 255, 255, .07); transform: translateY(-5px); }
.why-num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 400;
  color: var(--gold-500); line-height: 1; display: block; margin-bottom: 16px;
}
.why-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.why-card p { color: var(--muted-dark); font-size: .9rem; margin: 0; line-height: 1.7; }

/* Stat */
.stat { text-align: center; padding: 10px; }
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--gold-400); line-height: 1;
}
.stat span {
  display: block; margin-top: 9px; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark);
}
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* ---------- 9. Communities bento grid ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 20px;
}
.community-tile {
  position: relative; overflow: hidden; display: block;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  grid-column: span 2; grid-row: span 2;
  box-shadow: var(--shadow-sm);
}
.community-tile--small { grid-column: span 1; grid-row: span 1; }
.community-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .7s var(--ease);
}
.community-tile:hover img { transform: scale(1.07); }
.community-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 15, 33, .93) 0%, rgba(6, 15, 33, .55) 45%, rgba(6, 15, 33, .18) 100%);
  transition: opacity .3s var(--ease);
}
.community-tile:hover::after { opacity: .85; }
.community-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 28px;
}
.community-tile--small .community-body { padding: 20px 22px; }
.community-body h3 {
  color: #fff; margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}
.community-tile--small .community-body h3 { font-size: clamp(1rem, 1.5vw, 1.15rem); }
.community-tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-400);
}
.community-tile--small .community-tag { font-size: .56rem; letter-spacing: .14em; }
.community-cta {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.community-tile:hover .community-cta { opacity: 1; transform: none; }

/* ---------- 10. About section ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.about-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 400px; }
.about-media img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.about-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(8, 21, 43, .55), rgba(8, 21, 43, .82));
}
.about-seal {
  position: absolute; z-index: 3; inset-inline-end: -26px; bottom: 34px;
  width: 128px; height: 128px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold-400);
  display: grid; place-items: center; padding: 12px;
  box-shadow: var(--shadow-lg);
}
.about-seal img { width: 100%; height: auto; }
.about-sign {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900);
}
.about-sign span {
  display: block; margin-top: 4px; font-family: var(--font-sans);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600);
}
.about-points { display: grid; gap: 12px; margin: 22px 0 0; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.about-points i { color: var(--gold-600); margin-top: 5px; }

/* Scroll cue in the hero */
.hero-scroll {
  position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: .58rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted-dark);
}
.hero-scroll i {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, var(--gold-400), transparent);
}

/* Centred action row that closes a section */
.section-cta { text-align: center; margin: 40px 0 0; }

/* ---------- 11. Developers directory ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dev-chip {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.dev-chip:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dev-chip .dev-name { font-size: .86rem; font-weight: 600; color: var(--navy-900); line-height: 1.25; }
.dev-chip .dev-emirate { font-size: .64rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.logo-badge {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-size: .92rem; color: var(--navy-700);
  position: relative;
}
.logo-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.logo-badge.is-mono { background: var(--navy-050); }

/* ---------- 12. Steps / process ---------- */
.steps { display: grid; gap: 18px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step-num {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-300);
  font-family: var(--font-display); font-size: 1.1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- 13. CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-xl);
  padding: clamp(38px, 5vw, 62px) clamp(28px, 5vw, 68px);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 28px;
}
.cta-banner::before {
  content: ''; position: absolute; inset-inline-end: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 74, .28), transparent 68%);
}
.cta-banner h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); position: relative; }
.cta-banner p { color: #b9c6dd; margin: 0; position: relative; }

/* ---------- 14. Office / contact ---------- */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-info li {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-info li:last-child { border-bottom: 0; }
.contact-info i {
  color: var(--gold-600); font-size: 1.05rem; margin-top: 5px; width: 22px;
  flex: 0 0 auto; text-align: center;
}
.contact-info strong {
  display: block; font-family: var(--font-sans); font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.contact-info span, .contact-info a { color: var(--navy-900); font-size: .96rem; }
.contact-info a:hover { color: var(--gold-600); }

.map-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: var(--navy-800); min-height: 360px;
  display: flex; align-items: flex-end;
}
.map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.map-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 15, 33, .92), rgba(6, 15, 33, .35));
}
.map-note { position: relative; z-index: 2; padding: 30px 32px; }
.map-note strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.35rem; }
.map-note span { display: block; color: #b9c6dd; font-size: .88rem; margin-top: 6px; }
.map-pin {
  position: absolute; z-index: 3; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold-500); color: #241a04;
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: 0 0 0 12px rgba(212, 175, 74, .22), 0 0 0 26px rgba(212, 175, 74, .1);
}
.map-links { position: relative; z-index: 3; padding: 0 32px 30px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 15. Founders ---------- */
.founder-card { display: flex; gap: 22px; align-items: flex-start; padding: 30px 26px; }
.founder-photo {
  flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300); font-family: var(--font-display); font-size: 1.7rem;
  border: 3px solid var(--gold-300);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-card h3 { margin-bottom: 4px; }
.founder-role {
  display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-600);
  background: var(--gold-100); padding: 4px 12px; border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.founder-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- 16. Forms ---------- */
.field { margin-bottom: 18px; }
.field > label,
.quickbar-field label,
.field-label {
  display: block; font-family: var(--font-sans);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-800); margin-bottom: 9px;
}
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.req { color: var(--err); }

.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9aa6bc; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212, 175, 74, .18);
}
.textarea { min-height: 116px; resize: vertical; }
.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 fill='%2316305e' d='M7 9 0 .8h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
html[dir="rtl"] .select { background-position: left 16px center; padding-right: 16px; padding-left: 44px; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--err); background: #fffafa; }
.field-error { display: none; margin-top: 7px; font-size: .8rem; color: var(--err); font-weight: 500; }
.field.has-error .field-error { display: block; }

.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: .87rem; color: var(--muted); }
.checkline input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--gold-600); flex: 0 0 auto; }

/* ---------- 17. Request wizard ---------- */
/*
  NOTE: `.wizard` must NOT use `overflow: hidden`. The developer combobox panel
  is absolutely positioned and taller than the step it sits in, so clipping the
  wizard cut the panel off mid-item (only half a row was visible, with the
  emirate heading overlapping it). The rounded corners are instead applied to
  the head and foot, which are the only children with a full-bleed background.
*/
.wizard {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.wizard-head {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff;
  padding: 30px 32px 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.wizard-head h2 { color: #fff; margin-bottom: 6px; font-size: 1.66rem; }
.wizard-head p { color: #a9b7d2; font-size: .88rem; margin: 0; }

.progress { margin-top: 24px; display: flex; }
.progress-step {
  flex: 1; position: relative; padding: 13px 8px 17px; text-align: center;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: #7f8fb0; border-top: 3px solid rgba(255, 255, 255, .16);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.progress-step i { display: block; font-size: 1rem; margin-bottom: 6px; }
.progress-step.is-active { color: var(--gold-300); border-top-color: var(--gold-400); }
.progress-step.is-done { color: #b9c7de; border-top-color: var(--navy-500); }
.progress-step.is-done i::before { content: '\f00c'; }
.progress-step span { display: block; }

.wizard-body { padding: 34px 32px; }
.wizard-step { display: none; animation: fadeUp .35s var(--ease); }
.wizard-step.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.step-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.step-title .n { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-500); line-height: 1; }
.step-title h3 { margin: 0; }
.step-help { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

.wizard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 32px 28px;
  border-top: 1px solid var(--line-soft); background: var(--cream);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.wizard-foot .spacer { flex: 1; }
.wizard-foot .btn--ghost.is-hidden { visibility: hidden; }

/* Developer combobox */
.combo { position: relative; }
.combo-toggle {
  width: 100%; display: flex; align-items: center; gap: 13px;
  padding: 12px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-align: left; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.combo-toggle:hover { border-color: var(--gold-400); }
.combo.is-open .combo-toggle { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(212, 175, 74, .18); }
.combo-toggle .combo-value { flex: 1; min-width: 0; }
.combo-toggle .combo-value strong { display: block; font-size: .95rem; color: var(--navy-900); font-weight: 600; }
.combo-toggle .combo-value span { font-size: .66rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.combo-toggle .combo-value.is-empty strong { color: #9aa6bc; font-weight: 400; }
.combo-caret { color: var(--navy-600); transition: transform .22s var(--ease); }
.combo.is-open .combo-caret { transform: rotate(180deg); }

.combo-panel {
  position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; overflow: hidden;
}
.combo.is-open .combo-panel { display: block; }
.combo-search { padding: 13px; border-bottom: 1px solid var(--line-soft); }
.combo-search input {
  width: 100%; padding: 12px 14px; font-size: .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit;
}
.combo-search input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212, 175, 74, .16); }
/* The developer list is deliberately tall: 55+ developers are grouped by
   emirate and visitors asked for a bigger panel than the original 330px. */
.combo-list { max-height: min(58vh, 520px); overflow-y: auto; padding: 6px; }
.combo-group {
  font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: 14px 12px 8px; position: sticky; top: 0;
  background: #fff; z-index: 1;
}
.combo-option {
  width: 100%; display: flex; align-items: center; gap: 13px;
  padding: 13px 12px; background: none; border: 0; border-radius: var(--radius-sm);
  text-align: left;
}
.combo-option:hover, .combo-option.is-highlight { background: var(--navy-050); }
.combo-option.is-selected { background: var(--gold-100); }
.combo-option .dev-name { font-size: .95rem; font-weight: 500; color: var(--navy-900); }
.combo-option .dev-emirate { font-size: .72rem; color: var(--muted); }
.combo-empty { padding: 22px; text-align: center; color: var(--muted); font-size: .88rem; }

/* Segmented choice */
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.segmented--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-inner {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; height: 100%;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.choice-inner i.lead {
  font-size: 1.3rem; color: var(--navy-600);
  width: 48px; height: 48px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--navy-050);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.choice-inner strong { display: block; font-size: 1.02rem; color: var(--navy-900); margin-bottom: 3px; }
.choice-inner small { color: var(--muted); font-size: .84rem; line-height: 1.55; display: block; }
.choice:hover .choice-inner { border-color: var(--gold-400); }
.choice input:checked + .choice-inner {
  border-color: var(--gold-500); background: #fffdf6;
  box-shadow: 0 8px 22px rgba(176, 133, 42, .14);
}
.choice input:checked + .choice-inner i.lead { background: var(--gold-100); color: var(--gold-600); }
.choice input:focus-visible + .choice-inner { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.choice-badge {
  position: absolute; top: -11px; inset-inline-end: 16px;
  background: var(--gold-500); color: #241a04;
  font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* Counter */
.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.counter {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: #fff;
}
.counter button {
  width: 46px; height: 46px; border: 0; background: #fff;
  color: var(--navy-700); font-size: .95rem;
  display: grid; place-items: center; transition: background-color .16s var(--ease);
}
.counter button:hover:not(:disabled) { background: var(--navy-050); }
.counter button:disabled { color: #c3cbdb; cursor: not-allowed; }
.counter output {
  min-width: 80px; text-align: center; font-size: .92rem; font-weight: 600;
  color: var(--navy-900); padding: 0 6px;
}

/* ---------- 18. Calendar ---------- */
.calendar-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.calendar { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.calendar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; background: var(--cream); border-bottom: 1px solid var(--line);
}
.calendar-head strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); }
.calendar-nav { display: flex; gap: 6px; }
.calendar-nav button {
  width: 38px; height: 38px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; color: var(--navy-700); display: grid; place-items: center;
}
.calendar-nav button:hover:not(:disabled) { border-color: var(--gold-400); background: #fffdf6; }
.calendar-nav button:disabled { color: #c3cbdb; cursor: not-allowed; }
.calendar-grid { padding: 14px 16px 18px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-weekdays span {
  text-align: center; font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: 7px 0;
}
.calendar-day {
  aspect-ratio: 1 / 1; border: 1px solid transparent; background: transparent;
  border-radius: 10px; font-size: .86rem; color: var(--navy-900); font-weight: 500;
  display: grid; place-items: center; transition: all .16s var(--ease);
}
.calendar-day:hover:not(:disabled) { background: var(--navy-050); border-color: var(--line); }
.calendar-day.is-empty { visibility: hidden; }
.calendar-day.is-today { border-color: var(--navy-500); color: var(--navy-600); font-weight: 700; }
.calendar-day.is-selected {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #241a04; font-weight: 700; border-color: transparent;
  box-shadow: 0 6px 16px rgba(176, 133, 42, .3);
}
.calendar-day:disabled { color: #c9d1e0; cursor: not-allowed; text-decoration: line-through; }

.slot-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.slot-panel h4 {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800);
}
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 8px; }
.slot {
  padding: 11px 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; font-size: .78rem; color: var(--navy-800); font-weight: 600;
  transition: all .16s var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--gold-400); background: #fffdf6; }
.slot.is-selected { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.slot:disabled { opacity: .45; cursor: not-allowed; }
.slot-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.selection-summary {
  margin-top: 18px; padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--gold-100); color: var(--navy-900); font-size: .86rem;
  display: flex; gap: 11px; align-items: flex-start;
}
.selection-summary i { color: var(--gold-600); margin-top: 3px; }

/* ---------- 19. Captcha ---------- */
.captcha {
  display: flex; align-items: center; gap: 15px; flex-wrap: wrap;
  padding: 18px 20px; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.captcha-question { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900); white-space: nowrap; }
.captcha input {
  width: 100px; text-align: center; padding: 12px; font-size: 1rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit;
}
.captcha input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212, 175, 74, .16); }
.captcha-refresh {
  border: 1px solid var(--line); background: #fff; width: 44px; height: 44px;
  border-radius: 10px; color: var(--navy-700); display: grid; place-items: center;
}
.captcha-refresh:hover { border-color: var(--gold-400); }
.captcha-status { font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.captcha-status.ok { color: var(--ok); }
.captcha-status.bad { color: var(--err); }
.captcha.is-ok { border-color: #b8e0cb; background: var(--ok-bg); }

/* ---------- 20. Alerts ---------- */
.alert {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: .89rem; margin-bottom: 20px; border: 1px solid transparent;
}
.alert i { margin-top: 3px; }
.alert--info { background: var(--navy-050); border-color: var(--line); color: var(--navy-800); }
.alert--ok { background: var(--ok-bg); border-color: #b8e0cb; color: var(--ok); }
.alert--warn { background: var(--warn-bg); border-color: #f0d7ae; color: var(--warn); }
.alert--err { background: var(--err-bg); border-color: #f3c7c3; color: var(--err); }
.alert strong { display: block; }
.alert a { text-decoration: underline; }

/* ---------- 21. Success screen ---------- */
.success-screen { text-align: center; padding: 50px 32px 56px; }
.success-mark {
  width: 82px; height: 82px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem;
  background: var(--ok-bg); color: var(--ok); animation: pop .45s var(--ease);
}
@keyframes pop {
  0% { transform: scale(.5); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.success-screen h2 { margin-bottom: 12px; }
.success-screen > p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.receipt {
  text-align: left; max-width: 640px; margin: 0 auto 28px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.receipt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; background: var(--cream); border-bottom: 1px solid var(--line);
}
.receipt-head span { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.receipt-head strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900); }
.receipt dl { margin: 0; padding: 8px 22px 18px; }
.receipt-row { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .89rem; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row dt { flex: 0 0 44%; color: var(--muted); }
.receipt-row dd { margin: 0; flex: 1; color: var(--navy-900); font-weight: 500; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 22. Inbox ---------- */
.inbox-head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
  justify-content: space-between; margin-bottom: 24px;
}
.inbox-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inbox-filters .field { margin-bottom: 0; }
.inbox-filters .input, .inbox-filters .select { min-width: 200px; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi span { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-900); line-height: 1.2; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.leads { width: 100%; border-collapse: collapse; min-width: 900px; }
table.leads th {
  text-align: start; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 14px 18px; background: var(--cream);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.leads td { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); font-size: .87rem; vertical-align: top; }
table.leads tr:last-child td { border-bottom: 0; }
table.leads tbody tr:hover { background: var(--navy-050); }
table.leads .cell-strong { font-weight: 600; color: var(--navy-900); }
table.leads .cell-muted { color: var(--muted); font-size: .78rem; }
table.leads .cell-actions { white-space: nowrap; }
table.leads select { padding: 8px 30px 8px 10px; font-size: .78rem; }

.pill {
  display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--navy-050); color: var(--navy-700); white-space: nowrap;
}
.pill--gold { background: var(--gold-100); color: var(--gold-600); }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--err { background: var(--err-bg); color: var(--err); }

.empty-state { padding: 66px 28px; text-align: center; color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--navy-100); margin-bottom: 16px; display: block; }
.empty-state strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-900); margin-bottom: 8px; }
.empty-state .btn { margin-top: 14px; }

.loading-row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 56px; color: var(--muted); }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--gold-500);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 26px; }
.detail-row { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.detail-row dt { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail-row dd { margin: 4px 0 0; font-size: .92rem; color: var(--navy-900); font-weight: 500; word-break: break-word; }

/* ---------- 22b. Intent screen (buy or sell) ---------- */
.intent-screen {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden;
}
.intent-body { padding: 34px 32px 38px; }
.intent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.intent-card {
  display: flex; align-items: flex-start; gap: 18px; text-align: start;
  padding: 28px 26px; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.intent-card:hover, .intent-card:focus-visible {
  border-color: var(--gold-500); box-shadow: 0 14px 34px rgba(176, 133, 42, .16);
  transform: translateY(-3px); outline: none;
}
.intent-icon {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--navy-050); color: var(--navy-700);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.intent-card:hover .intent-icon { background: var(--gold-100); color: var(--gold-600); }
.intent-text { flex: 1; min-width: 0; }
.intent-text strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-900); margin-bottom: 6px; }
.intent-text small { display: block; color: var(--muted); font-size: .87rem; line-height: 1.6; }
.intent-go {
  flex: 0 0 auto; align-self: center; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-600);
  background: var(--gold-100); font-size: .82rem;
}

/* "Change option" control in the wizard head */
.intent-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  color: #d8e0ee; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
  font-family: inherit; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.intent-back:hover { background: rgba(255, 255, 255, .17); color: #fff; }
html[dir="rtl"] .intent-back .fa-arrow-left { transform: scaleX(-1); }

/* WhatsApp hand-off panel on the sell "photos & video" step */
.wa-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding: 20px 22px;
  background: #f2fbf4; border: 1px solid #cfe9d6; border-radius: var(--radius);
}
.wa-cta-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.3rem;
}
.wa-cta-text { flex: 1; min-width: 180px; }
.wa-cta-text strong { display: block; font-size: .95rem; color: var(--navy-900); margin-bottom: 3px; }
.wa-cta-text p { margin: 0; font-size: .82rem; color: var(--muted); }

/* These components set `display`, which would otherwise outrank the browser's
   own rule for the [hidden] attribute — restate it in one place. */
.login-gate[hidden],
.login-error[hidden],
.inbox-who[hidden],
.wa-cta[hidden],
.upload-preview[hidden],
.upload-row .btn[hidden],
#pf-photo-msg[hidden] { display: none; }

/* ---------- 22c. Inbox sign-in gate ---------- */
.login-gate { display: grid; place-items: center; padding: 20px 0 40px; }
.login-card {
  width: 100%; max-width: 460px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.login-head {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 30px 30px 26px; text-align: center;
}
.login-head .login-mark {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(212, 175, 74, .18); color: var(--gold-300);
}
.login-head h2 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.login-head p { color: #a9b7d2; font-size: .85rem; margin: 0; }
.login-body { padding: 28px 30px 30px; }
.login-body .field { margin-bottom: 16px; }
.login-body .btn { width: 100%; justify-content: center; }
.login-note {
  margin-top: 18px; font-size: .76rem; color: var(--muted); line-height: 1.6;
  padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.login-error {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--err-bg); color: var(--err); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .82rem; margin-bottom: 16px;
}
/* `display:flex` above outranks the UA rule for [hidden], so restate it. */
.login-error[hidden] { display: none; }
.inbox-who {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 18px; padding: 12px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.inbox-who span { font-size: .82rem; color: var(--muted); }
.inbox-who strong { color: var(--navy-900); }

/* ---------- 23. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: clamp(54px, 8vw, 96px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #a9b7d2; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8b9cbd; margin-bottom: 16px; display: flex; gap: 9px; align-items: center; }
.breadcrumb a { color: #b9c7de; }
.breadcrumb a:hover { color: var(--gold-300); }

/* ---------- 24. Footer ---------- */
.site-footer { background: var(--navy-900); color: #9aa8c2; padding: clamp(54px, 7vw, 84px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 38px; }
.site-footer h4 {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.site-footer p { font-size: .88rem; line-height: 1.75; }
.footer-brand img { height: 66px; margin-bottom: 18px; background: #fff; padding: 9px; border-radius: 11px; }
.footer-links li { margin-bottom: 11px; display: flex; gap: 10px; align-items: flex-start; }
.footer-links a, .footer-links li { color: #9aa8c2; font-size: .88rem; }
.footer-links a:hover { color: var(--gold-300); }
.footer-links i { color: var(--gold-500); margin-top: 4px; font-size: .85rem; }
.footer-credentials {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px 34px; font-size: .82rem; color: #9aa8c2;
}
.footer-credentials strong { display: block; font-family: var(--font-sans); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 5px; }
.footer-bottom {
  margin-top: 52px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .78rem; color: #7f8fb0;
}
/* When the credentials band is present it owns the divider, so the bottom bar
   sits directly beneath it without a second rule or a double gap. */
.footer-credentials + .footer-bottom { margin-top: 0; border-top: 0; }
.social { display: flex; gap: 11px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #cfd8ea;
  border: 1px solid rgba(255, 255, 255, .12);
}
.social a:hover { background: var(--gold-500); color: #241a04; border-color: transparent; }

/* ---------- 25. Floating WhatsApp ---------- */
.float-wa {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.55rem;
  background: #25d366; color: #fff; box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease);
}
.float-wa:hover { transform: scale(1.08); color: #fff; }

/* ---------- 26. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn--pulse::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 27. Arabic / RTL ---------- */
html[dir="rtl"] body { font-family: 'Cairo', 'Tajawal', var(--font-sans); letter-spacing: 0; }
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .brand-name,
html[dir="rtl"] .stat strong,
html[dir="rtl"] .receipt-head strong,
html[dir="rtl"] .calendar-head strong,
html[dir="rtl"] .step-num,
html[dir="rtl"] .step-title .n,
html[dir="rtl"] .captcha-question,
html[dir="rtl"] .kpi strong,
html[dir="rtl"] .why-num,
html[dir="rtl"] .hero-badge strong,
html[dir="rtl"] .about-sign,
html[dir="rtl"] .map-note strong,
html[dir="rtl"] .logo-badge,
html[dir="rtl"] .founder-photo { font-family: 'Cairo', 'Tajawal', var(--font-display); }
html[dir="rtl"] .eyebrow { letter-spacing: .1em; }
html[dir="rtl"] .btn { letter-spacing: .06em; }
html[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(260deg, rgba(6, 15, 33, .97) 0%, rgba(6, 15, 33, .9) 38%, rgba(6, 15, 33, .62) 66%, rgba(6, 15, 33, .45) 100%),
    linear-gradient(0deg, rgba(6, 15, 33, .85), rgba(6, 15, 33, .25) 45%, rgba(6, 15, 33, .5) 100%);
}
html[dir="rtl"] .link-arrow span,
html[dir="rtl"] .community-cta i,
html[dir="rtl"] .fa-arrow-left,
html[dir="rtl"] .fa-arrow-right { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .project-meta div strong,
html[dir="rtl"] .counter output,
html[dir="rtl"] table.leads td,
html[dir="rtl"] .slot,
html[dir="rtl"] .calendar-day { direction: ltr; unicode-bidi: embed; }
html[dir="rtl"] .calendar-grid { direction: rtl; }
/* Phone / e-mail links keep their reading order */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="https://wa.me/"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- 27b. FAQ (homepage) ---------- */
.faq-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(30px, 4vw, 46px);
}
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.faq-item h3 {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 500;
  color: var(--navy-900); margin: 0 0 10px; line-height: 1.35;
}
.faq-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- 28. Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quickbar-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quickbar-card .btn { grid-column: span 2; }
  .calendar-wrap { grid-template-columns: 1fr; }
  .request-layout { grid-template-columns: 1fr; }
  .request-layout aside { order: 2; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-seal { inset-inline-end: 26px; bottom: 26px; width: 104px; height: 104px; }
  .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .brand-sub { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .quickbar-card { grid-template-columns: 1fr; }
  .quickbar-card .btn { grid-column: span 1; }
  .quickbar { margin-top: -34px; }
  .segmented { grid-template-columns: 1fr; }
  .segmented--3 { grid-template-columns: 1fr; }
  .intent-grid { grid-template-columns: 1fr; }
  .intent-body { padding: 26px 22px 30px; }
  .intent-card { padding: 22px 20px; }
  .login-head { padding: 26px 22px 22px; }
  .login-body { padding: 24px 22px 26px; }
  .progress-step span { display: none; }
  .progress-step i { font-size: 1.15rem; }
  .wizard-head { padding: 24px 22px 0; }
  .wizard-body { padding: 26px 22px; }
  .wizard-foot { padding: 18px 22px 24px; flex-wrap: wrap; }
  .wizard-foot .spacer { display: none; }
  .wizard-foot .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-row { flex-direction: column; align-items: flex-start; }
  .counter { width: 100%; justify-content: space-between; }
  .counter output { flex: 1; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 78px; padding-bottom: 76px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
  .float-wa { inset-inline-end: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.35rem; }
  .inbox-filters { width: 100%; }
  .inbox-filters .field { flex: 1 1 100%; }
  .inbox-filters .input, .inbox-filters .select { width: 100%; min-width: 0; }
  .receipt-row { flex-direction: column; gap: 2px; }
  .receipt-row dt { flex: none; }
  .filter-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 14px; }
  .community-tile { border-radius: var(--radius); }
  .community-body { padding: 18px 18px; }
  .cta-banner { padding: 34px 26px; }
  .cta-banner .btn { width: 100%; }
  .map-card { min-height: 300px; }
}

@media (max-width: 460px) {
  .community-grid { grid-template-columns: 1fr; grid-auto-rows: 165px; }
  .community-tile, .community-tile--small { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 900px) { .hero-scroll { display: none; } }

@media print {
  .site-header, .site-footer, .float-wa, .btn, .wizard-foot { display: none !important; }
}
