/* Al Nasir Foundation — shared styles
   Palette and type pulled from the org's logo + Claude Design mockup */

:root {
  --bg: #FBF7F1;
  --bg-alt: #F3EDE4;
  --dark: #211C17;
  --dark-line: #3A332B;
  --dark-text: #F6F0E7;
  --dark-text-muted: #CFC5B8;
  --dark-text-faint: #A2988B;
  --text: #1F1B17;
  --text-muted: #4A423A;
  --text-soft: #6E655B;
  --text-faint: #8A8178;
  --border: #EAE1D5;
  --border-soft: #E1D8CA;
  --border-strong: #D9CEBE;

  --orange: #E8722A;
  --orange-dark: #C25A15;
  --orange-bg: #FBEEE2;
  --blue: #2A6FB0;
  --blue-dark: #1F5A93;
  --blue-bg: #E7EFF7;
  --green: #3E9B62;
  --green-dark: #2C7048;
  --green-bg: #E5F0E9;

  --font-heading: 'Sora', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
  --font-body: Karla, Helvetica, sans-serif;

  --max-width: 1200px;

  /* One shared elevation + radius scale so every card, button and panel on the
     site reads as part of the same system instead of each picking its own. */
  --radius-sm: 10px;
  --radius-md: 14px;
  --shadow-rest: 0 1px 2px rgba(31, 27, 23, 0.04), 0 6px 18px -12px rgba(31, 27, 23, 0.16);
  --shadow-lift: 0 24px 48px -24px rgba(31, 27, 23, 0.28), 0 2px 6px rgba(31, 27, 23, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky header is ~79px tall: without this, every in-page anchor lands with
     its heading hidden underneath it. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: var(--font-arabic);
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--text); }

