/* ================================
   Base Reset & Typography
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Color palette */
:root {
  --bg: #0f1720;
  --surface: #1a2431;
  --surface-alt: #141d28;
  --text: #e7edf6;
  --text-muted: #bac6d8;

  --brand: #7ea3d2;
  --brand-soft: #243244;
  --accent: #c49a6c;
  --accent-soft: #2f2620;

  --border: #2f4054;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --hero-grad-a: #202f42;
  --hero-grad-b: #111b27;
  --hero-grad-c: #2c241f;
  --surface-strong: #101a25;
  --input-border: #37506b;
  --input-label: #d6deea;
  --muted-strong: #a6b4c9;
  --section-divider: rgba(126, 163, 210, 0.25);
  --section-glow: rgba(126, 163, 210, 0.08);
  --toggle-bg: rgba(17, 27, 40, 0.9);
  --toggle-bg-hover: #203042;
  --toggle-text: #dbe7f7;
  --ghost-bg: rgba(17, 27, 40, 0.88);
  --ghost-bg-hover: #203042;
  --ghost-text: #d8e4f3;
  --give-strip-a: #2f2620;
  --give-strip-b: #1d2c3d;
  --featured-card-a: #1b2633;
  --featured-card-b: #141d28;
  --footer-bg: #0b121b;
  --footer-text: #dce5f2;
  --footer-link: #c2d4ec;
  --progress-bg: rgba(14, 22, 34, 0.9);
  --progress-track: #1d2b3a;
  --progress-strong: #a8c4e8;
  --give-hero-a: #243447;
  --give-hero-b: #1a2431;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --surface-alt: #18233b;
    --text: #e5ecfb;
    --text-muted: #b8c3da;
    --brand: #88a9ff;
    --brand-soft: #253761;
    --accent: #f6c24f;
    --accent-soft: #46391c;
    --border: #2a3a5e;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="light"] {
  --bg: #f4efe6;
  --surface: #fffdf9;
  --surface-alt: #efe6d8;
  --text: #1f2b38;
  --text-muted: #4f5d70;
  --brand: #355b84;
  --brand-soft: #d8e4f1;
  --accent: #b7803f;
  --accent-soft: #f2e3cd;
  --border: #d4c8b6;
  --shadow-soft: 0 10px 24px rgba(35, 46, 60, 0.12);
  --hero-grad-a: #efe4d2;
  --hero-grad-b: #f9f5ed;
  --hero-grad-c: #dde9f6;
  --surface-strong: #ffffff;
  --input-border: #c9b89f;
  --input-label: #36485f;
  --muted-strong: #596b80;
  --toggle-bg: #f7f2e9;
  --toggle-bg-hover: #eadfce;
  --toggle-text: #2a3f57;
  --ghost-bg: #f8f2e7;
  --ghost-bg-hover: #eee3d3;
  --ghost-text: #2b4663;
  --give-strip-a: #f3e3cc;
  --give-strip-b: #e0eaf6;
  --featured-card-a: #fffdf9;
  --featured-card-b: #f0e8da;
  --footer-bg: #e9dfcf;
  --footer-text: #22364d;
  --footer-link: #2f5276;
  --progress-bg: #f7f0e4;
  --progress-track: #dcc9ab;
  --progress-strong: #355b84;
  --give-hero-a: #e6d6bd;
  --give-hero-b: #dbe6f2;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-alt: #18233b;
  --text: #e5ecfb;
  --text-muted: #b8c3da;
  --brand: #88a9ff;
  --brand-soft: #253761;
  --accent: #f6c24f;
  --accent-soft: #46391c;
  --border: #2a3a5e;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --hero-grad-a: #1a2a48;
  --hero-grad-b: #0b1220;
  --hero-grad-c: #2c2414;
  --surface-strong: #0f172a;
  --input-border: #334766;
  --input-label: #c7d3ee;
  --muted-strong: #9fb0d0;
}

