/* ============================================
   DAR AL ARKAN — Luxury Real Estate
   Bespoke-style header: utility bar + centered
   serif wordmark + tracked nav below.
   ============================================ */

:root {
  /* ---- Backgrounds: cream → beige → deep forest ---- */
  --bg-warm-white: #fbf6ec;
  --bg-beige: #ebe0c9;
  --bg-utility: #e2d4b3;          /* utility/top bar */
  --bg-stats: #1a1815;             /* charcoal — matches the demo notice for visual harmony */

  /* ---- Ink / text ---- */
  --ink: #1a1714;
  --muted: #6f6960;
  --muted-soft: #9a948a;
  --cream: #f7f0e2;               /* used on dark backgrounds */

  /* ---- Gold (primary accent) — refined bronze-tan ---- */
  --gold: #a8804a;
  --gold-soft: #c19a68;
  --gold-light: #d4b07a;

  /* ---- Forest green (fourth color — regional & dramatic accents) ---- */
  --forest: #2c4a35;
  --forest-soft: #3e6649;
  --forest-deep: #1f2d23;

  /* ---- Burgundy (sparingly — for sold/sealed tone) ---- */
  --burgundy: #6b2f2f;

  /* ---- Lines ---- */
  --line: rgba(26, 23, 20, 0.10);
  --line-soft: rgba(26, 23, 20, 0.06);
  --line-cream: rgba(247, 240, 226, 0.18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;
  --arabic-sans: "Tajawal", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic-display: "Marhey", "Amiri", "Traditional Arabic", serif;

  --notice-h: 38px;
  --utility-h: 38px;
  --brand-h: 138px;
  --nav-h: 56px;
  --header-h: calc(var(--notice-h) + var(--utility-h) + var(--brand-h) + var(--nav-h));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg-warm-white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Header — three rows
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-warm-white);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease, transform 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 30px rgba(26, 23, 20, 0.05);
}

/* ---- Smooth shrink on scroll ---- */

.demo-notice,
.utility-bar,
.brand-row,
.main-nav {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.utility-bar {
  overflow: hidden;
}

.brand,
.brand-wordmark,
.brand-subtitle,
.main-nav a,
.main-nav ul,
.lang-toggle {
  transition: font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    letter-spacing 0.35s ease,
    gap 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease;
}

/* Compact state — collapse notice + utility, shrink brand + nav */
.site-header.is-scrolled {
  --notice-h: 0px;
  --utility-h: 0px;
  --brand-h: 64px;
  --nav-h: 44px;
}

.site-header.is-scrolled .demo-notice,
.site-header.is-scrolled .utility-bar {
  border-bottom-width: 0;
}

.site-header.is-scrolled .brand {
  gap: 4px;
}

.site-header.is-scrolled .brand-wordmark {
  font-size: 26px;
}

.site-header.is-scrolled .brand-subtitle {
  font-size: 8.5px;
  letter-spacing: 0.36em;
}

.site-header.is-scrolled .main-nav a {
  font-size: 11px;
}

.site-header.is-scrolled .main-nav ul {
  gap: 30px;
}

.site-header.is-scrolled .lang-toggle {
  font-size: 11px;
  margin-inline-start: 4px;
}

@media (max-width: 1100px) {
  .site-header.is-scrolled .brand-wordmark { font-size: 24px; }
  .site-header.is-scrolled .main-nav ul { gap: 22px; }
}

@media (max-width: 880px) {
  .site-header.is-scrolled {
    --brand-h: 54px;
  }
  .site-header.is-scrolled .brand-wordmark { font-size: 22px; }
  .site-header.is-scrolled .nav-toggle { width: 36px; height: 36px; }
  .site-header.is-scrolled .lang-toggle--mobile { font-size: 10px; }
}

@media (max-width: 680px) {
  .site-header.is-scrolled {
    --brand-h: 50px;
  }
  .site-header.is-scrolled .brand-wordmark { font-size: 20px; }
}

/* ---- Demo / portfolio notice (very top of header) ---- */

.demo-notice {
  height: var(--notice-h);
  background: #14110d;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(247, 240, 226, 0.08);
  position: relative;
  overflow: hidden;
}

.demo-notice::before,
.demo-notice::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  transform: translateY(-50%);
}
.demo-notice::before { left: 24px; }
.demo-notice::after  { right: 24px; }

.demo-notice-inner {
  display: inline-flex;
  align-items: center;
  max-width: 1100px;
  text-align: center;
}

