:root {
  --bg: #070707;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-2: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.74);
  --muted-2: rgba(192, 192, 192, 0.82);
  --border: rgba(192, 192, 192, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  /* Safe-area insets (iOS notch / dynamic island / landscape cutouts) */
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);

  /* Brand accents: Gold + Silver */
  --accent-1: #d4af37;
  --accent-2: #c0c0c0;

  /* Kids section accents (vibrant) */
  --kids-orange: #ff8a00;
  --kids-sky: #38bdf8;

  --radius: 18px;
  --radius-sm: 14px;
  --container: 1100px;
}

/* Higher-contrast mode (user preference). */
@media (prefers-contrast: more) {
  :root {
    /* Increase legibility of secondary text and UI boundaries without changing layout. */
    --text: rgba(255, 255, 255, 0.96);
    --muted: rgba(255, 255, 255, 0.86);
    --muted-2: rgba(255, 255, 255, 0.90);
    --panel: rgba(255, 255, 255, 0.12);
    --panel-2: rgba(255, 255, 255, 0.16);
    --border: rgba(255, 255, 255, 0.32);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  }

  /* Make underlines and focus indicators more obvious. */
  .link {
    text-decoration-color: rgba(212, 175, 55, 0.90);
    text-decoration-thickness: 2px;
  }

  .skip-link:focus-visible,
  .nav-link:focus-visible,
  .btn:focus-visible,
  .link:focus-visible,
  .input:focus-visible,
  .textarea:focus-visible,
  .nav-toggle:focus-visible,
  .breadcrumbs a:focus-visible {
    outline-width: 4px;
    outline-color: rgba(212, 175, 55, 0.80);
  }

  /* Lift a few key surfaces that use fixed RGBA values. */
  .card {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.20);
  }

  .brand-mark {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .nav-dropdown-menu {
    border-color: rgba(255, 255, 255, 0.22);
  }
}

/* Self-hosted fonts (replaces Google Fonts).
   Note: these WOFF2 files are Latin-subset; if you need broader glyph coverage later,
   we can add latin-ext/cyrillic/etc subsets too. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/PlayfairDisplay-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keep anchor navigation from landing under the sticky header */
  scroll-padding-top: calc(68px + env(safe-area-inset-top));
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% 10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(1100px 700px at 10% 30%, rgba(192, 192, 192, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.5;
}

/* Prevent scrolling the page behind the mobile menu */
body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  /* Eliminate 300ms tap delay on touch devices */
  touch-action: manipulation;
}

/* Mobile polish: remove default iOS/Android tap highlight on interactive elements */
a,
button,
input,
textarea,
select,
summary,
[role="button"],
.btn,
.nav-toggle,
.nav-link,
.bento-tile,
.kids-card {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding-inline: var(--safe-left) var(--safe-right);
}

.skip-link {
  position: absolute;
  left: 14px;
  top: 10px;
  z-index: 999;
  background: #ffffff;
  color: #111827;
  padding: 10px 12px;
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  /* Solid fallback for browsers/devices where backdrop-filter is slow or unsupported */
  background: rgba(7, 7, 7, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-inline: var(--safe-left) var(--safe-right);
  z-index: 10;
}

/* Enable header blur only when supported (and avoid will-change to reduce jank on low-end devices) */
@supports ((-webkit-backdrop-filter: blur(14px)) or (backdrop-filter: blur(14px))) {
  .site-header {
    background: rgba(7, 7, 7, 0.62);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* Avoid double safe-area padding inside the header (header already has padding-inline) */
.site-header .container {
  padding-inline: 0;
}

.site-header.is-solid {
  background: rgba(7, 7, 7, 0.92);
  border-bottom-color: rgba(192, 192, 192, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  color: var(--muted-2);
  font-size: 0.92rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.2px;
  padding: 12px 10px;
  border-radius: 12px;
  touch-action: manipulation;
}
.nav-link:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.35);
  outline-offset: 2px;
}

/* Nav dropdown (Ministries) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown > summary.nav-link::after {
  content: "▾";
  font-size: 0.9em;
  opacity: 0.85;
  transition: transform 160ms ease;
}

.nav-dropdown[open] > summary.nav-link::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(7, 7, 7, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

.nav-sublink {
  padding: 10px 10px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: grid;
    gap: 2px;
  }
}

.btn-nav-cta {
  background: rgba(212, 175, 55, 0.98);
  color: #070707;
  border-color: rgba(212, 175, 55, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.btn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.98), rgba(192, 192, 192, 0.94));
  color: #070707;
  border-color: rgba(212, 175, 55, 0.40);
}

.btn-hero {
  height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 800;
}

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

/* Home page hero */
.home-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 920px);
  padding: 120px 0 88px;
  overflow: hidden;
}