/* Generic elements */
img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.72;
  color: var(--text-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

/* Utility containers */
.shell {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.shell.narrow {
  width: min(720px, 100% - 2rem);
}

/* ================================
   Homepage Video Banner
   ================================ */
.video-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  line-height: 0;
  overflow: hidden;
  background: #05080d;
}

.video-banner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 250px;
  max-height: 390px;
  overflow: hidden;
  line-height: 0;
}

.video-banner-video {
  position: absolute;
  top: -0.75rem;
  left: 0;
  display: block;
  width: 100%;
  height: calc(100% + 1.5rem);
  background: #05080d;
  border: 0;
}

.video-banner-play {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-image:
    linear-gradient(rgba(8,15,25,.16), rgba(8,15,25,.38)),
    url('video-banner/video-banner3-poster.jpg');
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
}

.video-banner-play:focus-visible {
  background: rgba(24, 70, 110, .92);
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 3px;
}

.video-banner-play > span:last-child {
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(8,15,25,.78);
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  backdrop-filter: blur(6px);
}

.video-banner-play-icon {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
}

.video-word {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--word-bg, rgba(5, 8, 13, 0.74));
  border: 1px solid var(--word-border, rgba(255, 255, 255, 0.24));
  color: var(--word-text, #f4f7fb);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  animation: videoWordFloat 24s ease-in-out infinite;
}

