/* ===================================
   ONE FAMILY FOUNDATION — STYLES
   Mobile-first architecture
   =================================== */

:root {
  --warm-paper: #ede5d8;
  --warm-paper-alt: #e4dbd0;
  --section-alt: #f0e9de;
  --cream-white: #f7f2eb;
  --navy: #1a2d4a;
  --navy-mid: #243d60;
  --steel: #3d6491;
  --gold: #b8923a;
  --gold-light: #d4a84e;
  --text-dark: #1a2d4a;
  --text-mid: #2d3a4d;
  --text-light: #536170;
  --white: #ffffff;
  --shadow: rgba(90,70,50,0.12);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-paper);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV (mobile base) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(237,229,216,0.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(184,146,58,0.2);
  padding: 0 5vw; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 48px; }
.nav-links {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(237,229,216,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column; align-items: stretch; gap: 0;
  padding: 12px 0 20px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(26,45,74,0.12);
  z-index: 99; list-style: none;
}
.nav-links.open { display: flex; }
.nav-links li { border-bottom: 1px solid rgba(26,45,74,0.07); }
.nav-links a {
  display: block; padding: 18px 6vw;
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; transition: color 0.2s;
  min-height: 44px; /* touch target */
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-donate {
  background: var(--navy); color: var(--white);
  margin: 14px 6vw 0; padding: 18px 24px;
  text-align: center; border-radius: 2px;
}
.nav-links .nav-donate:hover { background: var(--navy-mid); }

/* ── HAMBURGER (visible by default — mobile first) ── */
.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; cursor: pointer;
  background: none; border: none; padding: 10px 8px;
  align-items: center; justify-content: center;
  box-sizing: border-box;
}
.nav-burger span {
  display: block; height: 2px; width: 24px;
  background: var(--text-dark); border-radius: 2px;
  transition: all 0.28s ease; transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── LANG SWITCHER ── */
.lang-switcher {
  position: relative; border-bottom: none !important;
  padding: 18px 6vw 24px; display: flex; align-items: center; gap: 8px;
}
.lang-current {
  display: none; /* Hidden on mobile — show full row instead */
}
.lang-dropdown {
  display: flex; gap: 8px;
  list-style: none;
  position: static;
  background: none; border-radius: 0;
  box-shadow: none;
  overflow: visible; min-width: auto;
}
.lang-dropdown button {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 18px; border: 1.5px solid rgba(26,45,74,0.12);
  background: rgba(26,45,74,0.04);
  font-family: 'Jost', sans-serif; font-size: 0.82rem;
  letter-spacing: 0.1em; font-weight: 400;
  color: var(--text-mid); cursor: pointer; text-align: center;
  transition: all 0.2s; min-height: 44px;
  border-radius: 2px;
}
.lang-dropdown button:hover { background: rgba(26,45,74,0.1); }
.lang-dropdown button.active {
  background: var(--navy); color: var(--white);
  border-color: var(--navy); font-weight: 500;
}

/* ── HERO (mobile base) ── */
.hero {
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 6vw 48px;
  background: var(--warm-paper); position: relative; z-index: 2;
}
.hero-left::after { display: none; }
.hero-rule { width: 40px; height: 2px; background: var(--gold); margin-bottom: 14px; animation: fadeInUp 0.7s ease both; }
.hero-eyebrow { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; animation: fadeInUp 0.7s ease 0.1s both; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 300; line-height: 1.1; color: var(--navy); animation: fadeInUp 0.8s ease 0.2s both; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { margin-top: 14px; font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--text-mid); max-width: 420px; animation: fadeInUp 0.8s ease 0.3s both; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; animation: fadeInUp 0.8s ease 0.4s both; }
.hero-right { position: relative; background: #b19786; overflow: hidden; height: 55vw; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.hero-right::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(237,229,216,0.55) 0%, rgba(237,229,216,0.15) 35%, transparent 65%); }
.hero-logo-badge { display: none; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--navy); color: var(--white);
  padding: 16px 28px; font-family: 'Jost', sans-serif;
  font-size: 0.77rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  border-radius: 2px; transition: all 0.25s; border: none; cursor: pointer;
  display: inline-block; min-height: 44px;
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,45,74,0.2); }
.btn-outline {
  color: var(--navy); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  border-bottom: 1px solid rgba(26,45,74,0.35); padding-bottom: 2px;
  transition: all 0.2s; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover { color: var(--gold); border-color: var(--gold); }

/* ── SECTION BASE ── */
.section-label { font-size: 0.92rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 13px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 8vw, 5.25rem); font-weight: 300; line-height: 1.1; color: var(--navy); }
.section-title.light { color: var(--white); }

/* ── ABOUT (mobile base) ── */
#about { background: var(--cream-white); padding: 80px 6vw; border-top: 1px solid rgba(184,146,58,0.15); }
.about-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.about-lead { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 300; line-height: 1.55; color: var(--text-mid); margin-bottom: 18px; }
.about-left p { font-size: 1.1rem; font-weight: 300; line-height: 1.8; color: var(--text-light); }
.value-item { padding: 20px 0; border-bottom: 1px solid rgba(26,45,74,0.08); display: flex; gap: 16px; align-items: flex-start; }
.value-item:first-child { border-top: 1px solid rgba(26,45,74,0.08); }
.value-num { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold); min-width: 24px; padding-top: 3px; }
.value-text strong { display: block; font-size: 1.15rem; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.value-text p { font-size: 1.05rem; font-weight: 300; line-height: 1.6; color: var(--text-light); }

/* ── NUMBERS (mobile base) ── */
#numbers { background: var(--navy); padding: 80px 6vw; }
.numbers-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 48px; }
.numbers-top p { max-width: 100%; font-size: 1.1rem; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.42); text-align: left; }
.numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.05); }
.number-card { background: rgba(255,255,255,0.03); padding: 32px 16px; border: 1px solid rgba(255,255,255,0.05); transition: background 0.25s; }
.number-card:hover { background: rgba(184,146,58,0.07); }
.number-big { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 10vw, 6rem); font-weight: 300; font-style: normal; font-variant-numeric: lining-nums tabular-nums; color: var(--gold-light); line-height: 1; margin-bottom: 10px; }
.number-label { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ── PROJECTS (mobile base) ── */
#projects { background: var(--section-alt); padding: 80px 6vw; }
.projects-intro { max-width: 520px; margin-bottom: 48px; }
.projects-intro p { margin-top: 14px; font-size: 1.1rem; font-weight: 300; line-height: 1.8; color: var(--text-light); }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.project-card { background: var(--cream-white); padding: 28px 20px; border-radius: 2px; border-top: 3px solid transparent; transition: all 0.3s; }
.project-card:hover { border-top-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 60px var(--shadow); }
.project-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(184,146,58,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; border: 1px solid rgba(184,146,58,0.2); }
.project-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 500; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.project-card p { font-size: 1.05rem; font-weight: 300; line-height: 1.7; color: var(--text-light); }
.project-tag { display: inline-block; margin-top: 14px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(184,146,58,0.3); padding: 3px 9px; border-radius: 20px; }

/* ── APPROACH DIAGRAM (mobile base) ── */
#circles { background: var(--cream-white); padding: 80px 6vw; }
.diagram-wrap {
  background: #e8e2d8;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 48px var(--shadow);
}
.diagram-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 24px;
}
.diagram-legend {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.legend-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.legend-num {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%;
  background: rgba(61,100,145,0.12);
  border: 1.5px solid rgba(61,100,145,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; font-weight: 500;
  color: var(--steel);
}
.legend-content h4 {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy); margin-bottom: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26,45,74,0.3);
}
.legend-content p {
  font-size: 0.92rem; font-weight: 300;
  line-height: 1.55; color: var(--text-mid);
}

