@font-face {
  font-family: 'ABC Favorit Arabic';
  src: url('../fonts/ABCFavoritArabicVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Adobe Arabic';
  src: url('../fonts/AdobeArabic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon: #521624;
  --maroon-light: #6b2033;
  --cream: #e3e3d5;
  --cream-dark: #d4d4c4;
  --olive-gold: #b8a87c;
  --warm-brown: #895d3b;
  --near-black: #080a0e;
  --dark-teal: #2b3a35;
  --text-dark: #080a0e;
  --text-light: #e3e3d5;
  --text-muted: #6b6b60;
  --maroon-pale: rgba(82, 22, 36, 0.08);
  --section-padding: 100px;
  --container-width: 1100px;
}

/* ═══════════════════ RESET ═══════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }

body {
  font-family: 'ABC Favorit Arabic', 'Adobe Arabic', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
}

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

/* ═══════════════════ NAVBAR ═══════════════════ */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.site-nav.transparent { background: transparent; }
.site-nav.solid {
  background: rgba(82, 22, 36, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--container-width); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
}

/* Logo — decorative image, centered */
.logo {
  position: absolute; left: 50%; transform: translateX(-50%);
}
.logo img { height: 32px; width: auto; }

/* Nav links — interactive <a> text buttons with | separators */
.nav-links { display: flex; gap: 0; align-items: center; }
.nav-links li { display: flex; align-items: center; }
.nav-links li:not(:last-child)::after {
  content: '|';
  color: rgba(227, 227, 213, 0.3);
  margin: 0 20px;
  font-size: 0.85em;
}
.nav-links a {
  color: rgba(227, 227, 213, 0.75); font-size: 0.95em;
  font-weight: 400; transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--olive-gold); }

/* Hamburger — interactive button */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); margin: 5px 0;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  background: var(--maroon);
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 24px;
  animation: heroFadeUp 1.2s ease-out;
}