.video-word-left-top { top: 12%; left: 4%; animation-delay: 0s; }
.video-word-left-top { --word-bg: rgba(31, 58, 147, 0.72); --word-border: rgba(147, 197, 253, 0.52); --word-text: #eff6ff; }
.video-word-right-top { top: 12%; right: 4%; animation-delay: 4s; }
.video-word-right-top { --word-bg: rgba(21, 128, 61, 0.72); --word-border: rgba(134, 239, 172, 0.5); --word-text: #ecfdf5; }
.video-word-left-bottom { bottom: 14%; left: 5%; animation-delay: 8s; }
.video-word-left-bottom { --word-bg: rgba(127, 29, 29, 0.72); --word-border: rgba(252, 165, 165, 0.5); --word-text: #fff1f2; }
.video-word-right-bottom { bottom: 14%; right: 5%; animation-delay: 12s; }
.video-word-right-bottom { --word-bg: rgba(107, 33, 168, 0.72); --word-border: rgba(216, 180, 254, 0.52); --word-text: #faf5ff; }
.video-word-center-left { top: 50%; left: 2.5%; transform: translateY(-50%) scale(0.96); animation-delay: 16s; }
.video-word-center-left { --word-bg: rgba(180, 83, 9, 0.75); --word-border: rgba(253, 186, 116, 0.55); --word-text: #fff7ed; }
.video-word-center-right { top: 50%; right: 2.5%; transform: translateY(-50%) scale(0.96); animation-delay: 20s; }
.video-word-center-right { --word-bg: rgba(13, 148, 136, 0.72); --word-border: rgba(153, 246, 228, 0.5); --word-text: #f0fdfa; }

@keyframes videoWordFloat {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  5% {
    opacity: 0.95;
  }
  40% {
    opacity: 0.95;
    transform: translateY(-4px) scale(1);
  }
  55% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
}

@media (max-width: 640px) {
  .video-banner {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .video-banner-video {
    top: -0.5rem;
    height: calc(100% + 1rem);
  }

  .video-word {
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
    animation-duration: 24s;
  }

  .video-word-left-top { top: 8%; left: 3%; }
  .video-word-right-top { top: 8%; right: 3%; }
  .video-word-left-bottom { bottom: 10%; left: 4%; }
  .video-word-right-bottom { bottom: 10%; right: 4%; }
  .video-word-center-left { top: 50%; left: 2%; }
  .video-word-center-right { top: 50%; right: 2%; }
}

/* ================================
   Global Navigation (nav.html)
   ================================ */
.app-download-banner { align-items: center; background: #17385d; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; display: flex; gap: .8rem; justify-content: center; padding: .45rem 1rem; position: relative; z-index: 1000; }
.app-download-banner[hidden] { display: none; }
.app-download-banner-copy { align-items: baseline; display: flex; flex-wrap: wrap; gap: .55rem; }
.app-download-banner-copy span { color: rgba(255,255,255,.82); font-size: .88rem; }
.app-download-banner-button { background: #f4c85d; border-radius: 999px; color: #13243b; font-size: .82rem; font-weight: 800; padding: .42rem .85rem; text-decoration: none; }
.app-download-banner-close { background: transparent; border: 0; color: rgba(255,255,255,.78); cursor: pointer; font-size: 1.25rem; line-height: 1; padding: .2rem; }
@media (max-width: 560px) { .app-download-banner { justify-content: flex-start; padding-right: 2.5rem; } .app-download-banner-copy { display: block; } .app-download-banner-copy span { display: block; font-size: .78rem; margin-top: .08rem; } .app-download-banner-close { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); } }
.cl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.cl-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

/* Brand */
.cl-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.cl-brand-logo {
  display: block;
  width: auto;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cl-brand-name {
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cl-brand-name small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.16rem;
}

.cl-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cl-brand-wordmark {
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.cl-brand-wordmark small {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.18rem;
}

:root[data-theme="light"] .cl-brand-logo {
  filter: brightness(0) saturate(100%);
}

:root[data-theme="dark"] .cl-brand-logo {
  filter: none;
}

.cl-brand-home .cl-brand-logo-icon {
  height: 54px;
}

.cl-brand-home .cl-brand-logo-wordmark {
  height: 48px;
  width: auto;
}

/* Nav list */
.cl-nav {
  position: fixed;
  inset: 3.2rem 1rem auto 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem 1rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cl-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-nav > ul > li {
  margin: 0.25rem 0;
}

.cl-nav-dropdown {
  position: relative;
}

.cl-nav-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(126, 163, 210, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: default;
}

.cl-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.cl-dropdown li {
  margin: 0;
}

.cl-dropdown a {
  padding-left: 1rem;
}

.cl-nav-dropdown:hover .cl-dropdown,
.cl-nav-dropdown:focus-within .cl-dropdown,
.cl-nav-dropdown.open .cl-dropdown {
  display: block;
}

.cl-nav a {
  display: block;
  padding: 0.45rem 0.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.cl-nav a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

.cl-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 163, 210, 0.55);
  background: var(--toggle-bg);
  color: var(--toggle-text);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.cl-theme-toggle:hover {
  background: var(--toggle-bg-hover);
  border-color: rgba(144, 178, 219, 0.8);
  transform: translateY(-1px);
}

/* Mobile nav open state */
.cl-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hamburger */
.cl-nav-toggle {
  border: none;
  background: transparent;
  padding: 0.3rem;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  cursor: pointer;
}

.cl-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

/* Give button in nav */
.cl-give-btn {
  background: var(--accent);
  color: #0f1720 !important;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(196, 154, 108, 0.35);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cl-give-btn:hover {
  text-decoration: none;
  background: #d6b086;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(196, 154, 108, 0.45);
}

.cl-give-btn.is-disabled,
.btn.is-disabled {
  background: #9ca3af !important;
  color: #f3f4f6 !important;
  border-color: #9ca3af !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.75;
  transform: none !important;
  pointer-events: auto;
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--brand);
  color: #08121f;
  box-shadow: 0 12px 28px rgba(126, 163, 210, 0.24);
}

.btn.primary:hover {
  background: #90b2db;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(126, 163, 210, 0.3);
  text-decoration: none;
}

.plan-visit-btn {
  background: #5da271;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(56, 132, 79, 0.35);
}

.plan-visit-btn:hover {
  background: #4c8f61;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(56, 132, 79, 0.42);
}

.btn.ghost {
  background: var(--ghost-bg);
  color: var(--ghost-text);
  border-color: rgba(90, 116, 145, 0.7);
}

.btn.ghost:hover {
  background: var(--ghost-bg-hover);
  text-decoration: none;
}

.btn.full {
  width: 100%;
  justify-content: center;
}

/* ================================
   Hero Section
   ================================ */
.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, var(--hero-grad-a) 0, var(--hero-grad-b) 45%, var(--hero-grad-c) 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  margin-bottom: 0.6rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hero-sub {
  font-size: 0.95rem;
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.hero-meta {
  display: grid;
  gap: 0.7rem;
  font-size: 0.85rem;
}

.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.meta-value {
  font-weight: 600;
  color: var(--text);
}

.service-times-text {
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 700;
}

/* Hero "new here" card */
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card-image {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 280px);
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.hero-card p {
  margin-bottom: 0.9rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
}

.hero-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.25rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ================================
   Giving Highlight Strip
   ================================ */
.give-strip {
  background: linear-gradient(90deg, var(--give-strip-a), var(--give-strip-b));
  padding: 1.6rem 0;
}

.give-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.give-strip h2 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.give-strip p {
  margin-bottom: 0;
  max-width: 32rem;
}

.give-strip-action {
  display: flex;
  flex-wrap: wrap;
}

/* ================================
   Generic Sections
   ================================ */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  margin-bottom: 1.5rem;
  padding-left: 0.9rem;
  border-left: 4px solid color-mix(in srgb, var(--brand) 55%, transparent);
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.3rem;
}

/* Keep the homepage cohesive: rhythm and subtle dividers, not disconnected bands. */
.homepage-main > .section {
  position: relative;
  background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%);
  border-top: 1px solid color-mix(in srgb, var(--border) 52%, transparent);
}

.homepage-main > .section:nth-of-type(even) {
  background: color-mix(in srgb, var(--surface-alt) 56%, var(--surface) 44%);
}

.homepage-main > .section + .section {
  margin-top: 0;
}

.homepage-main .btn.primary,
.homepage-main .btn.full {
  background: #234d78;
  color: #ffffff;
  border-color: #234d78;
  box-shadow: 0 8px 18px rgba(35, 77, 120, 0.2);
}

.homepage-main .btn.primary:hover,
.homepage-main .btn.full:hover {
  background: #173b60;
  color: #ffffff;
  border-color: #173b60;
  box-shadow: 0 10px 22px rgba(23, 59, 96, 0.3);
  text-decoration: none;
}

.homepage-main .btn.ghost {
  background: var(--surface);
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand) 58%, var(--border));
}

.homepage-main .btn.ghost:hover {
  background: color-mix(in srgb, var(--surface) 84%, var(--brand) 16%);
  color: var(--text);
  border-color: var(--brand);
  text-decoration: none;
}

.homepage-main .btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, #ffffff 22%);
  outline-offset: 3px;
}

.homepage-main .section-header {
  max-width: 48rem;
  margin-bottom: 2rem;
  padding-left: 1.1rem;
  border-left-width: 5px;
}

.homepage-main .section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0.55rem;
}

.homepage-main .section-header p:last-child {
  max-width: 62ch;
}

.homepage-main .two-col > div:first-child > p:not(.section-kicker),
.homepage-main .two-col > div:first-child > ul {
  max-width: 62ch;
}

.homepage-main .member-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.15rem;
}

.homepage-main .member-list li::marker {
  color: var(--accent);
}

.chosen-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--accent) 28%);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 86%, #000000 14%);
}

.chosen-feature-art {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  background: #000;
}

.chosen-feature-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.chosen-feature-copy h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.chosen-feature-copy p:last-child {
  max-width: 52ch;
  margin-bottom: 0;
}

.connect-tabs {
  display: grid;
  gap: 1.25rem;
}

.connect-tab-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.3rem;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.connect-tab {
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.connect-tab:hover,
.connect-tab:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 86%, var(--brand) 14%);
}