/* Diagram image */
.diagram-visual {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.diagram-visual img {
  max-width: 100%;
  height: auto;
}

/* Bottom quote bar */
.diagram-quote {
  background: var(--cream-white);
  border-top: 1px solid rgba(184,146,58,0.15);
  padding: 22px 24px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ── STORIES (mobile base) ── */
#stories { background: var(--warm-paper-alt, #e4dbd0); padding: 80px 6vw; }
.stories-header-wrap { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.stories-header { display: flex; flex-direction: column; justify-content: center; }
.stories-header p { margin-top: 14px; font-size: 1.1rem; font-weight: 300; line-height: 1.8; color: var(--text-light); }
.stories-list { display: flex; flex-direction: column; gap: 2px; }
.story-item { background: rgba(255,255,255,0.65); border-left: 3px solid rgba(184,146,58,0.35); padding: 24px 16px; display: flex; flex-direction: column; gap: 10px; transition: all 0.25s; }
.story-item:hover { background: rgba(255,255,255,0.88); border-left-color: var(--gold); }
.story-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-style: italic; color: var(--gold); margin-bottom: 6px; }
.story-person { font-size: 1rem; color: var(--text-light); font-weight: 300; letter-spacing: 0.06em; }
.story-diag { display: inline-block; margin-top: 6px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(184,146,58,0.3); padding: 3px 7px; border-radius: 2px; }
.story-text { font-size: 1.1rem; font-weight: 300; line-height: 1.8; color: var(--text-mid); }
.story-text strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }

/* ── TESTIMONIALS (mobile base) ── */
#testimonials { background: var(--cream-white); padding: 80px 6vw; }
.testimonials-header { margin-bottom: 40px; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testimonial-card { background: var(--warm-paper); padding: 28px 20px; border-radius: 2px; position: relative; transition: box-shadow 0.3s; }
.testimonial-card:hover { box-shadow: 0 20px 60px var(--shadow); }
.testimonial-card::before { content: '"'; position: absolute; top: 10px; left: 18px; font-family: 'Cormorant Garamond', serif; font-size: 5.5rem; line-height: 1; color: rgba(184,146,58,0.13); font-style: italic; }
.testimonial-text { font-size: 1.1rem; font-weight: 300; line-height: 1.8; color: var(--text-mid); margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 11px; padding-top: 14px; border-top: 1px solid rgba(26,45,74,0.08); }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--steel), var(--navy)); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 0.88rem; color: var(--gold-light); flex-shrink: 0; }
.author-info strong { display: block; font-size: 1.05rem; font-weight: 500; color: var(--navy); }
.author-info span { font-size: 0.95rem; color: var(--text-light); font-weight: 300; }

