/* ==========================================================================
   Makdan Investments — Site Stylesheet
   Palette derived from the actual logo (images/logo.jpeg): warm charcoal ink
   on cream paper, no navy or gold in the source mark. --navy/--navy-deep/
   --navy-mid keep their original names (used throughout this file as the
   "dark" role) but now hold ink tones sampled from the logo; --off-white/
   --panel now hold the logo's actual cream paper tone. Gold is kept as a
   deliberate accent — the logo itself has none, but a duotone site with zero
   accent color has nothing to signal CTAs/status/eyebrows with.
   ========================================================================== */

:root {
  --navy: #2b2924;
  --navy-deep: #1c1a15;
  --navy-mid: #3d392f;
  --charcoal: #1c1c1c;
  --white: #ffffff;
  --off-white: #ede6d5;
  --panel: #e4dcc8;
  --gold: #a5824a;
  --gold-light: #c9a56b;
  --gold-dim: rgba(165, 130, 74, 0.14);
  --border: #dcd2bc;
  --border-dark: rgba(255, 255, 255, 0.14);
  --text-muted: #6b6459;
  --text-soft: #8a8274;

  --font-serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --max-width-wide: 1320px;
  --radius: 3px;
  --shadow-soft: 0 18px 50px -24px rgba(28, 26, 21, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

.placeholder-flag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  padding: 2px 8px;
  margin-top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 21, 34, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { opacity: 1; }

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  height: 2px;
  background: var(--gold-light);
}

.nav-cta {
  display: inline-block;
  padding: 9px 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  background: var(--gold-light);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--gold); }

.lang-switch {
  color: var(--white);
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 6px 12px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lang-switch:hover { opacity: 1; border-color: rgba(255,255,255,0.6); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding: 130px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumbs a { text-decoration: none; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-current] { color: var(--charcoal); }

/* ---------- Page Header (interior pages) ---------- */

.page-header {
  padding: 28px 0 72px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.page-header .eyebrow { margin-bottom: 14px; }

.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0 0 18px;
  color: var(--navy);
  max-width: 820px;
}

.page-header p {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  padding-bottom: 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,21,34,0.6) 0%, rgba(10,21,34,0.4) 40%, rgba(10,21,34,0.94) 100%);
}

.hero .container-wide {
  position: relative;
  z-index: 2;
}

.hero-logo {
  height: 124px;
  width: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

@media (max-width: 640px) {
  .hero-logo { height: 84px; margin-bottom: 24px; }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  max-width: 920px;
  margin: 0 0 20px;
  font-weight: 400;
}

.hero p {
  max-width: 580px;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .placeholder-flag {
  color: var(--gold-light);
  border-color: rgba(201,165,107,0.5);
  margin-top: 20px;
}

.scroll-cue {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,0.35);
}

/* ---------- Locations panel (home): project menu + pinned map ---------- */

.locations-panel {
  background: var(--navy-deep);
  color: var(--white);
  padding: 88px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.locations-head { max-width: 640px; margin-bottom: 40px; }
.locations-panel .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.locations-panel .section-heading { color: var(--white); margin: 0 0 14px; }
.locations-panel .section-intro { color: rgba(255,255,255,0.7); margin: 0; }

.locations-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.locations-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 560px;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.location-menu-item { border-bottom: 1px solid rgba(255,255,255,0.1); }

.location-menu-link {
  display: block;
  padding: 18px 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.location-menu-link:hover { background: rgba(255,255,255,0.04); }

.location-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.location-menu-head h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  margin: 0;
  color: var(--white);
}

.location-menu-link .focus-location { color: var(--gold-light); font-size: 0.78rem; margin-bottom: 8px; }
.location-menu-link p { color: rgba(255,255,255,0.68); font-size: 0.9rem; margin: 0 0 10px; }
.location-menu-link .project-card-link { color: var(--gold-light); }

.locations-maps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.locations-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.locations-map-egypt { min-height: 560px; }

.locations-map-label {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.leaflet-map-el {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  font-family: var(--font-sans);
}

/* Marker icon — a real Leaflet divIcon reusing this teardrop shape, not an
   absolutely-positioned decoration over a static image like the old SVG map. */
.location-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold-light);
  border: 2px solid var(--navy-deep);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 3px rgba(201,165,107,0.25);
  cursor: pointer;
}

.leaflet-gold-pin { background: none; border: none; }

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--navy-deep);
  color: var(--white);
}
.leaflet-popup-content a { color: var(--gold-light); text-decoration: none; }
.leaflet-popup-content a:hover { text-decoration: underline; }
.leaflet-tooltip {
  background: rgba(10,10,8,0.85);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  padding: 4px 9px;
}
.leaflet-tooltip-top:before { border-top-color: rgba(10,10,8,0.85); }