.connect-tab:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, #ffffff 22%);
  outline-offset: 2px;
}

.connect-tab.is-active {
  background: #234d78;
  color: #ffffff;
  border-color: #234d78;
}

.connect-panel[hidden] {
  display: none;
}

.connect-panel {
  animation: connectPanelIn 0.18s ease-out;
}

.page-update-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--border));
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.floating-give {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: max(4.5rem, calc(env(safe-area-inset-top) + 0.75rem));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, #ffffff 28%);
  border-radius: 999px;
  background: var(--accent);
  color: #101820 !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.floating-give:hover {
  background: #d6b086;
  color: #101820 !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.floating-give:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 78%, #ffffff 22%);
  outline-offset: 3px;
}

.floating-give[hidden] {
  display: none;
}

.form-preview-shell {
  position: relative;
}

.form-preview-shell > *:not(.form-preview-overlay) {
  filter: blur(1px);
}

.form-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(190, 145, 65, 0.55);
  border-radius: 1rem;
  background: rgba(21, 24, 31, 0.94);
  color: #fff;
  text-align: center;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
}

.form-preview-overlay h3 {
  margin: 0 0 0.5rem;
}

.form-preview-overlay p {
  max-width: 32rem;
  margin: 0;
}

@keyframes connectPanelIn {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .homepage-main > .section {
    padding: 2.75rem 0;
  }

  .homepage-main > .section:nth-of-type(even) {
    background: color-mix(in srgb, var(--surface-alt) 48%, var(--surface) 52%);
  }

  .homepage-main .btn {
    min-height: 2.8rem;
  }

  .connect-tab-list {
    width: 100%;
  }

  .connect-tab {
    flex: 1 1 10rem;
  }

  .chosen-feature {
    grid-template-columns: 1fr;
  }

  .floating-give {
    right: max(0.75rem, env(safe-area-inset-right));
    top: max(4.25rem, calc(env(safe-area-inset-top) + 0.65rem));
    min-height: 2.75rem;
    padding-inline: 0.85rem;
    font-size: 0.9rem;
  }
}

