@font-face {
  font-family: "Manrope";
  src: url("../fonts/en/Manrope-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/ar/NotoKufiArabic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0a2342;
  --navy-dark: #071a31;
  --navy-soft: rgba(10, 35, 66, 0.04);
  --gold: #f9ba3f;
  --gold-dark: #e8a931;
  --white: #ffffff;

  --bg-page: #fcfcfc; /* soft warm white */
  --bg-section-alt: #f4f5f7; /* light warm gray */
  --bg-dark: var(--navy);

  --text-main: #334155; /* calmer body text */
  --text-muted: #64748b;
  --text-heading: var(--navy);

  --border-light: rgba(10, 35, 66, 0.06);
  --border-dark: rgba(255, 255, 255, 0.12);

  --r-sm: 8px;   /* inputs, small elements */
  --r-md: 12px;  /* buttons, small cards */
  --r-lg: 16px;  /* primary cards */
  --r-xl: 24px;  /* major elements, form card */

  --shadow-sm: 0 4px 12px rgba(10, 35, 66, 0.03);
  --shadow-soft: 0 12px 32px rgba(10, 35, 66, 0.05);
  --shadow-lift: 0 20px 48px rgba(10, 35, 66, 0.07);

  --transition-fast: 0.2s ease;  /* hover color/background/border shifts */
  --transition-base: 0.3s ease;  /* card lift, shadow, larger state changes */

  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;

  --container: 1240px; /* Slightly tighter for better readability */
  --gutter: 24px;
  --section-pad: 64px;
  --header-h: 72px;
}

[dir="rtl"] {
  --font-sans: "Noto Kufi Arabic", "Manrope", system-ui, -apple-system, sans-serif;
}

@media (min-width: 768px) {
  :root { --section-pad: 80px; --gutter: 40px; }
}
@media (min-width: 992px) {
  :root { --section-pad: 112px; --header-h: 84px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
  /* Safety net: the closed off-canvas mobile nav panel (position:fixed,
     translated off-screen) can register a few px of phantom horizontal
     scroll at very narrow widths. No element on the site relies on
     horizontal overflow being visible, so this is a zero-side-effect fix. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
address { font-style: normal; } /* neutralize the UA default italic so <address> is visually inert */

h1, h2, h3 {
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 24px; }
h3 { font-size: 1.25rem; }

p { max-width: 65ch; } /* Limit line length for readability */

/* Navy is the default focus-ring color: against the white/light-gray
   surfaces that make up most of the site it holds ~16:1 contrast, where
   gold (~1.7:1 on white) fails WCAG 2.2's 3:1 non-text contrast minimum.
   Gold is restored below, scoped to the site's dark-background regions,
   where it in turn holds ~9.5:1 against navy and navy would disappear. */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 4px;
}

.header :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.location :focus-visible,
.offplan :focus-visible,
.sticky-cta:focus-visible,
.skip-link:focus-visible,
.section-head--light :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--gold);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 24px; z-index: 200;
  padding: 12px 24px; background: var(--navy); color: var(--white);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600; transition: top var(--transition-fast);
}
[dir="rtl"] .skip-link { left: auto; right: 24px; }
.skip-link:focus-visible { top: 0; }

.container {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }

/* Neutral page sections alternate by rendered order. The marker describes
   participation only; the selector owns the background choice. Special
   sections stay outside the count and therefore do not reset the rhythm. */
[data-neutral-sequence] > [data-neutral-section] { background: var(--bg-page); }
[data-neutral-sequence] > [data-neutral-section]:nth-child(even of [data-neutral-section]) { background: var(--bg-section-alt); }

.section-head { max-width: 820px; margin-bottom: 48px; }
.section-head--light h2 { color: var(--white); }
.section-head__sub { margin-top: 16px; font-size: 1.125rem; color: var(--text-muted); }
.section-head--light .section-head__sub { color: rgba(255, 255, 255, 0.75); }

