/* ============================================================
   יד מלטפת — Yad Melatefet
   Warm, premium, emotional. RTL-first, logical properties.
   ============================================================ */

:root {
  --bg: #FAF6EF;
  --bg-alt: #F3EBDD;
  --bg-deep: #241A14;
  --ink: #2C221C;
  --ink-soft: #75655A;
  --ink-faint: #9C8D81;
  --accent: #C46B45;
  --accent-deep: #A04E2C;
  --accent-soft: #E8CDBC;
  --gold: #D9A441;
  --cream: #FFFDF8;
  --line: rgba(44, 34, 28, 0.12);

  --font-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body: 'Assistant', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -18px rgba(60, 38, 20, 0.25);
  --shadow-soft: 0 10px 30px -12px rgba(60, 38, 20, 0.18);

  --container: 1160px;
  --pad: clamp(20px, 4vw, 44px);
  --section: clamp(76px, 11vw, 140px);
}

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

/* [hidden] must win over layout displays such as grid/flex */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  line-height: 1.72;
  overflow-x: hidden;
}

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

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); position: relative; }
.section.alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  text-transform: none;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), padding 0.35s var(--ease-out);
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--cream);
  transition: color 0.3s;
  white-space: nowrap;
}
.logo svg { width: 40px; height: 40px; flex: none; }
.site-header.scrolled .logo, .site-header.solid .logo { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-inline-start: auto;
}
.nav a {
  color: rgba(255, 253, 248, 0.88);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.25s;
}
.site-header.scrolled .nav a, .site-header.solid .nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--gold); }
.site-header.scrolled .nav a:hover { color: var(--accent-deep); }

.lang-switch {
  display: flex;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 253, 248, 0.65);
}
.site-header.scrolled .lang-switch, .site-header.solid .lang-switch { color: var(--ink-faint); }
.lang-switch a {
  color: inherit;
  padding: 4px 7px;
  border-radius: 8px;
}
.lang-switch a:hover { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 999px;
  padding: 15px 34px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(160, 78, 44, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(160, 78, 44, 0.65);
  color: #fff;
}
.btn-lg { font-size: 1.14rem; padding: 18px 44px; }

.btn-ghost {
  border-color: rgba(255, 253, 248, 0.55);
  color: var(--cream);
  background: rgba(36, 26, 20, 0.18);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-heart::after { content: "♥"; font-size: 1.05em; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero-media, .hero-media video, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(26, 15, 8, 0.82) 0%, rgba(26, 15, 8, 0.35) 42%, rgba(26, 15, 8, 0.18) 70%, rgba(26, 15, 8, 0.38) 100%);
}
.hero-content {
  width: 100%;
  padding-block-end: clamp(56px, 9vh, 110px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 4.9rem);
  max-width: 15ch;
  margin-bottom: 0.35em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero .lead {
  font-size: clamp(1.08rem, 1.9vw, 1.38rem);
  max-width: 52ch;
  color: rgba(255, 253, 248, 0.92);
  margin-bottom: 2em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.scroll-hint {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(50%);
  bottom: 18px;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 253, 248, 0.5);
  border-radius: 14px;
  z-index: 2;
}
[dir="ltr"] .scroll-hint { transform: translateX(-50%); }
.scroll-hint::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 9px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 3px;
  animation: hint 1.8s infinite var(--ease-out);
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}
.split-media .float-card {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -22px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--accent-deep);
  max-width: 240px;
  line-height: 1.45;
}
.embrace-lines {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.65;
  color: var(--ink);
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 22px;
  margin: 1.4em 0;
}
.embrace-lines strong { color: var(--accent-deep); font-weight: 700; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 22px;
  margin-top: clamp(34px, 4vw, 56px);
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), #F6E3D3);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

.photo-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.photo-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.photo-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.photo-card .body { padding: 24px 26px 28px; }