/* Layout helpers */
.two-col {
  display: grid;
  gap: 1.8rem;
}

.about-cards {
  display: grid;
  gap: 1rem;
}

/* Cards */
.info-card,
.visit-card,
.ministry-card,
.sermon-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--border) 92%, #94a3b8 8%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.map-embed {
  margin: 0.75rem 0 1rem;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 18rem;
  border: 0;
  border-radius: 0;
}

.visit-card-map {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.visit-card-map .btn {
  border-radius: 8px;
}

.info-card h3,
.visit-card h3,
.ministry-card h3,
.sermon-card h3 {
  font-size: 1.05rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.connect-hero {
  padding-bottom: 2.4rem;
}

.connect-switch-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.connect-panel[hidden] {
  display: none !important;
}

/* Visit grid */
.visit-grid {
  display: grid;
  gap: 1.1rem;
}

/* Generic card grid */
.card-grid {
  display: grid;
  gap: 1.1rem;
}

/* Sermons */
.sermons-grid {
  grid-template-columns: 1fr;
}

.sermon-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #aab8cb;
  margin-bottom: 0.2rem;
}

.sermon-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  border: 1px solid var(--border);
}

/* ================================
   Videos Hub
   ================================ */
.videos-hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at top right, rgba(126, 163, 210, 0.18), transparent 30%),
    linear-gradient(135deg, var(--hero-grad-a), var(--hero-grad-b) 55%, var(--hero-grad-c));
}

.videos-hero-grid {
  display: grid;
  gap: 1.8rem;
}

.videos-copy h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.videos-search-wrap {
  margin-top: 1rem;
  max-width: 28rem;
}

.videos-search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.videos-search-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.videos-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(126, 163, 210, 0.32);
}

.videos-featured-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-alt) 94%, transparent));
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.videos-player-shell {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #05080d;
}

.videos-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.videos-featured-meta {
  padding: 1.25rem 1.25rem 1.4rem;
}

.videos-featured-kicker,
.videos-results {
  margin: 0;
  color: var(--text-muted);
}

.videos-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.videos-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.videos-grid {
  display: grid;
  gap: 1rem;
}

