/* ==========================================================================
   La Casa TLV — shared stylesheet (used by ES, EN and HE pages alike)
   ==========================================================================
   Design language: "a house with the lights on, not a charity brochure."
   Deep warm navy + warm off-white, with terracotta reserved ONLY for
   donate buttons, so the call to action is always the brightest thing
   on screen.
   ========================================================================== */

:root {
  /* -- Color: warm navy + cream base -------------------------------------- */
  --navy-950: #0f1b2d;
  --navy-900: #16253d;
  --navy-800: #1d3050;
  --navy-700: #2a4269;
  --navy-100: #dbe3ee;
  --cream-050: #fdf8ef;
  --cream-100: #f7ecd9;
  --cream-200: #efe0c4;
  --ink: #22201b;
  --ink-soft: #4a463d;

  /* -- The ONE warm accent, reserved for donate CTAs only ------------------ */
  --terracotta-500: #a84f2c;
  --terracotta-600: #8c4021;
  --terracotta-100: #f7ded0;

  /* -- Semantic tokens ------------------------------------------------------ */
  --color-bg: var(--cream-050);
  --color-bg-alt: var(--cream-100);
  --color-surface: #ffffff;
  --color-text: var(--ink);
  --color-text-soft: var(--ink-soft);
  --color-text-on-dark: var(--cream-050);
  --color-text-on-dark-soft: var(--navy-100);
  --color-brand-dark: var(--navy-900);
  --color-brand-dark-deep: var(--navy-950);
  --color-border: rgba(34, 32, 27, 0.1);
  --color-border-on-dark: rgba(255, 255, 255, 0.14);
  --color-donate: var(--terracotta-500);
  --color-donate-hover: var(--terracotta-600);
  --color-accent-text: var(--terracotta-600);
  --focus-ring: #6fa8d6;

  --shadow-soft: 0 12px 30px -12px rgba(15, 27, 45, 0.25);
  --shadow-card: 0 2px 10px rgba(15, 27, 45, 0.06), 0 14px 34px -18px rgba(15, 27, 45, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container-max: 1180px;
  --space-section: clamp(3.5rem, 7vw, 6.5rem);

  --font-body:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans Hebrew',
    sans-serif;

  --header-h: 72px;
  --mobile-bar-h: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--navy-950);
    --color-bg-alt: var(--navy-900);
    --color-surface: #1a2a45;
    --color-text: var(--cream-050);
    --color-text-soft: var(--navy-100);
    --color-border: rgba(255, 255, 255, 0.12);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.5);
    --color-accent-text: var(--terracotta-100);
    color-scheme: dark;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-text);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 1rem;
  background: var(--color-brand-dark);
  color: var(--color-text-on-dark);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}

.skip-link:focus {
  inset-inline-start: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: var(--space-section);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-donate);
  flex-shrink: 0;
}

.eyebrow--on-dark {
  color: var(--terracotta-100);
}

h2.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.section-intro {
  margin-top: 0.9rem;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 38rem;
}

.section-head--center .section-intro {
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -- Buttons ----------------------------------------------------------------
   Only .btn-donate is ever terracotta. Every other button on the site uses
   the navy or ghost styles below, on purpose. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

.btn-donate {
  background: var(--color-donate);
  color: #fff8f2;
  box-shadow: 0 10px 24px -8px rgba(168, 79, 44, 0.55);
}

.btn-donate:hover {
  background: var(--color-donate-hover);
  box-shadow: 0 12px 28px -6px rgba(168, 79, 44, 0.6);
}

.btn-ghost-on-photo {
  background: rgba(15, 27, 45, 0.28);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.btn-ghost-on-photo:hover {
  background: rgba(15, 27, 45, 0.42);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-brand-dark);
  border-color: currentColor;
}

.btn-outline-dark:hover {
  background: rgba(22, 37, 61, 0.06);
}

.btn-solid-navy {
  background: var(--color-brand-dark);
  color: var(--color-text-on-dark);
}

.btn-solid-navy:hover {
  background: var(--navy-800);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
}

/* -- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.wordmark__mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-dark);
  color: var(--cream-050);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wordmark__mark svg {
  width: 18px;
  height: 18px;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.primary-nav a {
  text-decoration: none;
  color: var(--color-text-soft);
}

.primary-nav a:hover {
  color: var(--color-text);
}

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
  border: 1px solid var(--color-border);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}

.lang-switch a[aria-current='true'] {
  background: var(--color-brand-dark);
  color: var(--color-text-on-dark);
}

.header-actions .btn-donate {
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
}

.header-donate-desktop {
  display: none;
}

@media (min-width: 640px) {
  .header-donate-desktop {
    display: inline-flex;
  }
}

/* -- Mobile persistent donate bar ---------------------------------------- */
.mobile-donate-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-brand-dark) 96%, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.mobile-donate-bar.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-donate-bar {
    transition: none;
  }
}

