@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --navy: #123a5c;
  --navy-deep: #0d2c46;
  --gold: #c9982f;
  --cream: #faf7f0;
  --ink: #1f2430;
  --muted: #5b6472;
  --radius: 14px;
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

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

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  color: #fff;
}

.hymn-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
}

.hymn-frame {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.hymn-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #cbd3e0;
  text-decoration: none;
}

.hymn-label:hover { color: var(--gold); }

.hymn-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #cbd3e0;
  cursor: pointer;
  font-size: 1rem;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
}

.hymn-toggle:hover { color: var(--gold); }

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #e7e9ee;
  font-size: .95rem;
  padding: 4px 2px;
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 140px 24px 110px;
  text-align: center;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,44,70,.55) 0%, rgba(13,44,70,.38) 45%, rgba(13,44,70,.65) 100%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero-content h1,
.hero-content .eyebrow,
.hero-content .tagline { text-shadow: 0 2px 10px rgba(0,0,0,.55); }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 500;
  color: #f0d999;
  margin-bottom: 14px;
}

.gold-angel {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

.tagline { color: #e3e7ef; font-size: 1.1rem; margin: 18px 0 34px; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease-out, opacity .15s ease-out;
  cursor: pointer;
  min-height: 44px;
}

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

.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: #fff; }

.lead { color: var(--muted); max-width: 620px; font-size: 1.05rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 24px rgba(18,58,92,.06);
  border: 1px solid #eee;
}

.card h3 { color: var(--navy); font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Event card */
.event-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  background: var(--cream);
  border: 1px solid #ecdfc4;
  border-radius: var(--radius);
  padding: 24px;
}

.event-flyer {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

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

.event-details h3 { margin-bottom: 14px; }

.event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
  font-size: .92rem;
  color: var(--ink);
}

.event-meta strong { color: var(--navy); }

.event-details .lead { margin: 0 0 20px; font-size: .95rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(18,58,92,.08);
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--muted);
}

.belief-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 32px;
}

.belief-category {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 26px;
  border: 1px solid #eee;
  box-shadow: 0 6px 24px rgba(18,58,92,.06);
}

.belief-category h3 {
  color: var(--gold);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.belief-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.belief-category li {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.4;
}

.btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  border: 1px solid var(--navy);
  transition: background .15s ease-out, color .15s ease-out;
}

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

.visit-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.visit-list li {
  color: var(--muted);
  font-size: .95rem;
  padding-left: 22px;
  position: relative;
}

.visit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Service times */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.service-item {
  background: var(--cream);
  border: 1px solid #ecdfc4;
  border-radius: var(--radius);
  padding: 22px 24px;
}

.service-item h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.1rem; }
.time { color: var(--muted); margin: 0; }
.time em { color: var(--gold); font-style: normal; font-weight: 600; }

.note { color: var(--muted); font-size: .85rem; margin-top: 20px; }
.address { font-weight: 600; margin-top: 6px; }

/* Sermon card */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin-top: 32px;
}

.sermon-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(18,58,92,.12);
  text-decoration: none;
}

.sermon-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease-out;
}

.sermon-channel-link { margin-top: 24px; }

.sermon-card:hover img { transform: scale(1.04); }

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13,44,70,.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sermon-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(13,44,70,.92), transparent);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(18,58,92,.08);
}

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

/* Contact */
.contact-grid p { margin: 0 0 18px; }
.contact-grid a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b9c0cf;
  text-align: center;
  padding: 28px;
  font-size: .85rem;
}

.footer-mark {
  margin: 0 auto 10px;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .belief-categories { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .sermon-grid { grid-template-columns: 1fr; }
}
