/* ==========================================================================
   Jubilee Baptist Church, Mowe — glassmorphic stylesheet
   ========================================================================== */

:root {
  --navy: #10233f;
  --navy-deep: #0a1729;
  --gold: #c9a227;
  --gold-soft: #e6c65c;
  --gold-bright: #f7e08a;
  --cream: #faf7f0;
  --ink: #16202c;
  --muted: #55606f;
  --line: rgba(255, 255, 255, 0.45);
  --white: #ffffff;

  --radius: 18px;
  --radius-lg: 26px;

  /* glass surfaces */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 18px 44px rgba(16, 35, 63, 0.16);
  --glass-blur: saturate(160%) blur(18px);

  /* dark glass (header / footer / hero) */
  --glass-dark-bg: rgba(10, 23, 41, 0.55);
  --glass-dark-border: rgba(255, 255, 255, 0.16);

  --header-h: 86px;
  --footerbar-h: 54px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  padding-top: var(--header-h);
  padding-bottom: var(--footerbar-h);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 8% -10%, rgba(201, 162, 39, 0.30), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(16, 35, 63, 0.30), transparent 55%),
    radial-gradient(1000px 800px at 50% 110%, rgba(201, 162, 39, 0.22), transparent 60%),
    linear-gradient(160deg, #f6f1e6 0%, #eef2f8 45%, #f7f1e4 100%);
  background-attachment: fixed;
}

/* soft floating light blobs behind the glass */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
body::before {
  width: 46vw; height: 46vw;
  top: -12vw; left: -10vw;
  background: rgba(201, 162, 39, 0.35);
  animation: drift 22s ease-in-out infinite alternate;
}
body::after {
  width: 50vw; height: 50vw;
  bottom: -18vw; right: -12vw;
  background: rgba(31, 78, 140, 0.32);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6vw, 5vh, 0) scale(1.15); }
}

/* -------------------- Constant animated fill on headings ----------------- */
@keyframes fillSweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

h1, h2, h3, h4,
.brand-text strong,
.site-footer h4,
.signature {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.16;
  margin: 0 0 .6em;
  letter-spacing: .2px;

  background-image: linear-gradient(
    100deg,
    var(--navy-deep) 0%,
    var(--navy) 18%,
    var(--gold) 38%,
    var(--gold-bright) 50%,
    var(--gold) 62%,
    var(--navy) 82%,
    var(--navy-deep) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: fillSweep 9s linear infinite;
}

/* light-on-dark headings keep the same sweep with a brighter ramp */
.hero h1, .hero h2, .hero h3,
.page-head h1, .page-head h2,
.brand-text strong,
.site-footer h4,
.video-band h2 {
  background-image: linear-gradient(
    100deg,
    #ffffff 0%,
    #f3e6bd 20%,
    var(--gold-bright) 34%,
    var(--gold) 50%,
    var(--gold-bright) 66%,
    #f3e6bd 80%,
    #ffffff 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

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

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

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

.container { width: min(1180px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy-deep);
  padding: .6rem 1rem; z-index: 200; border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* -------------------------- Reusable glass surface ----------------------- */
.glass,
.card,
.post-card,
.form-card,
.minister,
.portrait,
.empty-state,
.gallery-grid a {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--glass-dark-border);
  background:
    linear-gradient(100deg,
      rgba(10, 23, 41, 0.86) 0%,
      rgba(19, 45, 80, 0.80) 25%,
      rgba(96, 74, 18, 0.72) 50%,
      rgba(19, 45, 80, 0.80) 75%,
      rgba(10, 23, 41, 0.86) 100%);
  background-size: 250% auto;
  animation: fillSweep 14s linear infinite;
  backdrop-filter: saturate(170%) blur(20px);
  transition: box-shadow .25s ease, height .25s ease;
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(100deg, var(--gold), var(--gold-bright), var(--navy), var(--gold));
  background-size: 250% auto;
  animation: fillSweep 6s linear infinite;
}
.site-header.is-scrolled { box-shadow: 0 14px 34px rgba(10, 23, 41, .32); }

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 700; margin: 0;
  animation: fillSweep 9s linear infinite;
}
.brand-text small {
  color: var(--gold-soft); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
}

.primary-nav { display: flex; align-items: center; gap: 1.2rem; }

.nav-list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: .6rem .7rem;
  color: rgba(255, 255, 255, .9);
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  border-radius: 10px;
}
.nav-list > li > a:hover,
.nav-list > li > a.is-active {
  color: var(--navy-deep);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  box-shadow: 0 6px 18px rgba(201, 162, 39, .34);
}

.has-sub > a::after {
  content: ""; display: inline-block; margin-left: .4rem;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}

.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 215px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--glass-shadow);
  list-style: none; margin: 0; padding: .35rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .2s ease; z-index: 20;
}
.sub-menu .sub-menu { top: -.35rem; left: 100%; border-radius: 14px; }
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block; padding: .55rem .75rem; border-radius: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--navy);
}
.sub-menu a:hover { background: rgba(201, 162, 39, .2); color: var(--navy-deep); }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.user-chip { color: var(--gold-soft); font-size: .76rem; font-weight: 700; letter-spacing: .05em; }

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  backdrop-filter: var(--glass-blur);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-login {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 10px 24px rgba(201, 162, 39, .34);
}
.btn-login:hover { color: var(--navy-deep); box-shadow: 0 14px 30px rgba(201, 162, 39, .45); }

