/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --navy:       #1B3461;
  --navy-dark:  #0f1f3f;
  --navy-mid:   #243e74;
  --gold:       #b8922a;
  --gold-light: #d4a943;

  /* Surfaces — warm cream palette, not cold gray */
  --cream:      #f9f6f1;
  --cream-2:    #f0ebe1;
  --cream-3:    #e8e0d4;
  --white:      #ffffff;

  /* Text — warm tones */
  --text:       #1a1917;
  --text-2:     #4a4744;
  --text-3:     #8a8480;

  /* Borders — warm */
  --border:     #e0d8ce;
  --border-2:   #cec5b8;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Geometry */
  --r:    4px;
  --r-lg: 6px;

  /* Shadows — warm-toned */
  --sh:    0 1px 4px rgba(27,52,97,0.07);
  --sh-md: 0 4px 16px rgba(27,52,97,0.09);

  /* Backward compatibility for inline styles in inner pages */
  --surface:    #ffffff;
  --surface-2:  #f5f1eb;
  --surface-3:  #ede7dc;
  --gray-50:    #f5f1eb;
  --gray-100:   #eae5dc;
  --gray-300:   #e0d8ce;
  --gray-600:   #4a4744;
  --gray-700:   #3d3a37;
  --gold-pale:  #f7f0e3;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text-wrap { display: flex; flex-direction: column; }

.logo-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.logo-sub {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 7px 14px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-donate {
  background: var(--gold) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 7px 18px !important;
  margin-left: 10px;
  border-radius: var(--r) !important;
  transition: background 0.15s !important;
}

.nav-donate:hover { background: var(--gold-light) !important; color: white !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6px 32px 24px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 13px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.mobile-nav a:hover { color: var(--navy); }

.mobile-nav-donate {
  margin-top: 14px;
  text-align: center;
  background: var(--navy) !important;
  color: white !important;
  padding: 14px !important;
  border-radius: var(--r) !important;
  font-weight: 600;
  border-bottom: none !important;
}

/* ===== SHARED LAYOUT ===== */
section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

.eyebrow,
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h2.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.82;
  max-width: 620px;
  margin-bottom: 44px;
}

.section-rule {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
  border: none;
}

/* hide old divider */
.divider { display: none; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 12px 28px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 12px 28px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 12px 28px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 11px 26px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--navy); color: white; }

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.82);
  padding: 11px 26px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline-white:hover { border-color: white; color: white; }

/* ===== PAGE BANNER (inner pages) ===== */
.page-banner {
  background: var(--navy);
  padding: 96px 0 64px;
  margin-top: 80px;
}

.page-banner .section-label,
.page-banner .eyebrow { color: var(--gold-light); }

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 640px;
}

.page-banner p {
  color: rgba(255,255,255,0.58);
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
}

/* ===== HERO ===== */
#hero {
  background: var(--cream);
  padding: 80px 0 72px;
  margin-top: 80px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-hebrew {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
  font-style: italic;
  letter-spacing: 0.2px;
}

h1.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.14;
  margin-bottom: 22px;
  letter-spacing: -0.2px;
}

h1.hero-title em {
  color: var(--gold);
  font-style: italic;
}

.hero-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.82;
  margin-bottom: 34px;
  max-width: 520px;
}

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

.hero-legal {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* Right panel — navy quote card */
.hero-panel {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 44px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: url('images/logo.jpg') center/contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.04;
  pointer-events: none;
}

.hero-panel-quote {
  font-family: var(--font-heading);
  font-size: 17px;
  font-style: italic;
  line-height: 1.72;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.hero-panel-attr {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  letter-spacing: 0.4px;
  padding-left: 18px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-panel-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 24px;
}

.hero-panel-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 12px;
  line-height: 1.55;
}

.hero-panel-fact:last-child { margin-bottom: 0; }

.hero-panel-fact::before {
  content: '';
  width: 5px;
  height: 5px;
  min-width: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 6px;
}

/* ===== MISSION SECTION ===== */
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.mission-text p {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.88;
  margin-bottom: 18px;
}

.mission-text p em { font-style: italic; color: var(--navy); font-weight: 500; }

.mission-text p:last-child { margin-bottom: 0; }

.mission-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.mission-stat {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s;
}

.mission-stat:last-child { border-bottom: none; }
.mission-stat:hover { background: var(--cream); }

.mission-stat-val {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.mission-stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== PROCESS STEPS ===== */
.process-intro {
  font-size: 16.5px;
  color: var(--text-2);
  line-height: 1.82;
  max-width: 600px;
  margin-bottom: 52px;
}

.process-steps { display: flex; flex-direction: column; }

.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.process-step:first-child { border-top: none; padding-top: 0; }

.process-step-num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--border-2);
  line-height: 1;
  padding-top: 3px;
  user-select: none;
}