/* Mobile only: center every section's intro text block (label, heading,
   description). The eyebrow's gold dash is a left-anchored ::before inside
   an inline-block, so it centers as one unit along with the label text.
   Cards, grids, forms, nav and footer are untouched — text-align doesn't
   affect their layout, and none of them inherit from .section-head. */
@media (max-width: 767.98px) {
  .section-head { text-align: center; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  position: relative;
  padding-left: 36px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleX(1);
  transform-origin: left center;
  width: 20px; height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  animation: eyebrow-grow-line 3s ease-in-out infinite;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.9); }
.eyebrow--gold { color: var(--gold); }

/* Continuous "growing line": the outer (screen-edge) endpoint stays put —
   transform-origin pins it there — while scaleX expands/contracts the inner
   (text-side) endpoint. width/height (0.075 = 1.5px, matching the 1.5px
   height) makes the contracted state read as a small dot rather than a
   sliver. Compositor-only (transform), so it never affects layout. */
@keyframes eyebrow-grow-line {
  0%, 100% { transform: translateY(-50%) scaleX(0.075); }
  50% { transform: translateY(-50%) scaleX(1); }
}
/* prefers-reduced-motion is already handled globally below (line ~840) via
   *, *::before, *::after { animation-duration: 0.01ms !important }. */

/* RTL: the gold dash sits before the label in reading order, so it moves
   to the visual right instead of staying pinned to the left edge — the
   animation's anchor point (transform-origin) mirrors along with it, so the
   line still grows from the fixed outer edge toward the text. */
[dir="rtl"] .eyebrow { padding-left: 0; padding-right: 36px; }
[dir="rtl"] .eyebrow::before { left: auto; right: 0; transform-origin: right center; }

.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--sm { width: 18px; height: 18px; }

/* The shared "#i-arrow" proceed icon (Property Type cards, project/developer
   card links, sticky CTA) always points toward reading-end. In RTL that's
   visually left, so mirror it — same technique as the lightbox prev/next icon. */
[dir="rtl"] .icon:has(use[href="#i-arrow"]) { transform: scaleX(-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 1px solid transparent; border-radius: var(--r-md);
  font-family: inherit; font-size: 0.9375rem; font-weight: 700; line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-sm); }

.btn--accent { background: var(--gold); color: var(--navy-dark); }
.btn--accent:hover { background: var(--gold-dark); box-shadow: var(--shadow-sm); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.header.is-scrolled {
  background: var(--navy);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.15);
}

.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.header__logo img { height: 40px; width: auto; }

.header__actions { display: flex; align-items: center; }

.header__phone {
  display: none; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 0.9375rem;
}
.header__phone:hover { color: var(--gold); }
.header__phone .icon { width: 18px; height: 18px; }

/* Explicit box so the WPML language-switcher flag (SVG, lazy-loaded) always
   reserves layout space instead of rendering 0x0 before it loads. */
.wpml-ls-flag { display: inline-block; width: 24px; height: 18px; }

/* Always visible in the persistent header bar — icon-only on mobile
   (see the max-width:991.98px block below), icon + number on desktop. */
.header__actions .header__phone { display: inline-flex; }