::selection { background: var(--orange-bg); color: var(--orange-dark); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

[data-lang] { }
[hidden] { display: none !important; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 241, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

/* Set by js/main.js once the page is scrolled past the top. */
.site-header.is-scrolled {
  background: rgba(251, 247, 241, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(31, 27, 23, 0.4);
}

.site-header .wrap {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #E2D8C9;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.brand-name-ar {
  font-family: var(--font-arabic);
  font-size: 13px;
  color: var(--text-soft);
  direction: rtl;
}

.brand-name-en {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-nav a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

html[lang="ar"] .site-nav a::after { transform-origin: right; }

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle:hover { border-color: var(--text); }

.lang-toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  display: block;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 11px 20px;
  white-space: nowrap;
  display: inline-block;
  border: none;
  cursor: pointer;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 1px 2px rgba(146, 66, 15, 0.2), 0 8px 20px -10px rgba(232, 114, 42, 0.65);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  -webkit-text-fill-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(146, 66, 15, 0.22), 0 16px 30px -12px rgba(232, 114, 42, 0.6);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.large { font-size: 17px; padding: 16px 30px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  background: #6E6459 url('../images/hero-team.jpg') center 62% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(23,19,15,0.9) 0%, rgba(23,19,15,0.62) 38%, rgba(23,19,15,0.26) 70%, rgba(23,19,15,0.34) 100%),
    radial-gradient(120% 80% at 18% 100%, rgba(23,19,15,0.45) 0%, rgba(23,19,15,0) 60%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 34%, var(--blue) 34%, var(--blue) 67%, var(--green) 67%);
  pointer-events: none;
}

.placeholder-label {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.placeholder-label span {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #CFC5B8;
  border: 1px solid rgba(207,197,184,0.35);
  padding: 8px 14px;
  border-radius: 4px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 84px;
  width: 100%;
}

.hero-content { max-width: 760px; }
html[lang="ar"] .hero-content { margin-left: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F3E9DC;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow-bar { width: 22px; height: 2px; background: var(--orange); display: block; }

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 68px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 22px;
  text-wrap: balance;
}

html[lang="ar"] .hero h1 { font-weight: 600; font-size: 56px; line-height: 1.3; }

.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: #E9DFD2;
  margin: 0 0 34px;
  max-width: 620px;
  text-wrap: pretty;
}

html[lang="ar"] .hero p { line-height: 1.9; }

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

.link-underline {
  color: #fff;
  font-weight: 500;
  font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 3px;
}

.link-underline:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- Section headers ---------- */

/* Numbered chapter tag — the one consistent header signature used across every
   major section on the site instead of three different one-off eyebrow styles. */
.section-tag {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.section-tag-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  letter-spacing: 0.01em;
}

.section-tag-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}


.kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.accent-orange { color: var(--orange); }
.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }

section h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.13;
  letter-spacing: -0.015em;
  margin: 0;
}

html[lang="ar"] section h2 { font-weight: 600; line-height: 1.4; }

/* ---------- Mission ---------- */

.mission { padding: 96px 40px 88px; }

.mission-grid {
  max-width: 700px;
}

.mission-grid h2 { font-size: 40px; margin-bottom: 20px; text-wrap: balance; }
.mission-grid p { font-size: 18px; line-height: 1.7; color: var(--text-muted); margin: 0; max-width: 620px; text-wrap: pretty; }

.mission-ar {
  font-family: var(--font-arabic);
  border-right: 3px solid var(--orange);
  padding-right: 28px;
}

.mission-ar h2 { font-size: 34px; line-height: 1.5; }
.mission-ar p { line-height: 1.95; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 700px;
  background: var(--border);
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat { background: var(--bg); padding: 30px 28px 30px 0; }
.stat + .stat { padding-left: 28px; }
html[lang="ar"] .stat { padding: 30px 0 30px 28px; }
html[lang="ar"] .stat + .stat { padding-right: 28px; padding-left: 0; }
.stat-num { font-family: var(--font-heading); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-num.orange { color: var(--orange); }
.stat-num.blue { color: var(--blue); }
.stat-num.green { color: var(--green); }
.stat-label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: 10px; }

.note {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--dark-text-faint);
  margin-top: 12px;
}

/* ---------- Story ---------- */

.story { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.story-grid {
  padding: 96px 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-media { position: relative; }

.story-photo-main {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  background: repeating-linear-gradient(135deg, #E4DCCF 0 12px, #EBE4D9 12px 24px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.story-photo-main img,
.story-photo-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* The source is a vertical video frame: the default crop landed on the warehouse
   ceiling and cut the team's feet off. This frames the whole group. */
.story-photo-main img { object-position: center 45%; }

.story-photo-main span {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.7;
}

.story-photo-detail {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 46%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 6px solid var(--bg-alt);
  box-shadow: var(--shadow-lift);
  background: repeating-linear-gradient(135deg, #DED5C6 0 12px, #E6DED2 12px 24px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

html[lang="ar"] .story-photo-detail { right: auto; left: -28px; }

.story-photo-detail span {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
}

.story-body h2 { font-size: 42px; margin-bottom: 24px; }
html[lang="ar"] .story-body h2 { font-size: 36px; }
.story-body p { font-size: 18px; line-height: 1.75; color: var(--text-muted); margin: 0 0 18px; text-wrap: pretty; }
html[lang="ar"] .story-body p { line-height: 1.95; }

.story-credit {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 24px;
  margin-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.story-credit-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, #DED5C6 0 8px, #E6DED2 8px 16px);
  object-fit: cover;
  flex: none;
}

.story-credit-name { font-weight: 600; font-size: 15px; }
.story-credit-org { font-size: 14px; color: var(--text-soft); }

/* ---------- Work ---------- */

.work { padding: 96px 40px 40px; }

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.work-head .kicker-block { max-width: 620px; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-rest);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.program-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.program-card:hover h3 { color: var(--orange-dark); }
.program-body h3 { transition: color 0.25s ease; }

.program-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}

.program-icon.orange { color: var(--orange-dark); background: var(--orange-bg); }
.program-icon.blue { color: var(--blue-dark); background: var(--blue-bg); }
.program-icon.green { color: var(--green-dark); background: var(--green-bg); }
.program-icon.neutral { color: var(--text-soft); background: var(--bg-alt); }

.program-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
}

.tag.orange { color: var(--orange-dark); background: var(--orange-bg); }
.tag.blue { color: var(--blue-dark); background: var(--blue-bg); }
.tag.green { color: var(--green-dark); background: var(--green-bg); }
.tag.neutral { color: var(--text-soft); background: var(--bg-alt); }

.program-body h3 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin: 0; }
html[lang="ar"] .program-body h3 { line-height: 1.4; }
.program-body p { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0; }
html[lang="ar"] .program-body p { line-height: 1.85; }

.program-stat {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.program-stat small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 6px;
}

html[lang="ar"] .program-stat small { margin-left: 0; margin-right: 6px; }

/* ---------- Video ---------- */

.video-section { padding: 32px 40px 96px; }

.video-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 32px;
  align-items: stretch;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 16px 12px;
  border-radius: 46px;
  background: linear-gradient(165deg, #3a3a3d, #0e0e10 60%);
  box-shadow:
    0 30px 60px -24px rgba(23, 19, 15, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 90px;
  left: -2px;
  width: 2px;
  height: 46px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px 0 0 2px;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  background: #0e0e10;
  border-radius: 999px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  background: var(--dark);
  overflow: hidden;
  width: 100%;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-btn svg { margin-left: 2px; }

.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }

.video-frame.is-playing .video-play-btn { display: none; }

.video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.video-copy-bar { display: block; width: 32px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 18px; }

.video-copy h3 { font-family: var(--font-heading); font-weight: 600; font-size: 32px; line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
.video-copy p { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin: 0; max-width: 380px; }

.video-copy-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.video-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.video-copy-link svg { transition: transform 0.2s ease; }
.video-copy-link:hover { color: var(--orange-dark); }
.video-copy-link:hover svg { transform: translateX(3px); }
html[lang="ar"] .video-copy-link:hover svg { transform: translateX(-3px); }

/* ---------- Get involved / Contact ---------- */

.involved { padding: 96px 40px; }

.involved-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.involved-copy h2 { font-size: 44px; margin-bottom: 20px; }
html[lang="ar"] .involved-copy h2 { font-size: 38px; }
.involved-copy p { font-size: 18px; line-height: 1.75; color: var(--text-muted); margin: 0 0 36px; max-width: 480px; text-wrap: pretty; }
html[lang="ar"] .involved-copy p { line-height: 1.95; max-width: 500px; }

.involved-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
}

.involved-item {
  background: #fff;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.25s ease;
}

.involved-item:hover.orange { background: var(--orange-bg); }
.involved-item:hover.blue { background: var(--blue-bg); }
.involved-item:hover.green { background: var(--green-bg); }

.involved-item:hover .dot { transform: scale(1.3); }
.involved-item:hover .arrow { transform: translateX(5px); }

.involved-item .dot { width: 10px; height: 10px; border-radius: 999px; flex: none; transition: transform 0.25s ease; }
.involved-item .dot.orange { background: var(--orange); }
.involved-item .dot.blue { background: var(--blue); }
.involved-item .dot.green { background: var(--green); }

.involved-item-body { flex: 1; }
.involved-item-title { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 20px; color: var(--text); }
.involved-item-sub { display: block; font-size: 15px; color: var(--text-soft); margin-top: 3px; }

.involved-item .arrow { font-size: 18px; display: inline-block; transition: transform 0.25s ease; }
.involved-item .arrow.orange { color: var(--orange-dark); }
.involved-item .arrow.blue { color: var(--blue-dark); }
.involved-item .arrow.green { color: var(--green-dark); }

.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
}

.contact-card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 26px; margin: 0 0 26px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid #DED5C6;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-bg);
}

.contact-form textarea { resize: vertical; }

.contact-form button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 22px;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-rest);
}

.contact-form button:hover { background: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.contact-form button:active { transform: translateY(0); }

.contact-info {
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  line-height: 1.6;
}

.contact-info-office { margin-bottom: 22px; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-info .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.contact-info .value { color: var(--text-muted); }

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

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); }

.site-footer .wrap {
  padding: 48px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }

.footer-brand .brand-mark { width: 40px; height: 40px; }

.footer-brand-text { font-size: 14px; color: var(--text-soft); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.footer-nav a { color: var(--orange-dark); }
.footer-nav a:hover { color: var(--text); }

.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--text-soft); display: flex; transition: color 0.25s ease, transform 0.25s ease; }
.footer-social a:hover { color: var(--orange-dark); transform: translateY(-2px); }

