/* =========================================================
   Ummah Islamic Foundation — Shared Styles
   Mobile-first. Brick & sand, Fraunces headings, Inter body.
   Centered compositions; the arch from the logo frames two photos.
   ========================================================= */

:root {
  --sand: #f4efe7;
  --sand-2: #ebe3d6;
  --surface: #fbf8f3;
  --line: #ddd2c2;
  --ink: #231f1c;
  --ink-muted: #6a615a;
  --brick: #8c3b26;
  --brick-dark: #6f2e1d;
  --charcoal: #2a2321;
  --ochre: #b0894a;
  --on-dark: #f3ece2;
  --on-dark-muted: #c9bfb3;
  --line-dark: rgba(243, 236, 226, 0.2);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 5vw, 2.25rem);
  --fs-3xl: clamp(1.875rem, 6vw, 2.875rem);
  --fs-4xl: clamp(2.25rem, 9vw, 4rem);

  --maxw: 1180px;
  --gutter: 20px;
  --radius: 3px;
  --ease: 180ms ease;
  --bar-h: 72px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  /* room for the mobile action bar */
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-lg); line-height: 1.25; }

p { margin: 0 0 1em; max-width: 65ch; }
strong { font-weight: 600; }

a { color: var(--brick); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(140, 59, 38, 0.35); transition: color var(--ease), text-decoration-color var(--ease); }
a:hover { color: var(--brick-dark); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.section--dark :focus-visible,
.section--brick :focus-visible,
.top-bar :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-dark); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: var(--sand); padding: 12px 16px; }
.skip-link:focus { top: 12px; }

.hide-sm { display: none; }
.only-sm { display: block; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--sand-2); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--brick { background: var(--brick); color: var(--on-dark); }
.section--dark h2, .section--dark h3,
.section--brick h2, .section--brick h3 { color: var(--on-dark); }
.section--dark p, .section--brick p { color: var(--on-dark-muted); }
.section--brick p { color: var(--on-dark); }
.section--dark a, .section--brick a { color: var(--on-dark); text-decoration-color: var(--line-dark); }
.section--dark a:hover, .section--brick a:hover { color: #fff; text-decoration-color: currentColor; }

.label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 14px;
}
.section--dark .label { color: var(--ochre); }
.section--brick .label { color: var(--on-dark-muted); }

.center { text-align: center; }
.center p, p.center { margin-left: auto; margin-right: auto; }
.intro { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.intro p { color: var(--ink-muted); margin-left: auto; margin-right: auto; }
.section--dark .intro p { color: var(--on-dark-muted); }

.lead { font-size: var(--fs-md); }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-sm); }
.italic { font-family: var(--font-head); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 500; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn--primary { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn--primary:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #fff; }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--sand); }
.btn--light { background: var(--sand); border-color: var(--sand); color: var(--brick-dark); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--brick-dark); }
.btn--ghost-light { background: transparent; border-color: var(--on-dark-muted); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); color: #fff; background: transparent; }
/* buttons keep their own colors inside dark/brick bands */
.section--dark .btn--light, .section--brick .btn--light { color: var(--brick-dark); }
.section--dark .btn--ghost-light, .section--brick .btn--ghost-light { color: var(--on-dark); }
.section--dark .btn--primary, .section--brick .btn--primary { color: #fff; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: var(--fs-sm); white-space: nowrap; }

/* Mobile: stacked full-width buttons */
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.btn-row .btn { width: 100%; }
.center .btn-row, .btn-row--center { align-items: stretch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px;
  font-weight: 500; color: var(--brick);
  text-decoration: none;
  transition: gap var(--ease), color var(--ease);
}
.link-arrow::after { content: "\2192"; }
.link-arrow:hover { gap: 11px; color: var(--brick-dark); }
.section--dark .link-arrow, .section--brick .link-arrow { color: var(--on-dark); }

/* ---------- Top banner: scrolls away, the sticky header stays ---------- */
.top-bar { background: var(--brick-dark); color: var(--on-dark); font-size: var(--fs-xs); line-height: 1.5; }
.top-bar__inner { display: flex; justify-content: center; align-items: center; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.top-bar__contact { display: none; }
.top-bar__contact a { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; color: inherit; text-decoration: none; white-space: nowrap; }
.top-bar__contact a:hover { color: #fff; }
.top-bar__status { margin: 0; max-width: none; text-align: center; font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--sand); border-bottom: 1px solid var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 22px; height: 26px; flex-shrink: 0; color: var(--brick); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-top: 3px; }

.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform var(--ease), opacity var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__links {
  display: none;
  position: absolute; top: 64px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  list-style: none; margin: 0; padding: 0 var(--gutter) 8px;
  background: var(--sand); border-bottom: 1px solid var(--line);
}
.nav__links.open { display: block; }
.nav__links li + li { border-top: 1px solid var(--line); }
.nav__links a {
  display: flex; align-items: center; min-height: 52px;
  font-size: var(--fs-md); font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav__links a[aria-current="page"] { color: var(--brick); }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  transform: translateY(100%); opacity: 0; visibility: hidden;
  transition: transform var(--ease), opacity var(--ease), visibility var(--ease);
}
.action-bar.is-visible { transform: none; opacity: 1; visibility: visible; }
.action-bar .btn { width: 100%; }

/* ---------- Home hero ---------- */
.hero { padding: 40px 0 56px; text-align: center; }
.hero h1 { margin-bottom: 12px; }
.hero__tag { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: var(--fs-lg); color: var(--brick); margin: 0 auto 16px; }
.hero__lead { color: var(--ink-muted); margin: 0 auto; }
.hero .btn-row { margin-top: 24px; }

.hero__frame { display: grid; gap: 28px; margin-top: 44px; }
.arch { margin: 0 auto; width: 100%; max-width: 300px; }
.arch img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 2px 2px; }
.arch--hero img { object-position: 50% 55%; }

.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); text-align: left; }
.facts > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.facts > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--font-head); font-size: var(--fs-base); line-height: 1.35; }
.facts dd a { color: var(--ink); }
.hero__frame .arch { order: -1; }
.hero__frame .facts--right { border-top: 0; margin-top: -28px; }