.process-step-content h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.process-step-content p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.78;
}

/* ===== TESTIMONIALS ===== */
#testimonials { background: var(--navy); }

#testimonials .section-label,
#testimonials .eyebrow { color: var(--gold-light); }

#testimonials h2.section-title { color: white; }

.testimonials-note {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 44px;
  font-style: italic;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 36px 34px;
}

.testimonial-mark {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 0.75;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  opacity: 0.7;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-style: italic;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin-bottom: 22px;
}

.testimonial-attr {
  font-size: 11.5px;
  color: rgba(255,255,255,0.36);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== PARTNER SCHOOLS ===== */
.schools-intro {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 640px;
}

.schools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.school-col h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--gold);
}

.school-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.school-list li {
  padding: 11px 0;
  font-size: 14.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.13s;
}

.school-list li:last-child { border-bottom: none; }
.school-list li:hover { color: var(--navy); }

.school-list li::before {
  content: '—';
  color: var(--gold);
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ===== APPLY CTA ===== */
.apply-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.apply-cta-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}

.apply-cta-text p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.apply-cta-text p:last-of-type { margin-bottom: 28px; }

.apply-reassurances { display: flex; flex-direction: column; gap: 12px; }

.apply-reassurance {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.apply-reassurance-marker {
  width: 6px;
  min-width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.apply-reassurance h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.apply-reassurance p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
}

/* ===== DONATE SECTION ===== */
#donate { background: var(--navy); }
#donate .section-label { color: var(--gold-light); }
#donate h2.section-title { color: white; }

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.donate-lead {
  font-size: 15.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.78;
  margin-bottom: 28px;
  max-width: 520px;
}

/* Tier Cards */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tier-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  user-select: none;
}

.tier-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tier-card.active {
  border-color: var(--gold);
  background: rgba(184,146,42,0.1);
  transform: translateY(-2px);
}

.tier-amount {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 10px;
}

.tier-amount-custom {
  font-size: 22px;
  color: rgba(255,255,255,0.65);
}

.tier-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tier-hebrew {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold-light);
  font-size: 13px;
}

.tier-sep {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  flex-shrink: 0;
}

.tier-english {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold-light);
  font-size: 13px;
}

.tier-covers {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.45;
  font-weight: 500;
}

.tier-card.active .tier-covers { color: rgba(255,255,255,0.62); }

/* Right Panel */
.donate-panel {
  background: white;
  border-radius: 12px;
  padding: 30px 26px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  position: sticky;
  top: 96px;
}

.donate-panel-title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 18px;
}

/* Amount input row */
.donate-amount-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.donate-amount-row:focus-within { border-color: var(--navy); }

.donate-dollar-prefix {
  padding: 0 13px;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-3);
  background: var(--cream);
  border-right: 1.5px solid var(--border-2);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.donate-amount-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  padding: 11px 13px;
  background: white;
  min-width: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.donate-amount-input::-webkit-inner-spin-button,
.donate-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.donate-amount-input::placeholder {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
  font-style: italic;
  font-family: var(--font-body);
}

/* Tier callout */
.tier-callout {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: none;
}

.callout-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 7px;
}

.callout-significance {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 11px;
}

.callout-bracha {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  color: var(--navy);
  direction: rtl;
  text-align: right;
  margin-bottom: 6px;
  line-height: 1.65;
}

.callout-translation {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.55;
  font-style: italic;
}

/* Frequency toggle */
.freq-toggle {
  display: flex;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 6px;
}