.home-hero--new-here .home-hero-img {
  /* Keep the smiling face + outstretched hand in frame on the New Here hero */
  object-position: 50% 35%;
}

.home-hero--building {
  min-height: clamp(360px, 50vh, 560px);
  padding: 72px 0 64px;
}

/* Keep the church building/steeple in frame (the photo is bottom-weighted). */
.home-hero--building .home-hero-img {
  object-position: 50% 88%;
}

/* Desktop: give the section a bit more height so we don't crop down to just the roofline. */
@media (min-width: 901px) {
  .home-hero--building {
    min-height: clamp(440px, 62vh, 740px);
  }

  .home-hero--building .home-hero-img {
    object-position: 50% 92%;
  }
}

/* Slightly lighter overlay for this specific photo so the building reads clearly. */
.home-hero--building .home-hero-overlay {
  background:
    radial-gradient(900px 520px at 18% 25%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(800px 520px at 78% 35%, rgba(192, 192, 192, 0.10), transparent 60%),
    rgba(7, 7, 7, 0.40);
}

.home-hero--building h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: 0 0 14px;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Reserve a stable box for hero media to reduce layout shift (CLS) */
  aspect-ratio: 3 / 2;
}

.home-hero-img,
.home-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  /* ~45% overlay, plus subtle brand glows */
  background:
    radial-gradient(900px 520px at 18% 25%, rgba(212, 175, 55, 0.18), transparent 60%),
    radial-gradient(800px 520px at 78% 35%, rgba(192, 192, 192, 0.12), transparent 60%),
    rgba(7, 7, 7, 0.48);
}

.home-hero-inner {
  padding: 18px 0;
  text-align: center;
}

.home-hero-inner h1 {
  margin-inline: auto;
  max-width: 20ch;
}

.home-hero-lead {
  margin-inline: auto;
  max-width: 70ch;
}

.home-hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Pastor bio */
.home-pastor {
  padding: 10px 0 34px;
}

.pastor-card {
  display: grid;
  grid-template-columns: 0.44fr 0.56fr;
  gap: 18px;
  align-items: start;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pastor-media {
  position: relative;
  min-height: 260px;
}

.pastor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pastor-body {
  padding: 18px;
}

.pastor-name {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.pastor-role {
  margin: 0 0 14px;
  color: var(--muted-2);
  font-weight: 650;
}

.pastor-bio p {
  margin: 0 0 12px;
  color: var(--muted);
}

.pastor-bio p:last-child {
  margin-bottom: 0;
}

/* Bento box */
.home-bento {
  padding: 18px 0 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.bento-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 192, 192, 0.18);
  min-height: 170px;
  text-decoration: none;
  touch-action: manipulation;
}

.bento-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Improve readability when a tile uses a real photo background */
.bento-kids .bento-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 7, 0.78) 0%,
      rgba(7, 7, 7, 0.46) 52%,
      rgba(7, 7, 7, 0.22) 100%
    );
}

.bento-kids .bento-body {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.bento-youth .bento-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 7, 0.80) 0%,
      rgba(7, 7, 7, 0.52) 52%,
      rgba(7, 7, 7, 0.26) 100%
    );
}

.bento-youth .bento-body {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.bento-young .bento-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 7, 0.78) 0%,
      rgba(7, 7, 7, 0.50) 52%,
      rgba(7, 7, 7, 0.24) 100%
    );
}