.demo-notice-text {
  color: rgba(247, 240, 226, 0.82);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

[dir="rtl"] .demo-notice-text {
  font-family: var(--arabic-sans);
  letter-spacing: 0;
  font-size: 12px;
}

@media (max-width: 760px) {
  :root { --notice-h: 44px; }
  .demo-notice { padding: 0 14px; }
  .demo-notice::before,
  .demo-notice::after { display: none; }
  .demo-notice-text { font-size: 10.5px; }
  [dir="rtl"] .demo-notice-text { font-size: 11px; }
}

@media (max-width: 480px) {
  :root { --notice-h: 64px; }
  .demo-notice { padding: 6px 14px; }
  .demo-notice-text { font-size: 9.5px; line-height: 1.45; }
  [dir="rtl"] .demo-notice-text { font-size: 10.5px; }
}

/* ---- Utility bar (top thin row) ---- */

.utility-bar {
  height: var(--utility-h);
  background: var(--bg-utility);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}

.utility-inner {
  height: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.3s ease;
}

.utility-icon-right:hover {
  color: var(--gold);
}

.utility-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.utility-list li {
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
  position: relative;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.utility-list li:first-child { padding-inline-start: 0; }
.utility-list li:last-child  { padding-inline-end: 0; }

/* Thin subtle gold divider between cities */
.utility-list li + li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background: var(--gold);
  opacity: 0.45;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.utility-link:hover .city,
.utility-link:focus-visible .city {
  color: var(--gold);
  outline: none;
}

.utility-link:hover .phone,
.utility-link:focus-visible .phone {
  color: var(--gold);
}

.utility-list .city {
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s ease;
}

.utility-list .phone {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* ---- Brand row (centered serif wordmark) ---- */

.brand-row {
  height: var(--brand-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  user-select: none;
}

.brand-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 62px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.005em;
  position: relative;
  white-space: nowrap;
}

.brand-mark-sup {
  font-family: var(--arabic);
  font-style: normal;
  font-weight: 700;
  font-size: 0.28em;
  vertical-align: super;
  margin-left: 4px;
  color: var(--gold-soft);
  letter-spacing: 0;
}

.brand-subtitle {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.42em; /* compensate trailing letter-spacing */
}

/* ---- Main nav (centered, below the brand) ---- */

.main-nav {
  height: var(--nav-h);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 44px;
}

.main-nav a {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
  display: inline-block;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease, left 0.35s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold);
  outline: none;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
  left: 0;
}

/* Language toggle — minimal text link in the spirit of nav-links */
.lang-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  margin-inline-start: 10px;
  display: inline-block;
  line-height: 1;
}

.lang-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease, left 0.35s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--gold);
  outline: none;
}

.lang-toggle:hover::after,
.lang-toggle:focus-visible::after {
  width: 100%;
  left: 0;
}

/* Arabic label uses Arabic font naturally */
[dir="rtl"] .lang-toggle,
.lang-toggle:lang(ar) {
  font-family: var(--arabic-sans);
  letter-spacing: 0.1em;
  text-transform: none;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  /* Warm fallback while the video loads or if it fails */
  background: linear-gradient(
    135deg,
    #2a1f15 0%,
    #4a3520 28%,
    #8a6532 55%,
    #c89858 78%,
    #efd9a8 100%
  );
  filter: saturate(0.95) contrast(1.02);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  height: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 44px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  max-width: 100%;
}

.hero-title-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: #fff;
  letter-spacing: 0.005em;
  max-width: 22ch;
}

.hero-title-caps {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: none;
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
  padding: 16px 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease;
  min-width: 132px;
  text-align: center;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  outline: none;
}

/* ============================================
   Shared section primitives
   ============================================ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.36em; /* compensate trailing letter-spacing */
}

.kicker-line {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink);
}

.title-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.title-caps {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================
   About section
   ============================================ */

.about {
  background: var(--bg-warm-white);
  padding: 140px 32px 120px;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.about-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-body {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  max-width: 680px;
  letter-spacing: 0.01em;
}

.about-link {
  margin-top: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 4px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.about-link svg {
  transition: transform 0.35s ease;
}

.about-link:hover,
.about-link:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  gap: 18px;
  outline: none;
}

.about-link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Stats section
   ============================================ */

.stats {
  background: var(--bg-stats);
  color: var(--cream);
  padding: 100px 32px;
  position: relative;
}

.stats::before,
.stats::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.stats::before { top: 0; }
.stats::after  { bottom: 0; }

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 24px;
  position: relative;
  gap: 18px;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--line-cream) 30%,
    var(--line-cream) 70%,
    transparent 100%
  );
}

.stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: lining-nums;
  letter-spacing: -0.01em;
}

.stat-num sup {
  font-size: 0.42em;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
  color: var(--gold-soft);
}

.stat-unit {
  font-size: 0.7em;
  font-style: italic;
  margin-left: 2px;
  color: var(--gold-soft);
}

.stat-divider {
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.stat-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: 0.28em;
  opacity: 0.85;
}

/* ============================================
   Collections (listings sections)
   ============================================ */

.collection {
  padding: 120px 56px 110px;
  background: var(--bg-warm-white);
  position: relative;
}

.collection--signature {
  background: var(--bg-beige);
}
.collection--riyadh {
  background: var(--bg-warm-white);
}
.collection--jeddah {
  background: var(--bg-beige);
}

.collection-head {
  max-width: 1400px;
  margin: 0 auto 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.36em;
}

/* Regional sections get the forest accent in their eyebrow */
.collection--region .section-eyebrow {
  color: var(--forest);
}

/* Italic span in headlines for regional sections is also forest-tinted */
.collection--region .section-headline em {
  color: var(--forest);
}

.section-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.section-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

.collection-intro {
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  max-width: 580px;
  letter-spacing: 0;
}

/* ---- Filter tabs ---- */

.filter-tabs {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  row-gap: 14px;
}

.filter-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.filter-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease, left 0.35s ease;
}

.filter-tab:hover { color: var(--ink); }

.filter-tab.is-active {
  color: var(--gold);
}

.filter-tab.is-active::after {
  width: 100%;
  left: 0;
}

.filter-tab-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95em;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0;
}

.filter-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--line);
  align-self: center;
}

/* ---- Empty state ---- */

.empty-state {
  text-align: center;
  margin: 70px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
}

/* ---- Grid ---- */

.cards {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.cards--grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 28px;
}

.cards--two   { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cards--three { grid-template-columns: repeat(3, 1fr); }

.card.is-hidden {
  display: none;
}

/* ---- Card ---- */

.card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #c4a978;
  background-size: cover;
  background-position: center;
  transition: filter 0.6s ease;
}