/* ---------- Breadcrumb (board page) ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--orange-dark); }
.breadcrumb .current { color: var(--text-muted); }

/* ---------- Board page ---------- */

.board-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.board-hero-inner { padding: 76px 40px 68px; }

.board-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: end; }
.board-hero-grid h1 { font-family: var(--font-heading); font-weight: 700; font-size: 56px; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
html[lang="ar"] .board-hero-grid h1 { font-weight: 600; font-size: 48px; line-height: 1.3; }
.board-hero-grid p { font-size: 18px; line-height: 1.75; color: var(--text-muted); margin: 0 0 8px; text-wrap: pretty; }
html[lang="ar"] .board-hero-grid p { line-height: 1.95; }

.board-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
}

.board-fact { background: var(--bg); padding: 24px 26px; }
.board-fact .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.board-fact .value { font-family: var(--font-heading); font-size: 22px; font-weight: 600; }

.board-grid-section { padding: 76px 40px 40px; }

.board-card-title h3 { font-family: var(--font-heading); font-weight: 600; font-size: 24px; margin: 0 0 4px; line-height: 1.2; }
.board-card-title .name-ar { font-family: var(--font-arabic); font-size: 17px; color: var(--text-soft); }

.board-spotlight {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
  transition: border-color 0.3s ease;
}

