/* =========================================================
   بشارة اليمن — Bashara Yemen
   Mobile-first · RTL · Warm minimal palette
   70% warm white · 15% charcoal · 10% red · 5% wood/gold
   =========================================================

   SELF-HOSTED FONTS — SECURITY CRITICAL
   -------------------------------------
   These faces are served from our own origin, never from
   fonts.googleapis.com / fonts.gstatic.com.

   A third-party font request would hand Google (and any
   network observer between the reader and Google) the
   reader's IP address, User-Agent and — via the Referer —
   the fact that they were reading a Christian site. For a
   reader inside Yemen that is not a privacy nuisance, it is
   a safety risk. It also forces the Content-Security-Policy
   to open up `font-src`/`style-src` to an external origin.

   Do NOT reintroduce an external font, CDN, icon set,
   analytics tag or embed. tools/check-no-third-party.mjs
   fails the build if one appears.

   Regenerate with: npm run fonts   (see tools/fetch-fonts.mjs)
   ========================================================= */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cairo-var-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cairo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cairo-var-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cairo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/cairo-var-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/cairo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --charcoal: #26221e;
  --ink: #4a423a;
  --red: #a8202a;
  --red-dark: #8c1a23;
  --offwhite: #faf6f0;
  --warmwhite: #fffdf9;
  --tint: #f3ecdf;
  --wood: #6e4e34;
  --gold: #c09454;
  --shadow: 0 6px 24px rgba(38, 34, 30, 0.08);
  --radius: 18px;
  /* Cairo = display/headings (black 900 for the wordmark & hero);
     IBM Plex Sans Arabic = body/UI. */
  --font-head: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* `hidden` must win over any display a class sets (.play is a grid, cards are
   flex): the prayer form, the thanks card and the no-JS play button rely on it.
   The artifact preview supplied this rule from its own wrapper; the real site
   needs it here. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--charcoal);
  /* Arabic body copy: never below 17px, generous leading */
  font-size: 1.0625rem;
  line-height: 1.85;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.4; }

h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.3125rem; font-weight: 600; }

.skip {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 100;
  background: var(--charcoal);
  color: var(--warmwhite);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s;
}
.skip:focus { top: 0; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }

/* ===== Buttons — large, easy tap targets ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(168, 32, 42, 0.28); }
.btn-red:hover { background: var(--red-dark); }

.btn-dark { background: var(--charcoal); color: var(--warmwhite); }
.btn-dark:hover { background: #3a342c; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.2); }

.btn-outline-dark { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline-dark:hover { background: var(--charcoal); color: var(--warmwhite); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 34, 30, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

/* Two-tone Cairo-black wordmark */
.wordmark {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1.15;
  white-space: nowrap;
}
.wordmark-a { color: var(--red); }
.wordmark-b { color: var(--charcoal); }

.nav-links {
  display: none;
  list-style: none;
  gap: 1.4rem;
  font-weight: 500;
}
.nav-links a { padding: 0.4rem 0.2rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }

.nav-cta { display: none; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu panel */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset-inline: 0;
  top: 68px;
  background: var(--warmwhite);
  padding: 1.2rem 1.5rem 1.6rem;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(38, 34, 30, 0.08);
  box-shadow: 0 18px 30px rgba(38, 34, 30, 0.12);
}
.nav-links.open a { display: block; padding: 0.7rem 0.3rem; font-size: 1.08rem; border-bottom: 1px solid rgba(38, 34, 30, 0.05); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Both responsive artworks put the cross at the centre of the composition. */
  object-position: 50% 50%;
}

/* The artwork carries the wordmark, tagline and map, so the matching HTML
   headline is kept for screen readers and search engines but not painted. */
