/* Spanish Fort UMC — spanishfortumc.org
   Brand: "The Church on the Hill" (Guidebook 2026-2027)
   Navy / periwinkle / red / green / paper. Fraunces + Poppins. */

:root {
  --navy: #334057;
  --navy-deep: #29344a;
  --peri: #8e9bc4;
  --peri-light: #b7c0dc;
  --peri-wash: #eef0f7;
  --red: #d7282f;
  --red-dark: #b81f26;
  --green: #79b943;
  --green-dark: #5a9330;
  --paper: #faf8f4;
  --white: #ffffff;
  --ink: #2b3247;
  --muted: #5d6577;
  --line: #e3e0d8;
  --shadow: 0 2px 24px rgba(43, 50, 71, 0.10);
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); margin: 0 auto; }

.eyebrow {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: 0.6rem;
}
.section { padding: 5rem 0; }
.section.tight { padding: 3.5rem 0; }
.section.white { background: var(--white); }
.section.wash { background: var(--peri-wash); }
.section.navy { background: var(--navy); }
.section.navy h2, .section.navy h3, .section.navy p, .section.navy a { color: var(--white); }
.section.navy .eyebrow { color: var(--peri-light); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }
.section.navy .lead { color: var(--peri-wash); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0; gap: 1rem;
}
.logo img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.92rem;
  color: var(--navy); padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--peri); }
.main-nav a.active { border-bottom-color: var(--red); }
.main-nav a.btn-give {
  background: var(--red); color: var(--white); font-weight: 600;
  padding: 0.55rem 1.5rem; border-radius: 999px; border-bottom: none;
}
.main-nav a.btn-give:hover { background: var(--red-dark); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center;
  align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.8rem; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.btn.primary { background: var(--red); color: var(--white); }
.btn.primary:hover { background: var(--red-dark); }
.btn.outline { border: 2px solid var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }
.btn.outline-light { border: 2px solid var(--white); color: var(--white); }
.btn.outline-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(41,52,74,0.45), rgba(41,52,74,0.72));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 14em; }
.hero .kicker {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--peri-light); margin-bottom: 1rem; display: block;
}
.hero p.sub { font-size: 1.15rem; max-width: 34em; margin-top: 1rem; color: #e8ebf4; }

/* Interior page hero */
.page-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; padding-bottom: 3rem;
}
.page-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(41,52,74,0.30), rgba(41,52,74,0.78)); }
.page-hero.tint-red::after { background: linear-gradient(to bottom, rgba(158,20,26,0.35), rgba(120,12,17,0.80)); }
.page-hero.tint-peri::after { background: linear-gradient(to bottom, rgba(78,90,128,0.40), rgba(51,64,87,0.82)); }
.page-hero.tint-green::after { background: linear-gradient(to bottom, rgba(64,110,28,0.35), rgba(46,82,18,0.80)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 38em; color: #eef0f7; font-size: 1.1rem; margin-top: 0.6rem; }

/* ---------- Times bar ---------- */
.times-bar { background: var(--navy); color: var(--white); }
.times-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,0.14);
}
.times-cell { background: var(--navy); padding: 1.6rem 1.4rem; text-align: center; }
.times-cell .t-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peri-light); font-weight: 600; }
.times-cell .t-time { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0.15rem 0; }
.times-cell .t-note { font-size: 0.88rem; color: #cdd4e6; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 10px 34px rgba(43,50,71,0.16); }
.card img { height: 210px; object-fit: cover; width: 100%; }
.card .card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.94rem; color: var(--muted); }
.card .card-more { margin-top: 0.7rem; font-weight: 600; font-size: 0.88rem; color: var(--red); }
.card.accent-navy { border-top: 5px solid var(--navy); }
.card.accent-red { border-top: 5px solid var(--red); }
.card.accent-peri { border-top: 5px solid var(--peri); }
.card.accent-green { border-top: 5px solid var(--green); }

/* Plain info blocks (no photo) */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.4rem; margin-top: 2rem; }
.info-item { padding: 1.2rem 0 0.4rem; border-top: 2px solid var(--line); }
.info-item h4 { font-family: var(--sans); font-weight: 600; color: var(--navy); font-size: 1rem; }
.info-item .when { font-size: 0.85rem; font-weight: 600; color: var(--red); }
.info-item p { font-size: 0.93rem; color: var(--muted); margin-top: 0.2rem; }
.section.navy .info-item { border-top-color: rgba(255,255,255,0.25); }
.section.navy .info-item h4 { color: var(--white); }
.section.navy .info-item .when { color: var(--peri-light); }
.section.navy .info-item p { color: #cdd4e6; }

/* ---------- Split (photo + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; margin-top: 2.5rem; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.split .split-text h2 { margin-bottom: 0.9rem; }
.split .split-text p + p { margin-top: 0.9rem; }
.split.flip .split-media { order: 2; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--red); color: var(--white); padding: 3.2rem 0; }
.quote-band p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  text-align: center; max-width: 30em; margin: 0 auto; color: var(--white);
}
.quote-band .attribution { font-family: var(--sans); font-style: normal; font-size: 0.85rem; margin-top: 0.8rem; letter-spacing: 0.08em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--red); }
.stat .lbl { font-size: 0.85rem; color: var(--muted); }

/* ---------- Staff ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem 1.4rem; margin-top: 2.4rem; }
.staff-card { text-align: center; }
.staff-card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.staff-card .placeholder {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(to bottom, #cfd8ee 55%, var(--green) 55%, #8fca5c 75%, var(--green-dark) 75%);
  box-shadow: var(--shadow);
}
.staff-card h4 { margin-top: 0.8rem; font-family: var(--sans); font-weight: 600; font-size: 0.98rem; }
.staff-card .role { font-size: 0.85rem; color: var(--muted); }
.staff-card a { color: var(--red); font-size: 0.82rem; text-decoration: none; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--muted); font-size: 0.96rem; max-width: 60em; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1.3rem; align-items: flex-start; }
.step .n {
  counter-increment: step; flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.step .n::before { content: counter(step); }
.step h4 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #cdd4e6; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer a { color: #cdd4e6; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.site-footer p { font-size: 0.92rem; }
.footer-logo img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 3rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: #9aa5c0;
}
.socials { display: flex; gap: 0.9rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
}
.socials a:hover { background: rgba(255,255,255,0.12); }
.socials svg { width: 17px; height: 17px; fill: #e8ebf4; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .split.flip .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 69px 0 auto 0; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.6rem 6% 1.4rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(43,50,71,0.12);
    transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 0.7rem 0; width: 100%; font-size: 1.05rem; }
  .btn-give { text-align: center; margin-top: 0.6rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .times-inner { grid-template-columns: 1fr; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { min-height: 72vh; }
  .section { padding: 3.4rem 0; }
}