.header__burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
}
.header__burger span {
  display: block; height: 2px; width: 100%; background: var(--white);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__overlay {
  position: fixed; inset: 0; z-index: 1;
  background: rgba(7, 26, 49, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition-base), visibility 0.3s;
}
.header__overlay.is-visible { opacity: 1; visibility: visible; }

/* Lock page scroll while the mobile panel is open */
body.nav-locked { overflow: hidden; }
/* Lock page scroll while the gallery lightbox is open */
body.lightbox-open { overflow: hidden; }

@media (max-width: 991.98px) {
  /* Mobile navigation: side panel sliding in from the right */
  .header__nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2;
    display: flex; flex-direction: column;
    width: min(320px, 86vw);
    background: var(--navy);
    padding: 84px 28px 32px;
    overflow-y: auto;
    box-shadow: -16px 0 48px rgba(7, 26, 49, 0.35);
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--transition-base), visibility 0.3s;
  }
  .header__nav.is-open { transform: none; visibility: visible; }

  .header__nav ul li a {
    display: block; padding: 14px 4px; color: rgba(255, 255, 255, 0.9);
    font-weight: 600; font-size: 1.0625rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .header__nav ul li a:hover { color: var(--gold); }
  .header__nav ul li a[aria-current="page"] { color: var(--gold); }

  .header__nav-extra {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 20px; padding-top: 28px;
  }
  .header__nav-extra .header__phone { display: inline-flex; }

  .header__close {
    position: absolute; top: 18px; right: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); border: 0; cursor: pointer;
    color: var(--white);
    transition: background-color var(--transition-fast);
  }
  .header__close:hover { background: rgba(255, 255, 255, 0.16); }
  .header__close .icon { width: 20px; height: 20px; }

  /* RTL: the panel opens from the trigger's mirrored (visual-left) side,
     so its slide-in edge, shadow throw, and close-button corner all flip. */
  [dir="rtl"] .header__nav {
    right: auto; left: 0;
    box-shadow: 16px 0 48px rgba(7, 26, 49, 0.35);
    transform: translateX(-100%);
  }
  /* Same specificity as [dir="rtl"] .header__nav above, so without this the
     RTL closed-state transform always wins over .is-open and the panel can
     never slide into view. */
  [dir="rtl"] .header__nav.is-open { transform: none; }
  [dir="rtl"] .header__close { right: auto; left: 20px; }

  /* Persistent header bar: icon-only phone link, matching the burger's
     44x44 touch target and 24x24 icon. The number stays in the markup for
     screen readers but is visually hidden until the desktop breakpoint. */
  .header__actions .header__phone {
    width: 44px; height: 44px; justify-content: center; gap: 0;
  }
  .header__actions .header__phone .icon { width: 24px; height: 24px; }
  .header__actions .header__phone-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

@media (min-width: 992px) {
  .header__overlay { display: none; }
  .header__close { display: none; }

  .header__nav { display: flex; align-items: center; gap: 12px; }
  .header__nav ul { display: flex; align-items: center; gap: 4px; }
  .header__nav ul li a {
    display: inline-block; position: relative; padding: 8px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600; font-size: 0.9375rem; border-radius: var(--r-sm);
  }
  .header__nav ul li a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
  .header__nav ul li a[aria-current="page"] { color: var(--white); }
  .header__nav ul li a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; border-radius: 1px; background: var(--gold);
  }
  .header__nav-extra { display: none; }
  .header__burger { display: none; }
}

.hero {
  position: relative; display: flex; align-items: center;
  min-height: 680px; padding-top: calc(var(--header-h) + 40px); padding-bottom: 64px;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 49, 0.45) 0%, rgba(7, 26, 49, 0.2) 40%, rgba(7, 26, 49, 0.65) 100%),
    linear-gradient(90deg, rgba(7, 26, 49, 0.85) 0%, rgba(7, 26, 49, 0.45) 50%, rgba(7, 26, 49, 0.1) 100%);
}

.hero__inner { position: relative; z-index: 1; display: grid; gap: 56px; }

.hero__content { color: var(--white); max-width: 620px; }

/* Breadcrumb takes over the label row that a page eyebrow would normally
   occupy — same gold dash treatment and eyebrow-grow-line animation as
   .eyebrow (shared keyframes, not duplicated) so it reads as the hero's
   small label row rather than a standalone nav element. Shared across every
   page type that renders a breadcrumb (standalone pages, developer pages,
   project pages), so it lives here rather than in a page-specific stylesheet. */
.breadcrumb {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
}
.breadcrumb::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleX(1);
  transform-origin: left center;
  width: 20px; height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  animation: eyebrow-grow-line 3s ease-in-out infinite;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.65);
}
.breadcrumb li + li::before {
  content: "/"; color: rgba(255, 255, 255, 0.35); font-weight: 400;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }

/* RTL: same gold-dash mirroring as .eyebrow, since the breadcrumb takes
   over the hero's label row and must line up with it exactly. */
