/* ============================================================
   Lifegate Assembly of God — Shared Stylesheet
   Mobile-first, no external dependencies.
   ============================================================ */

:root {
  --navy: #10233f;
  --navy-soft: #1b3357;
  --gold: #c9962b;
  --gold-light: #e8c46a;
  --cream: #fbf8f2;
  --white: #ffffff;
  --ink: #1d2430;
  --muted: #5b6675;
  --line: #e3ddd1;
  --shadow: 0 10px 30px rgba(16, 35, 63, 0.10);
  --radius: 14px;
  --max: 1120px;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-light), var(--gold));
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav.open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 12px;
  max-width: var(--max);
  margin: 0 auto;
}

.site-nav a {
  display: block;
  padding: 11px 20px;
  color: #e8eef7;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus { color: var(--gold-light); }

.site-nav a[aria-current="page"] { color: var(--gold-light); font-weight: 700; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 15%, rgba(201, 150, 43, 0.35), transparent 55%),
    linear-gradient(160deg, #0b1a30 0%, #16304f 55%, #1f3f66 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(232, 196, 106, 0.18), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.15rem;
  margin-bottom: 16px;
}

.hero p.lead {
  font-size: 1.05rem;
  color: #dbe4f0;
  max-width: 34em;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  color: #cfdaea;
}
.hero-meta strong { color: var(--white); display: block; font-size: 0.98rem; }

/* ---------- Sections ---------- */

.section { padding: 52px 0; }
.section-tight { padding: 36px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: #dbe4f0; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 44em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-navy .section-head p { color: #c3d0e2; }

/* ---------- Cards / Grids ---------- */

.grid { display: grid; gap: 18px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.card-accent { border-top: 4px solid var(--gold); }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201, 150, 43, 0.14);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

/* Service times */

.times { display: grid; gap: 16px; }

.time-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.time-day {
  flex: 0 0 auto;
  width: 74px;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 10px 6px;
}
.time-day span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.time-day strong { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; }

.time-body h3 { margin-bottom: 4px; font-size: 1.1rem; }
.time-body p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.time-body .clock { color: var(--navy); font-weight: 700; font-size: 1rem; }

/* Pastor */

.pastor {
  display: grid;
  gap: 22px;
  align-items: center;
}

.pastor-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 32%, rgba(232, 196, 106, 0.55), transparent 46%),
    linear-gradient(165deg, #1b3357, #0d1c31);
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 3rem;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 340px;
  overflow: hidden;
}

.pastor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pastor-role {
  font-size: 0.74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

/* Quote */

.quote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 20px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0;
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.4px;
}

/* Info list */

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .label {
  flex: 0 0 96px;
  font-size: 0.74rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-top: 3px;
}
.info-list .value { font-weight: 600; color: var(--navy); }
.info-list .value a { color: var(--navy); }

/* Map placeholder */

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.map-art {
  height: 210px;
  background:
    repeating-linear-gradient(45deg, rgba(16, 35, 63, 0.06) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, #e9eef5, #d6e0ec);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.map-art .pin {
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gold);
  margin: 0 auto 14px;
  box-shadow: 0 6px 14px rgba(16, 35, 63, 0.25);
}
.map-art p { margin: 0; font-weight: 700; color: var(--navy); }
.map-art small { color: var(--muted); }
.map-card .map-foot { padding: 16px 20px; border-top: 1px solid var(--line); }

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #1d3a5f 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfdaea; max-width: 40em; margin: 0 auto 22px; }
.cta-band .btn-row { justify-content: center; }

/* Forms */

.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #cfc8ba;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(201, 150, 43, 0.35);
  border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* FAQ */

details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
details.faq summary::marker { color: var(--gold); }
details.faq p { margin: 12px 0 0; color: var(--muted); }

/* Page banner */

.page-banner {
  background: linear-gradient(150deg, #0d1c31, #1f3f66);
  color: var(--white);
  padding: 44px 0;
}
.page-banner h1 { color: var(--white); margin-bottom: 8px; }
.page-banner p { color: #cfdaea; margin: 0; max-width: 40em; }

/* Footer */

.site-footer {
  background: #0b1a30;
  color: #b9c6d8;
  padding: 44px 0 24px;
  font-size: 0.93rem;
}
.footer-grid { display: grid; gap: 28px; }
.site-footer h3 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 12px;
}
.site-footer a { color: #dbe4f0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .brand-name { font-size: 1.15rem; }
.footer-brand p { margin: 12px 0 0; max-width: 30em; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #8fa0b8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* Utilities */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead-text { font-size: 1.05rem; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.7rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .times { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block !important;
    width: auto;
    border-top: 0;
  }
  .site-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }
  .site-nav a { padding: 10px 12px; font-size: 0.92rem; border-radius: 8px; }
  .site-nav a:hover { background: rgba(255, 255, 255, 0.08); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .pastor { grid-template-columns: 300px 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .hero { padding: 84px 0 92px; }
  .hero h1 { font-size: 3.2rem; }
  .section { padding: 72px 0; }
  .cta-band { padding: 48px 40px; }
}

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