/* ── SHOP (mobile base) ── */
#shop { background: var(--navy); padding: 80px 6vw; text-align: center; }
.shop-inner { max-width: 540px; margin: 0 auto; }
.shop-inner .section-label { color: rgba(255,255,255,0.38); }
.shop-inner .section-title { color: var(--white); margin-bottom: 14px; }
.shop-inner p { font-size: 1.1rem; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.48); margin-bottom: 28px; }
.shop-badge { display: inline-block; margin-bottom: 20px; background: rgba(184,146,58,0.1); border: 1px solid rgba(184,146,58,0.3); color: var(--gold-light); font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 7px 16px; border-radius: 2px; }
.notify-form { display: flex; flex-direction: column; max-width: 100%; gap: 8px; }
.notify-form input { flex: 1; min-width: 260px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.11); padding: 16px; font-family: 'Jost', sans-serif; font-size: 1rem; color: var(--white); border-radius: 2px; outline: none; min-height: 44px; }
.notify-form input::placeholder { color: rgba(255,255,255,0.28); }
.notify-form button { background: var(--gold); color: var(--white); border: none; padding: 16px; font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: background 0.25s; min-height: 44px; }
.notify-form button:hover { background: var(--gold-light); color: var(--navy); }
.notify-form button:disabled { opacity: 0.7; cursor: default; }
.notify-status { margin-top: 12px; font-family: 'Jost', sans-serif; font-size: 0.9rem; text-align: center; }
.notify-success { color: var(--gold-light); }
.notify-error { color: #e07070; }

/* ── PARTNERS ── */
#partners { background: var(--section-alt); padding: 100px 6vw; }
.partners-header { text-align: center; margin-bottom: 44px; }
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin: 0 auto; }
.partner-card { background: var(--cream-white); padding: 30px 18px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; transition: background 0.2s; }
.partner-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.partner-card:hover { background: var(--warm-paper); }
.partner-logo { width: 160px; height: 80px; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 0; padding: 0; margin-bottom: 4px; }
.partner-logo img { max-width: 140px; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.partner-name { font-size: 1.1rem; font-weight: 400; color: var(--text-mid); line-height: 1.4; }
.partner-type { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.partners-cta { text-align: center; margin-top: 40px; }
.partners-cta p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 13px; }

/* ── DONATE (mobile base) ── */
#donate { padding: 0; }
.donate-grid { display: grid; grid-template-columns: 1fr; min-height: auto; }
.donate-inner-wrap { position: relative; z-index: 2; width: 100%; padding: 52px 4vw; display: flex; flex-direction: column; justify-content: center; align-items: stretch; min-height: auto; }
.donate-amounts { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.amount-btn { background: rgba(26,45,74,0.1); border: 1px solid rgba(26,45,74,0.2); color: var(--navy); padding: 14px 16px; font-family: 'Jost', sans-serif; font-size: 1.1rem; font-weight: 500; border-radius: 2px; cursor: pointer; transition: all 0.2s; min-height: 44px; }
.amount-btn:hover, .amount-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.donate-main { display: inline-block; background: var(--navy); color: var(--white); padding: 15px 36px; font-family: 'Jost', sans-serif; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: all 0.25s; border: none; cursor: pointer; min-height: 44px; text-align: center; white-space: nowrap; }
.donate-main:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(26,45,74,0.22); }

/* Amount dropdown + frequency row */
.donate-row {
  display: flex; gap: 8px; margin-bottom: 18px;
  align-items: stretch;
}
.donate-row .frequency-toggle { flex: 1 1 auto; margin-bottom: 0; }
.donate-row .donate-select-wrap { flex: 1 1 auto; margin-bottom: 0; }
.donate-select-wrap { margin-bottom: 14px; }
.donate-select {
  width: 100%; height: 100%; padding: 12px 40px 12px 16px;
  font-family: 'Jost', sans-serif; font-size: 1.05rem;
  font-weight: 500; color: var(--navy);
  background: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(26,45,74,0.2);
  border-radius: 2px; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%231a2d4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s;
}
.donate-select:focus { outline: none; border-color: var(--navy); }
.donate-select option { font-family: 'Jost', sans-serif; font-size: 1rem; }

/* Frequency toggle */
.frequency-toggle {
  display: flex; gap: 0; margin-bottom: 16px;
  border: 1px solid rgba(26,45,74,0.2); border-radius: 2px;
  overflow: hidden;
}
.freq-btn {
  flex: 1; padding: 10px 8px; border: none;
  background: rgba(26,45,74,0.06);
  font-family: 'Jost', sans-serif; font-size: 0.85rem;
  font-weight: 400; color: var(--navy); cursor: pointer;
  transition: all 0.2s; min-height: 44px; white-space: nowrap;
}
.freq-btn + .freq-btn { border-left: 1px solid rgba(26,45,74,0.15); }
.freq-btn.active { background: var(--navy); color: var(--white); font-weight: 500; }

/* Custom amount input */
#custom-amount-input {
  margin: 12px 0 18px;
}
.custom-amount-wrap {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid rgba(26,45,74,0.25); border-radius: 2px;
  overflow: hidden; margin-top: 12px; background: rgba(255,255,255,0.5);
}
.custom-amount-prefix {
  padding: 12px 14px; background: rgba(26,45,74,0.08);
  font-family: 'Jost', sans-serif; font-size: 1.1rem;
  font-weight: 500; color: var(--navy); line-height: 1;
}
.custom-amount-field {
  flex: 1; border: none; padding: 12px 14px; outline: none;
  font-family: 'Jost', sans-serif; font-size: 1.1rem;
  font-weight: 400; color: var(--navy); background: transparent;
  min-height: 44px; -moz-appearance: textfield; appearance: textfield;
}
.custom-amount-field::-webkit-inner-spin-button,
.custom-amount-field::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.custom-amount-error {
  font-size: 0.88rem; color: #c0392b; margin-top: 6px;
  font-weight: 400;
}