.board-spotlight:hover { border-color: var(--orange); }

.board-spotlight-photo {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--border-strong);
}

.board-spotlight-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.board-spotlight-body p { font-size: 16px; line-height: 1.6; color: var(--text-muted); margin: 14px 0 0; }
.board-spotlight-body p a { font-weight: 600; }

.board-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.board-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  box-shadow: var(--shadow-rest);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.board-team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.board-team-photo {
  width: 116px;
  height: 116px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.board-team-card:hover .board-team-photo { transform: scale(1.06); }

.board-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.board-team-card .tag { align-self: center; margin-top: -4px; }

.board-team-name { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin: -4px 0 0; }

/* ---------- Article (blog-style long-form page) ---------- */

.article-section { padding: 88px 40px 8px; }

.article-wrap { max-width: 700px; margin: 0 auto; }

.article-wrap p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 28px;
  text-wrap: pretty;
}

html[lang="ar"] .article-wrap p { line-height: 2; }

.article-lead {
  font-size: 22px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

html[lang="ar"] .article-lead { line-height: 1.9; }

.pull-quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text);
  margin: 44px 0 40px;
  padding-left: 26px;
  border-left: 3px solid var(--orange);
  text-wrap: balance;
}

html[lang="ar"] .pull-quote {
  line-height: 1.7;
  padding-left: 0;
  padding-right: 26px;
  border-left: none;
  border-right: 3px solid var(--orange);
}

.board-cta-section { padding: 40px 40px 96px; }

.board-cta {
  background: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius-md);
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.board-cta h2 { font-size: 38px; line-height: 1.15; margin: 0 0 16px; text-wrap: balance; }
html[lang="ar"] .board-cta h2 { font-size: 34px; line-height: 1.4; }
.board-cta p { font-size: 17px; line-height: 1.7; color: var(--dark-text-muted); margin: 0; max-width: 520px; }
html[lang="ar"] .board-cta p { line-height: 1.9; }

.board-cta-actions { display: flex; flex-direction: column; gap: 14px; }

.btn-cta-primary,
.btn-cta-ghost {
  font-weight: 600;
  font-size: 17px;
  border-radius: 999px;
  padding: 16px 28px;
  text-align: center;
}