/* Trophy (2-card row) feels less extreme as 4:5 */
.cards--two .card-media {
  aspect-ratio: 4 / 5;
}

.card:hover .card-media {
  filter: brightness(1.04) saturate(1.03);
}

/* Property photography — local placeholder photos in assets/properties/.
   Swap any of these with real luxury home photography by replacing the URL. */
.card-media--sunset    { background-image: url('assets/properties/royal-palms.jpg');        background-color: #8a5a3a; }
.card-media--marble    { background-image: url('assets/properties/marina-del-sol.jpg');     background-color: #b8a888; }
.card-media--olive     { background-image: url('assets/properties/olive-grove.jpg');        background-color: #4a5a3a; }
.card-media--coral     { background-image: url('assets/properties/coral-heights.jpg');      background-color: #a05a48; }
.card-media--diamond   { background-image: url('assets/properties/diamond-tower.jpg');      background-color: #4a5868; }
.card-media--tilal     { background-image: url('assets/properties/tilal-estate.jpg');       background-color: #6a5238; }
.card-media--heritage  { background-image: url('assets/properties/heritage-walls.jpg');     background-color: #5a4028; }
.card-media--sky       { background-image: url('assets/properties/hittin-sky.jpg');         background-color: #38485a; }
.card-media--redsea    { background-image: url('assets/properties/red-sea-pavilion.jpg');   background-color: #2a4858; }
.card-media--andalusia { background-image: url('assets/properties/andalusia-garden.jpg');   background-color: #4a6048; }
.card-media--hamra     { background-image: url('assets/properties/corniche-penthouse.jpg'); background-color: #8a3a3a; }

/* ---- Card info ---- */

.card-info {
  padding: 24px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.3s ease;
}

.card:hover .card-name {
  color: var(--gold);
}

.card-city {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 0;
  padding-left: 0.28em;
}

.card-price {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 14px 0 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.card-specs {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin: 2px 0 0;
  letter-spacing: 0.02em;
}

/* In Arabic, use Amiri italic for the elegant property name */
[dir="rtl"] .card-name {
  font-family: var(--arabic);
  font-style: italic;
  font-size: 23px;
  line-height: 1.45;
}

[dir="rtl"] .card-price,
[dir="rtl"] .card-specs {
  letter-spacing: 0;
  font-family: var(--arabic-sans);
}

/* ---- Centered CTA below the grid ---- */

.collection-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 72px;
}

.collection-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 4px;
  padding-left: 0.3em;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.collection-cta svg {
  transition: transform 0.35s ease;
}

.collection-cta:hover,
.collection-cta:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  gap: 18px;
  outline: none;
}

.collection-cta:hover svg {
  transform: translateX(4px);
}

[dir="rtl"] .collection-cta svg {
  transform: scaleX(-1);
}

[dir="rtl"] .collection-cta:hover svg {
  transform: scaleX(-1) translateX(-4px);
}

/* Stagger reveal for cards */
.cards .card.reveal:nth-child(1) { --reveal-delay: 0s; }
.cards .card.reveal:nth-child(2) { --reveal-delay: 0.12s; }
.cards .card.reveal:nth-child(3) { --reveal-delay: 0.24s; }

/* ============================================
   Contact page
   ============================================ */

.contact-page {
  background: var(--bg-warm-white);
}

/* ---- Hero (top) ---- */

.contact-hero {
  margin-top: var(--header-h);
  padding: 110px 32px 70px;
  background: var(--bg-warm-white);
  text-align: center;
}

.contact-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin: 0;
}

[dir="rtl"] .contact-title {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

.contact-subtitle {
  margin: 0;
  max-width: 560px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- Main: form + direct info ---- */

.contact-main {
  background: var(--bg-warm-white);
  padding: 60px 32px 110px;
}

.contact-main-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ---- Contact form ---- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.26em;
}

[dir="rtl"] .form-label {
  font-family: var(--arabic-sans);
  letter-spacing: 0.08em;
  padding-left: 0;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 23, 20, 0.18);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

[dir="rtl"] .form-input {
  font-family: var(--arabic-sans);
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

.form-input::placeholder {
  color: rgba(26, 23, 20, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
  font-family: var(--sans);
}

[dir="rtl"] .form-textarea {
  font-family: var(--arabic-sans);
}

.form-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f6960' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px;
  padding-right: 24px;
  cursor: pointer;
}

[dir="rtl"] .form-select {
  background-position: left 2px center;
  padding-right: 0;
  padding-left: 24px;
}

.form-submit {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(26, 23, 20, 0.4);
  padding: 16px 38px;
  margin-top: 16px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease;
  min-width: 180px;
  text-align: center;
}

[dir="rtl"] .form-submit {
  font-family: var(--arabic-sans);
  letter-spacing: 0.1em;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  outline: none;
}

/* ---- Success state ---- */

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 70px 24px;
}

.form-success.is-visible {
  display: flex;
}

.form-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(168, 128, 74, 0.06);
}

.form-success-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin: 4px 0 0;
}

[dir="rtl"] .form-success-title {
  font-family: var(--arabic-display);
  font-style: normal;
}

.form-success-body {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
}

[dir="rtl"] .form-success-body {
  font-family: var(--arabic-sans);
}

/* ---- Direct contact info panel ---- */

.contact-direct {
  background: var(--bg-beige);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.contact-direct::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.contact-direct-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  padding-left: 0.34em;
}

[dir="rtl"] .contact-direct-h {
  font-family: var(--arabic-sans);
  letter-spacing: 0.12em;
  padding-left: 0;
}

.direct-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.direct-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.26em;
}

[dir="rtl"] .direct-label {
  font-family: var(--arabic-sans);
  letter-spacing: 0.08em;
  padding-left: 0;
}

.direct-value {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

[dir="rtl"] .direct-value {
  font-family: var(--arabic-sans);
}

a.direct-value:hover {
  color: var(--gold);
}

/* ---- Offices section with maps ---- */

.offices-section {
  background: var(--bg-beige);
  padding: 110px 32px;
}

.offices-head {
  max-width: 1280px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.offices-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.office-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-warm-white);
  padding: 28px 28px 24px;
  border: 1px solid var(--line-soft);
}

.office-card-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

[dir="rtl"] .office-card-name {
  font-family: var(--arabic);
  font-style: italic;
  font-size: 27px;
  line-height: 1.4;
}

.office-card-address {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.55;
}

[dir="rtl"] .office-card-address {
  font-family: var(--arabic-sans);
}

.office-card-phone {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  margin: 4px 0 8px;
  transition: color 0.3s ease;
  align-self: flex-start;
}

[dir="rtl"] .office-card-phone {
  align-self: flex-end;
}

.office-card-phone:hover {
  color: var(--gold);
}

.office-map {
  margin-top: 14px;
  overflow: hidden;
  position: relative;
  height: 200px;
  border: 1px solid var(--line);
  background: var(--bg-beige);
}

.office-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(0.7) sepia(0.18) saturate(0.85) brightness(0.97)
    contrast(0.95);
}

/* ---- Meeting CTA (dark band) ---- */

.meeting-cta {
  background: #1a1815;
  padding: 110px 32px;
  text-align: center;
  position: relative;
}

.meeting-cta::before,
.meeting-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.meeting-cta::before { top: 0; }
.meeting-cta::after  { bottom: 0; }

.meeting-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.meeting-cta-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: 0.005em;
  margin: 0;
}

[dir="rtl"] .meeting-cta-title {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

.cta-btn--dark {
  /* inherits .cta-btn styles */
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 240, 226, 0.4);
}

.cta-btn--dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ---- Active nav state ---- */

.main-nav a.is-active {
  color: var(--gold);
}

.main-nav a.is-active::after {
  width: 100%;
  left: 0;
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .contact-main-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .contact-direct {
    padding: 32px 28px;
  }
  .offices-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 540px;
  }
}

@media (max-width: 760px) {
  .contact-hero { padding: 80px 24px 50px; }
  .contact-main { padding: 50px 24px 90px; }
  .offices-section { padding: 80px 24px; }
  .offices-head { margin-bottom: 40px; }
  .meeting-cta { padding: 80px 24px; }
  .meeting-cta-inner { gap: 32px; }
  .contact-form { gap: 26px; }
  .form-submit { width: 100%; min-width: 0; }
}

/* ============================================
   Buy page
   ============================================ */

.buy-page {
  background: var(--bg-warm-white);
}

/* ---- Hero (with image background) ---- */

.buy-hero {
  position: relative;
  margin-top: var(--header-h);
  padding: 120px 32px 100px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('assets/properties/marina-del-sol.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.95);
}

.buy-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 13, 0.45) 0%,
    rgba(20, 17, 13, 0.62) 100%
  );
}

.buy-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.buy-hero-eyebrow {
  color: var(--gold-light);
}

.buy-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: #fff;
  letter-spacing: 0.005em;
  margin: 0;
}

[dir="rtl"] .buy-title {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

.buy-subtitle {
  margin: 0;
  max-width: 580px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

[dir="rtl"] .buy-subtitle {
  font-family: var(--arabic-sans);
}

/* ---- Filters bar ---- */

.buy-filters {
  background: var(--bg-warm-white);
  padding: 44px 32px 50px;
  border-bottom: 1px solid var(--line-soft);
}

.filters-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 26px 22px;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: end;
}

.filter-search {
  margin-top: 0 !important;
  min-width: 120px;
  padding: 14px 28px;
}

.filter-reset {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 4px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

[dir="rtl"] .filter-reset {
  font-family: var(--arabic-sans);
  letter-spacing: 0.08em;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  color: var(--ink);
  outline: none;
}

/* ---- Grid section ---- */

.buy-grid-section {
  padding: 80px 32px 100px;
  background: var(--bg-warm-white);
}

.buy-grid-section .cards--grid {
  max-width: 1400px;
}

/* Use a global is-hidden rule (already defined for cards in the catalog) */

/* ---- Process (How to buy) ---- */

.buy-process {
  background: var(--bg-beige);
  padding: 110px 32px;
}

.buy-process-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.buy-process-steps {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: start;
}

.process-num {
  font-family: "Cormorant Garamond", "Amiri", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.process-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 4px 0 0;
  padding-left: 0.28em;
}

[dir="rtl"] .process-title {
  font-family: var(--arabic-sans);
  letter-spacing: 0.1em;
  font-size: 13.5px;
  padding-left: 0;
}

.process-desc {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

[dir="rtl"] .process-desc {
  font-family: var(--arabic-sans);
}

/* ---- CTA before footer ---- */

.buy-cta-section .meeting-cta-inner {
  gap: 28px;
}

.buy-cta-text {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  color: rgba(247, 240, 226, 0.7);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

[dir="rtl"] .buy-cta-text {
  font-family: var(--arabic-sans);
}

/* ---- Responsive ---- */

@media (max-width: 1000px) {
  .filters-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-actions {
    grid-column: 1 / -1;
    justify-content: center;
    align-self: center;
  }
  .buy-process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }
}

@media (max-width: 760px) {
  .buy-hero { padding: 100px 24px 80px; min-height: 320px; }
  .buy-grid-section { padding: 60px 24px 80px; }
  .buy-process { padding: 80px 24px; }
  .buy-process-head { margin-bottom: 44px; }
  .buy-filters { padding: 36px 24px 40px; }
  .filters-inner { gap: 22px; }
  .process-num { font-size: 52px; }
}

@media (max-width: 600px) {
  .filters-inner {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .filter-search { width: 100%; }
  .filter-reset { width: 100%; padding: 12px; }
  .buy-process-steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ============================================
   Sell page
   ============================================ */

.sell-page {
  background: var(--bg-warm-white);
}

/* ---- Hero (with image background) ---- */

.sell-hero {
  position: relative;
  margin-top: var(--header-h);
  padding: 120px 32px 100px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sell-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('assets/properties/royal-palms.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.95);
}

.sell-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 13, 0.42) 0%,
    rgba(20, 17, 13, 0.62) 100%
  );
}

.sell-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sell-hero-eyebrow {
  color: var(--gold-light);
}

.sell-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: #fff;
  letter-spacing: 0.005em;
  margin: 0;
}

[dir="rtl"] .sell-title {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

.sell-subtitle {
  margin: 0;
  max-width: 580px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

[dir="rtl"] .sell-subtitle {
  font-family: var(--arabic-sans);
}

/* ---- Benefits (Why sell with us) ---- */

.benefits-section {
  background: var(--bg-beige);
  padding: 110px 32px;
}

.benefits-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.benefits-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 8px;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(168, 128, 74, 0.04);
  margin-bottom: 8px;
}

.benefit-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

[dir="rtl"] .benefit-title {
  font-family: var(--arabic);
  font-size: 21px;
  line-height: 1.5;
}

.benefit-desc {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 260px;
}

[dir="rtl"] .benefit-desc {
  font-family: var(--arabic-sans);
}

/* ---- Registration form section ---- */

.sell-form-section {
  background: var(--bg-warm-white);
  padding: 110px 32px;
}

.sell-form-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.sell-form-subtitle {
  margin: 18px auto 0;
  max-width: 560px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

[dir="rtl"] .sell-form-subtitle {
  font-family: var(--arabic-sans);
}

.sell-form-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.sell-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.sell-form-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sell-form-col-h {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px;
  padding-bottom: 14px;
  padding-left: 0.34em;
  border-bottom: 1px solid var(--line);
}

[dir="rtl"] .sell-form-col-h {
  font-family: var(--arabic-sans);
  letter-spacing: 0.12em;
  padding-left: 0;
}

.sell-form-actions {
  margin-top: 56px;
  text-align: center;
}

.sell-form-actions .form-submit {
  margin-top: 0;
  min-width: 240px;
}

/* ---- CTA before footer (beige variant) ---- */

.sell-cta {
  background: var(--bg-beige);
  padding: 100px 32px;
  text-align: center;
  position: relative;
}

.sell-cta::before,
.sell-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.sell-cta::before { top: 0; }
.sell-cta::after  { bottom: 0; }

.sell-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sell-cta-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

[dir="rtl"] .sell-cta-title {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

.sell-cta-text {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 460px;
}

[dir="rtl"] .sell-cta-text {
  font-family: var(--arabic-sans);
}

.cta-btn--light {
  color: var(--ink);
  background: transparent;
  border-color: rgba(26, 23, 20, 0.4);
}

.cta-btn--light:hover,
.cta-btn--light:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  outline: none;
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }
  .sell-form-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .sell-hero { padding: 100px 24px 80px; min-height: 320px; }
  .benefits-section { padding: 80px 24px; }
  .benefits-head { margin-bottom: 44px; }
  .sell-form-section { padding: 80px 24px; }
  .sell-form-head { margin-bottom: 44px; }
  .sell-cta { padding: 80px 24px; }
  .sell-form-actions .form-submit { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   Rent page
   ============================================ */

.rent-page {
  background: var(--bg-warm-white);
}

/* ---- Hero (with image background) ---- */

.rent-hero {
  position: relative;
  margin-top: var(--header-h);
  padding: 120px 32px 100px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rent-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('assets/properties/corniche-penthouse.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.95);
}

.rent-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 13, 0.45) 0%,
    rgba(20, 17, 13, 0.62) 100%
  );
}

.rent-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.rent-hero-eyebrow {
  color: var(--gold-light);
}

.rent-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: #fff;
  letter-spacing: 0.005em;
  margin: 0;
}

[dir="rtl"] .rent-title {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

.rent-subtitle {
  margin: 0;
  max-width: 580px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

[dir="rtl"] .rent-subtitle {
  font-family: var(--arabic-sans);
}

/* ---- Filters (5 columns instead of 4) ---- */

.filters-inner--five {
  grid-template-columns: repeat(5, 1fr) auto;
}

.filter-actions--five {
  grid-column: auto;
}

/* ---- Card badge (Furnished / Unfurnished) ---- */

.card-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 1px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[dir="rtl"] .card-badge {
  font-family: var(--arabic-sans);
  letter-spacing: 0.08em;
  font-size: 10.5px;
}

.card-badge--furnished {
  background: rgba(168, 128, 74, 0.92);
  color: #fff;
}

.card-badge--unfurnished {
  background: rgba(247, 240, 226, 0.92);
  color: var(--ink);
}

/* ---- Responsive (rent) ---- */

@media (max-width: 1100px) {
  .filters-inner--five {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-actions--five {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .rent-hero { padding: 100px 24px 80px; min-height: 320px; }
  .filters-inner--five {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .filters-inner--five {
    grid-template-columns: 1fr;
  }
  .card-badge {
    font-size: 9px;
    padding: 5px 10px;
    top: 12px;
  }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: #14110d;
  color: var(--cream);
  padding: 110px 32px 36px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- Top: brand + newsletter (2 columns, balanced) ---- */

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(247, 240, 226, 0.12);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-self: start;
}

.footer-brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
}

.footer-brand-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.footer-brand-mark-sup {
  font-family: var(--arabic);
  font-style: normal;
  font-weight: 700;
  font-size: 0.26em;
  vertical-align: super;
  margin-left: 4px;
  color: var(--gold-soft);
}

.footer-brand-subtitle {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  padding-left: 0.42em;
}

.footer-tagline {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.6;
  max-width: 320px;
  margin: 0;
}

/* Newsletter — right-aligned in 2-col layout */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  align-self: start;
}

.newsletter-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.34em;
}

.newsletter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(247, 240, 226, 0.28);
  padding: 14px 0;
  transition: border-color 0.3s ease;
}

.newsletter-row:focus-within {
  border-bottom-color: var(--gold);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  padding: 4px 0;
  outline: none;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: rgba(247, 240, 226, 0.4);
  font-style: italic;
}

.newsletter-btn {
  background: transparent;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 6px 4px 6px 12px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.newsletter-btn:hover,
.newsletter-btn:focus-visible {
  color: var(--gold);
  transform: translateX(4px);
  outline: none;
}

.newsletter-note {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(247, 240, 226, 0.5);
  font-style: italic;
}

/* ---- Columns ---- */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  padding: 80px 0;
  border-bottom: 1px solid rgba(247, 240, 226, 0.12);
}

.footer-h {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.34em;
  margin-bottom: 28px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.footer-col a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--cream);
  opacity: 0.75;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  display: inline-block;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--gold);
  opacity: 1;
  outline: none;
}

/* Offices list */
.offices {
  gap: 28px !important;
}

.office {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.office-city {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-left: 0.3em;
  margin-bottom: 4px;
}

.office-line {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(247, 240, 226, 0.7);
  text-decoration: none;
  line-height: 1.5;
}

.office-line--phone {
  font-variant-numeric: tabular-nums;
}

a.office-line:hover {
  color: var(--gold);
}

/* Social */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(168, 128, 74, 0.45);
  color: rgba(168, 128, 74, 0.75);
  background: transparent;
  transition: color 0.3s ease, border-color 0.3s ease,
    background-color 0.3s ease;
  flex-shrink: 0;
}

.social-icon svg {
  display: block;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(168, 128, 74, 0.10);
  outline: none;
}

/* ---- Credentials line (subtle compliance info) ---- */

.footer-credentials {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(247, 240, 226, 0.08);
  border-bottom: 1px solid rgba(247, 240, 226, 0.08);
  margin-top: 60px;
}

.footer-credentials p {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 240, 226, 0.45);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

[dir="rtl"] .footer-credentials p {
  font-family: var(--arabic-sans);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12.5px;
}

/* ---- Designer attribution (prominent dedicated section) ---- */

.footer-designer {
  text-align: center;
  padding: 44px 24px 48px;
  position: relative;
  margin-bottom: 28px;
}

.footer-designer::before,
.footer-designer::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.footer-designer::before {
  top: 0;
  width: 72px;
}

.footer-designer::after {
  bottom: 0;
  width: 36px;
  opacity: 0.3;
}

.footer-designer-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  padding-inline-start: 0.38em;
  margin-bottom: 14px;
}

[dir="rtl"] .footer-designer-tag {
  font-family: var(--arabic-sans);
  letter-spacing: 0.16em;
  padding-inline-start: 0;
}

.footer-designer-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--cream);
  margin: 0 0 12px;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

