/* ==========================================================================
   Conservatrice Baptist Church — site styles
   Palette is taken from the church seal: navy ring, gold cross, blue globe.
   ========================================================================== */

:root {
  --ink:        #06152b;
  --ink-2:      #0b1f3d;
  --ink-3:      #123057;
  --line:       rgba(255, 255, 255, 0.14);
  --line-dark:  rgba(6, 21, 43, 0.12);

  --gold:       #e8b93b;
  --gold-deep:  #a97e1f;
  --sea:        #0d6b5e;
  --sea-light:  #2fae9b;

  --paper:      #faf6ec;
  --paper-2:    #f1e9d6;
  --white:      #ffffff;

  --text-on-ink:      rgba(255, 255, 255, 0.92);
  --text-on-ink-soft: rgba(255, 255, 255, 0.62);
  --text-on-paper:      #16233a;
  --text-on-paper-soft: #56617a;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(6, 21, 43, 0.08), 0 4px 12px rgba(6, 21, 43, 0.06);
  --shadow-md: 0 12px 34px -12px rgba(6, 21, 43, 0.35);
  --shadow-lg: 0 30px 70px -28px rgba(6, 21, 43, 0.6);
}

/* --- reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

::selection { background: var(--gold); color: var(--ink); }

/* --- utilities ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem; top: -100%;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease,
              border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: #f2c95a; }

.btn--ghost-light {
  background: transparent;
  color: var(--text-on-ink);
  border-color: var(--line);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255,255,255,.3); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost-dark {
  background: transparent;
  color: var(--text-on-paper);
  border-color: rgba(6, 21, 43, 0.22);
}
.btn--ghost-dark:hover { background: rgba(6, 21, 43, 0.05); }

/* --- announcement bar ----------------------------------------------------- */

.announce {
  background: var(--sea);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 550;
  text-align: center;
  padding: 0.6rem var(--gutter);
}
.announce a { color: #fff; font-weight: 700; }
.announce[hidden] { display: none; }

/* --- header --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 21, 43, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--text-on-ink);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  /* must be allowed to shrink, or the name pushes into the buttons */
  flex: 1 1 auto;
  min-width: 0;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 20;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__meta {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-ink-soft);
  font-weight: 600;
}

.nav {
  display: none;
  gap: 0.15rem;
  align-items: center;
}
.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--text-on-ink-soft);
  transition: color 0.15s, background-color 0.15s;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="true"] { color: var(--gold); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  color: var(--text-on-ink);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.lang-toggle svg { width: 0.95em; height: 0.95em; }

.header .btn--gold { padding: 0.5rem 1.05rem; font-size: 0.85rem; }
.header__give { display: none; }

/* --- mobile menu --- */

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  color: var(--text-on-ink);
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 650;
  cursor: pointer;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.16); }
