/*
  style.css — مقهى ديسكفري | Design System v6
  ═══════════════════════════════════════════════════════════════
  [Refactored] تنظيم الكود وتحسين القراءة دون أي تغيير في السلوك
  [Cleaned]    حذف الكلاسات الميتة: .journey .c-tag .c-desc
               .insp-qmark-open .lit-stats .lit-stat-*
  ═══════════════════════════════════════════════════════════════

  فهرس الأقسام:
  § 1  — FONT FACES
  § 2  — DESIGN TOKENS (CSS Variables)
  § 3  — RESET
  § 4  — SCROLL PROGRESS BAR
  § 5  — LAYOUT UTILITIES (Container, Section)
  § 6  — TYPOGRAPHY UTILITIES
  § 7  — REVEAL ANIMATIONS
  § 8  — NAVIGATION
  § 9  — HAMBURGER BUTTON
  § 10 — MOBILE NAV
  § 11 — HERO
  § 12 — INSPIRATION (Leadership Quote)
  § 13 — LITERARY PARTNER
  § 14 — EVENTS (Tabs + Cards + Modal)
  § 15 — IMPACT
  § 16 — INITIATIVES
  § 17 — PARTNERS MARQUEE
  § 18 — FOOTER
  § 19 — RESPONSIVE BREAKPOINTS
  § 20 — REDUCED MOTION
  ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   § 1 — FONT FACES
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: 'ThmanyahSans';    src: url('fonts/woff2/thmanyahsans-Light.woff2')           format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'ThmanyahSans';    src: url('fonts/woff2/thmanyahsans-Regular.woff2')         format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ThmanyahSans';    src: url('fonts/woff2/thmanyahsans-Medium.woff2')          format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'ThmanyahSans';    src: url('fonts/woff2/thmanyahsans-Bold.woff2')            format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'ThmanyahSans';    src: url('fonts/woff2/thmanyahsans-Black.woff2')           format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'ThmanyahDisplay'; src: url('fonts/woff2/thmanyahserifdisplay-Light.woff2')   format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'ThmanyahDisplay'; src: url('fonts/woff2/thmanyahserifdisplay-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ThmanyahDisplay'; src: url('fonts/woff2/thmanyahserifdisplay-Bold.woff2')    format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'ThmanyahDisplay'; src: url('fonts/woff2/thmanyahserifdisplay-Black.woff2')   format('woff2'); font-weight: 900; font-display: swap; }


/* ─────────────────────────────────────────────────────────────
   § 2 — DESIGN TOKENS (CSS Variables)
   ───────────────────────────────────────────────────────────── */

:root {
  /* Colors — Brand */
  --crimson:   #ae2c41;
  --crimson-d: #8e1f31;
  --crimson-l: rgba(174, 44, 65, .08);
  --navy:      #1c2b3a;
  --navy-d:    #0f1a24;

  /* Colors — Neutral */
  --white:  #ffffff;
  --off:    #f5f5f7;
  --gray-1: #f2f2f2;
  --gray-2: #d1d1d6;
  --gray-3: #8e8e93;
  --gray-4: #3a3a3c;
  --black:  #1d1d1f;

  /* Typography */
  --font-sans:    'ThmanyahSans',    system-ui, sans-serif;
  --font-display: 'ThmanyahDisplay', 'ThmanyahSans', serif;

  /* Border Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Easing */
  --ease:        cubic-bezier(.25, .46, .45, .94);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Transition Durations */
  --t-fast: .18s;
  --t-mid:  .36s;
  --t-slow: .6s;

  /* Shadows */
  --sh-sm: 0 2px  12px rgba(0, 0, 0, .07);
  --sh-md: 0 8px  32px rgba(0, 0, 0, .10);
  --sh-lg: 0 20px 60px rgba(0, 0, 0, .13);
}


/* ─────────────────────────────────────────────────────────────
   § 3 — RESET
   ───────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--off);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img    { display: block; max-width: 100%; height: auto; }
a      { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul     { list-style: none; }


/* ─────────────────────────────────────────────────────────────
   § 4 — SCROLL PROGRESS BAR
   ───────────────────────────────────────────────────────────── */