/* ── PAYMENT MODAL ── */
#donate-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(26,45,74,0.65); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 16px;
}
#donate-modal.open { display: flex; }
.donate-modal-card {
  background: var(--warm-paper); border-radius: 6px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  position: relative;
}
.donate-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px 0;
}
.donate-modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; color: var(--navy);
}
#donate-modal-close {
  width: 36px; height: 36px; border: none; background: none;
  font-size: 1.4rem; color: var(--text-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s;
}
#donate-modal-close:hover { background: rgba(26,45,74,0.08); }
.donate-modal-amount {
  padding: 8px 28px 20px; font-size: 1rem;
  color: var(--gold); font-weight: 500;
  font-family: 'Jost', sans-serif; letter-spacing: 0.04em;
}
.donate-modal-body { padding: 0 28px 28px; }
#payment-element { min-height: 200px; }
.donate-status {
  margin-top: 14px; font-size: 0.92rem; text-align: center;
  min-height: 20px;
}
.donate-status.error { color: #c0392b; }
.donate-modal-btn {
  display: block; width: 100%; margin-top: 20px;
  padding: 16px 28px; border: none;
  background: var(--navy); color: var(--white);
  font-family: 'Jost', sans-serif; font-size: 1rem;
  font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 2px;
  cursor: pointer; transition: all 0.25s; min-height: 52px;
}
.donate-modal-btn:hover { background: var(--navy-mid); }
.donate-modal-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* Success state */
.donate-success {
  text-align: center; padding: 40px 20px;
}
.donate-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d4a84e);
  color: white; font-size: 2rem; display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.donate-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 400; color: var(--navy);
  margin-bottom: 10px;
}
.donate-success p {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7;
  color: var(--text-mid); margin-bottom: 24px;
}