.btn-primary {
  background: rgba(16, 35, 63, .82);
  color: var(--white);
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 12px 26px rgba(16, 35, 63, .28);
}
.btn-primary:hover { background: linear-gradient(120deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); }

.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
  background: rgba(255, 255, 255, .14);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .28); color: var(--white); }

.nav-toggle {
  display: none; width: 48px; height: 42px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px; cursor: pointer; padding: 10px 11px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 4px 0; border-radius: 2px; transition: .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(10, 23, 41, .90), rgba(23, 52, 92, .78), rgba(10, 23, 41, .90)),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, .40), transparent 55%);
  background-size: 250% auto, auto;
  animation: fillSweep 18s linear infinite;
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-dark-border);
}
.hero p { color: rgba(255, 255, 255, .88); max-width: 60ch; font-size: clamp(.98rem, 2.4vw, 1.08rem); }

.eyebrow {
  display: inline-block; color: var(--gold-soft);
  letter-spacing: .26em; text-transform: uppercase;
  font-size: .7rem; font-weight: 700; margin-bottom: 1rem;
}
.section .eyebrow, .prose .eyebrow, .card .eyebrow { color: #8a6d12; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* --------------------------- Worship video band -------------------------- */
.video-band {
  position: relative;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto;
  width: min(1180px, 92vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}
.video-band {
  aspect-ratio: 1280 / 732;
}
.video-band video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0a1729;
}
@supports not (aspect-ratio: 1 / 1) {
  .video-band { height: clamp(240px, 52vw, 560px); }
}
.video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.2rem, 4vw, 2.6rem);
  background: linear-gradient(to top, rgba(10, 23, 41, .82), rgba(10, 23, 41, .18) 55%, rgba(10, 23, 41, .35));
}
.video-caption {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.6rem);
  max-width: 62ch;
}
.video-caption h2 { margin-bottom: .3rem; }
.video-caption p { margin: 0; color: rgba(255, 255, 255, .88); font-size: clamp(.9rem, 2.2vw, 1rem); }

/* ------------------------------ Sections -------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-alt { background: rgba(255, 255, 255, .38); backdrop-filter: blur(10px); }

.section-head { max-width: 68ch; margin-bottom: 2.2rem; }

.page-head {
  position: relative;
  color: var(--white);
  padding: clamp(2.2rem, 6vw, 4rem) 0;
  background:
    linear-gradient(110deg, rgba(10, 23, 41, .90), rgba(26, 58, 100, .80), rgba(10, 23, 41, .90)),
    radial-gradient(circle at 85% 10%, rgba(201, 162, 39, .35), transparent 55%);
  background-size: 250% auto, auto;
  animation: fillSweep 16s linear infinite;
  backdrop-filter: var(--glass-blur);
  border-bottom: 3px solid var(--gold);
}
.page-head p { color: rgba(255, 255, 255, .84); margin: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card { padding: clamp(1.2rem, 3.5vw, 1.9rem); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(16, 35, 63, .2); }
.card h3 { margin-bottom: .5rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 162, 39, .38), rgba(255, 255, 255, .5));
  border: 1px solid var(--glass-border);
  color: var(--navy); display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 700;
  margin-bottom: 1rem;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}
.portrait { overflow: hidden; padding: 10px; }
.portrait img { width: 100%; height: auto; border-radius: calc(var(--radius) - 8px); }

.signature { font-size: 1.5rem; font-weight: 700; margin-top: 1.2rem; }
.signature small {
  display: block; font-family: "Karla", sans-serif; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  font-weight: 700;
  background: none; -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: var(--muted);
}

/* ------------------------------ Ministers ------------------------------- */
.minister { overflow: hidden; display: flex; flex-direction: column; }
.minister .avatar {
  height: 210px;
  display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-size: 4rem; font-weight: 700;
  color: var(--navy-deep);
  background: linear-gradient(135deg, rgba(201, 162, 39, .35), rgba(255, 255, 255, .55));
  overflow: hidden;
}
.minister .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.minister-body { padding: 1.4rem; }
.minister-body h3 { margin-bottom: .4rem; }
.minister-body .role {
  display: inline-block; margin-bottom: .8rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-deep);
  background: rgba(201, 162, 39, .28);
  border: 1px solid var(--glass-border);
  padding: .3rem .75rem; border-radius: 999px;
}
.minister-body p { font-size: .94rem; color: var(--muted); }

