/* ══════════════════════════════════════════════════
   TAAWUNU.ORG — Global Stylesheet
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700&family=JetBrains+Mono:wght@400;500&family=Caveat:wght@400;700&family=Noto+Naskh+Arabic:wght@400;700&family=Aref+Ruqaa:wght@400;700&display=swap');

/* ─── Variables ─── */
:root {
  --earth: #6B3A2A;
  --green: #2D6A4F;
  --gold: #C9A84C;
  --water: #2578A1;
  --deep: #3D1F15;
  --cream: #F5EFE0;
  --light-cream: #FAF7F2;
  --paper: #FFFDF9;
  --ink: #1A1A1A;
  --muted: #9C9488;
  --error: #A1392A;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hand: 'Caveat', cursive;
  --font-arabic: 'Noto Naskh Arabic', serif;
  --font-arabic-hand: 'Aref Ruqaa', serif;
  --max-w: 1200px;
  --max-content: 720px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--earth); }

/* ─── Utilities ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--max-content); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-earth { color: var(--earth); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-light { background: var(--light-cream); }
.bg-deep { background: var(--deep); color: var(--cream); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--font-display); color: var(--deep); }
h1 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.15; margin-bottom: 16px; }
h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
p { margin-bottom: 16px; max-width: 720px; }
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote {
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.35;
}
.arabic-display {
  font-family: var(--font-arabic);
  font-weight: 700;
  direction: rtl;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(156, 148, 136, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(61, 31, 21, 0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand .mark {
  width: 32px;
  height: 32px;
}
.nav-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--deep);
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #245a42; }
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep);
  position: absolute;
  left: 5px;
  transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(156, 148, 136, 0.15);
    box-shadow: 0 8px 24px rgba(61, 31, 21, 0.08);
  }
  .nav-links.open { display: flex; }
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61, 31, 21, 0.35) 0%,
    rgba(61, 31, 21, 0.55) 40%,
    rgba(61, 31, 21, 0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px 80px;
  color: var(--cream);
}
.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  direction: rtl;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.9;
}
.hero h1 {
  color: var(--cream);
  margin-bottom: 20px;
  max-width: 700px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.85);
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover { background: #245a42; color: white; }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 239, 224, 0.5);
}
.btn-outline:hover {
  background: rgba(245, 239, 224, 0.1);
  border-color: var(--cream);
  color: var(--cream);
}
.btn-gold {
  background: var(--gold);
  color: var(--deep);
}
.btn-gold:hover { background: #b8972f; color: var(--deep); }

/* ─── Metric Row ─── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 64px 0;
}
.metric {
  text-align: center;
}
.metric-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--earth);
  line-height: 1;
  margin-bottom: 8px;
}
.metric-rule {
  width: 48px;
  height: 1px;
  background: var(--earth);
  margin: 8px auto 12px;
}
.metric-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ─── Section Styles ─── */
.section {
  padding: 80px 0;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}

/* ─── 4-Pillar Cards ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--paper);
  border-radius: 4px;
  padding: 32px 24px;
  border-top: 4px solid var(--muted);
  transition: all 0.25s;
  box-shadow: 0 1px 4px rgba(61, 31, 21, 0.05);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 31, 21, 0.08);
}
.pillar-card:hover .pillar-border { height: 6px; }
.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.pillar-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.pillar-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

.pillar-water { border-top-color: var(--water); }
.pillar-food { border-top-color: var(--green); }
.pillar-livelihood { border-top-color: var(--earth); }
.pillar-education { border-top-color: var(--gold); }

.pillar-water .pillar-name { color: var(--water); }
.pillar-food .pillar-name { color: var(--green); }
.pillar-livelihood .pillar-name { color: var(--earth); }
.pillar-education .pillar-name { color: var(--gold); }

/* Pillar flow arrow */
.pillar-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.pillar-flow-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
}
.pillar-flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pillar-flow-arrow {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ─── Story Block (alternating photo + text) ─── */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  max-height: 600px;
  overflow: hidden;
}
.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }
/* story-photo: img fills via absolute, caption overlays at bottom */
.story-photo {
  position: relative;
  /* overflow: hidden removed — story-block handles clipping; needed for abs child visibility */
}
/* img fills via absolute fill — caption naturally shifts above */
.story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  display: block;
}
.story-block:hover .story-photo img {
  transform: scale(1.03);
}
.story-text {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--light-cream);
}
.story-text h2 { margin-bottom: 16px; }
.story-text p { color: #555; }
.story-text .quote {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}
.story-text .quote-attr {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .story-block,
  .story-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    max-height: none;
  }
  .story-block .story-photo { max-height: 320px; }
  .story-text { padding: 40px 24px; }
}