/* ── FOOTER (mobile base) ── */
footer { background: var(--navy); padding: 48px 6vw 28px; color: rgba(255,255,255,0.38); }
.footer-grid { display: flex; flex-direction: column; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 24px; }
.footer-logo img { height: 30px; margin-bottom: 14px; filter: brightness(1.8) saturate(0.6) opacity(0.75); }
.footer-logo p { font-size: 1.05rem; font-weight: 300; line-height: 1.75; max-width: 270px; }
.footer-col h4 { font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.52); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.36); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; text-align: center; font-size: 0.95rem; }
.footer-bottom a { color: var(--gold-light); text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.09s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.27s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.36s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.45s; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; z-index: 200; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================
   TABLET  (min-width: 768px)
   ================================================ */
@media (min-width: 768px) {
  nav { height: 88px; }
  .nav-links { top: 88px; }
  .nav-logo img { height: 58px; }

  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .hero-left { padding: 100px 6% 56px 8vw; }
  .hero-right { height: auto; }
  .hero-actions { flex-direction: row; align-items: center; }

  #about, #stories, #testimonials { padding: 100px 8vw; }
  #numbers, #projects, #shop { padding: 100px 8vw; }
  #circles { padding: 100px 8vw !important; }

  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
  .stories-header-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
  .stories-header { padding-right: 36px; }
  .story-item { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 30px 28px; }

  .projects-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }

  .donate-grid { grid-template-columns: 55fr 45fr; min-height: 520px; }
  .donate-inner-wrap { width: 100%; padding: 60px 6%; min-height: 520px; }

  .notify-form { flex-direction: row; max-width: 360px; margin: 0 auto; gap: 0; }
  .notify-form input { border-right: none; border-radius: 2px 0 0 2px; }
  .notify-form button { border-radius: 0 2px 2px 0; white-space: nowrap; }

  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  /* Lang switcher: restore dropdown on tablet+ */
  .lang-current {
    display: flex; align-items: center; justify-content: center;
    background: rgba(26,45,74,0.08); border: 1px solid rgba(26,45,74,0.12);
    color: var(--text-mid); font-family: 'Jost', sans-serif;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
    padding: 8px 14px; border-radius: 2px; cursor: pointer;
    transition: all 0.2s; min-height: 36px;
  }
  .lang-current:hover { background: rgba(26,45,74,0.14); }
  .lang-dropdown {
    display: none; position: absolute;
    bottom: auto; top: 100%; left: auto; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-radius: 4px;
    box-shadow: 0 8px 32px rgba(26,45,74,0.15);
    overflow: hidden; min-width: 140px;
  }
  .lang-switcher.open .lang-dropdown { display: flex; }
  .lang-dropdown button {
    padding: 12px 18px; border: none; border-radius: 0;
    background: none; font-size: 0.88rem;
    letter-spacing: 0; text-align: left; justify-content: flex-start;
  }
  .lang-dropdown button:hover { background: rgba(184,146,58,0.08); }
  .lang-dropdown button.active { background: none; color: var(--gold); border-color: transparent; }

  /* Diagram: side-by-side on tablet */
  #circles { padding: 100px 8vw; }
  .diagram-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 48px 36px;
    align-items: center;
  }
  .diagram-legend { gap: 24px; }
  .diagram-quote { padding: 24px 36px; font-size: 1rem; }
}

