/* Available Worship — site styles */
:root {
  --bg: #1c1c1c;
  --bg-alt: #262626;
  --card: #2e2e2e;
  --text: #e9e9e9;
  --muted: #b5b5b5;
  --accent: #3ddc97;
  --accent-dark: #22b877;
  --white: #fff;
  --radius: 10px;
  --max: 1100px;
  --font-head: "Exo", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--white); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--white); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Header / nav ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,0));
}
.site-header.solid { position: relative; background: #111; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand img { width: 62px; height: 62px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.05; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  font-size: .9rem; color: var(--white); text-decoration: none; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: .4rem;
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #111; padding: .5rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid #2a2a2a; }
  .site-header { position: absolute; }
  .site-header .nav-wrap { position: relative; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(rgba(0,0,0,.45), var(--bg)),
    url("../images/church-interior.jpeg") center/cover no-repeat;
  padding: 8rem 0 4rem;
}
.hero p.lead { font-size: 1.25rem; max-width: 640px; margin: 0 auto 1.6rem; color: #ddd; }
.page-hero {
  padding: 9rem 0 3.5rem; text-align: center;
  background:
    linear-gradient(rgba(0,0,0,.6), var(--bg)),
    url("../images/church-interior.jpeg") center/cover no-repeat;
}
.page-hero p { color: #ddd; font-size: 1.15rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #0d1a14; font-family: var(--font-head);
  font-weight: 700; text-decoration: none; padding: .8rem 1.6rem; border-radius: 999px;
  border: 2px solid var(--accent); cursor: pointer; font-size: 1rem; transition: .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #0d1a14; }
.btn.outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn.outline:hover { background: var(--white); color: #111; }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.alt { background: var(--bg-alt); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { color: var(--accent); }
.card ul { margin: 0; padding-left: 1.2rem; }
.card li { margin-bottom: .4rem; }

/* Image cards (home) */
.tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--white); min-height: 280px; background: #000;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: .3s; }
.tile:hover img { opacity: .4; transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.9)); }
.tile .tile-body { z-index: 1; position: relative; padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 280px; }
.tile h3 { margin-bottom: .3rem; }
.tile p { margin: 0; color: #eee; }

/* Mission */
.mission { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.5; color: var(--white); }
.mission strong { color: var(--accent); }

/* Service times */
.times { list-style: none; padding: 0; margin: 0; }
.times li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid #3a3a3a; }
.times li:last-child { border-bottom: 0; }
.times time { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Slider */
.slider { position: relative; max-width: 680px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.slides { display: flex; transition: transform .5s ease; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--bg-alt); }
.dots { bottom: .4rem; }
.slider button.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5);
  color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.slider .prev { left: .6rem; } .slider .next { right: .6rem; }
.dots { position: absolute; bottom: .7rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.dots button.active { background: #fff; }

/* Embeds */
.embed-box { background: var(--card); border-radius: var(--radius); padding: 1rem; display: flex; justify-content: center; }
.embed-box iframe { border: 0; max-width: 100%; border-radius: 6px; }
.calendar-wrap { position: relative; width: 100%; height: 650px; border-radius: var(--radius); overflow: hidden; background: #fff; }
.calendar-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .calendar-wrap { height: 520px; } }

.live-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: #c0392b; color: #fff;
  font-family: var(--font-head); font-weight: 700; padding: .3rem .9rem; border-radius: 999px; font-size: .85rem;
  letter-spacing: .08em;
}
.live-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* Giving pop-up */
.give-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 1rem; }
.give-modal[hidden] { display: none; }
.give-modal-inner { position: relative; width: min(720px, 100%); height: min(860px, 92vh); background: #fff; border-radius: var(--radius); overflow: hidden; }
.give-modal iframe { width: 100%; height: 100%; border: 0; }
.give-close { position: absolute; top: .4rem; right: .6rem; z-index: 1; background: #111; color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }

/* Forms */
form .field { margin-bottom: 1.2rem; }
label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--white); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: .8rem 1rem; border-radius: 8px; border: 1px solid #444;
  background: #1a1a1a; color: var(--white); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea { min-height: 160px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
legend { font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; }
.radio-row input { accent-color: var(--accent); width: 18px; height: 18px; }
.hidden { display: none; }

/* Beliefs */
.beliefs h3 { color: var(--accent); margin-top: 2rem; }
.beliefs ol[type="A"] { padding-left: 1.4rem; }

/* Footer */
.site-footer { background: #111; padding: 3rem 0 2rem; text-align: center; color: var(--muted); }
.site-footer h2 { font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; }
.social { display: flex; justify-content: center; gap: 1rem; margin: 1rem 0 1.2rem; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #222; color: #fff; }
.social a:hover { background: var(--accent); color: #111; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.site-footer .address a { color: var(--white); text-decoration: none; }
.site-footer .address a:hover { color: var(--accent); }
.site-footer small { display: block; margin-top: 1.5rem; font-size: .85rem; }

/* Bible verse widget */
.verse { max-width: 720px; margin: 0 auto; }