/* ─── Photo Caption Bar ─── */
.caption-bar {
  background: var(--cream);
  padding: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ─── Transparency / Budget ─── */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.budget-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--earth);
}
.budget-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(156, 148, 136, 0.15);
  font-size: 15px;
}
.budget-table td:last-child {
  font-family: var(--font-mono);
  text-align: right;
  font-size: 14px;
}
.budget-table tr:nth-child(even) { background: var(--light-cream); }
.budget-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--earth);
  border-bottom: none;
  color: var(--deep);
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--earth);
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid;
  background: var(--paper);
}
.timeline-dot.done { border-color: var(--green); background: var(--green); }
.timeline-dot.active { border-color: var(--gold); background: var(--gold); }
.timeline-dot.planned { border-color: var(--muted); }
.timeline-dot.issue { border-color: var(--error); background: var(--error); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.timeline-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--deep);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 14px;
  color: #666;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--deep);
  color: var(--cream);
  padding: 80px 24px;
  text-align: center;
}
.cta-banner h2 {
  color: var(--cream);
  margin-bottom: 16px;
}
.cta-banner p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(245, 239, 224, 0.75);
}
.cta-banner .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Partner Logos ─── */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.partner {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.partner:hover { opacity: 1; }

/* ─── Footer ─── */
.footer {
  background: var(--deep);
  color: rgba(245, 239, 224, 0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .footer-arabic {
  font-family: var(--font-arabic);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  direction: rtl;
  margin-bottom: 4px;
}
.footer-brand .footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}
.footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
}
.footer li {
  margin-bottom: 8px;
}
.footer li a {
  color: rgba(245, 239, 224, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}
.footer li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 224, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 12px;
  margin: 0;
}
.footer-legal {
  font-size: 11px;
  max-width: 600px;
  line-height: 1.5;
  color: rgba(245, 239, 224, 0.4);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Project Cards ─── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  border-radius: 4px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 6px rgba(61, 31, 21, 0.06);
  transition: all 0.25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 31, 21, 0.1);
}
.project-card-img {
  height: 200px;
  overflow: hidden;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-card:hover .project-card-img img {
  transform: scale(1.05);
}
.project-card-body {
  padding: 24px;
}
.project-card-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.status-active { background: rgba(45, 106, 79, 0.1); color: var(--green); }
.status-planned { background: rgba(156, 148, 136, 0.15); color: var(--muted); }
.project-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--deep);
}
.project-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
}
.project-card-metrics {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(156, 148, 136, 0.12);
}
.project-card-metric {
  text-align: center;
}
.project-card-metric .num {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--earth);
  font-weight: 500;
}
.project-card-metric .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ─── Verse Callout ─── */
.verse-callout {
  text-align: center;
  padding: 80px 24px;
  background: var(--deep);
}
.verse-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  direction: rtl;
  margin-bottom: 16px;
}
.verse-english {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--cream);
  max-width: 540px;
  margin: 0 auto 8px;
}
.verse-ref {
  font-size: 13px;
  color: var(--muted);
}