#sp {
  position: fixed;
  top: 0;
  right: 0;
  height: 2px;
  width: 0%;
  background: var(--crimson);
  z-index: 9999;
  transition: width .1s linear;
}


/* ─────────────────────────────────────────────────────────────
   § 5 — LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────── */

.container { width: min(1100px, 92vw); margin-inline: auto; }

.section      { padding-block: 6rem; }
.section-head { margin-bottom: 3rem; }


/* ─────────────────────────────────────────────────────────────
   § 6 — TYPOGRAPHY UTILITIES
   ───────────────────────────────────────────────────────────── */

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: .6rem;
  word-spacing: .12em;
  letter-spacing: .01em;
}

.section-sub { font-size: 1rem;  color: var(--gray-3); line-height: 1.7;  margin-bottom: 0; }
.body-text   { font-size: 1rem;  color: var(--gray-4); line-height: 1.85; margin-bottom: .75rem; }


/* ─────────────────────────────────────────────────────────────
   § 7 — REVEAL ANIMATIONS
   ───────────────────────────────────────────────────────────── */

.reveal-up,
.reveal-fade {
  opacity: 0;
  transition:
    opacity   var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal-up   { transform: translateY(28px); }
.reveal-fade { transform: translateY(8px);  }

.reveal-up.visible,
.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────────────────────────
   § 8 — NAVIGATION
   ───────────────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  transition:
    background        var(--t-mid),
    backdrop-filter   var(--t-mid),
    box-shadow        var(--t-mid);
}

#nav.scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-top: 14px;
  transition: padding-top var(--t-mid);
}

#nav.scrolled .nav-inner { padding-top: 0; }

/* شعار التنقل */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter var(--t-mid);
}
#nav.scrolled .nav-logo img { filter: none; }

/* روابط التنقل */
.nav-links { display: flex; gap: 2rem; }

.nl {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  transition: color var(--t-fast);
  position: relative;
}

/* خط التأكيد تحت الرابط */
.nl::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--crimson);
  transition: width var(--t-mid) var(--ease);
}

.nl:hover,
.nl.active { color: var(--white); }

.nl:hover::after,
.nl.active::after { width: 100%; }

#nav.scrolled .nl             { color: var(--gray-4); }
#nav.scrolled .nl:hover,
#nav.scrolled .nl.active      { color: var(--black); }


/* ─────────────────────────────────────────────────────────────
   § 9 — HAMBURGER BUTTON (checkbox-driven)
   ───────────────────────────────────────────────────────────── */

/* إخفاء الـ checkbox */
.nav-toggle-input { display: none; }

/* الزر — label مرتبط بالـ checkbox */
.hbg {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--t-mid);
}

.hbg:hover { background: rgba(255, 255, 255, .12); }

#nav.scrolled .hbg:hover { background: rgba(0, 0, 0, .05); }

/* الأشرطة الثلاثة */
.hbg span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform  .3s var(--ease),
    opacity    .2s,
    width      .3s var(--ease),
    background var(--t-mid);
}

#nav.scrolled .hbg span { background: var(--black); }

/* حالة X — checkbox sibling selector */
.nav-toggle-input:checked ~ .nav-inner .hbg span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-inner .hbg span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle-input:checked ~ .nav-inner .hbg span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* فتح القائمة — checkbox sibling يفتح mob-nav مباشرة */
.nav-toggle-input:checked ~ .mob-nav {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateY(0);
}

/* إغلاق القائمة عند النقر على الخلفية — overlay خلف القائمة */
.nav-toggle-input:checked ~ .nav-inner::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
}


/* ─────────────────────────────────────────────────────────────
   § 10 — MOBILE NAV
   ───────────────────────────────────────────────────────────── */

.mob-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  gap: .3rem;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  padding-inline: 2rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-100%);
  transition:
    opacity    .35s var(--ease),
    visibility .35s var(--ease),
    transform  .4s  var(--ease);
}

/* mob-nav.open — يُدار بالـ checkbox في § 9 */

.mob-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 300px;
  padding: .85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: color var(--t-fast), background var(--t-fast);
}

.mob-nav.open a,
.nav-toggle-input:checked ~ .mob-nav a {
  opacity: 1;
  transform: translateY(0);
}