.videos-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.videos-card.is-active {
  border-color: color-mix(in srgb, var(--brand) 72%, transparent);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.videos-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.videos-card-button:hover .videos-thumb,
.videos-card-button:focus-visible .videos-thumb {
  transform: scale(1.03);
}

.videos-card-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 80%, transparent);
  outline-offset: -2px;
}

.videos-thumb-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1220;
}

.videos-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.videos-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5ecfb;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.videos-play-badge {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 8, 13, 0.78);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.videos-card-body {
  padding: 1rem 1rem 1.15rem;
}

.videos-card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.videos-card-body p:last-child {
  margin-bottom: 0;
}

.videos-card-empty,
.videos-card-placeholder {
  min-height: 16rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ================================
   Bulletin
   ================================ */
.bulletin-grid {
  display: grid;
  gap: 1rem;
}

.bulletin-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.bulletin-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.bulletin-grid.two {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.bulletin-card.featured {
  border-color: rgba(126, 163, 210, 0.4);
  background: linear-gradient(135deg, var(--featured-card-a) 0%, var(--featured-card-b) 100%);
}

.bulletin-feature-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: calc(var(--radius-md) - 4px);
  margin-bottom: 1rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.bulletin-feature-image.flyer {
  width: min(100%, 520px);
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 1rem;
}

.announcement-fullscreen-button {
  display: block;
  margin: 0 auto 1rem;
}

.announcement-fullscreen {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 4.5rem 1rem 1rem;
  border: 0;
  background: #050a14;
  overflow: hidden;
}

.announcement-fullscreen::backdrop {
  background: rgba(5, 10, 20, 0.96);
}

.announcement-fullscreen[open] {
  display: grid;
  place-items: center;
}

.announcement-fullscreen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.announcement-fullscreen-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  min-width: 5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.82);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.announcement-fullscreen-close:hover,
.announcement-fullscreen-close:focus-visible {
  background: #fff;
  color: #050a14;
}

.bulletin-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* ================================
   Membership
   ================================ */
.member-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.member-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.member-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.25rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ================================
   Events
   ================================ */
.events-list {
  display: grid;
  gap: 0.8rem;
}

.event-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.event-date {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: radial-gradient(circle at 10% 0, var(--brand-soft), #eef2ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-day {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand);
  line-height: 1;
}

.event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #adbacf;
}

.event-main h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted-strong);
}

/* ================================
   Contact / Prayer Form
   ================================ */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #cfd9e8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  padding: 0.6rem 0.7rem;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-strong);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  resize: vertical;
}

input,
select,
textarea,
button,
a,
[role="button"] {
  touch-action: manipulation;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(30, 58, 138, 0.4);
  background: var(--surface);
}

.checkbox-field {
  display: grid;
  gap: 0.45rem;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--input-label);
}

.check-label input {
  width: auto;
}

.form-status {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: #475569;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ================================
   Footer
   ================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.9rem 0 1.8rem;
  margin-top: 1rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.footer-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.footer-small {
  font-size: 0.8rem;
  color: #9fb0c8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--footer-link);
}

.footer-links a:hover {
  color: #fff;
}

/* ================================
   Responsive Layout
   ================================ */
@media (min-width: 640px) {
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }

  .hero {
    padding-top: 4rem;
  }

  .give-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .two-col {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }

  .visit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-card-map {
    grid-column: 1 / -1;
  }

  .visit-card-map .map-embed iframe {
    height: 27rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sermons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bulletin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-row {
    grid-template-columns: auto 1fr auto;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .videos-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    align-items: center;
  }

  .videos-section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  /* Desktop nav layout */
  .cl-nav {
    position: static;
    inset: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .cl-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .cl-nav > ul > li {
    margin: 0;
  }

  .cl-nav-dropdown {
    position: relative;
  }

  .cl-nav-menu {
    cursor: pointer;
  }

  .cl-dropdown {
    position: absolute;
    top: calc(100% - 0.15rem);
    left: 0;
    min-width: 12rem;
    padding: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    box-shadow: var(--shadow-soft);
    z-index: 20;
  }

  .cl-dropdown a {
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
  }

  .cl-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }

  .cl-nav-toggle {
    display: none;
  }

  .cl-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  }

  .cl-brand-logo {
    height: 60px;
  }

  .cl-brand-home .cl-brand-logo-wordmark {
    height: 58px;
  }

  .cl-brand-home .cl-brand-logo-icon {
    height: 54px;
  }
}