/* Compact campaign summary (phones) */
.mini-ledger { margin-top: 28px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; }
.mini-ledger__figures { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mini-ledger__figures strong { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xl); color: var(--ink); }
.mini-ledger__figures span { font-size: var(--fs-sm); color: var(--ink-muted); }
.mini-ledger .btn { width: 100%; margin-top: 16px; }

/* ---------- Inner page head ---------- */
.page-head { padding: 40px 0 44px; text-align: center; border-bottom: 1px solid var(--line); }
.page-head__mark { width: 22px; height: 26px; color: var(--brick); margin: 0 auto 16px; }
.page-head h1 { font-size: clamp(2rem, 8vw, 3.5rem); max-width: 18ch; margin-left: auto; margin-right: auto; }
.page-head p { color: var(--ink-muted); margin: 0 auto; }
.page-head .btn-row { margin-top: 24px; }

/* ---------- Welcome ---------- */
.basmala { font-family: var(--font-arabic); direction: rtl; font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.8; color: var(--brick); text-align: center; margin: 0 auto 4px; max-width: none; }
.basmala-en { text-align: center; color: var(--ink-muted); font-size: var(--fs-sm); margin: 0 auto 36px; }

/* ---------- Video ---------- */
.video-split { display: grid; gap: 24px; }
.video-split__media { max-width: 300px; width: 100%; margin: 0 auto; }
.video-split__media video { display: block; width: 100%; height: auto; background: #000; border-radius: 2px; }
.video-split__head h2 { margin-bottom: 0; }
.video-wide { display: grid; gap: 24px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line-dark); }
.video-wide__media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 2px; }

/* ---------- Inside the property ---------- */
.tour { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 10px; max-width: 1040px; margin: 0 auto; }
.tour figure { margin: 0; min-width: 0; }
.tour__video, .tour__video + .tour__third { grid-column: 1 / -1; }
.tour video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 2px; }
.tour img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.tour img.tour__img--low { object-position: 50% 72%; }
.tour figcaption { padding-top: 6px; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink-muted); }

/* ---------- Pillars (hairline grid) ---------- */
.pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.pillars li { background: var(--sand); padding: 24px 20px; text-align: center; }
.section--alt .pillars li { background: var(--sand-2); }
.pillars__ar { display: block; font-family: var(--font-arabic); font-size: 1.75rem; line-height: 1.4; color: var(--brick); margin-bottom: 6px; }
.pillars h3 { margin-bottom: 6px; }
.pillars p { margin: 0 auto; color: var(--ink-muted); font-size: 0.9375rem; max-width: 34ch; }

/* ---------- Table rows (programs, ways) ---------- */
.rows { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; border-bottom: 1px solid var(--line); }
.rows li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.rows h3 { margin: 0; font-size: var(--fs-lg); }
.rows p { margin: 0; color: var(--ink-muted); }
.rows cite { font-style: italic; }
.rows-footer { text-align: center; margin-top: 28px; }

