:root {
  --deep: #0b3d4f;
  --teal: #147d8c;
  --teal-light: #e6f4f6;
  --gold: #e8b04b;
  --ink: #1d2b2f;
  --muted: #5d7076;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 79, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.2; color: var(--deep); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 20px; }
h3 { margin-bottom: 10px; }
p + p { margin-top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11,61,79,0.08);
}
.nav { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-weight: 700; font-size: 1.15rem; }
.brand em { font-style: normal; color: var(--teal); }
.brand-mark { width: 34px; height: 34px; color: var(--teal); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--teal); }
.btn-nav { background: var(--teal); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.btn-nav:hover { background: var(--deep); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--deep); cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--deep) 0%, var(--teal) 100%);
  color: #fff;
  padding: 110px 24px 140px;
  text-align: center;
}
.hero h1 { color: #fff; margin: 14px 0 18px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; opacity: 0.85; }
.hero-sub { max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem; opacity: 0.95; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 90px; }

/* Buttons */
.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all .2s; font-size: 1rem; }
.btn-primary { background: var(--gold); color: var(--deep); }
.btn-primary:hover { background: #f0c36d; }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-light { background: #fff; color: var(--deep); }
.btn-small { padding: 9px 20px; font-size: 0.9rem; background: var(--teal); color: #fff; margin-top: 12px; }
.btn-small:hover { background: var(--deep); color: #fff; }

/* Sections */
.section { padding: 84px 0; }
.section-tint { background: var(--teal-light); }
.section-dark { background: var(--deep); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

/* Verse card */
.verse-card { background: var(--teal-light); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.verse { font-size: 1.15rem; font-style: italic; color: var(--deep); }
.verse-ref { margin-top: 14px; font-weight: 700; color: var(--teal); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-big { font-size: 1.4rem; font-weight: 700; color: var(--teal); margin-bottom: 8px; }

/* Events */
.event-list { list-style: none; margin: 26px 0 18px; }
.event-list li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.15); align-items: baseline; }
.event-date { min-width: 110px; font-weight: 700; color: var(--gold); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.events-note { opacity: 0.85; margin-bottom: 20px; }

/* Visit */
.checklist { list-style: none; margin-top: 18px; }
.checklist li { padding: 12px 0 12px 36px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 12px; width: 24px; height: 24px; background: var(--teal-light); color: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.map-card { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.map-card h3 { color: #fff; }
.map-card p { margin-bottom: 18px; font-size: 1.1rem; }

/* Contact */
.contact-line { margin-top: 10px; }
.muted { color: var(--muted); font-size: 0.85rem; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; color: var(--deep); }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cfdcdf; border-radius: 8px;
  font: inherit; background: #fbfdfd;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.form-status { font-weight: 600; color: var(--teal); }

/* Footer */
.site-footer { background: var(--deep); color: #fff; padding: 30px 0; text-align: center; }
.site-footer .muted { color: rgba(255,255,255,0.6); margin-top: 6px; }
.footer-inner { display: flex; flex-direction: column; gap: 4px; }

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .cards, .cards-4 { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 16px; display: none;
    border-bottom: 1px solid rgba(11,61,79,0.08); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 560px) {
  .cards, .cards-4 { grid-template-columns: 1fr; }
  .event-list li { flex-direction: column; gap: 4px; }
  .section { padding: 64px 0; }
}

/* Hero with optional photo background */
.hero.has-photo { background: linear-gradient(rgba(11,61,79,0.72), rgba(20,125,140,0.72)), var(--hero-img, none) center/cover no-repeat, linear-gradient(135deg, var(--deep), var(--teal)); }

/* Gallery */
.gallery-note { max-width: 640px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--teal-light) center/cover no-repeat; box-shadow: var(--shadow);
  display: flex; align-items: flex-end;
}
.gallery-item figcaption {
  position: relative; z-index: 2; width: 100%; padding: 10px 14px;
  background: rgba(11,61,79,0.75); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.gallery-item.missing { display: flex; align-items: center; justify-content: center; }
.gallery-item.missing figcaption { background: none; color: var(--muted); font-weight: 500; text-align: center; padding: 12px; }
.gallery-item.missing::before { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(20,125,140,0.06) 12px, rgba(20,125,140,0.06) 24px); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Brand logo */
.brand-logo { height: 46px; width: auto; border-radius: 6px; }
.brand-text { line-height: 1.1; }
@media (max-width: 480px) { .brand-logo { height: 38px; } .brand-text { font-size: 1rem; } }

/* Links on dark sections */
.section-dark a { color: var(--gold); }

/* Button pairs in service cards */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* History timeline */
.history-intro { max-width: 720px; margin-bottom: 36px; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; border-left: 3px solid var(--teal); }
.timeline-item { position: relative; padding: 0 0 30px 26px; }
.timeline-item::before { content: ""; position: absolute; left: -11px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
.timeline-year { display: inline-block; font-weight: 800; color: var(--teal); font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 4px; }
.history-quote { text-align: center; margin-top: 20px; font-size: 1.15rem; color: var(--deep); font-style: italic; }

/* Leadership */
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.leader-card { text-align: center; }
.avatar { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 800; letter-spacing: 1px; }
.leader-role { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; margin-bottom: 12px; }
@media (max-width: 560px) { .cards-2 { grid-template-columns: 1fr; } }

/* Pastor photos */
.avatar-img { object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
