/*
 * Light visual refresh, within the Brand Kit: Journey Red, Charcoal, Paper; Montserrat headings, Inter body.
 * Same structure, navigation and content. What changes: spacing, the type scale, one family of buttons
 * and cards, and the phone layout. Loaded after main.css and site.css, so everything here is an adjustment.
 */

:root {
  --radius-sm: 8px;
  --radius-md: 14px;
  --fs-lead: clamp(17px, 1.25vw + 12px, 20px);
  --section-y: clamp(48px, 6.5vw, 96px);
  --card-pad: clamp(20px, 2.2vw, 30px);
  --shadow-sm: 0 1px 2px rgba(20, 24, 32, 0.05);
}

/* ---- Type scale: a little smaller at the top end, steadier steps, tighter leading ---- */
h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.08; margin-bottom: 12px; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
p.lead { line-height: 1.5; }
.eyebrow { margin-bottom: 10px; letter-spacing: 0.2em; }

/* ---- Vertical rhythm: every band uses the same spacing ---- */
.section { padding: var(--section-y) 0; }
.section__head { margin-bottom: clamp(24px, 3vw, 40px); }
.section__head .lead:last-child, .section__head h2:last-child { margin-bottom: 0; }
.section__joined { margin-top: clamp(24px, 3vw, 40px); }
.hero { padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 7vw, 104px); }
.hero--page { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.hero--page .lead { margin-bottom: 0; }
.hero__lede { margin-bottom: 28px; }
.split { gap: clamp(28px, 5vw, 64px); }
.grid { gap: clamp(16px, 2vw, 24px); }
.jw { padding: var(--section-y) 0; }

/* ---- Buttons: one family everywhere ---- */
.btn { min-height: 46px; padding: 11px 22px; border-radius: var(--radius-sm); justify-content: center; line-height: 1.2; }
.btn--lg { min-height: 54px; padding: 14px 28px; }
.btn:focus-visible, .jw__btn:focus-visible, .site-nav__menu a:focus-visible, .tile:focus-visible, .sermon-card:focus-visible, .feature-card:focus-visible {
  outline: 3px solid rgba(214, 40, 41, 0.55); outline-offset: 3px;
}
.btn-row, .hero__ctas, .hero__actions { gap: 12px; }
.site-nav__cta { border-radius: var(--radius-sm) !important; }
/* The welcome band used its own pill buttons and label; they now match the rest of the site. */
.jw__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.2; }
.jw__btn--o { border-color: rgba(255, 255, 255, 0.35); }
.jw__btn:hover { background: var(--journey-red-dark); border-color: var(--journey-red-dark); color: #fff; }
.jw__btn--o:hover { background: #fff; border-color: #fff; color: #1a1a1a; }
.jw__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: #ff8687; }
.jw h2 { margin: 10px 0 12px; }
.jw p { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.5; }
.jw__fig { border-radius: var(--radius-md); }

/* ---- Cards: the same corner, border, padding and lift for every kind ---- */
.card, .tile, .staff-card, .timeline__step, .update, .jc-form, .sermon-card, .feature-card, .value-card, .split__media, .map-wrap, .sermon-detail__video {
  border-radius: var(--radius-md);
}
.card, .tile, .staff-card, .timeline__step, .update, .jc-form { box-shadow: var(--shadow-sm); }
.card { padding: var(--card-pad); gap: 10px; }
.card h3 { font-size: clamp(19px, 1.7vw, 22px); }
.card p { font-size: 15px; line-height: 1.55; }
.pill { align-self: flex-start; }
.tile__body { padding: clamp(18px, 2vw, 24px); gap: 8px; }
.tile h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.2; }
.timeline__step { padding: 18px 22px; }
.callout { border-radius: var(--radius-sm); padding: 20px 24px; }
.update { padding: var(--card-pad); }
.jc-form { padding: var(--card-pad); gap: 18px; }
.jc-form__field input, .jc-form__field textarea, .jc-form__field select { border-radius: var(--radius-sm); }
.jc-form__field input:not([type="checkbox"]), .jc-form__field select { min-height: 46px; }
.accordion-item summary { padding: 18px 0; font-size: clamp(17px, 1.6vw, 20px); }

/* Two-column blocks line up at the top, so a short picture doesn't float beside long text. */
.split { align-items: start; }
.section--dark .split, .split:has(> .jc-form), .jw__grid { align-items: center; }
.split__cards { margin-top: 20px; }
.split .btn-row--spaced { margin-top: 28px; }

/* ---- Homepage ---- */
.latest__info { padding-left: 0; }
.latest__info .lead + .lead { font-size: 16px; color: var(--text-muted); }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); align-content: center; }
.stat__num { font-size: clamp(38px, 5vw, 64px); }
.stat__label { font-size: 11px; }
.service-chip { margin-bottom: 18px; }

/* ---- Footer ---- */
.site-footer { padding: clamp(48px, 6vw, 72px) 0 24px; }
.site-footer__grid { gap: clamp(28px, 4vw, 48px); }
.site-footer__bottom { margin-top: clamp(32px, 4vw, 48px); }

/* ---- Phones ---- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  /* Buttons fill the width and match each other, instead of each being as wide as its words. */
  .hero__ctas, .hero__actions, .btn-row, .jw__btns, .pastor-callout__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__ctas .btn, .hero__actions .btn, .btn-row .btn, .jw__btn { width: 100%; }
  .section__head--split { align-items: stretch; }
  .section__head--split .btn-row { width: 100%; }
  .jc-form__submit-row .btn { width: 100%; }
  /* Type boxes at 16px so phones don't zoom in when one is tapped. */
  .jc-form__field input, .jc-form__field textarea, .jc-form__field select { font-size: 16px; }
  /* Shorter art cards, so three of them aren't three screens. */
  .feature-card { aspect-ratio: 5 / 4; }
  .feature-card h3 { font-size: 22px; }
  .feature-card__content { padding: 20px; }
  .timeline { padding-left: 30px; }
  .timeline::before { left: 9px; }
  .timeline__step::before { left: -27px; }
  .update { gap: 12px; }
  .update h3 { font-size: 20px; }
  /* Footer links sit side by side, with the church's details across the full width above and below. */
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child, .site-footer__grid > :last-child { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
  .sermon-detail__body h1 { font-size: 30px; }
  .values-grid { gap: 12px; }
}

@media (min-width: 641px) and (max-width: 860px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .tile, .btn, .feature-card img { transition: none; }
  .card:hover, .tile:hover, .btn:hover { transform: none; }
}

/* Headings and intro lines break into even lines rather than leaving one word alone. */
h1, h2, h3, .lead { text-wrap: balance; }
