/* ------------------------------------------------------------------
   West Street Baptist Church - site styles
   Uses brand tokens from tokens.css.
   ------------------------------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sunday-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--parchment); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand-logo { height: 46px; width: auto; display: block; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  font: inherit; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate); background: none; border: 1px solid var(--hairline);
  border-radius: 99px; padding: 8px 16px; cursor: pointer;
}
.nav-menu { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-menu a {
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.nav-menu a:hover { color: var(--sunday-blue); text-decoration: none; }
.nav-cta {
  background: var(--sunday-blue); color: #fff !important;
  padding: 9px 18px; border-radius: 99px; font-weight: 600 !important;
}
.nav-cta:hover { background: #27508f; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: 13px 26px; border-radius: 99px; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--sunday-blue); color: #fff; }
.btn-primary:hover { background: #27508f; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--sunday-blue); color: var(--sunday-blue); text-decoration: none; }

/* ---------- flash messages ---------- */
.flash {
  margin-top: 18px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--paper);
}
.flash-success { border-color: rgba(46,93,166,.35); background: #EAF1FA; }
.flash-error { border-color: rgba(125,28,28,.3); background: #F8ECEC; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 84px;
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
}
.hero .eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 18px;
}
.hero h1 { color: var(--sunday-blue); max-width: 16ch; }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 2.2vw, 20px); color: var(--slate); max-width: 52ch; }
.hero .verse {
  margin-top: 22px; font-style: italic; font-weight: 600; font-size: 19px; color: var(--sunday-blue);
}
.hero .cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero watch card ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: 48px; align-items: start; }
.watch-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.watch-card-title { font-size: 19px; margin-bottom: 14px; color: var(--sunday-blue); }
.watch-embed { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.watch-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.watch-card-btn { display: block; text-align: center; margin-top: 16px; }

/* ---------- generic section ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section .eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 14px;
}
.prose { max-width: 64ch; }
.prose p { margin-top: 16px; font-size: 17px; }
.prose h2 { margin-top: 34px; }

/* ---------- service times card ---------- */
.times-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.times-list { list-style: none; }
.times-list li {
  display: flex; justify-content: space-between; gap: 20px; padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.times-list li:last-child { border-bottom: none; }
.times-list span { color: var(--slate); }
.times-list strong { color: var(--ink); }

.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }

/* ---------- cards grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; color: var(--sunday-blue); }
.card p { color: var(--slate); }

/* ---------- map embed ---------- */
.map-embed {
  margin-top: 28px; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); background: var(--paper);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 820px) { .map-embed iframe { height: 320px; } }

/* ---------- forms ---------- */
.form-wrap { max-width: 620px; }
.form-intro { color: var(--slate); margin-bottom: 28px; font-size: 17px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .req { color: #7D1C1C; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sunday-blue); box-shadow: 0 0 0 3px rgba(46,93,166,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .help { font-size: 13px; color: var(--slate); margin-top: 6px; }
.field .errors { color: #7D1C1C; font-size: 14px; margin-top: 6px; list-style: none; }
/* honeypot - visually hidden, off-screen */
.hp-field { position: absolute; left: -9999px; top: 0; height: 0; overflow: hidden; }

.form-success {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center; box-shadow: var(--shadow);
}
.form-success .check {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--sunday-blue); color: #fff; display: grid; place-items: center; font-size: 28px;
}

/* ---------- slide-out drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; transition: visibility 0s linear .3s;
}
.drawer.open { visibility: visible; transition: visibility 0s; }
.drawer-overlay {
  position: absolute; inset: 0; background: rgba(28, 39, 51, .5);
  opacity: 0; transition: opacity .28s ease;
}
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(440px, 100%);
  background: var(--paper); box-shadow: var(--shadow);
  padding: 30px 28px 40px; overflow-y: auto;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px; border: none; background: none;
  font-size: 30px; line-height: 1; color: var(--slate);
  cursor: pointer; border-radius: 50%;
}
.drawer-close:hover { background: var(--hairline); color: var(--ink); }
.drawer .eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 10px; padding-right: 36px;
}
.drawer h2 { font-size: 26px; }
.drawer .form-intro { margin: 12px 0 24px; font-size: 16px; }
.drawer-success {
  box-shadow: none; border: none; background: none; padding: 48px 0;
  margin: auto 0;
}
body.drawer-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-overlay, .drawer-panel { transition: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--parchment); margin-top: 0; }
.site-footer a { color: var(--sky); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 24px 40px;
}
.footer-logo { height: 64px; width: auto; }
.footer-verse { margin-top: 16px; font-style: italic; font-weight: 600; color: var(--sky); }
.site-footer h3 { color: var(--parchment); margin-bottom: 14px; letter-spacing: 0.04em; }
.footer-times { list-style: none; }
.footer-times li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; color: var(--sky); }
.footer-times strong { color: var(--parchment); }
.footer-bottom {
  border-top: 1px solid rgba(242,238,227,.12); padding: 22px 24px; font-size: 13px; color: var(--sky);
}

/* ---------- important message / tract ---------- */
.tract { background: var(--paper); }
.tract-inner { max-width: 720px; }

.tract-cover {
  text-align: center;
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--hairline);
}
.cover-eyebrow {
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--slate);
}
.cover-title { color: var(--sunday-blue); margin-top: 6px; }
.cover-subtitle { margin-top: 10px; font-style: italic; color: var(--slate); }
.cover-church { margin-top: 32px; }
.church-name { color: var(--sunday-blue); }
.church-address { font-style: normal; color: var(--slate); margin-top: 8px; line-height: 1.7; }

