/* Charlestown Seventh-day Adventist Church - design system
   Warm, light, welcoming. Forest green + gold. No navy, no marketing fluff. */

:root {
  --paper: #faf8f3;
  --surface: #ffffff;
  --ink: #2a2a28;
  --muted: #6f6d66;
  --green: #3f6b4f;
  --green-dark: #33573f;
  --green-soft: #eef4ee;
  --gold: #b89344;
  --gold-soft: #f7f1e3;
  --line: #e7e3d8;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 6px 24px rgba(0,0,0,0.04);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { background: var(--green-soft); text-decoration: none; }
.nav-links a.active { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-dark) !important; }

/* mobile nav */
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
  .menu-btn { display: grid; place-items: center; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--green-soft), transparent 60%),
    radial-gradient(900px 400px at 10% 0%, var(--gold-soft), transparent 55%),
    var(--paper);
  padding: 84px 0 72px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a3813a; }

/* live badge */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf0f0;
  color: #b3403a;
  border: 1px solid #f3d6d4;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.live-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d1483f;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.card .icon {
  font-size: 26px;
  margin-bottom: 14px;
  display: inline-block;
}

/* schedule table */
.sched {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sched th, .sched td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.sched tr:last-child td { border-bottom: none; }
.sched th {
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
}
.sched td { font-size: 0.98rem; }
.sched td:first-child { font-weight: 600; color: var(--green-dark); }
@media (max-width: 600px) {
  .sched th, .sched td { padding: 12px 14px; }
}

/* embed frames */
.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.embed-label strong { color: var(--ink); }

/* verse quote */
.verse {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--green-dark);
  font-style: italic;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 12px;
}
.verse .ref {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
  margin-top: 8px;
}

/* contact form */
.form { display: grid; gap: 16px; max-width: 520px; }
.form label { font-size: 0.9rem; font-weight: 600; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.form textarea { min-height: 130px; resize: vertical; }

/* footer */
.footer {
  background: #26251f;
  color: #d8d4c8;
  padding: 56px 0 40px;
}
.footer .container { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 820px) { .footer .container { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer a { color: #d8d4c8; }
.footer a:hover { color: #fff; }
.footer p { color: #a8a496; font-size: 0.92rem; }
.footer .fine {
  grid-column: 1 / -1;
  border-top: 1px solid #3a3932;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #7f7c70;
  text-align: center;
}
.footer .brand-mark { background: var(--gold); }

/* utility */
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.pill-note {
  display: inline-block;
  background: var(--gold-soft);
  color: #8a6a2f;
  border: 1px solid #eadfbe;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.8rem;
  font-weight: 600;
}