[dir="rtl"] .footer-designer-name {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

.footer-designer-text {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(247, 240, 226, 0.55);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 560px;
  letter-spacing: 0.01em;
}

[dir="rtl"] .footer-designer-text {
  font-family: var(--arabic-sans);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.75;
}

/* ---- Bottom strip (cleaner — just copyright + legal) ---- */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(247, 240, 226, 0.06);
}

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: rgba(247, 240, 226, 0.5);
  letter-spacing: 0.04em;
  margin: 0;
}

[dir="rtl"] .footer-copy {
  font-family: var(--arabic-sans);
  font-size: 12px;
  letter-spacing: 0;
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 240, 226, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--gold);
  outline: none;
}

/* Footer responsive */
@media (max-width: 1000px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}

@media (max-width: 760px) {
  .site-footer { padding: 80px 24px 32px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-bottom: 56px;
  }
  .footer-brand,
  .footer-newsletter {
    justify-self: start;
    max-width: none;
  }
  .footer-cols { gap: 40px; padding: 60px 0; }
  .footer-brand-wordmark { font-size: 26px; }
  .footer-tagline { font-size: 12.5px; }
  .footer-credentials { padding: 24px 0; margin-top: 50px; }
  .footer-credentials p { font-size: 10px; letter-spacing: 0.14em; }
  [dir="rtl"] .footer-credentials p { font-size: 11.5px; }
  .footer-designer { padding: 36px 16px 40px; }
  .footer-designer-name { font-size: 22px; }
  .footer-designer-text { font-size: 12px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-brand-wordmark { font-size: 24px; }
}

/* ============================================
   Reveal-on-scroll animation
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat.reveal:nth-child(1) { --reveal-delay: 0s; }
.stat.reveal:nth-child(2) { --reveal-delay: 0.1s; }
.stat.reveal:nth-child(3) { --reveal-delay: 0.2s; }
.stat.reveal:nth-child(4) { --reveal-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
  :root {
    --brand-h: 120px;
    --nav-h: 52px;
  }

  .brand-wordmark { font-size: 54px; }
  .main-nav ul { gap: 26px; }
}

@media (max-width: 880px) {
  :root {
    --utility-h: 34px;
    --brand-h: 108px;
    --nav-h: 50px;
  }

  .utility-list li { padding: 0 14px; font-size: 9.5px; letter-spacing: 0.14em; }
  .utility-list .city { font-size: 9.5px; }
  .utility-inner { padding: 0 18px; }

  .brand-wordmark { font-size: 44px; }
  .brand-subtitle { font-size: 10px; letter-spacing: 0.38em; }

  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: 9.5px; letter-spacing: 0.18em; }
}

@media (max-width: 980px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 24px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(2)::before,
  .stat:nth-child(4)::before {
    /* keep the vertical line only between columns in 2-col layout */
  }
  /* Add horizontal dividers between rows */
  .stat:nth-child(3)::after,
  .stat:nth-child(4)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 1px;
    background: var(--line);
  }
}