/* ================================================
   DESKTOP  (min-width: 1024px)
   ================================================ */
@media (min-width: 1024px) {
  nav { height: 100px; padding: 0 5vw; }
  .nav-logo img { height: 68px; }

  /* Desktop nav: inline links, hide burger */
  .nav-burger { display: none; }
  .nav-links {
    display: flex; position: static;
    flex-direction: row; align-items: center; gap: 28px;
    background: none; backdrop-filter: none;
    padding: 0; border-bottom: none; box-shadow: none;
  }
  .nav-links li { border-bottom: none; }
  .nav-links a {
    display: inline; padding: 0;
    font-size: 0.74rem; letter-spacing: 0.14em;
    min-height: auto;
  }
  .nav-links .nav-donate {
    margin: 0; padding: 9px 22px;
    font-size: 0.74rem;
  }

  /* Lang switcher desktop */
  .lang-switcher { padding: 0; margin-left: 8px; }
  .lang-dropdown { top: calc(100% + 8px); }

  .hero-left { padding: 108px 8% 56px 10vw; }
  .hero-left::after {
    display: block; content: ''; position: absolute;
    top: 0; right: -60px; bottom: 0; width: 100px;
    background: var(--warm-paper);
    clip-path: polygon(0 0, 40% 0, 100% 100%, 0 100%); z-index: 1;
  }
  .hero-logo-badge {
    display: block; position: absolute; bottom: 36px; right: 36px; z-index: 2;
    background: rgba(237,229,216,0.9); backdrop-filter: blur(10px);
    border: 1px solid rgba(184,146,58,0.25); border-radius: 4px;
    padding: 18px 24px; box-shadow: 0 8px 36px rgba(90,70,50,0.18);
  }
  .hero-logo-badge img { width: 200px; display: block; }

  #about, #stories, #testimonials { padding: 120px 10vw; }
  #numbers, #projects, #shop { padding: 120px 10vw; }
  #circles { padding: 100px 10vw !important; }

  .about-grid { gap: 80px; }
  .numbers-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .numbers-top p { max-width: 280px; text-align: right; }
  .numbers-grid { grid-template-columns: repeat(4, 1fr); }
  .number-card { padding: 44px 30px; }

  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .project-card { padding: 34px 26px; }
  .project-card h3 { font-size: 1.92rem; }
  .project-card p { font-size: 1.23rem; }

  .stories-header { padding-right: 48px; }
  .story-item { grid-template-columns: 185px 1fr; gap: 42px; padding: 34px 42px; }
  .story-title { font-size: 1.545rem; }
  .story-text { font-size: 1.305rem; }
  .story-text strong { font-size: 1.65rem; }

  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .testimonial-card { padding: 34px 26px; }
  .testimonial-text { font-size: 1.305rem; }
  .author-info strong { font-size: 1.23rem; }

  .donate-inner-wrap { width: 60%; padding: 80px 4% 80px 7%; }

  /* Diagram desktop */
  #circles { padding: 100px 10vw; }
  .diagram-grid { padding: 56px 48px; }
  .legend-content h4 { font-size: 1.15rem; }
  .legend-content p { font-size: 1rem; }
  .diagram-quote { padding: 28px 48px; font-size: 1.05rem; }

  .partners-grid { grid-template-columns: repeat(3, 1fr); }

  footer { padding: 56px 10vw 34px; }
  .footer-grid { gap: 60px; }
}

