/* ==========================================================================
   Southside Baptist Church — Palatka, FL
   Shared stylesheet. One file, no dependencies except Google Fonts.
   Palette: deep red accent on charcoal / gray / white.
   ========================================================================== */

:root {
  --charcoal:      #2e3338;
  --charcoal-deep: #1c2023;
  --slate:         #52585f;
  --red:           #a32a2f;
  --red-deep:      #7d1f23;
  --red-bright:    #e04a50;
  --mist:          #f4f4f5;
  --paper:         #ffffff;
  --ink:           #2a2d31;
  --ink-soft:      #646a72;
  --line:          #e0e0e3;
  --max:           1140px;
  --radius:        10px;
  --shadow:        0 2px 4px rgba(30,34,38,.05), 0 12px 32px rgba(30,34,38,.09);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--charcoal-deep);
  color: #d3d5d8;
  font-size: .82rem;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: center;
  padding-block: 8px;
}
.topbar a { color: #d3d5d8; text-decoration: none; }
.topbar a:hover { color: var(--red-bright); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; flex: none;
  display: block; object-fit: contain;
}
@media (max-width: 480px) { .brand-mark { width: 40px; height: 40px; } }
.brand-text { line-height: 1.25; }
.brand-name {
  display: block; font-family: "Lora", Georgia, serif;
  font-size: 1.12rem; font-weight: 600; color: var(--charcoal);
}
.brand-sub {
  display: block; margin-top: 5px;
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 12px; font-size: .95rem;
  color: var(--charcoal); cursor: pointer;
}

.nav ul {
  list-style: none; display: flex; align-items: center;
  gap: 4px; margin: 0; padding: 0;
}
.nav a {
  display: block; padding: 8px 10px; border-radius: 6px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
}
.nav a:hover { background: var(--mist); color: var(--charcoal); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .cta {
  background: var(--red); color: #fff; margin-left: 6px;
}
.nav .cta:hover { background: var(--charcoal); color: #fff; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 16px; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .cta { margin: 10px 0 0; border-radius: 6px; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(20,23,26,.38), rgba(28,32,35,.20)),
    radial-gradient(circle at 78% 18%, rgba(163,42,47,.15), transparent 64%),
    url("images/hero-church.jpg") center / cover no-repeat,
    var(--charcoal);
  color: #fff;
  text-align: center;
  padding: clamp(72px, 12vw, 130px) 0;
  text-shadow: 0 2px 18px rgba(10,12,14,.85), 0 1px 4px rgba(10,12,14,.6);
}
.hero h1 {
  font-family: "Outfit", "Source Sans 3", -apple-system, Helvetica, Arial, sans-serif;
  font-weight: 700; letter-spacing: -.022em;
  font-size: clamp(2.2rem, 5.6vw, 3.5rem);
  color: #fff; margin-bottom: .35em;
}
.hero .tagline {
  font-family: "Outfit", "Source Sans 3", -apple-system, Helvetica, Arial, sans-serif;
  font-size: clamp(.78rem, 2vw, .95rem);
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff; font-weight: 600; margin-bottom: 1.5em;
}
.hero .lede { max-width: 620px; margin: 0 auto 2em; color: #f0f1f2; font-size: 1.08rem; }

.page-head {
  background: var(--charcoal);
  color: #fff; text-align: center;
  padding: clamp(48px, 8vw, 80px) 0;
  border-bottom: 4px solid var(--red);
}
.page-head h1 { color: #fff; margin-bottom: .2em; }
.page-head p { color: #cfd1d4; margin: 0; max-width: 620px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 6px;
  font-weight: 700; font-size: .92rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 7vw, 76px) 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--charcoal); color: #e4e5e7; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-title { text-align: center; margin-bottom: 2.2em; }
.section-title h2 { margin-bottom: .3em; }
.section-title p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }
.section-dark .section-title p { color: #b6b9bd; }

.eyebrow {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: .6em;
}

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: block; text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s;
}
.card-link:hover { transform: translateY(-3px); border-color: var(--red); }
.card-link h3 { color: var(--charcoal); }
.card .more {
  display: inline-block; margin-top: .6em; font-size: .84rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red);
}

/* ---------- Service times ---------- */
.times { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.time-block {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 24px 26px;
}
.section-alt .time-block { background: var(--paper); border-color: var(--line); }
.time-block h3 {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-bright); margin-bottom: 1em;
}
.section-alt .time-block h3 { color: var(--red); }
.time-block dl { margin: 0; }
.time-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.section-alt .time-row { border-bottom-color: var(--line); }
.time-row:last-child { border-bottom: 0; }
.time-row dt { font-weight: 600; }
.time-row dd { margin: 0; white-space: nowrap; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.section-alt .time-row dd { color: var(--red); }

/* ---------- Verse / pull quote ---------- */
.pullquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 22px; margin: 1.8em 0;
  font-family: "Lora", Georgia, serif; font-size: 1.12rem;
  font-style: italic; color: var(--charcoal);
}
.pullquote cite { display: block; font-style: normal; font-size: .85rem; color: var(--ink-soft); margin-top: .6em; }

/* ---------- Staff ---------- */
.staff-card { display: grid; gap: 24px; grid-template-columns: 180px 1fr; align-items: start; }
.staff-photo {
  aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--slate), var(--charcoal));
  color: rgba(255,255,255,.88); display: grid; place-items: center;
  font-family: "Lora", Georgia, serif; font-size: 2.2rem;
}
@media (max-width: 640px) { .staff-card { grid-template-columns: 1fr; } .staff-photo { max-width: 160px; } }

/* ---------- Sermon list ---------- */
.sermons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sermons li {
  display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.sermons .date {
  flex: none; width: 148px; font-size: .84rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--red);
}
.sermons .title { font-weight: 600; color: var(--charcoal); }
.sermons .speaker { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 560px) { .sermons .date { width: 100%; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--charcoal); }
input, textarea, select {
  font: inherit; font-size: .98rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { min-height: 130px; resize: vertical; }
.req { color: var(--red); }
.form-note { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Info strip ---------- */
.info-strip { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-strip h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.info-strip a { color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: #b8bbbf; padding: 56px 0 0; font-size: .94rem; }
.site-footer h3 {
  color: #fff; font-family: inherit; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1em;
}
.site-footer a { color: #b8bbbf; text-decoration: none; }
.site-footer a:hover { color: var(--red-bright); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.footer-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 34px 64px;
  text-align: left;
}
.footer-grid > * { flex: 0 1 240px; }
.footer-brand p { max-width: 30ch; }
.social { display: flex; gap: 10px; margin-top: 1em; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center; font-size: .75rem;
  font-weight: 700; letter-spacing: .02em;
}
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.colophon {
  margin-top: 46px; border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 0; font-size: .82rem; text-align: center; color: #8f9398;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.map-embed {
  width: 100%; aspect-ratio: 16 / 9; min-height: 280px;
  border: 0; border-radius: var(--radius); display: block;
}