/* تأخير تتالي ظهور الروابط */
.nav-toggle-input:checked ~ .mob-nav a:nth-child(1), .mob-nav.open a:nth-child(1) { transition: color var(--t-fast), opacity .4s .08s var(--ease), transform .4s .08s var(--ease); }
.nav-toggle-input:checked ~ .mob-nav a:nth-child(2), .mob-nav.open a:nth-child(2) { transition: color var(--t-fast), opacity .4s .14s var(--ease), transform .4s .14s var(--ease); }
.nav-toggle-input:checked ~ .mob-nav a:nth-child(3), .mob-nav.open a:nth-child(3) { transition: color var(--t-fast), opacity .4s .20s var(--ease), transform .4s .20s var(--ease); }
.nav-toggle-input:checked ~ .mob-nav a:nth-child(4), .mob-nav.open a:nth-child(4) { transition: color var(--t-fast), opacity .4s .26s var(--ease), transform .4s .26s var(--ease); }
.nav-toggle-input:checked ~ .mob-nav a:nth-child(5), .mob-nav.open a:nth-child(5) { transition: color var(--t-fast), opacity .4s .32s var(--ease), transform .4s .32s var(--ease); }
.nav-toggle-input:checked ~ .mob-nav a:nth-child(6), .mob-nav.open a:nth-child(6) { transition: color var(--t-fast), opacity .4s .38s var(--ease), transform .4s .38s var(--ease); }
.nav-toggle-input:checked ~ .mob-nav a:nth-child(7), .mob-nav.open a:nth-child(7) { transition: color var(--t-fast), opacity .4s .44s var(--ease), transform .4s .44s var(--ease); }

/* زر X داخل القائمة */
.mob-nav-close {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}

.mob-nav-close:hover { background: rgba(0, 0, 0, .13); transform: scale(1.08); }

/* خطّا الـ X */
.mob-nav-close span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
}
.mob-nav-close span:nth-child(1) { transform: rotate(45deg); }
.mob-nav-close span:nth-child(2) { transform: rotate(-45deg); }

.mob-nav a:hover { background: var(--gray-1); color: var(--crimson); }

/* شيل السهم الشيفرون */
.mob-nav a::after { display: none; }


/* ─────────────────────────────────────────────────────────────
   § 11 — HERO
   ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 18, 28, .72) 0%,
    rgba(10, 18, 28, .55) 60%,
    rgba(10, 18, 28, .82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: 1.5rem;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0;
  word-spacing: .1em;
}

.ht-inline { display: inline; color: var(--white); letter-spacing: .02em; }
.ht-accent { color: var(--crimson); }

.hero-about-text {
  font-size: clamp(.9rem, 1.8vw, 1.1rem);
  line-height: 2;
  color: rgba(255, 255, 255, .88);
  max-width: 620px;
  text-align: center;
  letter-spacing: .015em;
}

/* زر Hero الزجاجي */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.4rem;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  margin-top: .5rem;
  transition:
    background     var(--t-fast),
    border-color   var(--t-fast),
    transform      var(--t-fast),
    box-shadow     var(--t-fast);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}

/* سهم التمرير */
.scroll-hint-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  animation: arrowBounce 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s;
}

.scroll-hint-arrow:hover {
  opacity: 1;
  color: white;
}

.scroll-hint-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ─────────────────────────────────────────────────────────────
   § 12 — INSPIRATION (Leadership Quote)
   ───────────────────────────────────────────────────────────── */

.inspiration {
  position: relative;
  background: var(--off);
  overflow: hidden;
  padding: 7rem 0;
}

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

.inspiration-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

/* جانب الصورة */
.insp-image { display: flex; justify-content: center; align-items: flex-start; }

.insp-img-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .13);
}

.insp-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(245, 245, 247, .55) 100%);
  pointer-events: none;
}

.insp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.03) contrast(1.04);
  transition: transform .7s var(--ease);
}

.insp-img-wrapper:hover .insp-img { transform: scale(1.03); }

/* جانب الاقتباس */
.insp-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.insp-quote-body {
  position: relative;
  padding-right: 1.75rem;
  border-right: 3px solid var(--crimson);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.insp-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.9;
  color: var(--black);
  margin: 0;
  padding: 0;
  border: none;
  letter-spacing: .01em;
}

