/* ============================================================
   مدينة رياض المغربية — Light Moroccan Theme
   1. DESIGN TOKENS   2. RESET & BASE   3. TYPOGRAPHY
   4. LAYOUT PRIMITIVES   5. COMPONENTS   6. SECTIONS
   7. UTILITIES & REVEAL   8. RESPONSIVE   9. PRINT
   ============================================================ */

/* ===================== 1. DESIGN TOKENS ===================== */
:root {
  /* Surfaces (light) */
  --bg-page:        #FBF7F0;
  --bg-alt:         #F4ECE0;
  --bg-card:        #FFFFFF;
  --bg-card-tint:   #FAF4EA;

  /* Text */
  --text-primary:   #1F1812;
  --text-secondary: #5C4A3A;
  --text-muted:     #8A7866;
  --text-on-dark:   #FBF7F0;

  /* Accents (Moroccan) */
  --accent-primary:      #B8642E;
  --accent-primary-dark: #8E4A1E;
  --accent-secondary:    #1B5E3F;
  --accent-gold:         #B8893E;
  --accent-gold-soft:    #D9B26A;

  /* Lines & depth */
  --border:        #E5D9C6;
  --border-strong: #C9B89A;
  --shadow-sm: 0 1px 2px rgba(74, 49, 27, .06);
  --shadow-md: 0 6px 24px rgba(74, 49, 27, .10);
  --shadow-lg: 0 18px 48px rgba(74, 49, 27, .14);

  /* Dark accents (hero wash, stats band) */
  --dark-wash: linear-gradient(135deg, #2B1A10 0%, #6B3A1F 45%, #1B5E3F 100%);

  /* Typography */
  --font-head: 'El Messiri', 'Tajawal', serif;
  --font-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    16px;
  --radius-lg: 24px;
  --header-h:  72px;
}

/* ===================== 2. RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary);
  background: var(--bg-page);
  text-align: start;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-gold-soft); outline-offset: 3px; border-radius: 4px; }

/* Section anchor offset for sticky header */
:where(section[id]) { scroll-margin-top: var(--header-h); }

/* ===================== 3. TYPOGRAPHY ===================== */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-primary); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-primary); font-weight: 700; }

.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.section-title.light { color: var(--text-on-dark); }
.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: .6rem;
  position: relative;
  padding-inline-start: 1.5rem;
}
.section-kicker::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%;
  width: 1.1rem; height: 2px; background: var(--accent-gold); transform: translateY(-50%);
}
.section-kicker.light { color: var(--accent-gold-soft); }
.section-kicker.light::before { background: var(--accent-gold-soft); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; margin-top: .25rem; }

/* ===================== 4. LAYOUT PRIMITIVES ===================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 70ch; margin-bottom: 2.5rem; }
.districts-head { text-align: center; margin-inline: auto; max-width: 60ch; }
.districts-head .section-kicker { padding-inline-start: 0; }
.districts-head .section-kicker::before { display: none; }

/* ===================== 5. COMPONENTS ===================== */

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 200;
  background: var(--accent-primary); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 0 8px;
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

/* Reading progress bar */
.reading-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-primary));
  width: 0; transition: width .1s linear;
}

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-block-end: 1px solid transparent;
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 247, 240, .95);
  box-shadow: var(--shadow-sm);
  border-block-end-color: var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-primary); }
.brand-star { color: var(--accent-gold); font-size: 1.4rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-ar { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--accent-primary-dark); }
.brand-en { font-size: .62rem; letter-spacing: .22em; color: var(--text-muted); text-transform: uppercase; }

.nav-list { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-link {
  display: inline-block; padding: .55rem .9rem; border-radius: 999px;
  color: var(--text-secondary); font-weight: 500; font-size: .98rem;
  position: relative; transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--accent-primary); background: rgba(184, 100, 46, .07); }
.nav-link.active { color: var(--accent-primary); }
.nav-link.active::after {
  content: ""; position: absolute; inset-block-end: .35rem; inset-inline: 1rem;
  height: 2px; background: var(--accent-gold); border-radius: 2px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-close { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer; line-height: 1;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 8px 20px rgba(184, 100, 46, .28); }
.btn-primary:hover { background: var(--accent-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184, 100, 46, .36); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-primary); color: var(--accent-primary); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); transform: translateY(-2px); }

/* Arch frame (Moroccan arch) */
.arch-frame {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 999px 999px 20px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border-radius: 999px 999px 14px 14px;
  border: 1px solid rgba(184, 137, 62, .4);
}