/* ---------- quote band ---------- */
.quote-band {
  position: relative;
  color: var(--cream);
  text-align: center;
  isolation: isolate;
  padding-block: clamp(90px, 14vw, 170px);
  background-size: cover;
  background-position: center;
}
.quote-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(30, 17, 9, 0.62), rgba(30, 17, 9, 0.72));
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.4;
  text-wrap: balance;
}
.quote-band .btn { margin-top: 40px; }

/* ---------- app section ---------- */
.app-section .split-media img { aspect-ratio: 3 / 2.6; }
.app-list { display: grid; gap: 16px; margin-top: 26px; }
.app-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.app-item .icon { font-size: 1.6rem; line-height: 1; margin-top: 4px; }
.app-item h4 { margin: 0 0 4px; font-size: 1.06rem; font-family: var(--font-body); font-weight: 700; }
.app-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.trust-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.trust-item .t-icon { font-size: 1.5rem; margin-bottom: 10px; }
.trust-item h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin: 0 0 6px; }
.trust-item p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.honesty {
  margin-top: 34px;
  background: linear-gradient(135deg, #FFF8EC, #FBEFD9);
  border: 1px solid #EAD9B7;
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.honesty .h-icon { font-size: 1.7rem; margin-top: 2px; }
.honesty p { margin: 0; color: #6B5320; font-size: 0.99rem; }
.honesty strong { color: #513E12; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 24px;
  font-weight: 700;
  font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 20px; color: var(--ink-soft); }
.faq .answer p { margin: 0; }

/* ---------- donate ---------- */
.donate-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(30px, 4.5vw, 56px);
  max-width: 860px;
  margin-inline: auto;
}
/* give toggle: monthly (default) vs one-time */
.give-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
  margin-top: 24px;
}
.give-toggle button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  background: none;
  color: var(--ink-soft);
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.28s var(--ease-out), color 0.28s, box-shadow 0.28s;
  white-space: nowrap;
}
.give-toggle button[aria-selected="true"] {
  background: var(--cream);
  color: var(--accent-deep);
  box-shadow: 0 4px 14px -6px rgba(60, 38, 20, 0.3);
}
.give-toggle .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  margin-inline-start: 7px;
  vertical-align: 1px;
}

.monthly-why {
  background: linear-gradient(135deg, #FFF8EC, #FBEFD9);
  border: 1px solid #EAD9B7;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 22px;
  font-size: 0.99rem;
  color: #6B5320;
}
.monthly-why strong { color: #513E12; }
.per-month { font-size: 0.62em; font-weight: 600; color: var(--ink-soft); }

.pay-hint {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.direct-line {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.direct-line a { font-weight: 700; }

.amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 24px 0 10px;
}
.amount {
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  user-select: none;
}
.amount:hover { transform: translateY(-3px); border-color: var(--accent-soft); }
.amount.selected {
  border-color: var(--accent);
  background: #FDF1E8;
  box-shadow: 0 8px 24px -10px rgba(160, 78, 44, 0.35);
}
.amount .sum { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent-deep); }
.amount .what { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.45; margin-top: 6px; }
.donate-actions { text-align: center; margin-top: 30px; }
.donate-secure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.donate-secure span { display: inline-flex; align-items: center; gap: 6px; }

.big-donor {
  margin-top: 44px;
  text-align: center;
  background: var(--bg-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 48px);
}
.big-donor h3 { color: var(--gold); font-size: 1.5rem; }
.big-donor p { color: rgba(255, 253, 248, 0.82); max-width: 54ch; margin-inline: auto; }
.big-donor a.tel {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cream);
  direction: ltr;
  display: inline-block;
  margin-top: 8px;
}
.big-donor a.tel:hover { color: var(--gold); }

/* ---------- help paths ---------- */
.help-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 253, 248, 0.78);
  padding-block: 70px 34px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  margin-bottom: 46px;
}
.site-footer .logo { color: var(--cream); margin-bottom: 14px; font-size: 1.24rem; }
.site-footer h4 { color: var(--cream); font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 253, 248, 0.78); }
.site-footer a:hover { color: var(--gold); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 253, 248, 0.55);
}
.ltrnum { direction: ltr; unicode-bidi: embed; }