.bento-young .bento-body {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.bento-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.bento-body {
  padding: 16px;
}

.bento-kicker {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.86);
}

.bento-title {
  margin-top: 6px;
  font-weight: 900;
  font-size: 1.25rem;
}

.bento-sub {
  margin-top: 6px;
  color: var(--muted);
}

.bento-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.bento-kids {
  grid-column: span 7;
  min-height: 240px;
}

.bento-youth {
  grid-column: span 5;
  min-height: 240px;
  background: rgba(255, 255, 255, 0.05);
}

.bento-young {
  grid-column: span 5;
  background: rgba(255, 255, 255, 0.05);
}

.bento-info {
  grid-column: span 7;
}

/* Social proof */
.home-social {
  padding: 10px 0 72px;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ig-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(192, 192, 192, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.home-social-cta,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
}

.btn-wide {
  width: 100%;
}

.hero {
  position: relative;
  padding: 72px 0 50px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 14px;
}

h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.accent {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 55ch;
  margin: 0 0 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.fact {
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.fact dt {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.fact dd {
  margin: 0;
  font-weight: 700;
}

.hero-card {
  position: relative;
}

.card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-title {
  margin: 2px 0 12px;
  font-size: 1.15rem;
}

.card-line {
  margin: 0 0 12px;
  color: var(--muted);
}

.link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.55);
  text-underline-offset: 3px;
  touch-action: manipulation;
}

/* Touch devices: increase inline link tap targets without shifting layout */
@media (hover: none) and (pointer: coarse) {
  .link {
    display: inline-block;
    padding: 4px 2px;
    margin: -4px -2px;
    text-underline-offset: 4px;
  }
}
.link:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.30);
  outline-offset: 2px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.fineprint {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.orb {
  position: absolute;
  width: 540px;
  height: 540px;
  filter: blur(40px);
  opacity: 0.26;
  border-radius: 50%;
}

.orb-1 {
  left: -220px;
  top: -240px;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.85), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(192, 192, 192, 0.80), transparent 55%);
}

.orb-2 {
  right: -280px;
  bottom: -320px;
  background: radial-gradient(circle at 30% 30%, rgba(192, 192, 192, 0.80), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.82), transparent 55%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 70%);
}

.info {
  padding: 36px 0 70px;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  min-height: 130px;
}

.mini-card h3 {
  margin: 0 0 8px;
}

.mini-card p {
  margin: 0 0 6px;
}

.mini-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(192, 192, 192, 0.18);
}

.muted {
  color: var(--muted-2);
}

.subscribe {
  margin-top: 16px;
}

.subscribe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 7, 0.78);
}

/* Standalone pages (e.g., contact.html) */
.page {
  position: relative;
  padding: 62px 0 78px;
  overflow: hidden;
}

.page-head {
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 0 0 10px;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.visit-section {
  margin-top: 22px;
}

.visit-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 280px;
  max-height: 420px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contactStatus {
  color: var(--muted);
}

/* Holt Kids page */
.kids-page .pill {
  border-color: rgba(212, 175, 55, 0.22);
}

.kids-pill {
  color: rgba(255, 255, 255, 0.86);
}

.kids-h1 {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.kids-lead {
  max-width: 62ch;
}

.kids-btn {
  border-color: rgba(212, 175, 55, 0.45);
}

.kids-hero {
  position: relative;
  min-height: clamp(520px, 74vh, 880px);
  padding: 112px 0 64px;
  overflow: hidden;
}

.kids-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.kids-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.kids-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 20%, rgba(255, 138, 0, 0.18), transparent 62%),
    radial-gradient(800px 520px at 78% 45%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.72), rgba(7, 7, 7, 0.86));
}

.kids-hero-inner {
  padding: 34px 0 12px;
}

.kids-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.kids-safety {
  padding: 14px 0 22px;
}

.kids-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kids-badge {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 192, 192, 0.18);
}