.ruled-cols { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ruled-cols li { padding: 14px 0; border-top: 1px solid var(--line); }

/* ---------- Verses ---------- */
.verse { max-width: 760px; margin: 0 auto; text-align: center; }
.verse + .verse { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.verse__ar { font-family: var(--font-arabic); direction: rtl; font-size: clamp(1.5rem, 5.4vw, 2.125rem); line-height: 2; margin: 0 auto 16px; max-width: none; }
.section--dark .verse__ar { color: var(--on-dark); }
.verse__tr { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: var(--fs-lg); line-height: 1.5; margin: 0 auto; }
.section--dark .verse__tr { color: var(--on-dark); }
.verse__cite { display: block; margin-top: 18px; font-size: var(--fs-xs); font-style: normal; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); }
.verse__cite::before { content: ""; display: block; width: 32px; height: 1px; background: var(--ochre); margin: 0 auto 14px; }
.verse-note { max-width: 600px; margin: 40px auto 0; text-align: center; }

.pullquote { margin: 24px 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--brick); }
.pullquote__ar { font-family: var(--font-arabic); direction: rtl; text-align: right; font-size: 1.5rem; line-height: 1.9; color: var(--brick); margin: 0 0 6px; max-width: none; }
.pullquote__tr { font-family: var(--font-head); font-style: italic; font-size: var(--fs-lg); line-height: 1.45; margin: 0 0 6px; }
.pullquote cite { font-size: var(--fs-sm); font-style: normal; color: var(--ink-muted); }

/* ---------- Bleed split ---------- */
.bleed { background: var(--sand-2); }
.bleed__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; }
.bleed__media--low img { object-position: 50% 92%; }
.bleed__body { padding: 44px var(--gutter) 56px; }
.bleed figcaption { padding: 10px var(--gutter) 0; font-size: var(--fs-sm); color: var(--ink-muted); }

/* ---------- Campaign ledger ---------- */
.ledger { max-width: 560px; margin: 32px auto 0; text-align: left; }
.ledger dl { margin: 0; }
.ledger__row { display: flex; align-items: baseline; padding: 12px 0; }
.ledger__row dt { flex: 1; display: flex; align-items: baseline; color: var(--ink-muted); }
.ledger__row dt::after { content: ""; flex: 1; margin: 0 10px; border-bottom: 1px dotted rgba(106, 97, 90, 0.6); transform: translateY(-4px); }
.ledger__row dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xl); }
.ledger__row--total dd { color: var(--brick); }
.bar { height: 4px; background: var(--line); margin: 18px 0 10px; }
.bar__fill { height: 100%; background: var(--brick); }
.ledger__note { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }

/* ---------- Share ---------- */
.share-fallback { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: var(--fs-sm); }
.share-fallback[hidden] { display: none; }
.share-fallback a, .share-fallback button {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 var(--fs-sm) var(--font-body); color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.share-status { display: block; width: 100%; text-align: center; min-height: 1.2em; color: inherit; opacity: 0.8; }

/* ---------- Notice ---------- */
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--brick); padding: 18px 20px; font-size: 0.9375rem; max-width: none; }
.notice p { margin: 8px 0 0; }

/* ---------- Foundation details ---------- */
.trust-note { font-size: var(--fs-sm); color: var(--ink-muted); }
.hero .trust-note, .page-head .trust-note { margin: 16px auto 0; }
.zelle .trust-note { margin: 0 auto 20px; }
.org-details { margin: 24px 0; border-bottom: 1px solid var(--line); text-align: left; }
.org-details > div { padding: 12px 0; border-top: 1px solid var(--line); }
.org-details dt { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); margin-bottom: 4px; }
.org-details dd { margin: 0; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 32px; }
.arch--portrait { max-width: 280px; }
.arch--portrait img { object-position: 50% 20%; }
.founder__role { color: var(--ink-muted); margin-top: -6px; }
.founder__links a + a::before { content: "\00b7"; color: var(--ink-muted); margin: 0 10px; display: inline-block; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 56px; padding: 14px 0;
  font-family: var(--font-head); font-weight: 500; font-size: var(--fs-md); line-height: 1.35; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--brick); transition: transform var(--ease); }
.faq__icon::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; }
.faq__icon::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; }
.faq details[open] .faq__icon::after { transform: scaleY(0); }
.faq details p { color: var(--ink-muted); margin: -2px 0 22px; }