[dir="rtl"] .breadcrumb { padding-left: 0; padding-right: 36px; }
[dir="rtl"] .breadcrumb::before { left: auto; right: 0; transform-origin: right center; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

.hero h1 { color: var(--white); margin-bottom: 12px; }

.hero__headline {
  font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600;
  color: var(--gold); letter-spacing: 0.01em; margin-bottom: 20px;
}

.hero__description {
  color: rgba(255, 255, 255, 0.9); max-width: 50ch; margin-bottom: 32px; font-size: 1.0625rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.hero__badges li {
  position: relative; padding-left: 20px; font-size: 0.875rem;
  font-weight: 500; color: rgba(255, 255, 255, 0.8);
}
.hero__badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 1.5px; background: var(--gold); border-radius: 1px;
}
[dir="rtl"] .hero__badges li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .hero__badges li::before { left: auto; right: 0; }

/* Mobile only: center the hero's text content (label, heading, subheadline,
   description) and its CTA row. .hero__search (homepage search pill) and
   .hero__badges (project-page trust list) are reset back to left — they're
   interactive/list widgets with their own deliberate mobile layout, not
   plain descriptive text, so they're excluded from centering. */
@media (max-width: 767.98px) {
  .hero__content { text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__search, .hero__badges { text-align: left; }
  [dir="rtl"] .hero__search, [dir="rtl"] .hero__badges { text-align: right; }
  /* Mobile only: center the breadcrumb as a unit (same technique as
     .eyebrow — inline-block + the ancestor's text-align: center) instead of
     its default left alignment. justify-content on the <ol> keeps wrapped
     lines centered too. Desktop/tablet keep the left-aligned block above. */
  .breadcrumb { display: inline-block; }
  .breadcrumb ol { justify-content: center; }
}

.hero__card {
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift); border: 1px solid var(--border-light);
  padding: 40px 32px; width: 100%; max-width: 420px;
}

.price-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}

.price {
  font-size: 2.5rem; font-weight: 800; color: var(--navy);
  line-height: 1; letter-spacing: -0.02em;
}
.lead-form { display: grid; gap: 20px; }
.lead-form[hidden] { display: none; }

.field { display: grid; gap: 8px; }

.field label { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.field__optional { font-weight: 500; color: var(--text-muted); font-size: 0.8125rem; }

.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text-main);
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }

.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-soft);
}

.field.has-error input, .field.has-error textarea { border-color: #ef4444; }

.field__error {
  font-size: 0.8125rem; font-weight: 500; color: #ef4444; min-height: 0; display: none;
}
.field.has-error .field__error { display: block; }

.field input[type="file"] {
  width: 100%; font-family: inherit; font-size: 0.9375rem; color: var(--text-main);
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: var(--r-sm); padding: 10px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field input[type="file"]::file-selector-button {
  font-family: inherit; font-size: 0.875rem; font-weight: 600; color: var(--navy);
  background: var(--bg-section-alt); border: 0; border-radius: var(--r-sm);
  padding: 8px 14px; margin-inline-end: 12px; cursor: pointer;
  transition: background var(--transition-fast);
}
.field input[type="file"]::file-selector-button:hover { background: var(--navy-soft); }
.field input[type="file"]:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-soft);
}
.field.has-error input[type="file"] { border-color: #ef4444; }

.apply__inner { max-width: 640px; margin-inline: auto; }
.apply__inner .section-head { text-align: center; margin-inline: auto; }

/* Careers welcome section: a single centered column instead of the
   two-column .split layout used elsewhere — no left/right text-vs-media
   split, just centered copy with an optional image stacked below it. */
.intro--centered .intro__inner { max-width: 720px; margin-inline: auto; text-align: center; display: grid; gap: 32px; justify-items: center; }
.intro--centered .split__media { border-radius: var(--r-xl); overflow: hidden; max-width: 480px; }
.intro--centered .split__media img { width: 100%; height: auto; display: block; }

.lead-form__privacy { font-size: 0.8125rem; text-align: center; color: var(--text-muted); margin-top: -4px; }

.lead-form__success { text-align: center; padding: 32px 16px; }
.lead-form__success-title { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.lead-form__success--card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); padding: 48px 32px; border: 1px solid var(--border-light); }