.kids-badge-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: rgba(7, 7, 7, 0.98);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(192, 192, 192, 0.90));
  flex: 0 0 auto;
}

.kids-badge-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.kids-badge-sub {
  color: var(--muted-2);
  font-size: 0.95rem;
}

.kids-ages {
  padding: 24px 0 18px;
}

.kids-section-head h2 {
  font-weight: 800;
}

.kids-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kids-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 192, 192, 0.18);
  touch-action: manipulation;
}

.kids-card-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
}

.kids-card-body {
  padding: 14px;
}

.kids-card-title {
  margin: 0;
  font-weight: 900;
}

.kids-card-sub {
  margin: 6px 0 10px;
  color: var(--muted-2);
  font-weight: 700;
}

.kids-card-text {
  margin: 0;
  color: var(--muted);
}

.kids-card-gold {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.10) inset;
}

.kids-card-blue {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.10) inset;
}

.kids-card-orange {
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.12) inset;
}

.kids-expect {
  padding: 24px 0 40px;
}

.kids-timeline {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kids-step {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 192, 192, 0.18);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kids-step-num {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(7, 7, 7, 0.98);
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.92), rgba(56, 189, 248, 0.84));
  flex: 0 0 auto;
}

.kids-step-title {
  font-weight: 900;
}

.kids-step-text {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin-top: 2px;
}

.kids-footer-cta {
  padding: 10px 0 72px;
}

.kids-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    radial-gradient(900px 260px at 25% 20%, rgba(255, 138, 0, 0.14), transparent 60%),
    radial-gradient(900px 260px at 70% 60%, rgba(56, 189, 248, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(192, 192, 192, 0.18);
}

.kids-cta-title {
  margin: 0;
  font-weight: 900;
}

.kids-cta-sub {
  margin: 6px 0 0;
  color: var(--muted);
}

.kids-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.label {
  color: var(--muted-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.input,
.textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 192, 192, 0.22);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 14px;
  font: inherit;
}

/* iOS date input polish: avoid the "gray until touched" look */
.input[type="date"] {
  opacity: 1;
  -webkit-text-fill-color: var(--text);
}

.input[type="date"]::-webkit-date-and-time-value,
.input[type="date"]::-webkit-datetime-edit {
  color: var(--text);
}

.input[type="date"]:required:invalid {
  color: var(--muted-2);
  -webkit-text-fill-color: var(--muted-2);
}

.input[type="date"]:required:invalid::-webkit-datetime-edit {
  color: var(--muted-2);
}

.textarea {
  resize: vertical;
  min-height: 140px;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(192, 192, 192, 0.62);
}

.input:focus-visible,
.textarea:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.30);
  outline-offset: 2px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  /* Support notched phones */
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

/* Mobile navigation (best-practice: accessible toggle + slide-down panel) */
.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.35);
  outline-offset: 2px;
}