.menu-btn__bars { display: grid; gap: 3px; width: 14px; }
.menu-btn__bars span {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: translate 0.2s ease, rotate 0.2s ease, opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { translate: 0 5px; rotate: 45deg; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { translate: 0 -5px; rotate: -45deg; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(6, 21, 43, 0.98);
  padding: 0.9rem var(--gutter) 1.2rem;
  display: grid;
  gap: 0.15rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 550;
  color: var(--text-on-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.08); }
.mobile-menu .btn { margin-top: 0.75rem; justify-content: center; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .header__give { display: inline-flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* keep the header compact on narrow phones */
@media (max-width: 520px) {
  .brand__meta { display: none; }
  .brand__name { font-size: 0.9rem; }
  .lang-toggle span { display: none; }
  .lang-toggle { padding: 0.42rem 0.6rem; }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(47, 174, 155, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(66, 120, 210, 0.20), transparent 62%),
    radial-gradient(ellipse 80% 60% at 50% 108%, rgba(232, 185, 59, 0.14), transparent 65%);
  z-index: -2;
}

/* The seal, enlarged and dimmed, sits behind the headline. */
.hero__seal {
  position: absolute;
  z-index: -1;
  right: -14%;
  top: 50%;
  translate: 0 -50%;
  width: min(560px, 74vw);
  opacity: 0.09;
  filter: grayscale(1) brightness(2.4);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 660px; }

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  font-size: clamp(2.35rem, 6.6vw, 4.15rem);
  font-variation-settings: "SOFT" 32, "WONK" 1, "opsz" 144;
  margin-top: 1rem;
  color: #fff;
}

.hero__body {
  margin-top: 1.35rem;
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  color: var(--text-on-ink-soft);
  max-width: 52ch;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- signature: the live now/next ribbon ---------------------------------- */

.ribbon {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
}

.ribbon__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sea-light);
  box-shadow: 0 0 0 0 rgba(47, 174, 155, 0.7);
  animation: pulse 2.4s infinite;
  flex: none;
}
.ribbon--live .pulse { background: #ff5d5d; box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.7); }
.ribbon--live .ribbon__status { color: #ff8c8c; }

@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(47, 174, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 174, 155, 0); }
}

.ribbon__text { font-size: 0.98rem; font-weight: 550; color: #fff; }
.ribbon__text span { color: var(--text-on-ink-soft); font-weight: 400; }

/* --- section scaffolding -------------------------------------------------- */

.section { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--text-on-ink); }
.section--sea { background: var(--sea); color: #fff; }

.section__head { max-width: 60ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-variation-settings: "SOFT" 28, "WONK" 1, "opsz" 90;
  margin-top: 0.7rem;
}
.section__head p { margin-top: 0.9rem; font-size: 1.03rem; }

.section--paper .eyebrow, .section--paper-2 .eyebrow { color: var(--gold-deep); }
.section--paper .section__head p, .section--paper-2 .section__head p { color: var(--text-on-paper-soft); }
.section--ink .eyebrow { color: var(--gold); }
.section--ink .section__head p { color: var(--text-on-ink-soft); }
.section--ink h2 { color: #fff; }
.section--sea .eyebrow { color: rgba(255, 255, 255, 0.75); }
.section--sea .section__head p { color: rgba(255, 255, 255, 0.85); }

/* --- week grid ------------------------------------------------------------ */

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

.day {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.day--today {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow-md);
  background: linear-gradient(180deg, #fffdf6, var(--white));
}

.day--empty { background: transparent; box-shadow: none; border-style: dashed; }

.day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-dark);
}

.day__name {
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
}
.day--empty .day__name { color: var(--text-on-paper-soft); }

.day__badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.day__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

.day__item { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; }

.day__time {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sea);
  padding-top: 0.12rem;
  white-space: nowrap;
}
.day__act { font-size: 0.92rem; font-weight: 500; line-height: 1.4; }

.day__item--key .day__act { font-weight: 700; }
.day__item--key .day__time { color: var(--gold-deep); }

.day__none { font-size: 0.86rem; color: var(--text-on-paper-soft); font-style: italic; }

.week__foot {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* --- watch ---------------------------------------------------------------- */

.watch { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .watch { grid-template-columns: 1.65fr 1fr; align-items: start; } }

.player {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

.player--empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(47, 174, 155, 0.28), transparent 65%),
    var(--ink-2);
  color: var(--text-on-ink-soft);
}
.player--empty p { max-width: 34ch; font-size: 0.95rem; }

.sermons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.sermon {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  color: inherit;
}
.sermon:hover { background: rgba(255, 255, 255, 0.1); }
.sermon[aria-current="true"] { border-color: var(--gold); background: rgba(232, 185, 59, 0.13); }

.sermon__thumb {
  width: 88px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
  background: var(--ink-3);
  flex: none;
}
.sermon__title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: #fff; }
.sermon__date {
  font-size: 0.74rem;
  color: var(--text-on-ink-soft);
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

/* --- about + pastor ------------------------------------------------------- */

.about { display: grid; gap: clamp(2rem, 5vw, 3.25rem); }
@media (min-width: 900px) { .about { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.about__body { font-size: 1.05rem; color: var(--text-on-paper-soft); }

.facts {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--paper); padding: 0.95rem 1.1rem; }
.fact dt {
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-on-paper-soft);
}
.fact dd {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 30;
  color: var(--ink);
}

.pastor {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.15rem);
  box-shadow: var(--shadow-md);
}
.pastor__top { display: flex; align-items: center; gap: 1rem; }
.pastor__avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.pastor__name {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  color: #fff;
  line-height: 1.2;
}
.pastor__role {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}
.pastor__bio { margin-top: 1.15rem; color: var(--text-on-ink-soft); font-size: 0.97rem; }
.pastor__actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* --- ministries ----------------------------------------------------------- */

.ministries { display: grid; gap: 1rem; }
@media (min-width: 700px) { .ministries { grid-template-columns: repeat(2, 1fr); } }

.ministry {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.ministry h3 {
  font-size: 1.25rem;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
}
.ministry__when {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
}
.ministry p { margin-top: 0.75rem; color: var(--text-on-paper-soft); font-size: 0.95rem; }

/* --- give ----------------------------------------------------------------- */

.give { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 900px) { .give { grid-template-columns: 1fr 300px; align-items: start; } }

.give-methods { display: grid; gap: 0.85rem; }
@media (min-width: 620px) { .give-methods { grid-template-columns: repeat(2, 1fr); } }

.method {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.method__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.method__value {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 30;
  color: #fff;
  overflow-wrap: anywhere;
}
/* long values (emails) shrink rather than break across lines mid-word */
.method__value--long { font-size: 0.92rem; font-family: var(--body); font-weight: 600; }
.method__note { font-size: 0.84rem; color: rgba(255, 255, 255, 0.72); }

.copy-btn {
  align-self: flex-start;
  margin-top: 0.2rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.24); }
.copy-btn[data-copied="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.qr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.qr-card svg { width: 100%; height: auto; border-radius: 8px; display: block; }
.qr-card__label {
  margin-top: 0.8rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-on-paper-soft);
}
.qr-card__value {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.15rem;
}

/* --- visit + faq ---------------------------------------------------------- */

.visit { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; align-items: start; } }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.map-card iframe { width: 100%; height: 300px; border: 0; display: block; filter: saturate(0.85); }
.map-card__foot {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}
.map-card__addr { font-size: 0.92rem; font-weight: 550; line-height: 1.45; }
.map-card__addr span { display: block; color: var(--text-on-paper-soft); font-weight: 400; }

.faq { display: grid; gap: 0.6rem; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 650;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--body);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-deep);
  transition: rotate 0.2s ease;
  flex: none;
  line-height: 1;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq__answer {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-on-paper-soft);
  font-size: 0.94rem;
}
.faq__note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--text-on-paper-soft); }