/* Info card */
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card h3 { font-size: 1.35rem; color: var(--accent-primary-dark); }
.info-card p { margin-bottom: 0; }
.info-card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(184,100,46,.12), rgba(27,94,63,.10));
  color: var(--accent-primary); margin-bottom: 1rem; border: 1px solid var(--border);
}

/* ===================== 6. SECTIONS ===================== */

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-block: calc(var(--header-h) + 2rem) 4rem; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 88% 12%, rgba(184, 100, 46, .12), transparent 60%),
    radial-gradient(100% 70% at 5% 92%, rgba(27, 94, 63, .10), transparent 55%),
    linear-gradient(180deg, #FFFDF8 0%, var(--bg-alt) 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: radial-gradient(var(--accent-gold) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .04em; color: var(--accent-primary);
  background: rgba(184, 100, 46, .10); padding: .35rem 1rem; border-radius: 999px;
  font-size: .9rem; margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.1; margin-bottom: 1rem;
  background: linear-gradient(120deg, var(--text-primary) 30%, var(--accent-primary) 70%, var(--accent-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title::after {
  content: ""; display: block; width: 90px; height: 4px; margin-top: 1rem;
  background: linear-gradient(90deg, var(--accent-gold), transparent); border-radius: 4px;
}
.hero-lead { font-size: 1.12rem; color: var(--text-secondary); max-width: 52ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-meta { color: var(--text-muted); font-size: .95rem; }
.hero-media { justify-self: center; width: 100%; max-width: 440px; }
.hero-media .arch-frame { aspect-ratio: 3 / 4; }
.scroll-cue {
  position: absolute; inset-block-end: 1.5rem; inset-inline-start: 50%; transform: translateX(50%);
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--accent-primary); border-radius: 2px; animation: scrollcue 1.6s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* ---- About / Chairman ---- */
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.chairman {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-md); position: relative;
}
.chairman-media { position: relative; }
.chairman-media .arch-frame { aspect-ratio: 3 / 4; }
.monogram {
  position: absolute; inset-block-start: -18px; inset-inline-end: -18px; z-index: 3;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-secondary); color: var(--accent-gold);
  font-family: var(--font-head); font-weight: 700; font-size: 2rem;
  box-shadow: var(--shadow-md); border: 3px solid var(--bg-card);
}
.chairman-label { font-weight: 700; color: var(--accent-primary); letter-spacing: .02em; margin-bottom: 1.5rem; }
.quote-mark {
  position: absolute; inset-block-start: .5rem; inset-inline-end: 1.5rem;
  font-family: var(--font-head); font-size: 6rem; line-height: 1; color: rgba(184, 137, 62, .22);
  pointer-events: none;
}
.chairman-text { position: relative; }
.chairman-text p { color: var(--text-secondary); }
.signature {
  margin-top: 1.6rem; padding-top: 1.2rem; border-block-start: 1px solid var(--border);
}
.signature-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--text-primary); margin-bottom: .1rem; }
.signature-role { color: var(--accent-primary); font-weight: 700; margin-bottom: .25rem; }
.signature-org, .signature-country { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ---- Vision feature rows ---- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.feature-row.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: 1.6rem; color: var(--accent-primary-dark); margin-bottom: .8rem; }
.feature-media { aspect-ratio: 4 / 5; cursor: zoom-in; }
.exec-summary {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-tint));
  border: 1px solid var(--border); border-inline-start: 4px solid var(--accent-gold);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm);
}
.exec-summary h3 { font-size: 1.5rem; color: var(--text-primary); }

/* ---- Master plan ---- */
.master-plan { padding-top: 0; }
.master-plan > .container { padding-top: clamp(3rem, 6vw, 4.5rem); }
.master-banner { position: relative; height: clamp(280px, 42vw, 460px); overflow: hidden; }
.master-banner img { width: 100%; height: 100%; object-fit: cover; }
.master-banner-overlay {
  position: absolute; inset: 0; display: grid; align-items: end;
  background: linear-gradient(180deg, rgba(43,26,16,.15) 0%, rgba(43,26,16,.75) 100%);
  padding-block-end: 2.5rem;
}
.master-banner-overlay .section-title.light { margin-bottom: 0; }
.objectives, .master-text { max-width: 80ch; margin-bottom: 2rem; }
.objectives h3, .invest-block h3 { font-size: 1.6rem; color: var(--accent-primary-dark); }
.master-text { background: var(--bg-card-tint); border-radius: var(--radius); padding: 1.5rem 2rem; border: 1px solid var(--border); }