/* ─── Approach / How We Work ─── */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.approach-step {
  padding: 32px;
  background: var(--paper);
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.approach-step-num {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 8px;
}
.approach-step h3 { color: var(--deep); }
.approach-step p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .approach-steps { grid-template-columns: 1fr; }
}

/* ─── About Page ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}
.team-card {
  text-align: center;
  padding: 32px;
}
.team-card {
  background: var(--paper);
  border-radius: 4px;
  padding: 32px 24px;
  box-shadow: 0 1px 6px rgba(61, 31, 21, 0.06);
  transition: all 0.25s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 31, 21, 0.1);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--earth);
}
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep);
  margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  padding: 120px 0 60px;
  background: var(--cream);
}
.page-hero .label { margin-bottom: 8px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
}

/* Page Hero with background photo */
.page-hero-visual {
  position: relative;
  padding: 160px 0 80px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-visual .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-visual .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-visual .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61,31,21,0.55) 0%,
    rgba(61,31,21,0.65) 30%,
    rgba(61,31,21,0.78) 60%,
    rgba(61,31,21,0.92) 100%
  );
}
.page-hero-visual .container { position: relative; z-index: 1; }
.page-hero-visual .label { color: var(--gold); margin-bottom: 8px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.page-hero-visual h1 { color: var(--cream); margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.page-hero-visual p { font-size: 18px; color: rgba(245,239,224,0.85); max-width: 600px; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }

/* ─── Photo Break (cinematic full-width strip) ─── */
.photo-break {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.photo-break .photo-break-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(61,31,21,0.35) 0%,
    rgba(61,31,21,0.55) 40%,
    rgba(61,31,21,0.6) 60%,
    rgba(61,31,21,0.45) 100%
  );
}
.photo-break .photo-break-text {
  text-align: center;
  color: var(--cream);
  padding: 0 24px;
}
.photo-break .photo-break-text h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.photo-break .photo-break-text p {
  font-size: 15px;
  color: rgba(245,239,224,0.8);
  max-width: 500px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .photo-break { height: 240px; }
}

/* ─── Photo Evidence (inline photo next to text) ─── */
.evidence-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.evidence-block.reverse { direction: rtl; }
.evidence-block.reverse > * { direction: ltr; }
.evidence-photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.evidence-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.evidence-block:hover .evidence-photo img { transform: scale(1.03); }
@media (max-width: 768px) {
  .evidence-block,
  .evidence-block.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ─── Support Card with image ─── */
.support-card-img {
  height: 160px;
  overflow: hidden;
  margin: -32px -32px 20px -32px;
  border-radius: 4px 4px 0 0;
}
.support-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 0.4s;
}
.support-card:hover .support-card-img img { transform: scale(1.05); }

/* ─── Pillar Card with thumbnail ─── */
.pillar-card-thumb {
  height: 130px;
  overflow: hidden;
  margin: -32px -24px 16px -24px;
  border-radius: 0;
}
.pillar-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.pillar-card:hover .pillar-card-thumb img { transform: scale(1.06); }

/* ─── Photo Mosaic (for project detail) ─── */
.photo-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  border-radius: 4px;
  overflow: hidden;
  height: 400px;
}
.photo-mosaic .mosaic-hero { grid-row: span 2; }
.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  transition: transform 0.5s;
}
.photo-mosaic .mosaic-hero img,
.photo-mosaic img.mosaic-hero {
  object-position: center 80%;
}
.photo-mosaic img:hover { transform: scale(1.03); }
@media (max-width: 768px) {
  .photo-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .photo-mosaic .mosaic-hero { grid-row: span 1; }
  .photo-mosaic img { height: 200px; }
}