/* --- footer --------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--text-on-ink-soft);
  padding-block: clamp(2.5rem, 6vw, 3.75rem) 1.75rem;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer__brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.footer__name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}
.footer__tag { margin-top: 0.4rem; font-size: 0.85rem; max-width: 34ch; }

.footer h3 {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- toast ---------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--line);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, translate 0.2s ease;
}
.toast[data-show="true"] { opacity: 1; translate: -50% -0.4rem; }

/* --- scroll reveal -------------------------------------------------------- */

/* Content is visible by default; the fade-in only applies once JS is running,
   so the page is never blank if a script fails or is blocked. */
.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}
.js .reveal[data-shown="true"] { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; translate: none; }
}

/* --- print ---------------------------------------------------------------- */

@media print {
  .header, .hero__cta, .ribbon, .footer, .toast, .announce, .player { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; break-inside: avoid; }
  .day { break-inside: avoid; box-shadow: none; }
}

/* When there are no sermons and no channel link, the player stands alone. */
.watch--solo { grid-template-columns: 1fr; max-width: 860px; }

/* --- touch comfort on small screens -------------------------------------- */

@media (max-width: 899px) {
  /* the language switch is a primary control — make it thumb-sized */
  .lang-toggle { padding: 0.6rem 0.8rem; }

  /* footer links are plain text; give them real tappable height */
  .footer ul { gap: 0.15rem; }
  .footer ul a {
    display: inline-block;
    padding: 0.45rem 0;
    min-height: 32px;
  }
  .footer__bottom a { display: inline-block; padding: 0.5rem 0; }

  /* FAQ rows open on tap, so keep them generous */
  .faq summary { padding: 1.05rem 1.1rem; }
}

/* --- live indicator ------------------------------------------------------ */

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  background: #c62828;
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.live-badge[hidden] { display: none; }
.live-badge .pulse { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }

.btn--live {
  background: #c62828 !important;
  color: #fff !important;
  border-color: #c62828 !important;
}
.btn--live:hover { background: #d33 !important; }