.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0;
}
.mini-stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm);
}
.mini-stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent-primary); line-height: 1; }
.mini-stat-label { color: var(--text-muted); font-size: .95rem; }

/* Districts grid */
.districts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.district-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.district-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.district-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.district-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.district-card:hover .district-media img { transform: scale(1.06); }
.district-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(31,24,18,.65) 100%); }
/* أيقونة التكبير الموحّدة (الأحياء + الرؤية) — مُمركزة لتعمل على الإطار القوسي والمستطيل */
.zoom-hint {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251, 247, 240, .92); color: var(--accent-primary-dark);
  box-shadow: var(--shadow-sm); pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.75);
  transition: opacity .25s ease, transform .25s ease;
}
.district-card:hover .zoom-hint,
.feature-media:hover .zoom-hint,
.district-media:focus-visible .zoom-hint,
.feature-media:focus-visible .zoom-hint { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.district-media:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent-gold-soft); }
.feature-media:focus-visible { outline: none; box-shadow: var(--shadow-md), inset 0 0 0 3px var(--accent-gold-soft); }
.district-tag {
  position: absolute; inset-block-start: .75rem; inset-inline-end: .75rem; z-index: 2;
  background: rgba(27, 94, 63, .9); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.district-body { padding: 1.3rem 1.4rem 1.6rem; }
.district-body h4 { font-size: 1.25rem; color: var(--text-primary); margin-bottom: .4rem; }
.district-body p { font-size: .95rem; color: var(--text-secondary); margin: 0; line-height: 1.75; }

/* Timeline */
.timeline { position: relative; list-style: none; max-width: 760px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; inset-block: 6px; inset-inline-start: 25px; width: 3px;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-primary) 65%, transparent); border-radius: 3px;
}
.timeline-item { position: relative; padding-inline-start: 72px; margin-bottom: 1.75rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-badge {
  position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--bg-alt), var(--shadow-sm); z-index: 2;
}
.master-plan .timeline-badge { box-shadow: 0 0 0 6px var(--bg-page), var(--shadow-sm); }
.timeline-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.timeline-card h4 { font-size: 1.2rem; color: var(--accent-primary-dark); margin-bottom: .35rem; }
.timeline-card p { margin: 0; font-size: .97rem; }

/* Gallery (masonry) */
.gallery { column-count: 3; column-gap: 1rem; }
.gallery-item {
  break-inside: avoid; margin-block-end: 1rem; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(31,24,18,0); transition: background .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { background: rgba(31,24,18,.25); }

/* ---- Stats band (dark) ---- */
.investment { padding-top: 0; }
.stats-band {
  background: var(--dark-wash); color: var(--text-on-dark);
  padding-block: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 28px 28px;
}
.stats-band .container { position: relative; }
.stats-head { text-align: center; margin-bottom: 2.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center;
  backdrop-filter: blur(6px);
}
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--accent-gold-soft); line-height: 1.1; }
.stat-label { color: rgba(251,247,240,.85); font-size: .92rem; }
.stats-note { text-align: center; color: rgba(251,247,240,.8); max-width: 70ch; margin: 2.2rem auto 0; font-size: .97rem; }
.investment > .container { padding-top: clamp(3rem, 6vw, 4.5rem); }

/* Partnership */
.partnership {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; margin-bottom: 3rem;
}
.partner-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); text-align: center;
}
.partner-card h3 { color: var(--accent-primary-dark); font-size: 1.3rem; margin-bottom: 1rem; }
.partner-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.partner-card:nth-child(1) .partner-icon { background: var(--accent-secondary); }
.partner-card:nth-child(3) .partner-icon { background: var(--accent-primary); }
.partner-card ul { list-style: none; text-align: start; }
.partner-card li { padding: .5rem 0 .5rem 1.75rem; border-block-end: 1px dashed var(--border); position: relative; color: var(--text-secondary); }
.partner-card li:last-child { border-block-end: 0; }
.partner-card li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--accent-gold); font-size: .85rem; }
.partner-link { display: grid; place-items: center; }
.partner-link span {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-head); font-weight: 700; color: var(--accent-gold);
  background: var(--bg-card-tint); border: 1px solid var(--border); border-radius: 999px;
  padding: 1.2rem .6rem; letter-spacing: .15em;
}