.freq-btn {
  flex: 1;
  padding: 9px;
  border: none;
  background: white;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.freq-btn + .freq-btn { border-left: 1.5px solid var(--border-2); }
.freq-btn.active { background: var(--navy); color: white; }

.monthly-note {
  font-size: 11.5px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 12px;
  display: none;
  padding: 0 2px;
  line-height: 1.5;
}

/* Donor form */
.donate-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.label-opt {
  font-weight: 400;
  color: var(--text-3);
  font-size: 9.5px;
  letter-spacing: 0;
  text-transform: none;
}

.btn-complete-donation {
  width: 100%;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: var(--r);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 12px;
}

.btn-complete-donation:hover { background: var(--gold-light); }

.donate-tax-footer {
  font-size: 10.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 44px;
}

.faq-item {
  padding: 26px 28px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.faq-item:nth-child(2n) { border-right: none; }
.faq-item:nth-last-child(-n+2) { border-bottom: none; }
.faq-item:hover { background: var(--cream); }

.faq-item h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.faq-item p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== STRIPE MODAL ===== */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-bg.open { display: flex; }

.modal-box {
  background: white;
  border-radius: 10px;
  padding: 0;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Header area — org label + close */
.modal-box > .modal-close,
.modal-box > .modal-org {
  display: block;
}

.modal-org {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 22px 28px 0;
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--text-3); line-height: 1;
  transition: color 0.15s, background 0.15s;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.modal-close:hover { color: var(--text); background: var(--cream); }

/* Step containers get the padding */
#modal-step-1,
#modal-step-2,
#modal-step-3 {
  padding: 18px 28px 28px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 3px;
  font-weight: 600;
}

.modal-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 22px;
}

.modal-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.modal-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.modal-amt-btn {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.modal-amt-btn:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(27,52,97,0.1);
}

.modal-amt-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  box-shadow: 0 2px 12px rgba(27,52,97,0.15);
}

.modal-amt-btn small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  opacity: 0.5;
  margin-top: 5px;
  line-height: 1.3;
}

.modal-amt-btn.active small { opacity: 0.65; }

.modal-custom-wrap { position: relative; margin-bottom: 14px; }
.modal-custom-wrap .dollar-sign {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}

#modalCustomAmount {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  padding: 11px 11px 11px 28px;
  font-size: 18px;
  font-family: var(--font-heading);
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#modalCustomAmount:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,52,97,0.07);
}

#payment-element { margin-bottom: 18px; min-height: 40px; }

.btn-proceed, #submit-payment {
  width: 100%;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: var(--r);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.1px;
}

.btn-proceed:hover, #submit-payment:hover { background: var(--gold-light); }
#submit-payment:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== 3-STEP MODAL EXTENSIONS ===== */
.modal-box-wide { max-width: 580px; max-height: 92vh; overflow-y: auto; }

.modal-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.modal-tier-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  width: 100%;
}

.modal-tier-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(184,146,42,0.12);
}

.modal-tier-card.active {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 2px 12px rgba(184,146,42,0.18);
}

.modal-tier-amount {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.modal-tier-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.modal-tier-heb {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--text-2);
  direction: rtl;
}

.modal-tier-sep { font-size: 9px; color: var(--text-3); }

.modal-tier-eng {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
}

.modal-tier-callout {
  background: var(--gold-pale);
  border: 1px solid rgba(184,146,42,0.25);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.modal-callout-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.modal-callout-significance {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 8px;
}

.modal-callout-bracha {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--navy);
  direction: rtl;
  text-align: right;
  margin-bottom: 3px;
}

.modal-callout-translation {
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-3);
}

.modal-freq-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-freq-btn {
  flex: 1;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-2);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.modal-freq-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.modal-monthly-note {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 12px;
  font-style: italic;
}

.modal-select-hint {
  font-size: 12px;
  color: #c0392b;
  margin-bottom: 8px;
  text-align: center;
}

.modal-anon-btn {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
  font-family: var(--font-body);
}

.modal-anon-btn.active {
  background: var(--cream-2);
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-form-group { margin-bottom: 12px; }

.modal-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.modal-opt {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

.modal-form-group input,
.modal-form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,52,97,0.07);
}

.modal-form-group textarea { resize: vertical; min-height: 60px; }