/* ------------------------------- Gallery -------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}
.gallery-grid a { display: block; overflow: hidden; aspect-ratio: 3 / 4; padding: 6px; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  transition: transform .5s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 15, 26, .75);
  backdrop-filter: blur(14px);
  display: none; place-items: center; padding: 4vh 4vw; cursor: zoom-out;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 14px; border: 1px solid var(--glass-border); }

/* -------------------------------- Forms --------------------------------- */
.form-card { padding: clamp(1.3rem, 4vw, 2.4rem); }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
  margin-bottom: .4rem;
}
.field .req { color: #b3261e; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px; font: inherit;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(8px);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .22);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: .74rem; color: var(--muted); }

.alert {
  padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .92rem;
  backdrop-filter: blur(10px);
}
.alert-success { background: rgba(231, 244, 236, .75); border: 1px solid #b7ddc6; color: #1c5b34; }
.alert-error { background: rgba(253, 236, 234, .78); border: 1px solid #f3c2bd; color: #8b241a; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: .7rem 0; border-bottom: 1px dashed rgba(16, 35, 63, .15); font-size: .95rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------ Bulletin -------------------------------- */
.post-card { padding: clamp(1.2rem, 3.5vw, 1.8rem); }
.post-meta { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.empty-state { padding: 2.2rem; text-align: center; color: var(--muted); }

.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.verse {
  border-left: 4px solid var(--gold);
  padding: .3rem 0 .3rem 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem; color: var(--navy); font-style: italic;
}

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  position: relative;
  margin-top: 2rem;
  color: rgba(255, 255, 255, .82);
  border-top: 1px solid var(--glass-dark-border);
  background:
    linear-gradient(100deg,
      rgba(10, 23, 41, 0.88) 0%,
      rgba(20, 47, 84, 0.82) 25%,
      rgba(96, 74, 18, 0.74) 50%,
      rgba(20, 47, 84, 0.82) 75%,
      rgba(10, 23, 41, 0.88) 100%);
  background-size: 250% auto;
  animation: fillSweep 16s linear infinite;
  backdrop-filter: saturate(170%) blur(20px);
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(100deg, var(--gold), var(--gold-bright), var(--navy), var(--gold));
  background-size: 250% auto;
  animation: fillSweep 6s linear infinite;
}
.footer-inner {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 3rem 0 2.4rem;
}
.footer-brand img { width: 44px; height: 44px; }
.footer-note { font-size: .92rem; max-width: 34ch; color: rgba(255, 255, 255, .7); }
.site-footer h4 { margin-bottom: .8rem; animation: fillSweep 9s linear infinite; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255, 255, 255, .8); font-size: .93rem; word-break: break-word; }
.footer-links a:hover { color: var(--gold-soft); }

.footer-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  min-height: var(--footerbar-h);
  display: flex; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(100deg,
      rgba(10, 23, 41, 0.82) 0%,
      rgba(23, 52, 92, 0.76) 30%,
      rgba(96, 74, 18, 0.70) 50%,
      rgba(23, 52, 92, 0.76) 70%,
      rgba(10, 23, 41, 0.82) 100%);
  background-size: 250% auto;
  animation: fillSweep 14s linear infinite;
  backdrop-filter: saturate(170%) blur(18px);
}
.footer-bar p {
  margin: 0; padding: .5rem 0;
  font-size: clamp(.68rem, 2.4vw, .8rem);
  color: rgba(255, 255, 255, .10); text-align: center;
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h) - var(--footerbar-h));
    overflow-y: auto;
    background: linear-gradient(160deg, rgba(8, 18, 33, 1), rgba(14, 33, 59, 1));
    backdrop-filter: saturate(170%) blur(22px);
    box-shadow: 0 24px 50px rgba(5, 12, 22, .45);
    border-bottom: 3px solid var(--gold);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 6vw 1.6rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a {
    padding: .85rem .2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
  }
  .nav-list > li > a:hover,
  .nav-list > li > a.is-active { border-radius: 10px; padding-inline: .7rem; }

  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; border: 0; background: transparent;
    backdrop-filter: none; padding: 0 0 .4rem .9rem;
  }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { color: rgba(255, 255, 255, .82); }
  .sub-menu a:hover { background: transparent; color: var(--gold-soft); }

  .header-cta { margin-top: 1rem; }
  .btn-login { width: 100%; }

  .video-band { width: 94vw; aspect-ratio: 16 / 10; }
  .welcome-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { line-height: 1.65; }
  .container { width: 92vw; }
  .brand img { width: 42px; height: 42px; }
  .brand-text small { font-size: .6rem; letter-spacing: .12em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .minister .avatar { height: 240px; }
  .video-band { border-radius: var(--radius); aspect-ratio: 4 / 3; }
  .video-overlay { padding: 1rem; }
  .video-caption { max-width: 100%; padding: .85rem 1rem; }
  .video-caption p { font-size: .88rem; }
  .verse { font-size: 1.05rem; }
}

@media (max-width: 380px) {
  .brand-text small { display: none; }
  .video-band { aspect-ratio: 1 / 1; }
  .video-caption h2 { font-size: 1.15rem; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .video-band { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .video-band video { animation: none; }
}

@media (min-width: 961px) {
  .primary-nav { margin-left: auto; }
}