/* ---------- donate page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  padding-block: clamp(150px, 20vw, 220px) clamp(60px, 8vw, 100px);
  background-size: cover;
  background-position: center 30%;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(30, 17, 9, 0.55), rgba(30, 17, 9, 0.78));
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 18ch; }
.page-hero p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 50ch; color: rgba(255, 253, 248, 0.9); }

/* ---------- campaign film ---------- */
.film-section {
  background: var(--bg-deep);
  color: var(--cream);
}
.film-section .eyebrow { color: var(--gold); }
.film-section .eyebrow::before { background: var(--gold); }
.film-section .section-title { color: var(--cream); }
.film-section .section-lead { color: rgba(255, 253, 248, 0.72); }
.film-frame {
  position: relative;
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}
.film-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #120b06; }
.film-cap-wrap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(18px, 4vw, 40px);
  padding-top: 120px;
  background: linear-gradient(to top, rgba(10, 5, 2, 0.72), transparent);
  pointer-events: none;
  text-align: center;
  z-index: 2;
}
.film-cap {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--cream);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
  max-width: 30ch;
  text-wrap: balance;
}
.film-cap.show { opacity: 1; transform: none; }
.film-end {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  background: rgba(14, 8, 4, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-expo);
}
.film-cap-wrap.done ~ .film-end, .film-end.show { opacity: 1; pointer-events: auto; }
.film-end .end-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--cream);
  max-width: 24ch;
  margin-inline: auto;
  line-height: 1.45;
}
.film-end .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
#film-replay {
  background: none;
  border: 1.5px solid rgba(255, 253, 248, 0.45);
  color: var(--cream);
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
#film-replay:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- reveal animations (only when JS is present) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- mobile ---------- */
.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 70;
  margin-inline-start: auto;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--cream);
  transition: 0.3s var(--ease-out);
}
.site-header.scrolled .burger span, .site-header.scrolled .burger span::before, .site-header.scrolled .burger span::after,
.site-header.solid .burger span, .site-header.solid .burger span::before, .site-header.solid .burger span::after { background: var(--ink); }
.burger span { top: 21px; }
.burger span::before { top: -8px; left: 0; right: 0; }
.burger span::after { top: 8px; left: 0; right: 0; }
body.nav-open .burger span { background: transparent !important; }
body.nav-open .burger span::before { transform: translateY(8px) rotate(45deg); background: var(--ink); }
body.nav-open .burger span::after { transform: translateY(-8px) rotate(-45deg); background: var(--ink); }

@media (max-width: 900px) {
  .burger { display: block; }

  /* backdrop-filter turns the header into a containing block for its
     position:fixed children, which drags the off-canvas nav back on screen.
     Use an opaque bar on mobile instead. */
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 246, 239, 0.98);
  }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    font-size: 1.25rem;
    transform: translateY(-102%);
    transition: transform 0.45s var(--ease-expo);
    z-index: 65;
  }
  body.nav-open .nav { transform: none; }
  .nav a { color: var(--ink) !important; }
  .nav .btn { color: #fff !important; }
  .lang-switch { position: fixed; bottom: 26px; inset-inline-start: 50%; transform: translateX(50%); }
  [dir="ltr"] .lang-switch { transform: translateX(-50%); }

  /* Portrait crops a 16:9 frame hard; bias the window toward the child
     on the left so the subject survives and copy still lands on empty ground. */
  .hero-media video, .hero-media img { object-position: 30% center; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .hero .lead { font-size: 1.05rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .give-toggle { display: flex; width: 100%; }
  .give-toggle button { flex: 1; padding-inline: 12px; font-size: 0.95rem; }
  .give-toggle .tag { display: block; margin: 3px 0 0; }
  .donate-actions .btn-lg { width: 100%; }
  .donate-secure { gap: 10px 16px; font-size: 0.84rem; }

  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media .float-card { inset-inline-end: 10px; bottom: -16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
}