.mobile-donate-bar__text {
  color: var(--color-text-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.mobile-donate-bar__text strong {
  display: block;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .mobile-donate-bar {
    display: none;
  }
}

body {
  padding-bottom: var(--mobile-bar-h);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

/* -- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 900px) {
  .hero__media {
    min-height: 88vh;
    align-items: center;
  }
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 27, 45, 0.35) 0%,
    rgba(15, 27, 45, 0.55) 55%,
    rgba(15, 27, 45, 0.88) 100%
  );
}

@media (min-width: 900px) {
  .hero__scrim {
    background: linear-gradient(
      100deg,
      rgba(15, 27, 45, 0.92) 0%,
      rgba(15, 27, 45, 0.72) 38%,
      rgba(15, 27, 45, 0.28) 68%,
      rgba(15, 27, 45, 0.12) 100%
    );
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 3rem 2.5rem;
}

@media (min-width: 900px) {
  .hero__content {
    padding-block: 0;
    max-width: 42rem;
  }
}

.hero__headline {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: #fff;
  text-wrap: balance;
}

.hero__subhead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
}

.hero__actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__actions .btn-donate {
  padding: 1rem 2.1rem;
  font-size: 1.05rem;
}

.hero__photo-credit {
  position: absolute;
  z-index: 2;
  bottom: 0.6rem;
  inset-inline-end: 0.9rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
}

/* -- Reveal-on-scroll ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -- What we do cards ------------------------------------------------------ */
.card-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.program-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-card:nth-child(2n) {
  background: var(--color-bg-alt);
}

.program-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--cream-100);
  display: grid;
  place-items: center;
}

.program-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.program-card h3 {
  font-size: 1.2rem;
}

.program-card p {
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

.section-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* -- Impact numbers strip --------------------------------------------------- */
.impact-strip {
  background: var(--color-brand-dark);
  color: var(--color-text-on-dark);
  position: relative;
}

.impact-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.05), transparent 45%);
  pointer-events: none;
}

.impact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 800px) {
  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.impact-stat {
  text-align: center;
  padding-inline: 0.4rem;
}

.impact-stat__value {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: var(--terracotta-100);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.impact-stat__label {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-text-on-dark-soft);
}

.impact-location {
  position: relative;
  margin-top: 2.8rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--color-text-on-dark-soft);
  max-width: 40rem;
  margin-inline: auto;
}

/* -- Who comes: photo mosaic + testimonials --------------------------------- */
.who-intro {
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--color-text-soft);
}

.photo-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  opacity: 0.75;
}

.photo-mosaic {
  margin-top: 2.5rem;
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 620px) {
  .photo-mosaic {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.photo-mosaic__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.photo-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-mosaic__item--tall {
  grid-row: span 2;
}

.photo-mosaic__item::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.testimonials {
  margin-top: 3.2rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__quote {
  font-size: 1.02rem;
  color: var(--color-text);
  position: relative;
}

.testimonial__mark {
  font-size: 0.98rem;
  color: var(--color-text-soft);
}

.testimonial__mark strong {
  color: var(--color-text);
}

/* -- Donation impact cards --------------------------------------------------- */
.amount-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amount-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  padding: 1.9rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: var(--color-text);
}

.amount-card:hover {
  border-color: var(--color-donate);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .amount-card:hover {
    transform: none;
  }
}

.amount-card__amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-accent-text);
}

.amount-card__desc {
  color: var(--color-text-soft);
  font-size: 0.98rem;
  flex: 1;
}

.amount-card__cta {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-donate);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-note {
  margin-top: 2.2rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  max-width: 46rem;
  border-inline-start: 3px solid var(--color-border);
  padding-inline-start: 1rem;
}

.amount-card--disabled {
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.72;
}

.amount-card--disabled:hover {
  border-color: var(--color-border);
  transform: none;
}

.amount-card--disabled .amount-card__cta {
  color: var(--color-text-soft);
}

.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Kapparah page ------------------------------------------------------------
   Shares .section / .section-head / .amount-* / .legal-note / .btn-donate
   with the rest of the site. These rules are specific to the /kapparah/
   page sections (src/components/Kapparah*.astro). */