.lead-form--card {
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft); padding: 40px 32px; border: 1px solid var(--border-light);
}

.facts { padding-block: 48px; border-bottom: 1px solid var(--border-light); }
.facts__row { display: grid; gap: 32px; grid-template-columns: 1fr; }

.facts__item { display: flex; align-items: center; gap: 20px; }

.facts__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg-section-alt);
  color: var(--navy); flex-shrink: 0;
}

.facts__value { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 2px; }
.facts__label { font-size: 0.9375rem; color: var(--text-muted); }

@media (min-width: 600px) { .facts__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .facts { padding-block: 64px; }
  /* Facts row is 4 items normally, 5 when Bathrooms has a value — a fixed
     repeat(4, 1fr) left a lone 5th item stranded on its own row. Auto-flow
     into equal-width implicit columns instead: however many .facts__item
     children exist, they always fill one row, evenly, with no fixed count
     to keep in sync with the data. */
  .facts__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
}


/* Desktop-only: gives this project page's gallery heading enough room to fit
   on one line (single-column block sitting above the grid, not beside it). */
@media (min-width: 992px) {
  .gallery .section-head { max-width: 850px; }
}

.gallery__grid {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 16px; scrollbar-width: none;
}
.gallery__grid::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 85%; scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery__item--featured { flex: 0 0 90%; }
.gallery__item--overflow { display: none; }

.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery__item:hover img { transform: scale(1.02); }

.gallery__item-trigger {
  display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0;
  background: transparent; cursor: pointer;
}

.gallery__item-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(7, 26, 49, 0.6); color: var(--white); font-size: 1.75rem; font-weight: 800;
}

@media (min-width: 768px) {
  .gallery__grid {
    display: grid; grid-template-columns: 7fr 3fr; grid-template-rows: repeat(3, minmax(180px, 240px));
    gap: 24px; overflow: visible; padding-bottom: 0;
  }
  .gallery__item, .gallery__item--featured { flex: initial; aspect-ratio: auto; border-radius: var(--r-xl); }
  .gallery__item--featured { grid-row: 1 / span 3; }
}
@media (min-width: 1200px) { .gallery__grid { grid-template-rows: repeat(3, 260px); gap: 32px; } }

/* ---------- Gallery lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7, 26, 49, 0.94);
}
.lightbox[hidden] { display: none; }

.lightbox__dialog {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 72px 16px;
}

.lightbox__stage { position: relative; max-width: min(92vw, 1400px); max-height: 100%; overflow: hidden; }

.lightbox__image {
  display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto;
  object-fit: contain; margin-inline: auto;
  transition: transform var(--transition-base);
  user-select: none; cursor: zoom-in; touch-action: pan-y;
}
.lightbox__image.is-zoomed { cursor: zoom-out; }

.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white); cursor: pointer;
  transition: background-color var(--transition-fast);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: scaleX(-1); }

.lightbox__counter {
  position: absolute; top: 20px; left: 20px; z-index: 1;
  color: rgba(255, 255, 255, 0.85); font-size: 0.875rem; font-weight: 600;
}

@media (max-width: 767.98px) {
  .lightbox__dialog { padding: 56px 8px; }
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; }
  .lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }
  .lightbox__close { top: 10px; right: 10px; }
  .lightbox__counter { top: 14px; left: 14px; }
}

.amenities__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

.amenity-card {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  padding: 32px; transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.amenity-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.amenity-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--bg-section-alt); color: var(--navy); margin-bottom: 20px;
}
.amenity-card__icon .icon { width: 24px; height: 24px; }

.amenity-card h3 { margin-bottom: 12px; font-size: 1.125rem; }
.amenity-card p { font-size: 0.9375rem; color: var(--text-muted); }

@media (min-width: 600px) { .amenities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .amenities__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.location { position: relative; background: var(--bg-dark); overflow: hidden; }

.location__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3;
}
.location::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 35, 66, 0.95) 0%, rgba(10, 35, 66, 0.6) 100%);
}

.location__inner { position: relative; z-index: 1; }

/* Desktop-only: gives this project page's location heading enough room to
   fit on one line (single-column block sitting above the grid, not beside it). */
