:root {
  --ocean-950: #2a140c;
  --ocean-900: #4a2414;
  --ocean-800: #6b3218;
  --ocean-700: #8a401c;
  --lagoon: #c45c1a;
  --lagoon-soft: #fde6d2;
  --gold: #e07a2f;
  --gold-soft: #f3c08a;
  --gold-deep: #c45c1a;
  --cream: #f8f1e6;
  --sand: #ead7c2;
  --leaf: #2f5d3a;
  --ink: #17140f;
  --ink-soft: #4a453c;
  --paper: #fffcf7;
  --line: rgba(74, 36, 20, 0.12);
  --shadow: 0 18px 50px rgba(42, 20, 12, 0.14);
  --radius: 18px;
  --header-h: 5.4rem;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--ocean-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-deep);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--ocean-950);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.muted {
  color: var(--ink-soft);
}

/* Header */
.brand-bar {
  background: var(--ocean-950);
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.logo img {
  width: 2.7rem;
  height: 2.7rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.logo-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ocean-900);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ocean-800);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-cta {
  margin-left: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--ocean-950);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--ocean-950);
}

.btn-light {
  background: transparent;
  border-color: rgba(246, 240, 228, 0.45);
  color: var(--cream);
}

.btn-light:hover {
  background: rgba(246, 240, 228, 0.12);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  border-color: var(--ocean-900);
  color: var(--ocean-900);
}

.btn-outline:hover {
  background: var(--ocean-900);
  color: var(--cream);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(42, 20, 12, 0.12) 0%, rgba(42, 20, 12, 0.42) 48%, rgba(42, 20, 12, 0.9) 100%),
    url("../images/church-hero.jpg") center 62%/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5.5rem;
  background: url("../images/pattern-wave.svg") center/cover no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 6.5rem;
  padding-top: 5rem;
}

.hero .kicker {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.8rem;
}

.hero h1 {
  max-width: 14ch;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 38rem;
  font-size: 1.15rem;
  color: rgba(246, 240, 228, 0.9);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--gold-soft);
}

.hero-meta strong {
  display: block;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
}

/* Page hero */
.page-hero {
  background:
    linear-gradient(115deg, rgba(42, 20, 12, 0.88), rgba(196, 92, 26, 0.72)),
    url("../images/church-facade.jpg") center 45%/cover;
  color: var(--cream);
  padding: 4.5rem 0 3.5rem;
}

.photo-frame {
  margin: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-frame figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.youth-verse {
  margin: 1.4rem 0 1.5rem;
  max-width: 46rem;
  padding: 1.2rem 1.3rem 1.25rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
}

.youth-verse blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  color: var(--ocean-900);
  line-height: 1.45;
}

.youth-verse cite {
  display: block;
  margin-top: 0.55rem;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, var(--ink-soft));
}

.youth-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.75rem;
  margin: 1.75rem 0 0.55rem;
}

.youth-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
}

.youth-gallery figure:nth-child(1),
.youth-gallery figure:nth-child(2) {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
}

.youth-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.youth-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(42, 20, 12, 0.78));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

#youth h4 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--ocean-900);
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero p {
  max-width: 40rem;
  color: rgba(246, 240, 228, 0.88);
}

.page-hero .kicker {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.8rem;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-ocean {
  background: var(--ocean-900);
  color: var(--cream);
}

.section-ocean .eyebrow {
  color: var(--gold-soft);
}

.section-ocean .muted,
.section-ocean .lede {
  color: rgba(246, 240, 228, 0.82);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-copy h2 {
  max-width: 16ch;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.quote-panel {
  background: var(--ocean-900);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
}

.quote-panel blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}

.quote-panel cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Cards */
.grid-3,
.grid-2,
.grid-5 {
  display: grid;
  gap: 1.15rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card,
.ministry-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  height: 100%;
}

.section-cream .card,
.section-cream .ministry-card {
  background: #fffdf8;
}

.icon-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--lagoon-soft);
  color: var(--ocean-900);
}

.ministry-card h3 {
  font-size: 1.2rem;
}

.ministry-card a {
  font-weight: 600;
  text-decoration: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  border-top: 2px solid var(--gold);
  padding-top: 0.9rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

/* Lists */
.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.hours strong {
  font-weight: 600;
}

.check-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Events */
.event {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.event-date {
  background: var(--ocean-900);
  color: var(--cream);
  border-radius: 12px;
  text-align: center;
  padding: 0.7rem 0.4rem;
}

.event-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.event-date span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Forms */
form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: inherit;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note,
.form-success {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--lagoon-soft);
}

.form-success[hidden] {
  display: none;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  filter: saturate(0.85);
}

/* Footer */
.site-footer {
  background: var(--ocean-950);
  color: rgba(246, 240, 228, 0.82);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer h3 {
  color: var(--cream);
  font-size: 1.05rem;
}

.site-footer .logo-text span {
  color: rgba(246, 240, 228, 0.65);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 240, 228, 0.12);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.verse {
  color: var(--gold-soft);
  font-style: italic;
}

/* Utility */
.mt-0 { margin-top: 0; }
.narrow { max-width: 42rem; }

@media (max-width: 980px) {
  .grid-5,
  .grid-3,
  .split,
  .footer-grid,
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .youth-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .youth-gallery figure:nth-child(1),
  .youth-gallery figure:nth-child(2) {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 1rem 1.1rem;
    gap: 0;
  }

  .site-header.open .site-nav {
    display: flex;
  }

  .site-nav a,
  .nav-cta {
    margin: 0;
    padding: 0.75rem 0.2rem;
    box-shadow: none;
  }

  .grid-5,
  .grid-3,
  .grid-2,
  .split,
  .footer-grid,
  .stat-row,
  .event {
    grid-template-columns: 1fr;
  }

  .youth-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    margin-bottom: 5.2rem;
  }
}

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

  .btn {
    transition: none;
  }
}
