:root {
  --navy: #10243f;
  --navy-2: #183456;
  --blue: #0d6fe6;
  --blue-deep: #0a56b8;
  --blue-soft: #e8f2fc;
  --orange: #ef7a1a;
  --orange-deep: #d1650b;
  --ink: #142033;
  --muted: #5c6b80;
  --line: #e2e8f0;
  --paper: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 36, 63, 0.12);
  --radius: 18px;
  --header: 64px;
  --wrap: 1140px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; display: block; }
audio, iframe { max-width: 100%; }
a { color: var(--blue-deep); }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 650; letter-spacing: -0.03em; }
h1 { font-family: var(--serif); font-weight: 560; font-size: clamp(2.15rem, 9vw, 5.2rem); margin: 0; }
h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(1.7rem, 6vw, 3.3rem); margin: 0 0 0.6rem; }
h3 { margin: 0 0 0.4rem; font-size: 1.15rem; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--orange);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 80;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), calc(100% - 1.5rem)); margin-inline: auto; }

.topbar {
  background: var(--navy);
  color: #d5e4f5;
  font-size: 0.92rem;
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
}
.topbar a { max-width: 100%; }
.topbar .addr { display: none; }
.topbar a { color: white; text-decoration: none; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 36, 63, 0.08);
}
.header-bar {
  position: relative;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img { width: 46px; height: 46px; flex: none; }
.brand > span { display: grid; line-height: 1.15; min-width: 0; }
.brand strong { display: block; color: var(--navy); font-size: 0.98rem; letter-spacing: -0.03em; }
.brand span span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
label.nav-burger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  max-height: calc(100dvh - var(--header));
  overflow: auto;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0.75rem 1rem;
  box-shadow: var(--shadow);
}
.nav-toggle:checked ~ .nav { display: flex; }
.nav a, .drop summary {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
}
.nav a:hover, .drop summary:hover, .nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-deep); }
.drop { position: relative; }
.drop summary { list-style: none; cursor: pointer; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary:after { content: ""; margin-left: auto; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.drop-panel { display: none; padding: 0 0 0.35rem 0.45rem; }
.drop[open] .drop-panel { display: grid; }
.drop-panel a { border-radius: 12px; }
.header-cta { margin: 0.55rem 0.75rem 0.15rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-line { background: white; color: var(--navy); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--navy); }

.hero {
  position: relative;
  min-height: calc(100svh - 7.25rem);
  color: white;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.hero-page { min-height: 28rem; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,36,63,0.2) 0%, rgba(16,36,63,0.28) 35%, rgba(16,36,63,0.88) 100%);
}
.hero-copy { padding: 3.2rem 0 2.6rem; max-width: 760px; }
.hero-page .hero-copy { padding: 2.6rem 0 2rem; }
.hero-banner {
  min-height: 0;
  display: block;
  background: #071525;
  color: white;
}
.hero-banner-picture { display: block; }
.hero-banner-img {
  width: 100%;
  height: auto;
}
.hero-banner-bar {
  padding: 1.15rem 0 1.35rem;
}
.hero-banner h1 {
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  max-width: 18ch;
}
.hero-banner .lede { margin-bottom: 0; font-size: 0.98rem; }
.hero-banner .hero-actions { margin-top: 0.9rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd7b0;
  margin: 0 0 0.75rem;
}
.lede { font-size: 1.05rem; max-width: 40rem; color: #f3f7fb; }
.hero-actions, .actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.section { padding: 3.2rem 0; }
.section-head { margin-bottom: 1.4rem; }
.kicker { color: var(--orange-deep); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 0.5rem; }
.muted { color: var(--muted); }
.paper { background: var(--paper); }
.navy-band { background: var(--navy); color: white; }
.navy-band .muted { color: #c5d4e6; }

.schedule { position: relative; z-index: 2; }
.schedule-section { padding-top: 1.25rem; }
.schedule-grid, .card-grid, .value-grid, .method-grid, .info-grid, .split, .contact-grid, .footer-grid {
  display: grid;
  gap: 0.85rem;
}
.card, .schedule-card, .method, .info-card, .sermon, .event, .value {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 36, 63, 0.05);
}
.schedule-card { padding: 1.05rem 1.1rem 1.15rem; }
.schedule-card img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 0.7rem; }
.schedule-card strong { display: block; color: var(--blue); font-size: 0.95rem; }
.when { font-family: var(--serif); font-size: 1.7rem; margin: 0.15rem 0; }

.split { align-items: center; gap: 1.4rem; }
.split img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 22px; }
.quote {
  background: var(--navy);
  color: white;
  border-radius: 22px;
  padding: 1.2rem;
  margin-top: 1rem;
}
.quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; }
.quote span { color: #ffd7b0; font-weight: 700; }

.pastores-card { overflow: hidden; }
.pastores-card img { width: 100%; height: 320px; object-fit: cover; object-position: center top; }
.pad { padding: 1.15rem; }
.sermon h2 { font-size: clamp(1.55rem, 5vw, 2.1rem); }

.value { padding: 1rem 0.8rem; text-align: center; }
.value-grid { grid-template-columns: repeat(2, 1fr); }
.value img { width: 48px; height: 48px; margin: 0 auto 0.55rem; object-fit: contain; }
.value h3 { font-size: 0.98rem; }

.beliefs { display: grid; gap: 0.65rem; }
.belief {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.15rem 0.9rem;
}
.belief summary { cursor: pointer; font-weight: 800; min-height: 48px; display: flex; align-items: center; }
.belief p:last-child { margin-bottom: 0.9rem; }
.refs { color: var(--muted); font-size: 0.92rem; }

.photo-grid, .gallery-grid { display: grid; gap: 0.55rem; }
.photo-grid { grid-template-columns: 1fr 1fr; }
.photo-grid a:first-child { grid-column: 1 / -1; }
.photo-grid a { display: block; height: 132px; }
.photo-grid a:first-child { height: 210px; }
.photo-grid img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.gallery-grid { grid-template-columns: 1fr 1fr; }
.gallery-grid a { aspect-ratio: 1; display: block; }

.sermon-list, .event-list { display: grid; gap: 0.9rem; }
.sermon, .event { display: grid; overflow: hidden; }
.sermon img, .event img { width: 100%; height: 210px; object-fit: cover; }
audio { width: 100%; margin-top: 0.8rem; }
.date-pill {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.45rem;
}

.method, .info-card { padding: 1.1rem; }
.method img, .info-card img { width: 46px; height: 46px; object-fit: contain; margin-bottom: 0.65rem; }
.info-card p, .account dd, .footer p, .footer a { overflow-wrap: anywhere; }
.account {
  background: var(--navy);
  color: white;
  border-radius: 22px;
  padding: 1.2rem;
}
.account dt { color: #ffd7b0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.account dd { margin: 0 0 0.8rem; font-size: 1.05rem; }

form { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.92rem; }
input:not([type="checkbox"]), textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  font-size: 16px;
}
input:focus, textarea:focus { outline: 3px solid rgba(13, 111, 230, 0.25); border-color: var(--blue); }
.form-row { display: grid; gap: 0.75rem; }
.note { background: var(--blue-soft); border-radius: 14px; padding: 0.8rem 1rem; }
.map { margin-top: 1.25rem; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 280px; border: 0; }

.footer {
  background: var(--navy);
  color: #d5e2f0;
  padding: 2.6rem 0 calc(1.2rem + env(safe-area-inset-bottom));
}
.footer a { color: white; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h2 { color: white; font-size: 1.6rem; }
.footer h3 { color: white; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.4rem; }
.footer ul, .hours { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0.35rem 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.6rem;
  padding-top: 1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.hours li {
  display: grid;
  gap: 0.1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.hours { max-width: 640px; }

.empty { text-align: center; padding: 0.4rem 0 0.2rem; }

@media (min-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 2.5rem)); }
  .topbar .wrap { justify-content: space-between; }
  .topbar .addr { display: inline; }
  .hero-actions, .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .schedule-grid, .method-grid, .info-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hours li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .legal { display: flex; justify-content: space-between; align-items: center; }
  .quote p { font-size: 1.4rem; }
}

@media (min-width: 900px) {
  :root { --header: 76px; --radius: 22px; }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: 1rem; }
  label.nav-burger { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav a, .drop summary {
    min-height: 0;
    font-size: 0.95rem;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
  }
  .drop summary:after { margin-left: 0.35rem; border-width: 4px; transform: none; vertical-align: 2px; }
  .drop-panel {
    position: absolute;
    top: calc(100% - 0.15rem);
    left: 0;
    min-width: 250px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.45rem;
  }
  .drop:hover .drop-panel,
  .drop:focus-within .drop-panel,
  .drop[open] .drop-panel { display: grid; }
  .header-cta { width: auto; margin: 0 0 0 0.35rem; }

  .hero { min-height: 88vh; }
  .hero-banner {
    display: block;
    height: auto;
    min-height: 0;
  }
  .hero-banner-picture,
  .hero-banner-img {
    display: block;
    position: static;
    width: 100%;
    height: auto;
  }
  .hero-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .hero-banner .hero-actions { margin-top: 0; flex: 0 0 auto; }
  .hero-page { min-height: 52vh; }
  .hero-copy { padding: 6.5rem 0 5rem; }
  .hero-page .hero-copy { padding: 5rem 0 3.5rem; }
  .lede { font-size: 1.2rem; }
  .section { padding: 5rem 0; }
  .schedule-section { padding-top: 2rem; }
  .schedule-grid, .method-grid { grid-template-columns: repeat(4, 1fr); }
  .value-grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .card-grid { grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem; align-items: start; }
  .pastores-card img { height: 100%; min-height: 440px; }
  .sermon, .event { grid-template-columns: 220px 1fr; }
  .sermon img, .event img { height: 100%; min-height: 200px; }
  .photo-grid { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 180px; }
  .photo-grid a, .photo-grid a:first-child { height: 100%; grid-column: auto; }
  .photo-grid a:first-child { grid-row: span 2; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
  .footer { padding-top: 3.5rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; }
  .map iframe { height: 420px; }
  .account { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