@media (max-width: 767px) {
  .cl-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .cl-nav-dropdown {
    width: 100%;
  }

  .cl-nav-menu {
    width: 100%;
    justify-content: space-between;
  }

  .cl-dropdown {
    display: block;
    position: static;
    min-width: 0;
    padding: 0.25rem 0 0.25rem 0.85rem;
    margin-top: 0.25rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .cl-dropdown a {
    white-space: normal;
  }

  .cl-brand-lockup {
    gap: 0.5rem;
  }

  .cl-brand-logo {
    height: 48px;
    width: 48px;
  }

  .cl-brand-wordmark {
    font-size: 0.92rem;
  }

  .cl-brand-wordmark small {
    font-size: 0.78rem;
  }

  .cl-brand-home .cl-brand-logo-wordmark {
    height: 42px;
  }

  .cl-brand-home .cl-brand-logo-icon {
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .card-grid {
    gap: 1.3rem;
  }
}

/* Navigation polish: keep the shared menu legible and intentional on every page. */
.cl-header {
  background: linear-gradient(135deg, rgba(11, 18, 32, .97), rgba(19, 37, 60, .94));
  box-shadow: 0 8px 28px rgba(3, 10, 20, .22);
}

.cl-container {
  padding-top: .72rem;
  padding-bottom: .72rem;
}

.cl-brand-lockup {
  gap: .65rem;
}

.cl-nav a,
.cl-nav-menu {
  border: 1px solid transparent;
  color: rgba(239, 245, 255, .88);
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.cl-nav a {
  padding: .58rem .8rem;
}

.cl-nav-menu {
  padding: .58rem .8rem;
}

.cl-nav-menu::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-left: .18rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.12rem) rotate(45deg);
  transition: transform .18s ease;
}

.cl-nav-dropdown:hover .cl-nav-menu::after,
.cl-nav-dropdown:focus-within .cl-nav-menu::after {
  transform: translateY(.1rem) rotate(225deg);
}

.cl-nav a:hover,
.cl-nav a:focus-visible,
.cl-nav-menu:hover,
.cl-nav-menu:focus-visible {
  color: #fff;
  background: rgba(126, 163, 210, .16);
  border-color: rgba(126, 163, 210, .42);
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.cl-nav-dropdown:hover > .cl-nav-menu,
.cl-nav-dropdown:focus-within > .cl-nav-menu {
  color: #fff;
  background: rgba(126, 163, 210, .13);
  border-color: rgba(126, 163, 210, .34);
}

.cl-dropdown {
  padding: .55rem;
  border: 1px solid rgba(126, 163, 210, .24);
  border-radius: 16px;
  background: rgba(15, 23, 32, .98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}

.cl-dropdown a {
  border-radius: 10px;
  color: rgba(239, 245, 255, .9);
  padding: .62rem .72rem;
}

.cl-dropdown a:hover,
.cl-dropdown a:focus-visible {
  background: rgba(126, 163, 210, .18);
  color: #fff;
}

.cl-give-btn {
  border: 1px solid rgba(255, 224, 162, .55);
  padding: .58rem .95rem;
  box-shadow: 0 8px 22px rgba(196, 154, 108, .25);
}

.cl-theme-toggle {
  border-color: rgba(126, 163, 210, .42);
}

@media (min-width: 768px) {
  .cl-nav > ul {
    gap: .2rem;
  }

  .cl-dropdown {
    /* Keep the submenu connected to its trigger so the hover state does not
       disappear while the pointer travels down into the menu. */
    top: calc(100% - .05rem);
    min-width: 14rem;
  }

  .cl-nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: .55rem;
  }
}

@media (max-width: 767px) {
  .cl-nav {
    inset: 4.65rem .75rem auto .75rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid rgba(126, 163, 210, .3);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(17, 31, 50, .99), rgba(11, 18, 32, .99));
    box-shadow: 0 22px 55px rgba(0, 0, 0, .42);
  }

  .cl-nav > ul {
    gap: .35rem;
  }

  .cl-nav > ul > li {
    margin: 0;
  }

  .cl-nav > ul > li:not(:last-child) {
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    padding-bottom: .35rem;
  }

  .cl-nav a,
  .cl-nav-menu {
    width: 100%;
    min-height: 2.8rem;
    justify-content: space-between;
    border-radius: 12px;
    padding: .7rem .8rem;
    text-align: left;
  }

  .cl-dropdown {
    margin: .25rem 0 0 .35rem;
    padding: .15rem 0 .15rem .7rem;
    border: 0;
    border-left: 2px solid rgba(126, 163, 210, .38);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cl-dropdown a {
    min-height: 2.45rem;
    padding: .58rem .72rem;
  }

  .cl-nav-toggle {
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: .27rem;
    border: 1px solid rgba(126, 163, 210, .42);
    background: rgba(126, 163, 210, .12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  }

  .cl-nav-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .85);
    outline-offset: 3px;
  }

  .cl-bar {
    width: 1.25rem;
    height: 2px;
  }
}


/* ===== Give Page ===== */

.give-hero {
  background: linear-gradient(135deg, var(--give-hero-a), var(--give-hero-b));
  color: var(--text);
  padding: 4rem 1rem;
  text-align: center;
}

.give-hero-inner h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
}