@media (max-width: 900px) {
  .locations-body { grid-template-columns: 1fr; }
  .locations-maps { order: -1; }
  .locations-map-egypt { min-height: 340px; }
  .locations-menu { max-height: 420px; }
}

/* ---------- Stat bar ---------- */

.stat-bar {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.stat-item:first-child { border-left: none; }

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold-light);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  margin: 8px 0 32px;
  color: var(--navy);
}

.section-intro {
  max-width: 660px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.02rem;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head-row .section-heading { margin-bottom: 0; }

.text-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 3px;
  white-space: nowrap;
  margin-bottom: 32px;
}
.text-link:hover { color: var(--gold); }

/* ---------- About / Approach ---------- */

#about, .approach-block { background: var(--off-white); }

.about-grid {
  display: grid;
  gap: 26px;
  max-width: 780px;
}

.about-grid p {
  font-size: 1.05rem;
  color: #2a2f36;
}

.approach-section {
  max-width: 780px;
  margin: 0 auto 56px;
}
.approach-section:last-child { margin-bottom: 0; }

.approach-section h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 18px;
}

.approach-section p {
  font-size: 1.03rem;
  color: #2a2f36;
  margin: 0 0 16px;
}
.approach-section p:last-child { margin-bottom: 0; }

.pull-quote {
  max-width: 760px;
  margin: 64px auto;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--navy);
  font-weight: 400;
}

.pull-quote::before { content: "\201C"; color: var(--gold-light); }
.pull-quote::after { content: "\201D"; color: var(--gold-light); }

/* ---------- Milestones / timeline ---------- */

.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}

.milestone {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.milestone:last-child { border-bottom: 1px solid var(--border); }

.milestone-date {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1rem;
}

.milestone-text { color: #2a2f36; }

/* ---------- Portfolio hub / focus areas ---------- */

.focus-areas {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, 1fr);
}

.focus-card {
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.focus-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.focus-card-body { padding: 28px; }

.focus-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.focus-location {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.focus-card-body > p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.img-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 6px 28px 0;
  font-style: italic;
}

.about-makdan-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.about-makdan-note h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 8px;
}

.about-makdan-note p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Project cards (portfolio hub grid) ---------- */

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

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.project-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 3px;
  background: rgba(10,21,34,0.85);
  color: var(--white);
}

.project-status-badge.is-operating { background: #3a6b4a; }

.project-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }

.project-card-body .focus-location { margin-bottom: 10px; }

.project-card-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--navy);
}

.project-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
  flex: 1;
}

.project-card-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* ---------- Project detail page ---------- */

.project-hero {
  position: relative;
  padding: 150px 0 60px;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,21,34,0.55) 0%, rgba(10,21,34,0.55) 30%, rgba(10,21,34,0.96) 100%);
}

.project-hero .container-wide { position: relative; z-index: 2; }

.project-hero .breadcrumbs { padding-top: 0; margin-bottom: 22px; }
.project-hero .breadcrumbs a,
.project-hero .breadcrumbs span { color: rgba(255,255,255,0.65); }
.project-hero .breadcrumbs span[aria-current] { color: var(--white); }

.project-status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.project-status-pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.35);
}

.project-status-pill.is-operating { border-color: #6fae82; color: #a9d6b6; }
.project-status-pill.is-launching { border-color: var(--gold-light); color: var(--gold-light); }
.project-status-pill.is-tbd { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); }

.project-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin: 0 0 16px;
  max-width: 880px;
}

.project-hero .focus-location { color: var(--gold-light); margin-bottom: 0; }

.project-hero p.project-lede {
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-top: 18px;
}

.project-stat-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.project-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
}

.project-stat {
  padding: 26px 20px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.project-stat:first-child { border-left: none; }

.project-stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.project-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.project-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.project-main h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 44px 0 16px;
}
.project-main h2:first-child { margin-top: 0; }

.project-main p {
  color: #2a2f36;
  font-size: 1.02rem;
  margin: 0 0 16px;
}

.component-list, .amenity-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.component-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.component-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  grid-column: 1;
}

.component-item .component-figure {
  grid-column: 2;
  color: var(--gold);
  font-size: 0.85rem;
  white-space: nowrap;
}

.component-item p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.amenity-list { grid-template-columns: repeat(2, 1fr); }
.amenity-list li {
  font-size: 0.94rem;
  color: #2a2f36;
  padding-left: 18px;
  position: relative;
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 8px;
}
.project-gallery img { width: 100%; height: 220px; object-fit: cover; }
.project-gallery figure { cursor: zoom-in; }
.project-gallery figcaption {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
}

/* ---------- Gallery lightbox ---------- */