.insp-author-block {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-top: .5rem;
}

.insp-author-name  { font-size: .88rem; font-weight: 700; color: var(--black); letter-spacing: .01em; }
.insp-author-title { font-size: .76rem; font-weight: 400; color: var(--gray-3); }


/* ─────────────────────────────────────────────────────────────
   § 12.1 — ABOUT DISCOVERY
   ───────────────────────────────────────────────────────────── */

.about-disc { background: var(--white); }

.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.ad-visual  { display: flex; justify-content: center; align-items: center; }
.ad-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--gray-1);
  box-shadow: var(--sh-md);
}
.ad-img { width: 100%; height: 100%; object-fit: cover; }

.ad-text { display: flex; flex-direction: column; align-items: flex-start; text-align: right; gap: .9rem; }


/* ─────────────────────────────────────────────────────────────
   § 12.2 — STATS (ANIMATED NUMBERS)
   ───────────────────────────────────────────────────────────── */

.stats { background: var(--off); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .85rem;
}

.scard {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-1);
  padding: 2rem .6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.astat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.1vw, 2.3rem);
  font-weight: 900;
  color: var(--crimson);
  line-height: 1;
  direction: ltr;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.scard-label { font-size: .85rem; color: var(--gray-3); line-height: 1.55; }


/* ─────────────────────────────────────────────────────────────
   § 13 — LITERARY PARTNER
   ───────────────────────────────────────────────────────────── */

.literary { background: var(--navy-d); padding-block: 7rem; }

.literary .section-title { color: var(--white); word-spacing: .12em; }
.literary .body-text     { color: rgba(255, 255, 255, .65); line-height: 1.85; }

.lit-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.lit-visual    { display: flex; justify-content: center; align-items: center; }
.lit-badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.lit-badge-img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .5));
}

.lit-text { display: flex; flex-direction: column; align-items: flex-start; text-align: right; gap: 1rem; }


/* ─────────────────────────────────────────────────────────────
   § 13.1 — NOTABLE GUESTS
   ───────────────────────────────────────────────────────────── */

.guests { background: var(--white); }

.guests-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem 1.25rem;
}

.gcard {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--off);
  border: 1px solid var(--gray-1);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid);
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.g-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--gray-1);
}

.g-img  { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.gcard:hover .g-img { transform: scale(1.06); }

.g-body  { padding: 1rem .75rem 1.25rem; display: flex; flex-direction: column; gap: .2rem; }
.g-name  { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--black); }
.g-title { font-size: .78rem; color: var(--gray-3); line-height: 1.5; }


/* ─────────────────────────────────────────────────────────────
   § 14 — EVENTS (Tabs + Cards + Modal)
   ───────────────────────────────────────────────────────────── */

.events { background: var(--white); }

/* تبويبات السنوات */
.year-tabs-wrap { width: fit-content; max-width: 100%; margin-bottom: 2.5rem; }

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  background: var(--off);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, .05);
  width: fit-content;
  max-width: 100%;
}

.ytab {
  padding: .58rem 1.7rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gray-3);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-spring);
}

.ytab:hover:not(.on) { color: var(--crimson); background: var(--crimson-l); }
.ytab:active         { transform: scale(.94); }

.ytab.on {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(174, 44, 65, .3);
}

/* لوحات السنوات */
.yp    { display: none; }
.yp.on { display: block; }

/* شبكة البطاقات */
.c-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

.c-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--off);
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid);
}
.c-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.c-img { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-1); }
.c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.c-card:hover .c-img img { transform: scale(1.06); }

.c-body { padding: 1rem; }
.c-title { font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--black); line-height: 1.4; margin-bottom: .3rem; }

/* زر "عرض المزيد" */
.show-more-wrap { text-align: center; padding-top: .5rem; }

.show-more {
  padding: .65rem 1.8rem;
  border: 1.5px solid var(--gray-2);
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--black);
  font-family: var(--font-sans);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.show-more:hover  { border-color: var(--black); background: var(--black); color: var(--white); transform: translateY(-1px); }
.show-more.hidden { display: none; }

/* رسالة قريباً للسنوات الفارغة */
.events-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 0;
}

.events-coming-soon-text {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: .15em;
}