.btn-cta-primary { background: var(--orange); color: #fff; -webkit-text-fill-color: #fff; }
.btn-cta-primary:hover { background: #fff; color: var(--text); -webkit-text-fill-color: var(--text); }

.btn-cta-ghost { border: 1px solid rgba(246,240,231,0.4); color: var(--dark-text); font-weight: 500; }
.btn-cta-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Follow ---------- */

.follow { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.follow-inner {
  padding: 88px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.follow-copy h2 { font-size: 36px; margin: 0 0 16px; }
html[lang="ar"] .follow-copy h2 { font-size: 32px; }
.follow-copy p { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin: 0; max-width: 460px; text-wrap: pretty; }
html[lang="ar"] .follow-copy p { line-height: 1.9; }

.follow-cards { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-rest); }

.follow-card {
  background: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background 0.25s ease;
}

.follow-card:hover { background: var(--orange-bg); }

.follow-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--orange-bg);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.25s ease;
}

.follow-card:hover .follow-icon { transform: scale(1.08); }

.follow-card-body { flex: 1; }
.follow-card-title { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--text); }
.follow-card-handle { display: block; font-size: 14px; color: var(--text-soft); margin-top: 2px; }

.follow-card-arrow { font-size: 18px; color: var(--orange-dark); display: inline-block; transition: transform 0.25s ease; }
.follow-card:hover .follow-card-arrow { transform: translateX(5px); }

/* ---------- Pull quote ---------- */

.quote-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.quote-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 104px 40px;
  text-align: center;
}

.quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 120px;
  line-height: 0.6;
  height: 58px;
  color: var(--orange);
  opacity: 0.32;
  margin-bottom: 12px;
  display: block;
}

.quote-inner blockquote {
  margin: 0 0 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

html[lang="ar"] .quote-inner blockquote { font-weight: 600; font-size: 28px; line-height: 1.7; }

.quote-attribution {
  font-size: 15px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.quote-attribution .name { font-weight: 600; color: var(--text-muted); }

.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }

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

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

@media (max-width: 900px) {
  .story-grid,
  .involved-grid,
  .video-grid,
  .board-hero-grid,
  .board-cta,
  .follow-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .board-facts { grid-template-columns: 1fr; }
  .board-team-grid { grid-template-columns: repeat(2, 1fr); }

  .quote-inner blockquote { font-size: 26px; }
  html[lang="ar"] .quote-inner blockquote { font-size: 24px; }
}

@media (max-width: 640px) {
  .wrap,
  .mission,
  .work,
  .involved,
  .video-section,
  .board-hero-inner,
  .board-grid-section,
  .board-cta-section { padding-left: 20px; padding-right: 20px; }

  .story-photo-detail { right: -14px; bottom: -14px; }
  html[lang="ar"] .story-photo-detail { right: auto; left: -14px; }

  .site-header .wrap { position: relative; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    box-shadow: 0 16px 30px -20px rgba(31, 27, 23, 0.25);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 13px 4px;
    border-top: 1px solid var(--border);
    font-size: 16px;
  }

  .hero { min-height: 520px; }
  .hero h1 { font-size: 40px; }
  html[lang="ar"] .hero h1 { font-size: 36px; }

  .board-hero-grid h1 { font-size: 36px; }
  html[lang="ar"] .board-hero-grid h1 { font-size: 32px; }
  .hero p { font-size: 17px; }

  section h2 { font-size: 30px; }
  .mission-grid h2, .story-body h2 { font-size: 28px; }

  .work-grid { grid-template-columns: 1fr; }
  .work-head { flex-direction: column; align-items: flex-start; }

  .contact-info-grid { grid-template-columns: 1fr; }

  .board-cta { padding: 40px 28px; }
  .board-facts { grid-template-columns: 1fr; }

  .board-spotlight { flex-direction: column; text-align: center; padding: 32px 24px; gap: 20px; }
  .board-spotlight-body { text-align: center; }
  .board-team-grid { grid-template-columns: 1fr; }

  .follow-inner { padding: 56px 20px; grid-template-columns: 1fr; gap: 32px; }
  .follow-copy h2 { font-size: 28px; }

  .quote-inner { padding: 64px 20px; }
  .quote-mark { font-size: 88px; height: 42px; }
  .quote-inner blockquote { font-size: 22px; }
  html[lang="ar"] .quote-inner blockquote { font-size: 21px; }
}