@media (max-width: 1000px) {
  .cards--grid { grid-template-columns: repeat(2, 1fr); }
  .filter-tabs { gap: 22px; }
}

@media (max-width: 880px) {
  .about { padding: 100px 24px 90px; }
  .about-body { font-size: 15px; line-height: 1.8; }

  .collection { padding: 100px 24px 90px; }
  .collection-head { margin-bottom: 44px; }
  .cards--two,
  .cards--three { grid-template-columns: 1fr; gap: 40px; }

  .filter-tabs {
    gap: 16px;
    row-gap: 10px;
    padding: 18px 0;
    margin-bottom: 44px;
  }
  .filter-tab { font-size: 10px; letter-spacing: 0.22em; }
  .filter-divider { display: none; }
  .section-headline { font-size: clamp(26px, 5vw, 36px); }
  .collection-intro { font-size: 15px; }
  .card-name { font-size: 20px; }
  [dir="rtl"] .card-name { font-size: 21px; }
  .collection-cta-wrap { margin-top: 56px; }
}

@media (max-width: 620px) {
  .cards--grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  :root {
    --utility-h: 32px;
    --brand-h: 88px;
    --nav-h: 0px;
  }

  /* On mobile: show all three city names as clickable tel: links, hide the digits */
  .utility-list li {
    padding: 0 14px;
  }
  .utility-list .phone {
    display: none;
  }
  .utility-link {
    gap: 0;
  }
  .utility-list .city {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .brand-wordmark { font-size: 32px; }
  .brand-subtitle { font-size: 9px; letter-spacing: 0.34em; }

  .lang-toggle { font-size: 11px; letter-spacing: 0.18em; margin-inline-start: 0; }

  .hero { min-height: 480px; }
  .hero-content { gap: 30px; padding: 0 22px; }
  .hero-title { gap: 14px; }
  .hero-title-italic { font-size: clamp(22px, 6vw, 30px); }
  .hero-title-caps  { font-size: 15px; line-height: 1.55; }
  .cta-btn { padding: 14px 22px; min-width: 0; letter-spacing: 0.22em; font-size: 10.5px; }

  .stats-inner { grid-template-columns: 1fr; }
  .stat { padding: 28px 24px; }
  .stat::before,
  .stat::after { display: none !important; }
  .stat + .stat {
    border-top: 1px solid var(--line);
  }
  .stat-num { font-size: 44px; }
  .stat-label { font-size: 10px; letter-spacing: 0.22em; }

  .kicker { font-size: 10px; letter-spacing: 0.28em; gap: 10px; }
  .kicker-line { width: 24px; }
}

/* ============================================
   Hamburger button + Mobile Nav Drawer
   ============================================ */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(168, 128, 74, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}

.lang-toggle--mobile {
  display: none;
}

/* On mobile we hide the desktop nav row entirely and use:
   - Hamburger (left of brand on LTR)
   - Lang toggle (right of brand on LTR) */
@media (max-width: 880px) {
  .brand-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .nav-toggle {
    display: inline-flex;
    justify-self: start;
  }
  .lang-toggle--mobile {
    display: inline-flex;
    justify-self: end;
    margin-left: 0;
  }
  .main-nav { display: none !important; }
  .brand {
    justify-self: center;
  }
}

/* ---- Drawer ---- */

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 13, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 199;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 380px);
  background: var(--bg-warm-white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 28px 32px 32px;
  box-shadow: -20px 0 60px rgba(26, 23, 20, 0.10);
}