@media (min-width: 992px) {
  .location .section-head { max-width: 800px; }
}

.location__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

.place-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-dark);
  border-radius: var(--r-lg); padding: 32px; backdrop-filter: blur(8px);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}
.place-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }

.place-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1); color: var(--white); margin-bottom: 24px;
}

.place-card h3 { color: var(--white); font-size: 1.125rem; }

.place-card__time {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold); font-size: 0.9375rem;
  margin-bottom: 12px;
}

@media (min-width: 600px) { .location__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .location__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.enquire__grid { display: grid; gap: 56px; }

.enquire__text h2 { margin-bottom: 16px; }
.enquire__sub { max-width: 46ch; margin-bottom: 32px; font-size: 1.0625rem; }

.enquire__buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.enquire__details { display: grid; gap: 16px; }
.enquire__details li { display: flex; align-items: flex-start; gap: 16px; font-size: 1rem; color: var(--text-main); }
.enquire__details .icon { color: var(--navy); margin-top: 2px; width: 20px; height: 20px; }
.enquire__details a { font-weight: 600; color: var(--navy); }
.enquire__details a:hover { color: var(--gold-dark); }

@media (min-width: 992px) {
  .enquire__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
}

/* Mobile only: center this section's intro text (label, heading,
   description) and its call/WhatsApp buttons. The contact-details list
   (icon + address/email rows) reads better left-aligned, so it's reset back;
   the form beside it is untouched. */
@media (max-width: 767.98px) {
  .enquire__text { text-align: center; }
  .enquire__buttons { justify-content: center; }
  .enquire__details { text-align: left; }
  [dir="rtl"] .enquire__details { text-align: right; }
}

.footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.7); padding-top: 80px; }

.footer__grid { display: grid; gap: 48px; padding-bottom: 64px; }

.footer__brand img { height: 48px; width: auto; margin-bottom: 24px; }

.footer__tagline {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}

.footer__about { font-size: 0.9375rem; max-width: 40ch; line-height: 1.8; }

.social-links { display: flex; gap: 16px; list-style: none; padding: 0; margin-top: 20px; }
.social-links a { display: inline-flex; color: inherit; transition: color var(--transition-fast); }
.social-links a:hover { color: var(--gold); }
.social-links .icon { width: 20px; height: 20px; }

.footer__col h3 {
  color: var(--white); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 24px;
}

.footer__col ul { display: grid; gap: 12px; }
.footer__col li { font-size: 0.9375rem; }
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  display: flex; flex-direction: column; gap: 12px; padding-block: 24px;
  border-top: 1px solid var(--border-dark); font-size: 0.875rem; color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767.98px) {
  .footer { text-align: center; }
  .footer__brand img { margin-inline: auto; }
  .footer__about { margin-inline: auto; }
  .footer__bottom { align-items: center; text-align: center; }
  .footer__bottom p { margin-inline: auto; }
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 992px) {
  .footer__grid { grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr; gap: 56px; }
}

.sticky-cta {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--navy); color: var(--white); border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility 0.3s;
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.sticky-cta__text { display: flex; flex-direction: column; }
.sticky-cta__label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 2px;
}
.sticky-cta__price { font-size: 1.25rem; font-weight: 800; color: var(--gold); line-height: 1.2; }

.sticky-cta__action {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
  font-size: 0.9375rem; color: var(--white); transition: opacity var(--transition-fast);
}
.sticky-cta:hover .sticky-cta__action { opacity: 0.8; }

@media (min-width: 768px) {
  .sticky-cta {
    left: auto; right: 32px; bottom: 32px; max-width: 320px;
    padding: 20px 24px; border-radius: var(--r-lg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (min-width: 992px) {
  .hero { min-height: min(100vh, 900px); padding-top: calc(var(--header-h) + 64px); }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 80px; }
  .hero__card { justify-self: end; }
}