.hero-title,
.hero-tagline {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(24, 20, 16, 0.88) 0%,
    rgba(24, 20, 16, 0.66) 22%,
    rgba(24, 20, 16, 0.34) 44%,
    rgba(24, 20, 16, 0.06) 66%,
    rgba(24, 20, 16, 0) 80%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding-bottom: 4.2rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 4vw, 1.5rem);
  color: #f3dfb9;
  font-weight: 700;
  margin-top: 0.2rem;
}

.hero-text {
  max-width: 560px;
  margin: 1rem auto 1.6rem;
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  /* The copy can land over the sunlit Bible pages, so carry its own contrast. */
  text-shadow: 0 1px 14px rgba(24, 20, 16, 0.75), 0 0 3px rgba(24, 20, 16, 0.45);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.hero-about {
  max-width: 720px;
  margin: 1.3rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.875rem, 2.6vw, 1rem);
  line-height: 1.75;
  text-shadow: 0 1px 14px rgba(24, 20, 16, 0.85), 0 0 3px rgba(24, 20, 16, 0.55);
}

.hero-about-title {
  margin-bottom: 0.25rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 700;
}

.hero-scroll {
  position: absolute;
  bottom: 0.7rem;
  inset-inline: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  z-index: 3;
  animation: floaty 2.2s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Sections ===== */
.section { padding: 4.2rem 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--ink); font-size: 1.1875rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--red);
  background: rgba(168, 32, 42, 0.08);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.eyebrow-gold { color: var(--gold); background: rgba(192, 148, 84, 0.14); }

.section-tint { background: var(--tint); }

.section-dark { background: var(--charcoal); color: var(--warmwhite); }
.section-dark .section-head p { color: rgba(255, 253, 249, 0.75); }

/* ===== Grids ===== */
.grid { display: grid; gap: 1.3rem; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }

/* ===== Cards — minimal, soft, airy ===== */
.card {
  background: var(--warmwhite);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(38, 34, 30, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(38, 34, 30, 0.12); }

.gospel-card { padding: 1.8rem 1.5rem; text-align: center; }
.gospel-card h3 { margin-bottom: 0.5rem; }
.gospel-card p { color: var(--ink); font-size: 0.98rem; }
.gospel-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: var(--red);
  background: rgba(168, 32, 42, 0.07);
  border-radius: 50%;
}

.mini-card { padding: 1.6rem 1.4rem; text-align: center; display: block; }
.mini-card p { color: var(--ink); font-size: 0.9375rem; margin: 0.4rem 0 0.8rem; }
.mini-icon { font-size: 1.9rem; display: block; margin-bottom: 0.7rem; }

/* ===== Jesus split section ===== */
.split { display: grid; gap: 2rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }
.split-body h2 { margin-bottom: 0.8rem; }
.split-body p { color: rgba(255, 253, 249, 0.82); margin-bottom: 1.6rem; max-width: 480px; }

/* ===== Bible banner ===== */
.bible-banner { margin: 0 auto 2rem; max-width: 900px; }
.bible-banner img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Testimony cards ===== */
.story-card { overflow: hidden; }
.story-img { aspect-ratio: 4 / 3; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.story-card:hover .story-img img { transform: scale(1.045); }
.story-body { padding: 1.3rem 1.4rem 1.6rem; }
.story-body p { color: var(--ink); font-size: 0.9375rem; margin: 0.35rem 0 0.5rem; }
.story-meta { display: block; font-size: 0.8125rem; color: var(--ink); opacity: 0.75; margin-bottom: 0.7rem; }

.link-more { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 0.95rem; }
.link-more:hover { color: var(--red-dark); }

.privacy-note {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(192, 148, 84, 0.1);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
}
.privacy-note.strong { background: rgba(168, 32, 42, 0.06); border: 1px solid rgba(168, 32, 42, 0.14); }

/* ===== Prayer section ===== */
.section-pray {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(192, 148, 84, 0.12), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(168, 32, 42, 0.05), transparent 50%),
    var(--warmwhite);
}