[dir="rtl"] .nav-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 20px 0 60px rgba(26, 23, 20, 0.10);
}

.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.nav-drawer-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}

.nav-drawer-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-drawer-close:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s ease, padding 0.3s ease;
}

.nav-drawer-nav a:hover,
.nav-drawer-nav a:focus-visible {
  color: var(--gold);
  padding-left: 8px;
  outline: none;
}

[dir="rtl"] .nav-drawer-nav a:hover,
[dir="rtl"] .nav-drawer-nav a:focus-visible {
  padding-left: 0;
  padding-right: 8px;
}

.nav-drawer-foot {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-drawer-phone,
.nav-drawer-mail {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.nav-drawer-phone:hover,
.nav-drawer-mail:hover {
  color: var(--gold);
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================
   Arabic word swap inside the brand wordmark
   ============================================ */

.brand-word-en,
.brand-word-ar {
  display: inline-block;
}
.brand-word-ar { display: none; }
[dir="rtl"] .brand-word-en { display: none; }
[dir="rtl"] .brand-word-ar { display: inline-block; }

[dir="rtl"] .brand-wordmark {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0.01em;
}

[dir="rtl"] .footer-brand-wordmark {
  font-family: var(--arabic-display);
  font-style: normal;
}

[dir="rtl"] .nav-drawer-brand {
  font-family: var(--arabic-display);
  font-style: normal;
}

/* ============================================
   Global RTL adjustments
   ============================================ */

html[lang="ar"] {
  font-family: var(--arabic-sans);
}

[dir="rtl"] body {
  font-family: var(--arabic-sans);
}

/* Letter-spacing doesn't apply well to Arabic — relax it for Arabic content */
[dir="rtl"] .nav-link,
[dir="rtl"] .main-nav a,
[dir="rtl"] .brand-subtitle,
[dir="rtl"] .footer-brand-subtitle,
[dir="rtl"] .section-eyebrow,
[dir="rtl"] .footer-h,
[dir="rtl"] .newsletter-label,
[dir="rtl"] .card-sub,
[dir="rtl"] .card-location,
[dir="rtl"] .filter-tab,
[dir="rtl"] .cta-btn,
[dir="rtl"] .city,
[dir="rtl"] .stat-label,
[dir="rtl"] .footer-legal a,
[dir="rtl"] .office-city,
[dir="rtl"] .about-link,
[dir="rtl"] .kicker {
  letter-spacing: 0.08em;
  padding-left: 0;
  padding-right: 0;
  font-family: var(--arabic-sans);
}

/* Arabic font on utility list items WITHOUT killing their padding */
[dir="rtl"] .utility-list li {
  letter-spacing: 0.08em;
  font-family: var(--arabic-sans);
}

/* Headlines: use a more elegant Arabic display font */
[dir="rtl"] .section-headline,
[dir="rtl"] .section-headline em,
[dir="rtl"] .section-title,
[dir="rtl"] .title-italic,
[dir="rtl"] .title-caps,
[dir="rtl"] .hero-title-italic,
[dir="rtl"] .card-title,
[dir="rtl"] .about-body,
[dir="rtl"] .collection-intro,
[dir="rtl"] .empty-state {
  font-family: var(--arabic-display);
  font-style: normal;
  letter-spacing: 0;
}

/* Simple footer tagline uses clean sans (Tajawal) in Arabic */
[dir="rtl"] .footer-tagline {
  font-family: var(--arabic-sans);
  letter-spacing: 0;
}

[dir="rtl"] .title-caps {
  text-transform: none;
}

/* Hero description in Arabic: use sans-serif light (Tajawal), not the display font */
[dir="rtl"] .hero-title-caps {
  font-family: var(--arabic-sans);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.7;
}

[dir="rtl"] .about-body {
  font-family: var(--arabic-sans);
  font-weight: 300;
  line-height: 1.9;
}

[dir="rtl"] .stat-num {
  /* Cormorant for Latin digits, Amiri italic as natural fallback for Arabic chars */
  font-family: "Cormorant Garamond", "Amiri", "Times New Roman", serif;
}

/* Flip the arrow icon direction in RTL */
[dir="rtl"] .about-link svg,
[dir="rtl"] .newsletter-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .about-link:hover svg {
  transform: scaleX(-1) translateX(-4px);
}

[dir="rtl"] .newsletter-btn:hover {
  transform: translateX(-4px);
}

/* Brand subtitle padding for letter-spacing was LTR-specific; relax for RTL */
[dir="rtl"] .brand-name,
[dir="rtl"] .brand-subtitle,
[dir="rtl"] .footer-brand-subtitle {
  padding-left: 0;
  padding-right: 0;
}

/* Phone numbers always LTR even in RTL pages */
.phone,
.office-line--phone,
.nav-drawer-phone {
  direction: ltr;
  unicode-bidi: isolate;
}


/* ============================================
   Extra responsive polish
   ============================================ */

@media (max-width: 880px) {
  .hero-content { padding: 0 32px; gap: 36px; }
  .hero-title { gap: 18px; }
  .hero-title-italic { font-size: clamp(26px, 5vw, 38px); }
  .hero-title-caps  { font-size: clamp(15px, 2.4vw, 18px); }
  .section-headline { line-height: 1.15; }
  .brand-mark-sup { font-size: 0.32em; }
}

@media (max-width: 520px) {
  .hero-cta { flex-direction: column; gap: 12px; width: 100%; max-width: 280px; }
  .cta-btn { width: 100%; }

  .filter-tabs { gap: 14px; }
  .filter-tab { font-size: 10px; }
  .filter-tab-count { font-size: 0.85em; }

  .footer-brand-wordmark { font-size: 32px; }
  .footer-tagline { font-size: 16px; }

  .brand-wordmark { font-size: 28px; }
  .brand-subtitle { font-size: 8.5px; letter-spacing: 0.30em; }
  .nav-toggle { width: 38px; height: 38px; }
  .lang-toggle--mobile { font-size: 10px; letter-spacing: 0.16em; }
}

@media (max-width: 380px) {
  .header-inner,
  .utility-inner,
  .brand-row {
    padding-left: 14px;
    padding-right: 14px;
  }
}