.tract-point { padding: 44px 0; border-bottom: 1px solid var(--hairline); }
.tract-point .intro { font-size: 19px; color: var(--slate); margin-bottom: 28px; }

.point-heading {
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 22px; line-height: 1.35; color: var(--ink); margin-bottom: 24px;
}
.point-number {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sunday-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
}

.subsection { margin: 22px 0; }
.subsection-heading { color: var(--sunday-blue); font-size: 17px; margin-bottom: 10px; }

.tract .body { margin: 14px 0; line-height: 1.8; }

.scripture {
  margin: 18px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--sunday-blue);
  background: var(--paper-2);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--ink);
}
.scripture p { line-height: 1.7; }
.scripture cite {
  display: block; margin-top: 8px; text-align: right;
  font-style: normal; font-weight: 600; color: var(--slate);
}

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  text-align: center;
  font-size: 19px; font-weight: 600; color: var(--sunday-blue);
  background: var(--parchment);
  border-radius: var(--radius-lg);
}

.diagram { margin: 28px 0; }
.diagram-row {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  padding: 24px; background: var(--paper-2);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
}
.diagram-side { font-weight: 700; font-size: 18px; }
.diagram-man, .diagram-god { color: var(--sunday-blue); }
.diagram-gap {
  font-weight: 700; letter-spacing: 0.2em; color: #8a2a2a;
  padding: 4px 18px; border-left: 2px dashed #8a2a2a; border-right: 2px dashed #8a2a2a;
}
.diagram-bridge {
  font-weight: 700; color: var(--sunday-blue);
  padding: 6px 22px; border-bottom: 3px solid var(--sunday-blue);
}
.diagram-attempts {
  list-style: none; margin: 0; padding: 0;
  font-size: 14px; color: var(--slate); text-align: center;
}
.diagram-attempts li { padding: 1px 0; }
.diagram figcaption {
  margin-top: 12px; text-align: center;
  font-size: 14px; font-style: italic; color: var(--slate);
}

.steps { margin: 18px 0; padding-left: 24px; }
.steps li { margin: 10px 0; line-height: 1.7; }

.prayer {
  margin: 26px 0;
  padding: 24px 26px;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  font-style: italic;
  text-align: center;
  line-height: 1.8;
  color: var(--ink);
}

.tract-back { padding: 44px 0 8px; text-align: center; }
.tract-back .subsection { text-align: left; }
.schedule { width: 100%; border-collapse: collapse; margin-top: 8px; }
.schedule td { padding: 10px 4px; border-bottom: 1px solid var(--hairline); }
.schedule td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }

.tract-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px 0; }

.credits {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--slate); line-height: 1.7;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .watch-card { max-width: 440px; }
  .point-heading { font-size: 20px; gap: 12px; }
  .diagram-row { gap: 16px; }
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-toggle { display: inline-block; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--parchment); border-bottom: 1px solid var(--hairline); padding: 8px 24px 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; width: 100%; }
  .site-nav { position: static; }
  .header-inner { position: relative; }
}