body.lightbox-open { overflow: hidden; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,8,0.92);
  padding: 40px;
}
.lightbox-overlay[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 28px;
  font-size: 2.2rem;
  font-weight: 300;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 12px 18px;
  opacity: 0.8;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 640px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-nav { font-size: 2.2rem; padding: 8px 12px; }
  .lightbox-close { top: 10px; right: 14px; }
}

.project-aside {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.project-aside h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  margin: 0 0 16px;
}

.project-aside dl { margin: 0 0 22px; }
.project-aside dl:last-of-type { margin-bottom: 0; }
.project-aside dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.project-aside dd {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.project-aside dd:last-child { margin-bottom: 0; }

.project-aside .btn { width: 100%; justify-content: center; margin-top: 6px; }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
}
.partner-logos img {
  height: 34px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.88;
}

.project-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  font-size: 0.85rem;
}
.project-nav-links a { text-decoration: none; color: var(--navy); }
.project-nav-links a:hover { color: var(--gold); }

/* ---------- Team ---------- */

#team, .team-block { background: var(--off-white); }

.team-note {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  border-left: 3px solid var(--gold-light);
  padding-left: 14px;
}

.team-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

/* 3 cards on an auto-fit(minmax) track resolve to 2 columns in the mid
   viewport range, orphaning the 3rd card with dead space beside it. Stay
   single-column through that range and jump straight to 3-across. */
@media (min-width: 1150px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
}

.team-card-body { padding: 28px; }

.team-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 2px;
  color: var(--navy);
}

.team-role {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.team-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.team-card-body p:last-child { margin-bottom: 0; }

.team-stats {
  display: flex;
  gap: 28px;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.team-stat-value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
}
.team-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}

.cta-banner p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.75);
}

.cta-banner .hero-actions { justify-content: center; }

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

#contact, .contact-block {
  background: var(--navy-deep);
  color: var(--white);
}

#contact .section-heading,
.contact-block .section-heading { color: var(--white); }

#contact .section-intro,
.contact-block .section-intro { color: rgba(255,255,255,0.7); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}

.contact-info a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-info .placeholder-flag {
  color: var(--gold-light);
  border-color: rgba(201,165,107,0.5);
  margin-top: 10px;
}

.contact-detail-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-detail-list li { margin-bottom: 20px; }
.contact-detail-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.7);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-light);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.btn-submit {
  justify-self: start;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  padding: 13px 32px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.btn-submit:hover { background: var(--gold-light); }

.form-status {
  font-size: 0.85rem;
  color: var(--gold-light);
  min-height: 1em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 64px 0 28px;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand img {
  height: 34px; width: 34px;
  object-fit: cover;
  border-radius: 4px;
}

.footer-brand span {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.05rem;
}

.footer-col h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

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

@media (max-width: 980px) {
  .project-body { grid-template-columns: 1fr; }
  .project-aside { position: static; }
  .project-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .focus-areas,
  .team-grid,
  .contact-grid,
  .stat-grid,
  .amenity-list {
    grid-template-columns: 1fr;
  }

  .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .stat-item:first-child { border-top: none; }

  .project-gallery { grid-template-columns: 1fr; }

  .header-right { gap: 0; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 400px; }

  .nav-links li { border-top: 1px solid rgba(255,255,255,0.08); }

  .nav-links a {
    display: block;
    padding: 16px 24px;
  }

  .nav-links a[aria-current="page"]::after { display: none; }

  .nav-cta { display: none; }

  .nav-toggle { display: block; }

  section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }

  .hero { padding-bottom: 64px; }
  .project-hero { padding: 130px 0 48px; }

  .project-nav-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 640px) {
  .project-cards { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-logo { height: 44px; margin-bottom: 20px; }
  .focus-card-body,
  .team-card-body { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-columns { grid-template-columns: 1fr; gap: 28px; }
  .component-item { grid-template-columns: 1fr; }
  .component-item .component-figure { grid-column: 1; }
}

/* ---------- Arabic / RTL ----------
   Layout direction (flex/grid ordering, text alignment) follows the native
   `dir="rtl"` attribute on <html> automatically — this stylesheet has no
   hardcoded text-align/float that would fight it. What's left is the font
   (the Latin serif/sans stack has no real Arabic glyphs) and a couple of
   spots with a physical left/right value that doesn't auto-flip. */

html[dir="rtl"] body {
  font-family: 'Cairo', var(--font-sans);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .brand-name,
html[dir="rtl"] .hero h1,
html[dir="rtl"] blockquote {
  font-family: 'Cairo', var(--font-serif);
  font-weight: 600;
}

html[dir="rtl"] .locations-map-label {
  right: auto;
  left: 14px;
}

html[dir="rtl"] .leaflet-tooltip,
html[dir="rtl"] .leaflet-popup-content {
  direction: rtl;
  font-family: 'Cairo', var(--font-sans);
}