/* مودال الفعالية */
.ev-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}
.ev-modal.open { opacity: 1; pointer-events: all; }

.ev-modal-box {
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(.94) translateY(16px);
  transition: transform var(--t-mid) var(--ease-spring);
}
.ev-modal.open .ev-modal-box { transform: scale(1) translateY(0); }

.ev-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background var(--t-fast);
}
.ev-modal-close:hover { background: rgba(0, 0, 0, .15); }
.ev-modal-close svg   { width: 16px; height: 16px; }

.ev-modal-img-wrap { flex: 0 0 auto; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-1); }
.ev-modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.ev-modal-body  { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1.5rem; }
.ev-modal-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: .5rem; }
.ev-modal-desc  { font-size: .93rem; color: var(--gray-4); line-height: 1.7; }


/* ─────────────────────────────────────────────────────────────
   § 15 — IMPACT
   ───────────────────────────────────────────────────────────── */

.impact { background: var(--off); }

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

.icard {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--gray-1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.icard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.icard-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 44, 65, .07);
  border-radius: var(--r-md);
  margin-bottom: 1.1rem;
  color: var(--crimson);
}
.icard-icon svg { width: 28px; height: 28px; }

.icard h3 { font-size: 1rem;  font-weight: 700; margin-bottom: .5rem; color: var(--black); }
.icard p  { font-size: .87rem; color: var(--gray-3); line-height: 1.7; text-align: center; }


/* ─────────────────────────────────────────────────────────────
   § 16 — INITIATIVES
   ───────────────────────────────────────────────────────────── */

.initiatives { background: var(--white); }

.init-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.init-card {
  flex: 0 1 calc(33.333% - 1rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--off);
  border: 1px solid var(--gray-1);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.init-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.init-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.init-img           { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; transition: transform var(--t-slow) var(--ease); }
.init-img--cover    { object-fit: cover; padding: 0; }
.init-card:hover .init-img { transform: scale(1.04); }

.init-body  { padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.init-cat   { font-size: .7rem; font-weight: 600; letter-spacing: .1em; color: var(--crimson); text-transform: uppercase; }
.init-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--black); line-height: 1.3; }
.init-desc  { font-size: .86rem; color: var(--gray-3); line-height: 1.65; flex: 1; }


/* ─────────────────────────────────────────────────────────────
   § 17 — PARTNERS MARQUEE
   ───────────────────────────────────────────────────────────── */

.partners { background: var(--off); overflow: hidden; padding-bottom: 6rem; }
.partners .container { margin-bottom: 2.5rem; }

.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding-block: 1rem;
  touch-action: pan-y;
}

/* أقنعة التلاشي على الجانبين */
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}
.marquee-wrap::before { right: 0; background: linear-gradient(to left,  var(--off) 20%, transparent); }
.marquee-wrap::after  { left: 0;  background: linear-gradient(to right, var(--off) 20%, transparent); }

.marquee-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.p-slot {
  flex: 0 0 240px;
  height: 135px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  user-select: none;
  -webkit-user-drag: none;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.p-slot:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.p-slot img   { max-width: 100%; max-height: 92px; object-fit: contain; pointer-events: none; }
.p-slot span  { font-size: .8rem; font-weight: 500; color: var(--gray-3); text-align: center; }


/* ─────────────────────────────────────────────────────────────
   § 18 — FOOTER
   ───────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy-d);
  color: rgba(255, 255, 255, .6);
  padding: 0;
  overflow: hidden;
}

.footer-main { padding: 4rem 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* عمود العلامة التجارية */
.footer-brand   { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-logo    { width: 110px; height: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-tagline { font-size: .9rem; line-height: 1.8; color: rgba(255, 255, 255, .45); max-width: 230px; }

/* أزرار التواصل الاجتماعي */
.footer-social { display: flex; gap: .6rem; margin-top: .25rem; }

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background    var(--t-fast),
    border-color  var(--t-fast),
    transform     var(--t-fast);
}
.social-btn:hover { background: var(--crimson); border-color: var(--crimson); transform: translateY(-2px); }
.social-btn svg   { width: 16px; height: 16px; }

/* عمود الروابط */
.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: rgba(255, 255, 255, .3);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-links { display: flex; flex-direction: column; gap: .55rem; }

.footer-links a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--t-fast), padding-right var(--t-mid);
}