.give-hero-inner p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.give-section {
  padding: 3rem 1rem;
  background: var(--bg);
}

.give-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.give-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.give-card h2 {
  margin-top: 0;
  color: var(--brand);
}

.give-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.give-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #0f1720;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: 0.2s;
}
.give-btn:hover {
  background: #d6b086;
}

/* ================================
   Dark Theme Specific Section Fixes
   ================================ */
:root[data-theme="dark"] .cl-header {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: rgba(42, 58, 94, 0.9);
}

:root[data-theme="dark"] .btn.ghost {
  background: rgba(17, 26, 46, 0.88);
  border-color: rgba(62, 83, 124, 0.9);
  color: var(--text);
}

:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .visit-card,
:root[data-theme="dark"] .ministry-card,
:root[data-theme="dark"] .sermon-card,
:root[data-theme="dark"] .bulletin-card,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .event-row {
  border-color: var(--border);
}

:root[data-theme="dark"] .site-footer {
  background: #050a14;
}

:root[data-theme="dark"] .footer-links a {
  color: #d5e0ff;
}

.qr-wrapper {
  margin-top: 1.5rem;
}
.qr-wrapper img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.give-trust {
  background: var(--surface-alt);
  padding: 1.8rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Bulletin book-drive progress */
.bulletin-progress-wrap {
  margin-top: 0.85rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(98, 122, 148, 0.5);
  background: var(--progress-bg);
}

.bulletin-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.bulletin-progress-head strong {
  color: var(--progress-strong);
}

.bulletin-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bulletin-progress-track, #dbe6f7) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--bulletin-progress-start, #7aa6d8) 38%, transparent);
}

.bulletin-progress-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, var(--bulletin-progress-start, #6f89a9) 0%, var(--bulletin-progress-end, #8faed1) 56%, var(--bulletin-progress-start, #6f89a9) 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 14px color-mix(in srgb, var(--bulletin-progress-end, #8faed1) 55%, transparent);
  transition: width 0.8s ease;
  animation: bulletinProgressGlow 6.5s ease-in-out infinite;
}

.bulletin-progress-note {
  margin-top: 0.45rem;
  margin-bottom: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

@keyframes bulletinProgressGlow {
  0% {
    background-position: 0% 50%;
    filter: saturate(0.9);
  }
  50% {
    background-position: 100% 50%;
    filter: saturate(0.98);
  }
  100% {
    background-position: 0% 50%;
    filter: saturate(0.9);
  }
}






