/* Ashland Baptist Church — shared stylesheet
   Design language extracted from the church's own brand:
   - Slate (#4a5560 / #4c5760) from the mountain/cross logo mark
   - League Gothic condensed caps = the wordmark face
   - Poppins bold = the "Loving. Growing. Serving." tagline face
   - Lato = body (loaded by the current site)
   - Tan/olive (#d3c18a / #66635b) = CTA accent, trial palette (see git history to revert) */

:root {
  --slate: #4c5760;
  --slate-deep: #333c44;
  --ink: #272727;
  --body-gray: #4c4f52;
  --mist: #eff2f3;
  --paper: #ffffff;
  --line: #e8e4dc;
  --red: #d3c18a;
  --red-dark: #66635b;
  --shadow: 0 10px 30px rgba(39, 39, 39, 0.10);
  --display: 'League Gothic', 'Arial Narrow', sans-serif;
  --heading: 'Poppins', -apple-system, sans-serif;
  --body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--body-gray);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 0.98;
  color: var(--ink);
}
h1 { font-size: clamp(3rem, 7.5vw, 5.2rem); margin: 0 0 .25em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0 0 .35em; }
h3 { font-family: var(--heading); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1.15em; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--red-dark);
  margin: 0 0 1.1em;
}

.tagline {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--slate);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img.mark { height: 46px; width: auto; display: block; }
.brand .brand-name {
  font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); text-transform: uppercase;
  letter-spacing: .03em; line-height: 1; color: var(--slate-deep); display: block;
  white-space: nowrap;
}
.brand small {
  display: block; font-family: var(--heading); font-weight: 700; font-size: .58rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--slate-deep); font-family: var(--heading); font-weight: 600;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
}
.nav-links a:hover { color: var(--red-dark); text-decoration: none; }
.nav-give {
  background: var(--red); color: var(--slate-deep) !important; padding: 10px 22px; border-radius: 3px;
}
.nav-give:hover { background: var(--red-dark); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--slate-deep); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 3px;
  font-family: var(--heading); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .1em;
  cursor: pointer; border: 2px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: var(--slate-deep); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--slate-deep); border-color: var(--slate); }
.btn-ghost:hover { border-color: var(--slate-deep); background: var(--mist); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--slate-deep), var(--slate));
}
.hero.photo { background-size: cover; background-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(30,35,40,.62), rgba(30,35,40,.62));
}
.hero .wrap { padding-top: 96px; padding-bottom: 96px; position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; color: #e8ebee; max-width: 52ch; margin-bottom: 1.7em; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-meta div { min-width: 150px; }
.hero-meta .k {
  font-family: var(--heading); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .18em; color: #fff; opacity: .7; font-weight: 700; margin-bottom: 4px;
}
.hero-meta .v { font-size: 1.02rem; color: #fff; }

/* ---------- Sections ---------- */
section.band { padding: 78px 0; }
section.band.alt { background: var(--mist); }
section.band.dark { background: var(--slate-deep); color: #dfe3e7; }
section.band.dark h2, section.band.dark h3 { color: #fff; }
section.band.photo {
  position: relative; color: #fff; background-size: cover; background-position: center;
}
section.band.photo::before { content: ""; position: absolute; inset: 0; background: rgba(30,35,40,.68); }
section.band.photo .wrap { position: relative; z-index: 2; }
section.band.photo h2 { color: #fff; }
.center { text-align: center; }
.center .narrow { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.14rem; }

.verse {
  font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.18;
  text-transform: uppercase; letter-spacing: .01em; color: var(--ink);
  border-left: 4px solid var(--red-dark); padding: 6px 0 6px 24px; margin: 0 0 .5em;
}
.verse-ref { font-family: var(--heading); color: var(--red-dark); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.dark .verse, .photo .verse { color: #fff; border-color: var(--red); }
.dark .verse-ref, .photo .verse-ref { color: var(--red); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  border-top: 3px solid var(--slate);
  padding: 30px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

.times-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow); overflow: hidden;
}
.times-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.times-row:last-child { border-bottom: 0; }
.times-row .when { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: var(--slate-deep); }
.times-row .what { font-family: var(--heading); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red-dark); }

/* ---------- Photo placeholder ---------- */
.photo-ph {
  background: repeating-linear-gradient(45deg, #eceef0, #eceef0 12px, #e3e6e9 12px, #e3e6e9 24px);
  border: 1px dashed #b7bfc7; border-radius: 4px;
  display: grid; place-items: center; text-align: center; color: var(--slate);
  font-size: .85rem; padding: 30px; min-height: 240px;
}
.photo-ph span { max-width: 28ch; }

.photo-real {
  width: 100%; height: 100%; min-height: 420px; object-fit: cover;
  border-radius: 4px; box-shadow: var(--shadow); display: block;
}

/* ---------- Beliefs blocks ---------- */
.belief {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--slate);
  border-radius: 4px; padding: 24px 28px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.belief h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; color: var(--slate-deep); margin-top: 0; }

/* ---------- Video embed ---------- */
.video-embed {
  aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 4px;
  box-shadow: var(--shadow); display: block; background: #000;
}

/* ---------- Form ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 4px; padding: 32px; box-shadow: var(--shadow); }
label { display: block; font-family: var(--heading); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-deep); margin: 0 0 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid #c9cfd5; border-radius: 3px;
  font-family: var(--body); font-size: 1rem; margin-bottom: 16px; background: var(--mist);
}
input:focus, textarea:focus { outline: 2px solid var(--slate); border-color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-deep); color: #c3cad1; padding: 56px 0 30px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ff8a7c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: #fff; font-size: 1.35rem; margin: 0 0 .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .muted { color: #8f99a3; }
.site-footer img.footer-mark { height: 64px; width: auto; opacity: .9; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #8f99a3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-block; margin-right: 16px; font-family: var(--heading); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Utility ---------- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 9px 0; }
  .nav-toggle { display: block; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .brand img.mark { height: 38px; }
}

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