.kapparah-about {
  max-width: 46rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.kapparah-about h2 {
  font-size: 1.3rem;
}

.kapparah-about p {
  color: var(--color-text-soft);
}

.kapparah-steps {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .kapparah-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kapparah-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kapparah-step__number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--cream-100);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
}

.kapparah-step h3 {
  font-size: 1.15rem;
}

.kapparah-step p {
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

.kapparah-prayer {
  max-width: 46rem;
  margin-inline: auto;
}

.kapparah-prayer__instruction {
  text-align: center;
  color: var(--color-text-soft);
  margin-bottom: 1.4rem;
}

/* Prayer view switcher. The tab strip is hidden until main.js enhances the
   group, so with JS off all three views stay stacked and readable. */
.prayer-views__tabs {
  display: none;
}

.prayer-views.is-enhanced .prayer-views__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.prayer-views__tab {
  border: 0;
  background: none;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.prayer-views__tab[aria-selected='true'] {
  background: var(--color-brand-dark);
  color: var(--color-text-on-dark);
}

/* Keep the three labels on one row on narrow phones — the Spanish ones
   ("Transliteración") are long enough to wrap otherwise. */
@media (max-width: 480px) {
  .prayer-views__tab {
    font-size: 0.76rem;
    padding: 0.45rem 0.65rem;
  }
}

.prayer-views.is-enhanced .prayer-views__panel-title {
  display: none;
}

.prayer-views__panel-title {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: var(--color-text-soft);
}

.prayer-views__panel + .prayer-views__panel {
  margin-top: 2rem;
}

.prayer-part {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem;
}

.prayer-part + .prayer-part {
  margin-top: 1.1rem;
}

.prayer-part__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 0.9rem;
}

.prayer-part__lines p + p {
  margin-top: 0.5rem;
}

.prayer-part__lines--hebrew p {
  font-size: 1.2rem;
  line-height: 1.9;
}

.prayer-part__lines--transliteration p {
  font-style: italic;
  color: var(--color-text-soft);
}

.prayer-part__lines--translation p {
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

.kapparah-prayer .legal-note {
  border-inline-start: 3px solid var(--color-border);
  padding-inline-start: 1rem;
}

.kapparah-prayer .section-cta {
  margin-top: 2rem;
}

/* -- Trust block -------------------------------------------------------------- */
.trust-line {
  max-width: 42rem;
  color: var(--color-text-soft);
  font-size: 1.02rem;
}

.logo-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-row__slot {
  flex: 1 1 140px;
  max-width: 200px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--color-border);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  text-align: center;
  color: var(--color-text-soft);
  padding: 0.4rem;
}

/* -- Newsletter ----------------------------------------------------------------- */
.newsletter-section {
  background: var(--color-brand-dark);
  color: var(--color-text-on-dark);
}

.newsletter-card {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .newsletter-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

.newsletter-card h2 {
  color: var(--color-text-on-dark);
}

.newsletter-card .section-intro {
  color: var(--color-text-on-dark-soft);
}

.newsletter-embed {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.newsletter-embed__note {
  font-size: 0.78rem;
  color: var(--color-text-on-dark-soft);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (min-width: 480px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-on-dark);
  font-size: 1rem;
}

.newsletter-form input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-privacy {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--color-text-on-dark-soft);
}

/* -- Footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--color-brand-dark-deep);
  color: var(--color-text-on-dark-soft);
  padding-block: 3.5rem 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-on-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-brand .wordmark__mark {
  background: var(--terracotta-500);
}

.footer-col h3 {
  color: var(--color-text-on-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--color-text-on-dark-soft);
}

.footer-col a:hover {
  color: var(--color-text-on-dark);
}

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-border-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-bottom a.footer-donate-link {
  color: var(--terracotta-100);
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom a.footer-donate-link:hover {
  text-decoration: underline;
}

/* -- 404 page ------------------------------------------------------------------ */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.not-found__block + .not-found__block {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--color-border);
}

/* -- RTL tweaks -------------------------------------------------------------- */
[dir='rtl'] .hero__photo-credit {
  text-align: end;
}

/* The desktop hero gradient is a physical diagonal (CSS gradients don't
   respond to `dir` automatically), so it needs an explicit mirror to keep
   sitting behind the text side once the text flips to the right in RTL. */
@media (min-width: 900px) {
  [dir='rtl'] .hero__scrim {
    background: linear-gradient(
      260deg,
      rgba(15, 27, 45, 0.92) 0%,
      rgba(15, 27, 45, 0.72) 38%,
      rgba(15, 27, 45, 0.28) 68%,
      rgba(15, 27, 45, 0.12) 100%
    );
  }
}
