/* Providence Baptist Church — static site styles. Mobile-first, system fonts. */
:root {
  --teal: #2b6670;
  --teal-dark: #1d4a52;
  --teal-deep: #143940;
  --teal-tint: #e6eff0;
  --cream: #faf7f1;
  --sand: #f1ebe0;
  --gold: #b9863a;
  --ink: #1f2a2c;
  --muted: #55625f;
  --line: #ddd5c7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 57, 64, .06), 0 8px 24px rgba(20, 57, 64, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--teal-deep); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal-deep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-inline: auto; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--teal-deep); }
.brand img { width: 42px; height: 42px; }
.brand-name { font: 700 1.1rem/1.1 var(--serif); display: block; }
.brand-tag { white-space: nowrap; font: 600 .68rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem .9rem; font: 600 .9rem var(--sans); color: var(--teal-deep); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.site-nav a { display: block; padding: .8rem .25rem; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--sand); }
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .nav-give a { border: 0; margin-top: .75rem; text-align: center; color: #fff; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.no-js .nav-toggle { display: none; }
@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .site-nav a { border: 0; padding: .5rem .7rem; border-radius: 8px; font-size: .97rem; }
  .site-nav a:hover { background: var(--teal-tint); color: var(--teal-deep); }
  .site-nav a[aria-current="page"] { background: var(--teal-tint); }
  .site-nav .nav-give a { margin: 0 0 0 .5rem; padding: .55rem 1.1rem; }
  .site-nav .nav-give a:hover { background: var(--teal-dark); color: #fff; }
}

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font: 600 1rem/1.2 var(--sans);
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--sand); color: var(--teal-deep); }
.btn-outline { border-color: currentColor; color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--teal-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--teal-deep); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,57,64,.72) 0%, rgba(20,57,64,.82) 60%, rgba(20,57,64,.93) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 4.5rem 0 3.5rem; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: #f0d6a8; }
.hero p { font-size: 1.2rem; max-width: 36rem; color: #eef4f4; }
.hero .btn-row { margin-top: 1.75rem; }
@media (min-width: 48rem) { .hero .wrap { padding: 7rem 0 6rem; } }

.page-hero { background: var(--teal-deep); color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #dce9ea; font-size: 1.15rem; max-width: 40rem; margin: 0; }
.page-hero .eyebrow { color: #f0d6a8; }

/* Times strip */
.times { background: #fff; border-bottom: 1px solid var(--line); }
.times .wrap { display: grid; gap: 0; padding: 0; }
.time { padding: 1.4rem 1.25rem; border-top: 1px solid var(--sand); }
.time:first-child { border-top: 0; }
.time h3 { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; }
.time ul { list-style: none; margin: 0; padding: 0; }
.time li { display: flex; gap: .75rem; }
.time strong { min-width: 5.2rem; color: var(--teal-deep); }
.time small { display: block; color: var(--muted); margin-top: .3rem; font-size: .9rem; }
@media (min-width: 48rem) {
  .times .wrap { grid-template-columns: repeat(3, 1fr) auto; align-items: center; }
  .time { border-top: 0; border-left: 1px solid var(--sand); }
  .time:first-child { border-left: 0; }
  .times .btn { margin: 0 1.25rem; }
}
.times .times-cta { padding: 0 1.25rem 1.4rem; }
@media (min-width: 48rem) { .times .times-cta { padding: 0; } }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--sand); }
.section-teal { background: var(--teal); color: #fff; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal p { color: #e6f0f1; }
.section-teal a:not(.btn) { color: #fff; }
@media (min-width: 48rem) { .section { padding: 5.5rem 0; } }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split.reverse > :first-child { order: 2; } }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " \2192"; }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.pill-list li { background: var(--teal-tint); color: var(--teal-deep); border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; font-weight: 600; }

blockquote.verse { margin: 0; font: italic 1.35rem/1.5 var(--serif); }
blockquote.verse cite { display: block; margin-top: .8rem; font: 600 .85rem var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #f0d6a8; }

/* Prose (long-form pages) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* Distinctives */
.distinctives { counter-reset: d; display: grid; gap: 1rem; }
.distinctive { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.distinctive summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: .9rem; font: 700 1.15rem/1.3 var(--serif); color: var(--teal-deep); }
.distinctive summary::-webkit-details-marker { display: none; }
.distinctive summary::before { counter-increment: d; content: counter(d); flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: #fff; font: 700 .9rem var(--sans); }
.distinctive summary::after { content: "+"; margin-left: auto; font: 400 1.5rem/1 var(--sans); color: var(--teal); }
.distinctive[open] summary::after { content: "\2212"; }
.distinctive .body { padding: 0 1.25rem 1.25rem 4.15rem; }
.distinctive .body p:last-child { margin-bottom: 0; }
@media (max-width: 30rem) { .distinctive .body { padding-left: 1.25rem; } }

/* Leaders */
.leader { display: grid; gap: 1.75rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.leader:first-of-type { border-top: 0; padding-top: 0; }
.leader img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.leader .role { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.leader figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
@media (min-width: 52rem) { .leader { grid-template-columns: 22rem 1fr; gap: 3rem; align-items: start; } }

/* Video facade */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--teal-deep); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-load { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, rgba(20,57,64,.55), rgba(20,57,64,.85)), url(church-building-sm.jpg) center 35%/cover; display: grid; place-content: center; justify-items: center; gap: .9rem; font: 600 1.05rem var(--sans); padding: 1rem; text-align: center; }
.video-load .play { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.video-load .play::before { content: ""; border-left: 1.25rem solid var(--teal); border-top: .8rem solid transparent; border-bottom: .8rem solid transparent; margin-left: .3rem; }
.video-load small { font-weight: 400; opacity: .85; max-width: 26rem; }

/* Info list (visit/contact) */
.info { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; }
.info .ico { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--teal-tint); display: grid; place-items: center; color: var(--teal); }
.info .ico svg { width: 1.15rem; height: 1.15rem; }
.info strong { display: block; color: var(--teal-deep); }

/* Footer */
.site-footer { background: var(--teal-deep); color: #c9dcde; padding: 3.5rem 0 2rem; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-family: var(--sans); letter-spacing: .02em; margin-bottom: .8rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 46px; height: 46px; background: #fff; border-radius: 50%; padding: 5px; }
.footer-brand span { font: 700 1.2rem/1.2 var(--serif); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--muted); background: #fff; }
.distinctive.plain summary::before { display: none; }
.distinctive.plain .body { padding-left: 1.25rem; }