.nav-toggle-icon {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon span {
  top: 6px;
}

.nav-toggle-icon::after {
  top: 12px;
}

.site-header.nav-open .nav-toggle-icon::before {
  top: 6px;
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon span {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-icon::after {
  top: 6px;
  transform: rotate(-45deg);
}

.footer-title {
  font-weight: 700;
}

.footer-meta {
  color: var(--muted-2);
  font-size: 1rem;
}

/* Sticky bottom CTA (mobile): used to promote “Plan Your Visit” on long pages. */
@media (max-width: 900px) {
  body.has-sticky-cta {
    /* Prevent the CTA from covering the last lines of content. */
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(7, 7, 7, 0.86);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: none;
  }

  @supports ((-webkit-backdrop-filter: blur(14px)) or (backdrop-filter: blur(14px))) {
    .sticky-cta {
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
    }
  }

  body.has-sticky-cta .sticky-cta {
    display: block;
  }

  /* If the mobile menu is open, hide the CTA to avoid stacking conflicts. */
  body.nav-open .sticky-cta {
    display: none;
  }

  .sticky-cta-inner {
    width: min(100% - 12px, 520px);
    margin-inline: auto;
  }

  .sticky-cta .btn {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    font-weight: 800;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscribe-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-kids,
  .bento-youth,
  .bento-young,
  .bento-info {
    grid-column: span 1;
  }

  .ig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .kids-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kids-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kids-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kids-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: clamp(520px, 72vh, 820px);
    padding: 108px 0 76px;
  }

  /* On smaller screens, bias further downward so the building stays visible. */
  .home-hero--building .home-hero-img {
    object-position: 50% 84%;
  }

  .kids-hero {
    min-height: clamp(500px, 70vh, 780px);
    padding: 104px 0 58px;
  }

  .header-inner {
    align-items: stretch;
    gap: 10px;
  }

  .header-top {
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 220ms ease, padding 220ms ease;
  }

  .site-header.nav-open .header-actions {
    max-height: 420px;
    padding: 8px 0 12px;
    overflow: auto;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 12px;
  }

  .header-actions .btn {
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-sublink {
    width: 100%;
    color: var(--muted);
  }
}

@media (max-width: 600px) {
  /* Reduce GPU-heavy background effects on smaller / low-power devices */
  .orb {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .home-hero {
    min-height: clamp(480px, 68vh, 720px);
    padding: 96px 0 66px;
  }

  .home-hero--building .home-hero-img {
    object-position: 50% 88%;
  }

  .kids-hero {
    min-height: clamp(460px, 66vh, 700px);
    padding: 92px 0 54px;
  }

  .cards,
  .quick-facts,
  .ig-grid,
  .kids-badges,
  .kids-cards,
  .kids-timeline {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

/* Hover effects only for pointer devices (avoids sticky hover on touch) */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .btn {
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  }

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

  .bento-tile:hover {
    border-color: rgba(212, 175, 55, 0.28);
  }

  .kids-card {
    transition: transform 160ms ease, border-color 160ms ease;
  }

  .kids-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.28);
  }
}

/* Touch feedback for mobile (hover-less) devices */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn,
  .bento-tile,
  .kids-card {
    transition: transform 80ms ease, background 120ms ease, border-color 120ms ease;
  }

  .nav-link:active {
    background: rgba(255, 255, 255, 0.08);
  }

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

  .bento-tile:active {
    transform: translateY(1px);
    border-color: rgba(212, 175, 55, 0.28);
  }

  .kids-card:active {
    transform: translateY(1px);
    border-color: rgba(212, 175, 55, 0.28);
  }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--muted-2);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Touch devices: make breadcrumb links easier to tap without changing overall layout */
@media (hover: none) and (pointer: coarse) {
  .breadcrumbs a {
    display: inline-flex;
    align-items: center;
    padding: 8px 6px;
    margin: -8px -6px;
    min-height: 44px;
    border-radius: 10px;
  }
}

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

.breadcrumbs a:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.breadcrumbs-sep {
  color: var(--muted-2);
  opacity: 0.6;
}

.breadcrumbs-current {
  color: var(--text);
  font-weight: 600;
}

/* Privacy Policy */
.privacy-content {
  max-width: 75ch;
}

.privacy-section {
  margin-bottom: 32px;
}

.privacy-section h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--text);
}

.privacy-section h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
  color: var(--text);
}

.privacy-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.privacy-section ul {
  margin: 0 0 12px;
  padding-left: 24px;
  color: var(--muted);
}

.privacy-section li {
  margin-bottom: 6px;
}

/* Testimonials */
.home-testimonials {
  position: relative;
  padding: 80px 20px;
  background: var(--bg);
  overflow: hidden;
}

.home-testimonials .container {
  position: relative;
  z-index: 1;
}

.home-testimonials .section-head {
  text-align: center;
  margin-bottom: 48px;
}

.home-testimonials .section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 12px;
  color: var(--text);
}