/* ── PRIVACY PAGE ── */
.privacy-page { padding: 120px 6vw 80px; min-height: 80vh; background: var(--off-white); }
.privacy-content { max-width: 800px; margin: 0 auto; background: var(--cream-white); padding: 48px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.privacy-updated { font-size: 0.9rem; color: var(--text-light); margin-bottom: 32px; font-style: italic; }
.privacy-content h1 { font-size: 2.5rem; color: var(--navy); margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; }
.privacy-content h2 { font-size: 1.5rem; color: var(--navy); margin: 32px 0 16px; font-weight: 500; font-family: 'Cormorant Garamond', serif; }
.privacy-content p { margin-bottom: 16px; line-height: 1.6; color: var(--text-mid); }
.privacy-content ul { margin-bottom: 24px; padding-left: 24px; color: var(--text-mid); line-height: 1.6; list-style-type: disc; }
.privacy-content li { margin-bottom: 8px; }
.privacy-content a { color: var(--gold); text-decoration: underline; }
.privacy-content a:hover { color: var(--gold-light); }
.privacy-back { margin-top: 48px; text-align: center; }

@media (max-width: 768px) {
  .privacy-page { padding: 90px 4vw 40px; }
  .privacy-content { padding: 32px 24px; }
  .privacy-content h1 { font-size: 2rem; }
}

/* ── COOKIE BANNER ── */
.cookie-banner { position: fixed; bottom: -150px; left: 0; width: 100%; background: var(--navy); color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 9999; transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
.cookie-banner.show { bottom: 0; }
.cookie-text { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.9); flex: 1; margin-right: 24px; }
.cookie-text a { color: var(--gold-light); text-decoration: underline; }
.cookie-accept { background: var(--gold); color: #fff; border: none; padding: 10px 24px; font-family: 'Jost', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: 4px; transition: background 0.2s; white-space: nowrap; }
.cookie-accept:hover { background: var(--gold-light); }

@media (max-width: 768px) {
  .cookie-banner { 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 20px 20px max(24px, env(safe-area-inset-bottom)) 20px;
    max-height: 75vh;
    overflow-y: auto;
  }
  .cookie-text { 
    margin-right: 0; 
    margin-bottom: 16px; 
    font-size: 0.9rem; 
  }
  .cookie-accept { 
    width: 100%; 
    text-align: center; 
    flex-shrink: 0;
  }
}

/* ── CONTACT MODAL ── */
.contact-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.contact-modal.active { opacity: 1; visibility: visible; }
.contact-modal-card { background: #fff; width: 90%; max-width: 480px; border-radius: 12px; transform: scale(0.95) translateY(20px); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.contact-modal.active .contact-modal-card { transform: scale(1) translateY(0); }
.contact-modal-header { padding: 24px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.contact-modal-header h3 { font-size: 1.25rem; font-weight: 500; font-family: 'Jost', sans-serif; color: var(--navy); margin: 0; }
#contact-modal-close { background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; padding: 0; line-height: 1; height: 28px; width: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s, color 0.2s; }
#contact-modal-close:hover { background: var(--off-white); color: var(--text-mid); }
.contact-modal-body { padding: 24px; overflow-y: auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; color: var(--text-mid); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.1); border-radius: 6px; font-family: 'Jost', sans-serif; font-size: 1rem; color: var(--text-dark); background: #fbfbfb; transition: border-color 0.2s, background 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.contact-status { font-size: 0.9rem; margin-bottom: 16px; min-height: 1.3em; text-align: center; }
.contact-status.success { color: var(--gold); }
.contact-status.error { color: #e07070; }
.contact-modal-btn { width: 100%; background: var(--gold); color: #fff; font-family: 'Jost', sans-serif; font-size: 1.05rem; font-weight: 500; padding: 16px; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; position: relative; }
.contact-modal-btn:hover { background: var(--gold-light); }
.contact-modal-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── GALLERY ── */
#gallery { background: var(--off-white); padding: 80px 6vw; }
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── LIGHTBOX ── */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.3s ease; }
.lightbox.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 2rem; color: #fff; cursor: pointer; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }

/* ── FAQ ── */
#faq { background: var(--cream-white); padding: 80px 6vw; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 8px; overflow: hidden; }
.faq-item summary { padding: 20px 24px; font-weight: 500; font-size: 1.1rem; color: var(--navy); cursor: pointer; list-style: none; position: relative; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 24px 24px; color: var(--text-mid); line-height: 1.6; }

/* ── ACCESSIBILITY (A11Y) ── */
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
input:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--gold); }
a:focus-visible { text-decoration: underline; }


/* ── LANG SWITCHER DROP-DOWN FIX ── */
@media (min-width: 900px) {
  .lang-dropdown {
    padding: 8px 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .lang-dropdown li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .lang-dropdown button {
    width: 100% !important;
    padding: 12px 24px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 0.9rem !important;
  }
}