.hero-composite {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-composite__portrait {
  display: block;
  max-height: 65vh;
  width: auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-composite__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: auto;
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
}

/* ═══════════════════ NAJDI ORNAMENT DIVIDER ═══════════════════ */
.section-ornament {
  background: var(--cream);
  text-align: center;
  padding: 32px 24px;
}
.ornament-svg {
  width: 280px;
  height: 40px;
  display: inline-block;
}

/* ═══════════════════ PAGE HERO (Inner pages) ═══════════════════ */
.page-hero {
  padding: 160px 24px 80px;
  background: var(--maroon);
  text-align: center; position: relative;
}
.page-hero h1 {
  font-family: 'ABC Favorit Arabic', sans-serif; font-size: 3em; font-weight: 700;
  color: var(--cream); position: relative;
}
.page-hero .ornament {
  width: 50px; height: 2px; background: var(--olive-gold);
  margin: 20px auto 0;
}
.page-hero .ornament::before, .page-hero .ornament::after { display: none; }

/* ═══════════════════ SECTION COMMON ═══════════════════ */
.section { padding: var(--section-padding) 24px; }
.section--cream { background: var(--cream); }
.section--beige { background: var(--cream); }
.section--dark { background: var(--dark-teal); color: var(--cream); }
.section--black { background: var(--near-black); color: var(--cream); }
.section--wood { background: var(--maroon); color: var(--cream); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-family: 'ABC Favorit Arabic', sans-serif; font-size: 2.2em; font-weight: 700;
  color: var(--maroon); margin-bottom: 16px;
}
.section--dark .section-title,
.section--black .section-title,
.section--wood .section-title { color: var(--cream); }

.section-line {
  width: 50px; height: 3px; background: var(--olive-gold);
  margin: 0 auto;
}

.section-intro {
  text-align: center; color: var(--text-muted); font-size: 1.05em;
  max-width: 700px; margin: 20px auto 0; line-height: 1.9;
}
.section--dark .section-intro,
.section--black .section-intro { color: var(--cream); opacity: 0.9; }

/* ═══════════════════ ABOUT PREVIEW (Homepage) ═══════════════════ */
.about-preview {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 900px; margin: 0 auto;
}

.about-roles {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-bottom: 40px;
}
.about-roles span {
  color: var(--maroon); font-weight: 700; font-size: 1.1em;
}
.about-roles span:not(:last-child)::after {
  content: '|'; margin: 0 16px;
  color: var(--olive-gold); font-weight: 400;
}

.about-preview__text p {
  color: var(--text-dark); font-size: 1.05em;
  margin-bottom: 16px; line-height: 1.9;
  text-align: center;
}

/* "للمزيد" — interactive <a> button with outlined border */
.btn-outline {
  display: inline-block; padding: 12px 48px;
  border: 1.5px solid var(--maroon); color: var(--maroon);
  font-weight: 500; font-size: 1em;
  letter-spacing: 0.15em; transition: all 0.3s;
  margin-top: 24px; cursor: pointer;
  background: transparent;
}
.btn-outline:hover {
  background: var(--maroon); color: var(--cream);
}

/* ═══════════════════ COMPANIES SECTION ═══════════════════ */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.company-col { text-align: right; }
.company-col:first-child {
  background: rgba(0,0,0,0.03);
  padding: 24px; margin: -24px;
}
.company-col__title {
  font-family: 'ABC Favorit Arabic', sans-serif;
  font-size: 1.1em; font-weight: 700;
  color: var(--maroon); margin-bottom: 16px;
}
.company-col__desc {
  color: var(--text-muted); font-size: 0.93em; line-height: 1.8;
  margin-bottom: 20px;
}
.company-col .btn-outline {
  padding: 8px 32px; font-size: 0.9em;
  margin-top: 0;
}

/* Legacy cards (inner pages) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: transparent; border-radius: 0;
  padding: 24px 0; border: none;
  border-top: 2px solid var(--olive-gold);
  transition: all 0.3s ease;
}
.card:hover { transform: none; box-shadow: none; }
.card__category {
  display: inline-block; padding: 0; background: none;
  color: var(--maroon); border-radius: 0;
  font-size: 0.85em; font-weight: 600; margin-bottom: 10px;
}
.card__title {
  font-family: 'ABC Favorit Arabic', sans-serif; font-size: 1.1em;
  color: var(--text-dark); margin-bottom: 8px;
}
.card__desc { color: var(--text-muted); font-size: 0.95em; line-height: 1.7; }
.card--dark { background: rgba(255,255,255,0.03); border-color: rgba(184, 168, 124, 0.2); }
.card--dark:hover { border-color: var(--olive-gold); }
.card--dark .card__title { color: var(--olive-gold); }
.card--dark .card__desc { color: var(--cream); opacity: 0.7; }

/* ═══════════════════ QUOTE SECTION ═══════════════════ */
.quote-section {
  position: relative;
  overflow: hidden;
  background: var(--dark-teal);
}
.quote-section__bg {
  width: 100%;
  height: auto;
  display: block;
}
.quote-section__portrait-mobile {
  display: none;
}
.quote-section__text {
  position: absolute;
  bottom: 0; left: 0;
  width: 50%;
  padding: 60px 80px;
}
.quote-section__text blockquote {
  font-family: 'ABC Favorit Arabic', sans-serif;
  font-size: 2.4em; font-weight: 700;
  color: var(--cream); line-height: 1.5;
  font-style: normal; text-align: right;
}

/* Legacy quote-banner (inner pages) */
.quote-banner {
  padding: 80px 24px; background: var(--dark-teal);
  text-align: center; position: relative;
}
.quote-banner::before { display: none; }
.quote-banner blockquote {
  font-family: 'ABC Favorit Arabic', sans-serif; font-size: 1.8em;
  font-weight: 600; color: var(--cream); line-height: 1.7;
  max-width: 700px; margin: 0 auto; font-style: normal;
}
.quote-banner .quote-mark { display: none; }

/* ═══════════════════ PHILOSOPHY SECTION ═══════════════════ */
.philosophy-section {
  background: var(--dark-teal);
  padding: var(--section-padding) 24px;
  text-align: center;
}
.philosophy-section h3 {
  font-family: 'ABC Favorit Arabic', sans-serif;
  font-size: 1.6em; font-weight: 700;
  color: var(--cream); margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.philosophy-section p {
  color: rgba(227, 227, 213, 0.85); font-size: 1.05em; line-height: 1.9;
  max-width: 700px; margin: 0 auto 24px;
}
.philosophy-tags {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-top: 20px;
}
.philosophy-tags span {
  color: var(--cream); font-weight: 500; font-size: 1em;
}
.philosophy-tags span:not(:last-child)::after {
  content: '|'; margin: 0 16px;
  color: var(--olive-gold); font-weight: 400;
}
.philosophy-closing {
  color: rgba(227, 227, 213, 0.75); font-size: 1em; line-height: 1.9;
  max-width: 700px; margin: 16px auto 0;
}

/* ═══════════════════ COMMUNITY IMPACT SECTION ═══════════════════ */
.impact-content {
  text-align: center; max-width: 700px; margin: 0 auto;
}
.impact-list {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; margin: 24px 0;
}
.impact-list li {
  color: var(--text-dark); font-size: 1.05em; font-weight: 500;
}
.impact-closing {
  color: var(--text-muted); font-size: 1.05em; line-height: 1.9;
  margin-bottom: 8px;
}

/* ═══════════════════ PUBLIC PRESENCE SECTION ═══════════════════ */
.presence-content {
  text-align: center; max-width: 700px; margin: 0 auto;
}
.btn-outline--light {
  border-color: var(--cream); color: var(--cream);
}
.btn-outline--light:hover {
  background: var(--cream); color: var(--dark-teal);
}

/* ═══════════════════ ABOUT PAGE ═══════════════════ */
.bio-section {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 60px; align-items: start;
}
.bio-image { position: relative; }
.bio-image img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  object-position: top;
}
.bio-image::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--olive-gold);
  transform: translate(10px, 10px); z-index: -1;
}
.bio-text h2 {
  font-family: 'ABC Favorit Arabic', sans-serif; font-size: 1.8em;
  color: var(--maroon); margin-bottom: 20px;
}
.bio-text p {
  color: var(--text-muted); font-size: 1.05em;
  margin-bottom: 16px; line-height: 1.9;
}
.bio-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 36px;
  border-top: 1px solid var(--cream-dark);
}
.stat { text-align: center; }
.stat__num {
  font-family: 'ABC Favorit Arabic', sans-serif; font-size: 2.4em;
  font-weight: 800; color: var(--maroon); line-height: 1;
}
.stat__label { font-size: 0.85em; color: var(--text-muted); margin-top: 6px; }

.pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: var(--cream);
  border-radius: 30px; font-size: 0.95em;
  color: var(--maroon); font-weight: 500;
  border: 1px solid var(--cream-dark); transition: all 0.3s;
}
.pill:hover { border-color: var(--olive-gold); background: var(--maroon-pale); }

.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; right: 20px;
  width: 2px; height: 100%; background: var(--cream-dark);
}
.tl-item { display: flex; align-items: flex-start; margin-bottom: 32px; position: relative; padding-right: 52px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--olive-gold); border: 3px solid var(--cream); position: absolute; right: 14px; top: 24px; z-index: 1; }
.tl-content { flex: 1; padding: 24px 28px; background: var(--cream); border: 1px solid var(--cream-dark); transition: border-color 0.3s; }
.tl-content:hover { border-color: var(--olive-gold); }
.tl-year { color: var(--maroon); font-weight: 700; font-size: 0.9em; margin-bottom: 6px; }
.tl-content h4 { font-family: 'ABC Favorit Arabic', sans-serif; color: var(--maroon); font-size: 1.1em; margin-bottom: 4px; }
.tl-content p { color: var(--text-muted); font-size: 0.9em; }

.blockquote-section { max-width: 700px; margin: 0 auto; text-align: center; }
.blockquote-section blockquote {
  font-family: 'ABC Favorit Arabic', sans-serif; font-size: 1.3em;
  font-weight: 400; color: var(--cream); line-height: 1.8;
  font-style: normal; margin-bottom: 24px;
  padding: 24px 32px; border-right: 3px solid var(--olive-gold);
}

/* ═══════════════════ PUBLICATIONS PAGE ═══════════════════ */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item { display: flex; align-items: center; gap: 20px; padding: 24px 28px; background: var(--cream); border: 1px solid var(--cream-dark); transition: all 0.3s; }
.article-item:hover { border-color: var(--olive-gold); transform: translateX(-4px); }
.article-item__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--maroon-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--maroon); font-size: 1.2em; }
.article-item__title { font-family: 'ABC Favorit Arabic', sans-serif; font-size: 1.05em; color: var(--maroon); }

/* ═══════════════════ MEDIA PAGE ═══════════════════ */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.video-card { background: rgba(255,255,255,0.03); overflow: hidden; border: 1px solid rgba(184, 168, 124, 0.15); transition: all 0.35s; }
.video-card:hover { border-color: var(--olive-gold); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-card__title { font-family: 'ABC Favorit Arabic', sans-serif; color: var(--olive-gold); font-size: 1em; padding: 16px 20px; text-align: center; }

.gallery-category { margin-bottom: 48px; }
.gallery-category:last-child { margin-bottom: 0; }
.gallery-cat-title { font-family: 'ABC Favorit Arabic', sans-serif; font-size: 1.3em; color: var(--maroon); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--cream-dark); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; height: auto; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.gallery-grid img:hover { border-color: var(--olive-gold); transform: scale(1.03); }

/* ═══════════════════ CONTACT PAGE ═══════════════════ */
.contact-content { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-info { margin-bottom: 40px; }
.contact-info__item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; font-size: 1.1em; color: var(--text-muted); }
.contact-info__item svg { width: 20px; height: 20px; color: var(--maroon); }
.contact-info__item a { color: var(--maroon); transition: color 0.3s; }
.contact-info__item a:hover { color: var(--olive-gold); }
.social-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border: 1.5px solid var(--maroon); color: var(--maroon); font-size: 0.95em; font-weight: 500; transition: all 0.35s; }
.social-link:hover { background: var(--maroon); color: var(--cream); }
.social-link svg { width: 18px; height: 18px; }