/* Invest */
.invest-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); margin-bottom: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.chip { background: var(--bg-card-tint); border: 1px solid var(--border); color: var(--text-secondary); padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: all .2s ease; }
.chip:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.invest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ---- Contact / Closing ---- */
.closing-message { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 2.5rem; }
.arch-frame-inline { display: block; aspect-ratio: 4 / 5; }
.closing-text p { color: var(--text-secondary); }
.closing-sign { font-family: var(--font-head); font-weight: 700; color: var(--accent-primary); margin-top: 1.2rem !important; }
.closing-org { font-weight: 700; color: var(--text-primary); }
.cta-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(135deg, var(--accent-secondary), #14402c);
  color: var(--text-on-dark); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-card::before { content: "✦"; position: absolute; inset-block-start: 1rem; inset-inline-end: 1.5rem; color: rgba(217,178,106,.35); font-size: 3rem; }
.cta-text h3 { color: #fff; font-size: 1.6rem; margin-bottom: .4rem; }
.cta-text p { color: rgba(251,247,240,.85); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-actions .btn-primary { background: var(--accent-gold); color: #1F1812; }
.cta-actions .btn-primary:hover { background: var(--accent-gold-soft); }
.cta-actions .btn-outline { color: var(--text-on-dark); border-color: rgba(255,255,255,.4); }
.cta-actions .btn-outline:hover { border-color: var(--accent-gold-soft); color: var(--accent-gold-soft); }

/* ---- Footer ---- */
.site-footer { background: #1F1812; color: rgba(251,247,240,.75); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block-end: 2rem; border-block-end: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand .brand-star { color: var(--accent-gold-soft); font-size: 1.6rem; }
.footer-brand-ar { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; margin: 0; }
.footer-brand-sub { font-size: .85rem; margin: 0; color: rgba(251,247,240,.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: rgba(251,247,240,.75); font-size: .95rem; }
.footer-nav a:hover { color: var(--accent-gold-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.5rem; font-size: .82rem; color: rgba(251,247,240,.55); }
.footer-bottom p { margin: 0; }

/* Back to top */
.back-to-top {
  position: fixed; inset-block-end: 1.5rem; inset-inline-end: 1.5rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--accent-primary); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-primary-dark); transform: translateY(-3px); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(20,14,9,.92);
  display: grid; place-items: center; padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure { margin: 0; max-width: 90vw; max-height: 86vh; }
.lightbox-figure img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-close { inset-block-start: 1.25rem; inset-inline-end: 1.25rem; font-size: 1.6rem; line-height: 1; }
.lightbox-prev { inset-inline-start: 1.25rem; inset-block-end: 1.25rem; }
.lightbox-next { inset-inline-end: 1.25rem; inset-block-end: 1.25rem; }

/* ===================== 7. UTILITIES & REVEAL ===================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===================== 8. RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .gallery { column-count: 2; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .nav-close {
    display: grid; place-items: center; position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem;
    width: 42px; height: 42px; background: none; border: 0; font-size: 1.8rem; color: var(--text-primary);
  }
  .main-nav {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(82vw, 340px); z-index: 110;
    background: var(--bg-card); box-shadow: var(--shadow-lg); padding: 3rem 1.5rem 2rem;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    border-inline-start: 1px solid var(--border);
  }
  /* RTL: القائمة على اليسار (inline-end) → تنزلق خارج الشاشة لليسار */
  [dir="rtl"] .main-nav { transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0) !important; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-link { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav-link.active::after { display: none; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(20,14,9,.45); z-index: 105; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { max-width: 360px; order: -1; }
  .chairman { grid-template-columns: 1fr; }
  .chairman-media { max-width: 320px; margin-inline: auto; }
  .about-cards, .invest-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
  .feature-row.reverse .feature-text { order: 0; }
  .feature-media { max-width: 380px; width: 100%; margin-inline: auto; }
  .partnership { grid-template-columns: 1fr; }
  .partner-link { display: none; }
  .closing-message { grid-template-columns: 1fr; }
  .arch-frame-inline { max-width: 320px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .gallery { column-count: 1; }
  .mini-stats { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 1.75rem; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; }
  .scroll-cue { display: none; }
}

/* ===================== 9. REDUCED MOTION & PRINT ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
}

@media print {
  .site-header, .back-to-top, .lightbox, .reading-progress, .scroll-cue, .nav-toggle, .gallery { display: none !important; }
  body { background: #fff; color: #000; font-size: 12px; }
  .section { padding-block: 1rem; }
  .stats-band, .cta-card { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  .stat-num, .cta-text h3 { color: #000 !important; }
  .arch-frame, .district-media, .master-banner { break-inside: avoid; box-shadow: none; }
  a[href]:after { content: ""; }
}