/* ─── Gallery Item (from gallery page) ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,31,21,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay .pillar-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
  width: fit-content;
}
.tag-water { background: rgba(37,120,161,0.85); color: white; }
.tag-food { background: rgba(45,106,79,0.85); color: white; }
.tag-livelihoods { background: rgba(107,58,42,0.85); color: white; }
.tag-education { background: rgba(201,168,76,0.85); color: white; }
.overlay .caption-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: white;
  margin-bottom: 4px;
}
.overlay .caption-desc {
  font-size: 12px;
  color: rgba(245,239,224,0.8);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 4px; }
}

/* ─── Gallery Filters ─── */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0 16px;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 3px;
  border: 1.5px solid var(--muted);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { opacity: 0.8; }
.filter-btn.active {
  background: var(--earth);
  border-color: var(--earth);
  color: white;
}
.filter-btn[data-filter="water"] { border-color: var(--water); color: var(--water); }
.filter-btn[data-filter="food"] { border-color: var(--green); color: var(--green); }
.filter-btn[data-filter="livelihoods"] { border-color: var(--earth); color: var(--earth); }
.filter-btn[data-filter="education"] { border-color: var(--gold); color: var(--gold); }
.filter-btn[data-filter="water"].active { background: var(--water); border-color: var(--water); color: white; }
.filter-btn[data-filter="food"].active { background: var(--green); border-color: var(--green); color: white; }
.filter-btn[data-filter="livelihoods"].active { background: var(--earth); border-color: var(--earth); color: white; }
.filter-btn[data-filter="education"].active { background: var(--gold); border-color: var(--gold); color: white; }

/* ─── Prose ─── */
.prose {
  font-size: 17px;
  line-height: 1.75;
}
.prose p { margin-bottom: 20px; }
.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}
.prose h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose img {
  border-radius: 4px;
  margin: 32px 0;
}
.prose ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px;
}
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

/* ─── Responsive: budget + contact grids ─── */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* ─── Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Support Page ─── */
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.support-card {
  background: white;
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 1px 6px rgba(61, 31, 21, 0.06);
  border-top: 4px solid var(--green);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 31, 21, 0.1);
}
.support-card h3 { margin-bottom: 12px; color: var(--deep); }
.support-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.support-card .support-card-bottom {
  margin-top: auto;
}
.support-card .btn { width: 100%; justify-content: center; }

/* ─── Contact Form ─── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--deep);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(156, 148, 136, 0.3);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  background: white;
  transition: border-color 0.2s;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C9488' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: white;
  padding-right: 40px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ═══════════════════════════════════════════
   BRAND IDENTITY — Deep Implementation
   ═══════════════════════════════════════════ */

/* ─── Inline SVG Pillar Icons ─── */
.pillar-icon-svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -3px;
  margin-right: 4px;
  flex-shrink: 0;
}
.pillar-icon-svg.sm { width: 14px; height: 14px; vertical-align: -2px; }
.pillar-icon-svg.lg { width: 32px; height: 32px; }
.pillar-icon-svg.xl { width: 40px; height: 40px; margin-bottom: 12px; }

/* ─── Brand Tagline in Nav ─── */
.nav-tagline {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -1px;
  line-height: 1;
}

/* ─── Photo Caption Bar (brand mandatory) ─── */
/* Absolutely positioned at bottom of .story-photo (img is also absolute, caption z-index wins) */
.story-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: rgba(61,31,21,0.88);
  color: rgba(245,239,224,0.85);
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  line-height: 1.4;
}

/* ─── Community Voice (Caveat) — brand spec: community voices get handwritten treatment ─── */
.community-voice {
  font-family: var(--font-hand);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.4;
}
.community-voice-arabic {
  font-family: var(--font-arabic-hand);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  direction: rtl;
  color: var(--gold);
  line-height: 1.5;
}

/* ─── Metric number refinement (brand spec: -0.02em tracking) ─── */
.metric-number {
  letter-spacing: -0.02em;
}

/* ─── Section breathing (brand: "white space is respect") ─── */
.section-breathe {
  padding: 96px 0;
}

/* ─── Footer tagline lockup ─── */
.footer-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.7;
}