.footer-links a::before {
  content: '›';
  color: var(--crimson);
  opacity: 0;
  font-size: 1rem;
  flex-shrink: 0;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.footer-links a:hover         { color: var(--white); padding-right: .25rem; }
.footer-links a:hover::before { opacity: 1; }

/* عمود التواصل */
.footer-contact { display: flex; flex-direction: column; gap: .7rem; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  transition: color var(--t-fast);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: .15rem;
  stroke: var(--crimson);
  opacity: .7;
}

.footer-contact-item a { color: inherit; transition: color var(--t-fast); }

.footer-contact-item:hover,
.footer-contact-item a:hover { color: var(--white); }

/* شريط الحقوق */
.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-copy   { font-size: .78rem; color: rgba(255, 255, 255, .22); }


/* ─────────────────────────────────────────────────────────────
   § 19 — RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────── */

/* 1100px — Tablet Landscape */
@media (max-width: 1100px) {
  .c-grid      { grid-template-columns: repeat(3, 1fr); }
  .guests-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 900px — Tablet Portrait */
@media (max-width: 900px) {
  /* التنقل */
  .nav-links    { display: none; }
  .hbg          { display: inline-flex; }
  .mob-nav      { display: flex; }
  .nav-logo img { height: 42px; }

  /* قسم الاقتباس */
  .inspiration-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  .insp-image         { order: -1; justify-content: center; }
  .insp-img-wrapper   { width: 280px; height: 280px; }
  .insp-text          { font-size: 1.15rem; }

  /* قسم الشريك الأدبي */
  .lit-grid       { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .lit-text       { align-items: center; }
  .lit-badge-img  { width: 180px; height: 180px; }

  /* قسم عن ديسكفري */
  .ad-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .ad-text { align-items: center; }

  /* قسم الأرقام */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* قسم الضيوف */
  .guests-grid { grid-template-columns: repeat(3, 1fr); }

  /* أقسام أخرى */
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .init-card   { flex-basis: calc(50% - .75rem); }

  /* الفوتر */
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand        { grid-column: 1 / -1; }
  .footer-bottom,
  .footer-copy         { text-align: center; }
}

/* 600px — Mobile */
@media (max-width: 600px) {
  .section            { padding-block: 4rem; }
  .inspiration        { padding: 4rem 0; }
  .inspiration-inner  { gap: 2rem; }
  .insp-img-wrapper   { width: 240px; height: 240px; }
  .insp-text          { font-size: 1.05rem; line-height: 1.9; }
  .insp-quote-body    { padding-right: 1rem; }

  .hero-title  { font-size: clamp(2.8rem, 11vw, 4rem); }

  .year-tabs-wrap { width: 100%; margin-inline: 0 !important; }
  .year-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex-wrap: nowrap;
    gap: .25rem;
    padding: 5px;
  }
  .ytab {
    padding: .5rem .2rem;
    font-size: .78rem;
    letter-spacing: 0;
    text-align: center;
  }

  .c-grid      { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr; }
  .init-card   { flex-basis: 100%; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .guests-grid { grid-template-columns: repeat(2, 1fr); }

  .p-slot { flex: 0 0 185px; height: 105px; padding: 1.1rem; }
  .p-slot img { max-height: 68px; }

  .footer-main    { padding: 3rem 0 2rem; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand   { grid-column: auto; }
  .footer-tagline { max-width: 100%; }

  /* أقنعة ضيقة على الموبايل */
  .marquee-wrap::before,
  .marquee-wrap::after { width: 60px; }
}

/* 400px — Small Phones */
@media (max-width: 400px) {
  .c-grid      { grid-template-columns: 1fr; }
  .hero-title  { font-size: clamp(2.6rem, 10vw, 3rem); }

  .year-tabs { gap: .15rem; padding: 4px; }
  .ytab      { padding: .45rem .1rem; font-size: .7rem; }
}


/* ─────────────────────────────────────────────────────────────
   § 20 — REDUCED MOTION
   ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-fade        { transition: none; opacity: 1; transform: none; }
  .mob-nav            { transition: none; }
  .marquee-inner      { animation: none; }
}