.home-testimonials .section-head p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.testimonials-grid {
  display: grid;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.testimonial {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-cite {
  font-size: 0.9rem;
  color: var(--accent-1);
  font-style: normal;
  font-weight: 600;
}

.testimonials-cta {
  text-align: center;
  margin-top: 40px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Inlined: nav-dropdown.css                                                   */
/* -------------------------------------------------------------------------- */

/* Nav dropdown (Ministries)
 * Inlined to reduce HTTP requests (was /nav-dropdown.css).
 */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown > summary.nav-link::after {
  content: "▾";
  font-size: 0.9em;
  opacity: 0.85;
  transition: transform 160ms ease;
}

.nav-dropdown[open] > summary.nav-link::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(7, 7, 7, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

.nav-sublink {
  padding: 10px 10px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-sublink {
    width: 100%;
    color: var(--muted);
  }
}

/* -------------------------------------------------------------------------- */
/* Inlined: overrides.css                                                      */
/* -------------------------------------------------------------------------- */

/* Site overrides / hotfixes
 * Inlined to reduce HTTP requests (was /overrides.css).
 */

/* Home page: center key section headings (hero + testimonials + building hero) */
.home-hero[aria-label="Hero"] .home-hero-inner,
.home-hero[aria-label="Visit our building"] .home-hero-inner {
  text-align: center;
}

/* Home page: center hero lead paragraph blocks (max-width paragraphs need auto side margins) */
.home-hero[aria-label="Hero"] .lead,
.home-hero[aria-label="Visit our building"] .lead {
  margin-inline: auto;
  max-width: 70ch;
}

.home-testimonials .section-head {
  text-align: center;
  justify-items: center;
}

.home-testimonials .section-head p {
  margin-inline: auto;
}

/* Home page (mobile): overlap Pastor headshot over text to avoid dead space */
@media (max-width: 768px) {
  .home-pastor .pastor-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-pastor .pastor-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    position: relative;
    z-index: 2;
  }

  .home-pastor .pastor-photo {
    object-position: 50% 18%;
  }

  .home-pastor .pastor-body {
    position: relative;
    z-index: 1;
    margin-top: -40px;
    padding-top: 58px;
  }
}

/* Assembly of God Beliefs: center hero headline + lead block */
.home-hero[aria-label="What we believe hero"] .home-hero-inner {
  text-align: center;
}

.home-hero[aria-label="What we believe hero"] .lead {
  margin-inline: auto;
  max-width: 70ch;
}

/* Contact: center hero headline + lead block */
.home-hero[aria-label="Contact hero"] .home-hero-inner {
  text-align: center;
}

.home-hero[aria-label="Contact hero"] .lead {
  margin-inline: auto;
  max-width: 70ch;
}

/* New Here: center hero headline + lead block */
.home-hero[aria-label="New here hero"] .home-hero-inner {
  text-align: center;
}

.home-hero[aria-label="New here hero"] .lead {
  margin-inline: auto;
  max-width: 70ch;
}

/* Youth: center hero headline + lead block */
.home-hero[aria-label="Youth hero"] .home-hero-inner {
  text-align: center;
}

.home-hero[aria-label="Youth hero"] .lead {
  margin-inline: auto;
  max-width: 70ch;
}

/* Young Adults: center hero headline + lead block */
.home-hero[aria-label="Young adult ministry hero"] .home-hero-inner {
  text-align: center;
}

.home-hero[aria-label="Young adult ministry hero"] .lead {
  margin-inline: auto;
  max-width: 70ch;
}

/* Plan Your Visit: center hero headline + lead block */
.home-hero[aria-label="Plan your visit hero"] .home-hero-inner {
  text-align: center;
}

.home-hero[aria-label="Plan your visit hero"] .lead {
  margin-inline: auto;
  max-width: 70ch;
}

.home-hero--building .home-hero-overlay {
  /* Slightly lighter overlay for this specific photo so the building reads clearly */
  background:
    radial-gradient(900px 520px at 18% 25%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(800px 520px at 78% 35%, rgba(192, 192, 192, 0.10), transparent 60%),
    rgba(7, 7, 7, 0.40);
}

/* Footer: enlarge tap targets for inline links (mobile usability) */
.site-footer .footer-meta .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  min-height: 44px;
  border-radius: 10px;
}