.pray-form {
  margin-top: 2rem;
  background: var(--warmwhite);
  border: 1px solid rgba(38, 34, 30, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.4rem;
}

.form-row { margin-bottom: 1.2rem; }
.form-row label, .form-row legend { display: block; font-weight: 700; font-family: var(--font-head); margin-bottom: 0.4rem; font-size: 0.98rem; }
.opt { color: var(--ink); font-weight: 400; font-size: 0.85rem; }
.req { color: var(--red); }

.form-row input[type="text"],
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(38, 34, 30, 0.15);
  background: var(--offwhite);
  color: var(--charcoal);
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--red); }

.hint { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--ink); opacity: 0.8; }
.error { display: block; margin-top: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--red); }

.radio-row { border: none; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.45rem; margin-inline-end: 1.6rem; font-weight: 500; font-family: var(--font-body); cursor: pointer; }
.radio-row input { accent-color: var(--red); width: 1.15rem; height: 1.15rem; }

.thanks-card {
  margin-top: 2rem;
  padding: 2.2rem 1.6rem;
  text-align: center;
}
.thanks-icon { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.thanks-card p { color: var(--ink); margin: 0.4rem 0 1.4rem; }

/* ===== Questions — accordion ===== */
.faq { display: grid; gap: 0.9rem; margin-bottom: 2.4rem; }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item[open] summary { color: var(--red); }
.faq-question { flex: 1; }
.faq-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(168, 32, 42, 0.22);
  border-radius: 999px;
  background: rgba(168, 32, 42, 0.07);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.faq-action-open { display: none; }
.faq-item[open] .faq-action-closed { display: none; }
.faq-item[open] .faq-action-open { display: inline-flex; }
.faq-item summary:hover .faq-action,
.faq-item summary:focus-visible .faq-action {
  background: var(--red);
  color: var(--warmwhite);
}
.faq-item > p {
  padding: 0 1.4rem 1.3rem;
  margin-inline-start: calc(44px + 1rem);
  color: var(--ink);
  font-size: 0.9375rem;
}
.q-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(168, 32, 42, 0.08);
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
}

@media (max-width: 520px) {
  .faq-item summary {
    gap: 0.65rem;
    padding: 1rem;
  }
  .q-mark { width: 38px; height: 38px; }
  .faq-action { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
}

/* ===== Videos ===== */
.video-card { display: block; }
.video-card h3 { margin-top: 1rem; font-size: 1.05rem; }
.video-badges {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  display: flex;
  gap: 0.4rem;
}
.badge {
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(20, 18, 15, 0.65);
  color: var(--warmwhite);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: rgba(168, 32, 42, 0.92);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  padding-inline-start: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}
.video-card:hover .play { transform: scale(1.1); }
/* A playable card: the video fills the thumb; the play button starts it, the
   badges let clicks through, and both disappear once it starts. */
.video-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; }
button.play { border: 0; cursor: pointer; font-family: inherit; }
.video-thumb video ~ .video-badges { pointer-events: none; }
.video-card.is-playing .play, .video-card.is-playing .video-badges { display: none; }
/* A single video, centred and shown at its own 16:9 shape rather than cropped. */
.video-solo { max-width: 760px; margin-inline: auto; }
.video-solo .video-thumb { aspect-ratio: 16 / 9; }

/* ===== Contact ===== */
.section-contact { background: var(--tint); }
.contact-text { color: var(--ink); max-width: 520px; margin: 0.6rem auto 1.8rem; }
.center-actions { align-items: center; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: rgba(255, 253, 249, 0.85); padding-top: 3.2rem; }

.footer-grid { display: grid; gap: 2rem; text-align: center; padding-bottom: 2.4rem; }

.wordmark-footer { font-size: 2.4rem; }
.wordmark-footer .wordmark-a { color: var(--offwhite); }
.wordmark-footer .wordmark-b {
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  text-decoration: none;
  text-shadow: none;
}
.footer-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.footer-tag i { height: 1px; width: 48px; background: var(--gold); opacity: 0.6; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }

.footer-social { display: flex; justify-content: center; gap: 0.9rem; }
.footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.08);
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--red); color: #fff; }

.footer-app { text-align: center; padding: 0 1.25rem 2.2rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 249, 0.1);
  padding: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 253, 249, 0.55);
}

/* ===== Scroll reveal — subtle, calm =====================================
   SAFETY-CRITICAL DEFAULT: .reveal elements are VISIBLE unless we know
   scripting is available.

   The reveal animation hides content with opacity:0 and relies on JS to
   add .visible. If JS never runs, every section below the hero stays
   invisible and the site is a blank page.

   That is not a hypothetical. Tor Browser's "Safest" security level
   disables JavaScript entirely, and that is exactly the setting we tell
   at-risk readers to use. The people taking the strongest precautions
   would be the only ones who cannot read the site.

   `@media (scripting: enabled)` fixes it without an inline script (which
   the CSP forbids) and without a flash of hidden content. It also fails
   safe on older browsers that do not know the feature: the whole block is
   ignored, so content renders visible and simply does not animate.
   ======================================================================= */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* Without scripting there is no encryption, so the prayer form must not be
   offered. A button that silently does nothing is worse than no button:
   a reader would assume the request was sent. The <noscript> block in
   index.html explains why, and points to the contact section instead. */
@media (scripting: none) {
  #prayToggle { display: none; }
}
.noscript-note {
  margin-block-start: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--warmwhite);
  color: var(--ink);
  font-size: 0.9375rem;
}
.quick-exit { text-decoration: none; }

/* =========================================================
   Tablet ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: row; justify-content: center; }
}

/* =========================================================
   Desktop ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .hamburger { display: none; }

  .split { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .split-media { max-width: 440px; justify-self: center; }

  .section { padding: 5.5rem 0; }
}

/* Wide screens: the panorama fits fully, so give the copy a little more room. */
@media (min-width: 960px) and (min-aspect-ratio: 7/5) {
  .hero-content { padding-bottom: 4.6rem; }
  .hero-text { font-size: 1.2rem; }
}

/* =========================================================================
   SAFETY CONTROLS
   =========================================================================
   Keep the quick-exit button always visible, always on top, and large enough
   to hit on the first try.
   ========================================================================= */

.quick-exit {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-end: 1rem;
  z-index: 300;                 /* above the sticky header and everything else */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--warmwhite);
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--warmwhite);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  /* Comfortably above the 44px minimum touch target — this is the one
     control a frightened reader must hit correctly on the first attempt. */
  min-height: 48px;
}

.quick-exit:hover,
.quick-exit:focus-visible {
  background: var(--red);
  border-color: var(--warmwhite);
}

.quick-exit:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .quick-exit { transition: background 0.15s ease; }
}

/* The inline form error is announced via role="alert"; make sure it reads
   as an error and not as a hint. */
.pray-form .error { color: var(--red); font-weight: 600; }

/* ===== On your phone (app.html) =====
   The warning is styled like the strong privacy note, not like a card: a
   card lifts on hover, which would make it look like something to tap. */
.app-page h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 0.5rem; }
.app-warning {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(168, 32, 42, 0.06);
  border: 1px solid rgba(168, 32, 42, 0.18);
}
.app-warning h2 { font-size: clamp(1.25rem, 4vw, 1.5rem); color: var(--red-dark); }
.app-warning p + p { margin-top: 0.7rem; }
.app-block { margin-top: 2.6rem; }
.app-block h2 { font-size: clamp(1.25rem, 4vw, 1.5rem); margin-bottom: 0.9rem; }
.app-block h3 { font-size: 1.1rem; margin: 1.3rem 0 0.5rem; }
.app-block .center { margin-bottom: 1.2rem; }
.steps { padding-inline-start: 1.5rem; display: grid; gap: 0.55rem; color: var(--ink); list-style-type: arabic-indic; }
.app-back { margin-top: 3rem; }