/* ═══════════════════ FOOTER ═══════════════════ */
.site-footer { background: var(--dark-teal); padding: 48px 24px 24px; }
.footer-inner {
  max-width: var(--container-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo img { height: 50px; width: auto; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(227,227,213,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); transition: all 0.3s;
}
.footer-social a:hover { color: var(--olive-gold); border-color: var(--olive-gold); }
.footer-social svg { width: 16px; height: 16px; }
.footer-copy-wrap { max-width: var(--container-width); margin: 0 auto; }
.footer-copy {
  color: var(--text-muted); font-size: 0.85em;
  text-align: center; margin-top: 24px;
  border-top: 1px solid rgba(227,227,213,0.1); padding-top: 24px;
}
.footer-copy span { color: var(--olive-gold); }

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: 0.1s; }
.fade-in[data-delay="2"] { transition-delay: 0.2s; }
.fade-in[data-delay="3"] { transition-delay: 0.3s; }
.fade-in[data-delay="4"] { transition-delay: 0.4s; }
.fade-in[data-delay="5"] { transition-delay: 0.5s; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .companies-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-section { grid-template-columns: 260px 1fr; gap: 40px; }
  .quote-section__text { width: 55%; padding: 40px; }
  .quote-section__text blockquote { font-size: 2em; }
}

@media (max-width: 768px) {
  :root { --section-padding: 70px; }

  .nav-links {
    display: none !important; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; background: rgba(82, 22, 36, 0.98);
    padding: 80px 32px 32px; gap: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  }
  .nav-links.active { display: flex !important; }
  .nav-links li:not(:last-child)::after { display: none; }
  .nav-links a { font-size: 1.1em; color: var(--cream); }
  .hamburger { display: block; }
  .logo { position: static; transform: none; }

  .hero-composite { max-width: 100%; }
  .hero-composite__portrait { max-height: 50vh; }
  .hero-composite__logo { width: 85%; }

  .about-roles { gap: 8px; }
  .about-roles span { font-size: 0.95em; }
  .about-roles span:not(:last-child)::after { margin: 0 10px; }

  .companies-grid { grid-template-columns: 1fr; }
  .company-col:first-child { margin: 0; padding: 24px; }

  .quote-section { display: flex; flex-direction: column; align-items: center; }
  .quote-section__bg { display: none; }
  .quote-section__portrait-mobile {
    display: block;
    width: 55%;
    max-width: 260px;
    height: auto;
    margin: 40px auto 0;
  }
  .quote-section__text {
    position: relative; width: 100%;
    padding: 40px 24px;
  }
  .quote-section__text blockquote { font-size: 1.6em; text-align: center; }

  .bio-section { grid-template-columns: 1fr; }
  .bio-image { max-width: 300px; margin: 0 auto; }
  .bio-stats { justify-content: center; }

  .page-hero { padding: 130px 24px 60px; }
  .page-hero h1 { font-size: 2.2em; }

  .cards-grid { grid-template-columns: 1fr; }
  .tl-item { padding-right: 44px; }
  .videos-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .social-links { flex-direction: column; align-items: center; }
  .section-title { font-size: 1.8em; }

  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-logo img { height: auto; max-width: 220px; }
  .philosophy-tags { gap: 8px; }
  .ornament-svg { width: 200px; }
}

@media (max-width: 480px) {
  .hero-composite__portrait { max-height: 40vh; }
  .hero-composite__logo { width: 80%; }
  .about-roles { flex-direction: column; gap: 8px; }
  .about-roles span:not(:last-child)::after { display: none; }
  .bio-stats { flex-direction: column; gap: 20px; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .pills { justify-content: center; }
  .philosophy-tags { flex-direction: column; gap: 12px; }
  .philosophy-tags span:not(:last-child)::after { display: none; }
}