/* ===== ABOUT PAGE ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text p { color: var(--text-2); font-size: 16px; line-height: 1.88; margin-bottom: 16px; }
.about-text p em { font-style: italic; color: var(--navy); font-weight: 500; }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-item {
  padding: 18px 20px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.feature-item:nth-child(2n) { border-right: none; }
.feature-item:nth-last-child(-n+2) { border-bottom: none; }
.feature-item:hover { background: var(--cream); }
.feature-item h4 { color: var(--navy); font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.feature-item p { color: var(--text-3); font-size: 12.5px; line-height: 1.55; }

.about-panel {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 42px;
  color: white;
}

.about-panel blockquote {
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.8vw, 19px);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.9);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

.about-panel cite { font-size: 11.5px; color: rgba(255,255,255,0.38); font-style: normal; font-weight: 500; letter-spacing: 0.4px; }

/* ===== HOW IT WORKS PAGE ===== */
.steps-desc { color: var(--text-2); font-size: 16px; line-height: 1.8; margin-bottom: 48px; max-width: 580px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step-card {
  background: var(--white);
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
}

.step-card:last-child { border-right: none; }
.step-card:hover { background: var(--cream); }

.step-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.step-card h3 { font-family: var(--font-heading); font-size: 15px; color: var(--navy); margin-bottom: 9px; font-weight: 700; }
.step-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.68; }

/* ===== APPLY PAGE ===== */
.apply-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 64px; align-items: start; }
.apply-info p { color: var(--text-2); font-size: 15.5px; line-height: 1.82; margin-bottom: 14px; }

.confid-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}

.apply-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 20px;
}

.apply-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.13s;
}

.apply-checklist li:last-child { border-bottom: none; }
.apply-checklist li:hover { background: var(--cream); }

.apply-checklist li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

form.grant-form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 34px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--sh);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(27,52,97,0.07);
}

.form-group textarea { resize: vertical; min-height: 96px; }

.btn-submit {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r);
  padding: 13px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover { background: var(--navy-dark); }
.form-disclaimer { font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.55; }

/* ===== CONTACT PAGE ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.contact-card {
  background: var(--white);
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
}

.contact-card:last-child { border-right: none; }
.contact-card:hover { background: var(--cream); }

.contact-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
  display: block;
}

.contact-card h3 { font-family: var(--font-heading); font-size: 16px; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.contact-card p { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }
.contact-card a { color: var(--navy); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: color 0.15s; }
.contact-card a:hover { color: var(--gold); }

.contact-location {
  text-align: center;
  padding: 18px 24px;
  background: var(--cream);
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.contact-location p { font-size: 14px; color: var(--text-2); }

/* ===== FOOTER ===== */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.5); padding: 56px 0 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; margin-bottom: 40px; }

.footer-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: var(--r);
  background: white;
  padding: 2px;
  flex-shrink: 0;
}

.footer-brand-name { font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; color: white; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,0.32); margin: 10px 0 16px; line-height: 1.68; }
.footer-501 { font-size: 11.5px; color: var(--gold-light); font-weight: 500; }
.footer-col h4 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13.5px; transition: color 0.15s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 11.5px; color: rgba(255,255,255,0.22); }

/* ===== LEGACY / COMPAT ===== */
.hero-badge, .step-icon, .contact-icon,
.overview-icon, .values-grid, .value-pill,
.hero-watermark { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card { border-bottom: 1px solid var(--border); }
  .step-card:nth-child(2n) { border-right: none; }
  .step-card:nth-last-child(-n+2) { border-bottom: none; }
  .schools-grid { grid-template-columns: 1fr; gap: 32px; }
  .apply-grid { grid-template-columns: 1fr; gap: 32px; }
  .apply-cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-card:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-item { border-right: none; }
  .faq-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .faq-item:last-child { border-bottom: none; }
  .process-step { grid-template-columns: 60px 1fr; gap: 20px; }
  .donate-grid { grid-template-columns: 1fr; }
  .donate-panel { position: static; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .container { padding: 0 20px; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1px solid var(--border); }
  .step-card:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { border-right: none; }
  .modal-org { padding: 18px 20px 0; }
  #modal-step-1, #modal-step-2, #modal-step-3 { padding: 14px 20px 22px; }
  .modal-tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal-amounts { grid-template-columns: 1fr 1fr; }
  .process-step { grid-template-columns: 1fr; gap: 8px; }
  .process-step-num { font-size: 30px; }
  .page-banner { padding: 80px 0 52px; margin-top: 80px; }
  #hero { padding: 64px 0 56px; margin-top: 80px; }
  .footer-inner { padding: 0 20px; }
}