/* ---------- Contact ---------- */
.contact-cols { margin: 0; display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-cols > div { padding: 18px 0; text-align: center; }
.contact-cols > div + div { border-top: 1px solid var(--line); }
.contact-cols dt { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); margin-bottom: 6px; }
.contact-cols dd { margin: 0; font-family: var(--font-head); font-size: var(--fs-lg); line-height: 1.4; }
.contact-cols dd a { color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.contact-cols dd a[href^="mailto:"] { font-size: min(4.75vw, var(--fs-lg)); } /* keeps the long address on one line on phones */
.dua { max-width: 620px; margin: 48px auto 0; text-align: center; }
.dua::before, .dua::after { content: ""; display: block; width: 40px; height: 1px; background: var(--ochre); margin: 0 auto; }
.dua p { font-family: var(--font-head); font-style: italic; font-size: var(--fs-lg); line-height: 1.55; margin: 24px auto; }

/* ---------- Donate: Zelle ---------- */
.zelle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.zelle__qr { max-width: 240px; margin: 0 auto 8px; }
.zelle__qr img { width: 100%; border: 1px solid var(--line); border-radius: 2px; }
.zelle h2 { font-size: var(--fs-2xl); }
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; text-align: left; display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 500; color: var(--brick); line-height: 1.1; }
.zelle .small { margin: 16px auto 0; color: var(--ink-muted); }

/* ---------- Donate: tiers ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.tier { display: block; background: var(--sand); padding: 20px 16px; text-align: center; text-decoration: none; color: var(--ink); transition: background-color var(--ease); }
.tier:hover { background: var(--surface); color: var(--ink); }
.tier__amount { display: block; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-2xl); color: var(--ink); line-height: 1.1; }
.tier__desc { display: block; font-size: var(--fs-sm); color: var(--ink-muted); margin: 4px 0 10px; }
.tier__go { font-size: var(--fs-sm); font-weight: 500; color: var(--brick); border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.tier:hover .tier__go { border-color: var(--brick); }

/* ---------- Donate: form ---------- */
.form-panel { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; }
.form-panel h2 { font-size: var(--fs-2xl); }
.form-panel > p { color: var(--ink-muted); margin-bottom: 24px; }
.fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.fieldset legend, .field label { display: block; font-weight: 500; font-size: var(--fs-sm); margin-bottom: 8px; padding: 0; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.amount-opt {
  min-height: 48px; padding: 0 10px;
  font: 500 var(--fs-base) var(--font-body); color: var(--ink);
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.amount-opt:hover { border-color: var(--brick); }
.amount-opt[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); color: #fff; }
.field { margin-bottom: 18px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--ease);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brick); outline-offset: 1px; border-color: var(--brick); }
.field-row { display: grid; gap: 0; }
.form-panel .btn[type="submit"] { width: 100%; }
.form-note { font-size: var(--fs-sm); color: var(--ink-muted); margin: 16px 0 0; }
#form-message { margin-top: 20px; }

