:root {
  --navy: #14233c;
  --navy-deep: #0c1628;
  --gold: #c8a24a;
  --gold-dark: #a8842f;
  --cream: #faf7f1;
  --sand: #f1ebdf;
  --ink: #1e2430;
  --muted: #5b6372;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 22, 40, 0.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); }
h3 { font-size: 1.6rem; color: var(--navy); }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--sand); }
.section-head { text-align: center; margin-bottom: 48px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--navy-deep); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.eyebrow-dark { color: var(--gold-dark); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; letter-spacing: 0.02em;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #d8b45c; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(12, 22, 40, 0.94); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.2); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: clamp(170px, 24vw, 240px); }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: block; padding: 8px 14px; color: var(--white); text-decoration: none;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px;
}
.site-nav a:hover { background: rgba(255,255,255,.12); }
.site-nav a.nav-cta { background: var(--gold); color: var(--navy-deep); }
.site-nav a.nav-cta:hover { background: #d8b45c; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,22,40,.75) 0%, rgba(12,22,40,.55) 45%, rgba(12,22,40,.88) 100%),
    url("images/church-building.jpg") center / cover no-repeat;
}
.hero-content { position: relative; text-align: center; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6rem); color: var(--white); margin-bottom: 0.2em; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 560px; margin: 0 auto 36px; color: rgba(255,255,255,.88); }
.hero-times { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.time-card {
  display: flex; flex-direction: column; min-width: 220px; padding: 18px 26px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); backdrop-filter: blur(6px);
}
.time-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.time-value { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; line-height: 1.2; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Welcome */
.welcome-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.pastor-photo { margin: 0; position: relative; }
.pastor-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; }
.pastor-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold); border-radius: var(--radius);
}
blockquote { margin: 0; }
blockquote p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.4; color: var(--ink); margin: 0 0 16px; font-style: italic; }
blockquote cite { font-style: normal; font-weight: 600; color: var(--muted); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #ece6d9; }
.schedule li:last-child { border-bottom: 0; }
.schedule strong { color: var(--navy); white-space: nowrap; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 20px; }
.contact-links { display: flex; flex-direction: column; gap: 6px; }
.contact-links a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.map { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 360px; border: 0; }

/* Give */
.give {
  position: relative; color: var(--white); text-align: center;
  padding: clamp(80px, 11vw, 130px) 0;
  background:
    linear-gradient(rgba(12,22,40,.82), rgba(12,22,40,.82)),
    url("images/bible.jpg") center / cover no-repeat;
}
.give h2 { color: var(--white); }
.give-content > p { color: rgba(255,255,255,.85); margin: 0 auto 28px; max-width: 520px; }
.give .fine-print { font-size: 0.85rem; color: rgba(255,255,255,.6); margin: 24px auto 0; max-width: 560px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 48px 0 32px; text-align: center; }
.footer-inner img { width: 200px; margin: 0 auto 20px; opacity: .9; }
.footer-links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0 0 20px; }
.footer-links a { color: var(--white); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.copyright { font-size: 0.85rem; margin: 0; }

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

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(12, 22, 40, 0.97); padding: 12px 16px 20px;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-header:has(.site-nav.open) { background: rgba(12, 22, 40, 0.97); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { padding: 12px 14px; text-align: center; }
  .welcome-grid { grid-template-columns: 1fr; text-align: center; }
  .pastor-photo { max-width: 260px; margin: 0 auto 12px; }
  .visit-grid { grid-template-columns: 1fr; }
  .map iframe { height: 280px; }
}

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