:root {
  --ink: #16202a;
  --muted: #5f6d78;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e4e0d8;
  --navy: #0d2c4a;
  --blue: #1c6c9d;
  --gold: #c99632;
  --green: #63784d;
  --wine: #7e3e4d;
  --shadow: 0 24px 70px rgba(13, 44, 74, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  clip: auto;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line);
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 12px 35px rgba(22, 32, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.brand strong,
.footer-brand span {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  font-size: 0.76rem;
  opacity: 0.78;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a:focus-visible,
.site-header.is-open .main-nav a:hover,
.site-header.is-open .main-nav a:focus-visible {
  background: #eef1f2;
}

.main-nav .nav-action {
  margin-left: 8px;
  color: #102033;
  background: #fff;
}

.site-header.is-scrolled .main-nav .nav-action,
.site-header.is-open .main-nav .nav-action {
  color: #fff;
  background: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 24, 38, 0.92) 0%, rgba(8, 24, 38, 0.7) 45%, rgba(8, 24, 38, 0.24) 100%),
    linear-gradient(0deg, rgba(8, 24, 38, 0.75) 0%, rgba(8, 24, 38, 0.05) 54%);
}

.hero-media {
  z-index: -2;
}

.hero-content {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 160px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: #111b24;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.btn-dark {
  color: #fff;
  background: var(--navy);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 860px;
  margin-top: 38px;
}

.hero-details span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.section-pad {
  padding: 88px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 58px;
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

.welcome-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.welcome-copy p + p {
  margin-top: 18px;
}

.visit {
  background: #f1f4f2;
}

.notices {
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 870px;
}

.section-heading p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.notice-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(22, 32, 42, 0.07);
}

.notice-card.is-important {
  border-color: rgba(201, 150, 50, 0.54);
  background: #fffaf0;
}

.notice-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.notice-card p {
  color: var(--muted);
}

.notice-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.notice-card-empty {
  min-height: auto;
  grid-column: 1 / -1;
}

.notice-meta {
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #2c1d05;
  background: #efd08b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.info-panel {
  min-height: 245px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(22, 32, 42, 0.06);
}

.info-panel p {
  color: var(--muted);
}

.info-panel a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 800;
}

.schedule-card {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(22, 32, 42, 0.08);
}

.schedule-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.schedule-heading .section-kicker {
  margin: 0;
}

.schedule-heading h3 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: right;
}

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

.schedule-grid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #e5e0d7;
  border-radius: 8px;
  background: #fbfaf7;
}

.schedule-grid h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.05rem;
}

.schedule-grid p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 0;
  color: var(--muted);
}

.schedule-grid span {
  flex: 0 0 auto;
  min-width: 52px;
  color: var(--ink);
  font-weight: 900;
}

.quote-band {
  padding: 54px 0;
  color: #fff;
  background: var(--navy);
}

.quote-band p {
  max-width: 920px;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
}

.quote-band span {
  display: inline-block;
  margin-top: 18px;
  color: #dcb56a;
  font-weight: 800;
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.ministry-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(22, 32, 42, 0.08);
}

.ministry-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ministry-card div {
  padding: 20px;
}

.ministry-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.media-section {
  background: #fff;
}

.media-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.media-layout p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.media-card {
  overflow: hidden;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card img.pastors-photo {
  aspect-ratio: 4 / 3;
  object-position: center 22%;
}

.media-card div {
  padding: 24px;
}

.media-card p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-band {
  padding: 56px 0;
  background: linear-gradient(90deg, var(--wine), var(--green));
  color: #fff;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-content h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.contact {
  background: #f4f0e8;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
}

.contact-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid #d9d1c4;
}

.contact-list dt {
  color: var(--navy);
  font-weight: 900;
}

.contact-list dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.contact-list dd a {
  display: inline-flex;
  margin: 0 12px 6px 0;
  color: var(--blue);
  font-weight: 800;
}

.map-shell {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid #d9d1c4;
  border-radius: 8px;
  background: #ddd;
  box-shadow: 0 18px 50px rgba(22, 32, 42, 0.12);
}

.map-shell iframe {
  width: 100%;
  height: 430px;
  display: block;
  border: 0;
}

.site-footer {
  padding: 28px 0;
  color: #d9e0e6;
  background: #0a1824;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-content p {
  color: #aeb8c2;
  text-align: right;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav .nav-action {
    margin-left: 0;
    color: #fff;
    background: var(--navy);
  }

  .hero {
    min-height: 760px;
  }

  .hero-media video,
  .hero-media img {
    object-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 24, 38, 0.9) 0%, rgba(8, 24, 38, 0.68) 55%, rgba(8, 24, 38, 0.54) 100%),
      linear-gradient(90deg, rgba(8, 24, 38, 0.82), rgba(8, 24, 38, 0.36));
  }

  .split,
  .media-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .visit-grid,
  .notices-grid,
  .ministry-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-content,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-content p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand small {
    display: none;
  }

  .hero-content {
    padding: 116px 0 42px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.55rem);
    line-height: 1;
    max-width: 10ch;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.72rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions,
  .social-actions,
  .hero-details {
    display: grid;
  }

  .btn,
  .hero-details span {
    width: 100%;
  }

  .section-pad {
    padding: 64px 0;
  }

  .split {
    gap: 24px;
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .visit-grid,
  .notices-grid,
  .ministry-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .info-panel {
    min-height: auto;
  }

  .schedule-card {
    padding: 18px;
  }

  .schedule-heading {
    display: block;
    margin-bottom: 16px;
  }

  .schedule-heading h3 {
    margin-top: 8px;
    text-align: left;
    font-size: 1.65rem;
  }

  .schedule-grid {
    gap: 10px;
  }

  .schedule-grid article {
    min-height: auto;
    padding: 16px;
  }

  .schedule-grid p {
    align-items: flex-start;
  }

  .media-card img.pastors-photo {
    aspect-ratio: 4 / 4.2;
    object-position: center top;
  }

  .map-shell,
  .map-shell iframe {
    min-height: 340px;
    height: 340px;
  }
}