/* ---------- Donate: comparison ---------- */
.compare { display: grid; gap: 32px; margin-bottom: 32px; }
.compare h3 { font-size: var(--fs-xl); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--brick); }
.compare > div + div h3 { border-color: var(--charcoal); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { position: relative; padding-left: 24px; margin-bottom: 12px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1.5px; background: var(--brick); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); padding: 56px 0 28px; text-align: center; font-size: 0.9375rem; }
.site-footer a { color: var(--on-dark); text-decoration-color: var(--line-dark); }
.site-footer a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.footer-brand:hover { color: #fff; }
.footer-brand .brand__mark { width: 26px; height: 30px; color: var(--ochre); }
.footer-brand .brand__name { font-size: 1.375rem; }
.footer-motto { font-family: var(--font-head); font-style: italic; color: var(--on-dark); margin: 14px auto 28px; max-width: 32ch; }
.footer-nav, .footer-contact { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-contact { flex-direction: column; gap: 6px; margin-top: 18px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-legal { margin: 32px auto 0; max-width: 72ch; font-size: var(--fs-xs); line-height: 1.6; color: var(--on-dark); }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); display: grid; gap: 6px; }

/* =========================================================
   ≥ 640px
   ========================================================= */
/* The name wraps to three lines on the narrowest phones, so drop the subtitle to stay inside the 64px header. */
@media (max-width: 379px) {
  .site-header .brand__sub { display: none; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  body { font-size: 1.0625rem; }
  .brand__name { white-space: nowrap; }
  .hide-sm { display: inline; }
  .top-bar__inner { justify-content: space-between; }
  .top-bar__contact { display: flex; flex-shrink: 0; gap: 24px; }
  .top-bar__status { text-align: right; }
  .org-details > div { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; }
  .org-details dt { margin-bottom: 0; padding-top: 2px; }
  .section { padding: 80px 0; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
  .center .btn-row, .btn-row--center { justify-content: center; }
  .hero { padding-top: 64px; }
  .arch { max-width: 360px; }
  .tour { grid-template-columns: repeat(6, 1fr); gap: 20px 12px; }
  .tour__third, .tour__video + .tour__third { grid-column: span 2; }
  .tour__half { grid-column: span 3; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .rows li { grid-template-columns: 2fr 3fr; gap: 32px; }
  .rows h3 { padding-top: 2px; }
  .zelle, .form-panel { padding: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; border-bottom: 0; }
  .steps li { grid-template-columns: 1fr; gap: 8px; border-top: 2px solid var(--brick); }
  .tiers { grid-template-columns: repeat(4, 1fr); }
  .amount-grid { grid-template-columns: repeat(4, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-panel .btn[type="submit"] { width: auto; }
  .contact-cols { grid-template-columns: repeat(3, 1fr); }
  .contact-cols > div + div { border-top: 0; border-left: 1px solid var(--line); }
  .footer-contact { flex-direction: row; align-items: center; gap: 0 28px; }
  .footer-bottom { grid-auto-flow: column; justify-content: center; }
}

/* =========================================================
   ≥ 960px — desktop compositions; mobile action bar off
   ========================================================= */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .only-sm { display: none; }
  .section { padding: 104px 0; }

  /* Three-part centered header */
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "links brand actions"; height: 92px; }
  .brand { grid-area: brand; flex-direction: column; gap: 6px; text-align: center; }
  .brand__text { align-items: center; }
  .brand__name { font-size: 1.25rem; }
  .nav__actions { grid-area: actions; justify-self: end; }
  .nav__toggle { display: none; }
  .nav__links {
    grid-area: links; position: static; display: flex; gap: 30px;
    padding: 0; background: none; border: 0;
  }
  .nav__links li + li { border: 0; }
  .nav__links a { min-height: 44px; font-size: 0.9375rem; border-bottom: 1px solid transparent; transition: border-color var(--ease); }
  .nav__links a:hover { border-color: var(--line); }
  .nav__links a[aria-current="page"] { color: var(--ink); border-color: var(--brick); }

  .hero { padding: 80px 0 104px; }
  .hero__frame { grid-template-columns: 1fr 400px 1fr; align-items: end; gap: 48px; margin-top: 64px; }
  .arch { max-width: none; grid-column: 2; grid-row: 1; }
  .hero__frame .facts { grid-template-columns: 1fr; grid-row: 1; border-top: 1px solid var(--line); }
  .hero__frame .facts--right { margin-top: 0; border-top: 1px solid var(--line); }
  .hero__frame .facts > div,
  .hero__frame .facts > div + div { padding: 18px 0; border-left: 0; }
  .facts--left { grid-column: 1; text-align: right; }
  .facts--right { grid-column: 3; }
  .facts dd { font-size: var(--fs-lg); }

  .video-split { grid-template-columns: 300px 1fr; grid-template-areas: "media head" "media body"; column-gap: 72px; row-gap: 0; align-items: end; max-width: 980px; margin: 0 auto; }
  .video-split__media { grid-area: media; margin: 0; }
  .video-split__head { grid-area: head; }
  .video-split__body { grid-area: body; align-self: start; padding-top: 16px; }
  .video-wide { grid-template-columns: 3fr 2fr; column-gap: 56px; align-items: center; max-width: 980px; margin: 72px auto 0; padding-top: 72px; }

  .pillars { grid-template-columns: repeat(5, 1fr); }
  .pillars--6 { grid-template-columns: repeat(3, 1fr); }
  .pillars li { padding: 32px 22px; }

  .bleed { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .bleed__media { position: relative; min-height: 600px; margin: 0; }
  .bleed__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .bleed__media figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: var(--sand-2); }
  .bleed__body { padding: 96px 64px; max-width: 620px; align-self: center; }
  .bleed--right .bleed__media { order: 2; }
  .bleed--right .bleed__body { justify-self: end; }

  .founder { grid-template-columns: 340px 1fr; gap: 72px; align-items: center; max-width: 1040px; margin: 0 auto; }
  .arch--portrait { max-width: none; }

  .compare { grid-template-columns: 1fr 1fr; gap: 0; }
  .compare > div { padding-right: 48px; }
  .compare > div + div { padding: 0 0 0 48px; border-left: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
