/* =============================================
   WYNLIFE CHURCH — Stylesheet
   Mobile-first, clean responsive layout
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Merriweather:wght@400;700&display=swap');

/* ── VARIABLES ── */
:root {
  --navy:        #1a2744;
  --blue:        #2563a8;
  --blue-light:  #3b82c4;
  --gold:        #c9a84c;
  --cream:       #f8f7f4;
  --white:       #ffffff;
  --gray:        #666666;
  --gray-light:  #f0eeeb;
  --border:      #e0ddd8;
  --text:        #222222;
  --radius:      4px;
  --content-max: 1200px;
  --side-pad:    40px;   /* desktop side padding */
  --side-pad-sm: 16px;   /* mobile side padding */
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* prevent horizontal overflow at the root */
  overflow-x: hidden;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */

.main-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-fallback {
  display: none;
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

/* Desktop nav links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 24px 13px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  min-width: 220px;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.nav-dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover {
  background: var(--gray-light);
  color: var(--blue);
  text-decoration: none;
}
.nav-menu > li:hover .nav-dropdown { display: block; }

/* Pray CTA button */
.nav-cta-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 9px 16px !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-bottom: none !important;
  white-space: nowrap;
  transition: background 0.2s !important;
}
.nav-cta-btn:hover {
  background: var(--navy) !important;
  text-decoration: none !important;
}

/* Hamburger — hidden on desktop, shown on mobile via breakpoint */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
  position: relative;
  z-index: 10000; /* always above mobile menu overlay */
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.25s;
  pointer-events: none; /* let clicks pass through to button */
}

/* ── MOBILE FULL-SCREEN MENU ──
   Appended directly to <body> — position:fixed always works.
   Uses display:none by default, display:flex when .open is added. */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--navy);
  padding: 72px 28px 40px;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open {
  display: flex;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.sub {
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 16px;
  color: rgba(255,255,255,0.65);
}
.mobile-nav a:hover { color: white; text-decoration: none; }
.mobile-nav a.mobile-cta {
  margin-top: 16px;
  background: var(--blue);
  color: white !important;
  text-align: center;
  padding: 14px 0;
  border-radius: 3px;
  border-bottom: none;
}
.mobile-nav a.mobile-cta:hover { background: var(--blue-light); }

.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mobile-close:hover,
.mobile-close:active { background: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════
   HERO — HOME (video)
══════════════════════════════════════════ */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(26,39,68,0.82) 0%,
    rgba(26,39,68,0.48) 60%,
    rgba(37,99,168,0.28) 100%);
}
.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  width: 100%;
  max-width: 800px;
}
.home-hero-content h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.12;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.home-hero-content h1 span { color: var(--gold); }
.home-hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--blue);
  color: white;
  padding: 14px 32px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.btn-hero-primary:hover { background: var(--navy); color: white; text-decoration: none; }
.btn-hero-outline {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.55);
  transition: all 0.2s;
  display: inline-block;
}
.btn-hero-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
}

/* ── HERO — PAGE (image) ── */
.page-hero {
  position: relative;
  height: 45vh;
  min-height: 260px;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(26,39,68,0.3) 0%,
    rgba(26,39,68,0.75) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px var(--side-pad);
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}
.page-hero-content h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.page-hero-content p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  max-width: 500px;
}

/* ══════════════════════════════════════════
   SERVICE STRIP
══════════════════════════════════════════ */
.service-strip {
  background: var(--navy);
  color: white;
  padding: 20px var(--side-pad);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.service-item {
  text-align: center;
  padding: 8px 32px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.service-item:last-child { border-right: none; }
.service-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 3px;
}
.service-value { font-size: 0.95rem; font-weight: 700; }
.service-detail { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ══════════════════════════════════════════
   PAGE CONTENT WRAPPER
══════════════════════════════════════════ */
.page-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ══════════════════════════════════════════
   SECTION BLOCKS
══════════════════════════════════════════ */
.section-block {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}
.section-block:last-child { border-bottom: none; }

/* Full-bleed gray background section */
.section-bleed-gray {
  background: var(--gray-light);
  /* bleed out past .page-content padding */
  margin-left:  calc(-1 * var(--side-pad));
  margin-right: calc(-1 * var(--side-pad));
  padding-left:  var(--side-pad);
  padding-right: var(--side-pad);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray);
  max-width: 640px;
}

hr.divider {
  border: none;
  border-top: 3px solid var(--blue);
  width: 48px;
  margin: 14px 0 24px;
}
.text-center { text-align: center; }
.text-center .section-body { margin-left: auto; margin-right: auto; }
.text-center hr.divider { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════
   TWO-COLUMN LAYOUT
══════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col.img-right > :first-child { order: 2; }
.two-col.img-right > :last-child  { order: 1; }

/* ══════════════════════════════════════════
   PHOTOS
══════════════════════════════════════════ */
.photo-full {
  width: 100%;
  height: 52vh;
  min-height: 280px;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-half {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-third {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Use this for posters/announcements where the full image must be visible */
.photo-contain {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
  max-width: 100%;
}

.photo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photo-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.photo-grid-2 img,
.photo-grid-3 img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin: 40px 0;
}
.photo-strip img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   CARD GRID
══════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.04); }

/* Use on cards where the full image must show (posters, announcements) */
.card-img-contain {
  height: auto;
  overflow: visible;
  background: var(--gray-light);
}
.card-img-contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: none;
}
.card:hover .card-img-contain img { transform: none; }
.card-body { padding: 22px; }
.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.card-text { font-size: 0.87rem; color: var(--gray); line-height: 1.65; }
.card-link { display: inline-block; margin-top: 12px; font-size: 0.84rem; font-weight: 700; color: var(--blue); }
.card-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   STEP CARDS
══════════════════════════════════════════ */
.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.step-card {
  border-left: 5px solid var(--blue);
  background: var(--gray-light);
  padding: 24px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step-num {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 10px;
}
.step-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.step-text  { font-size: 0.87rem; color: var(--gray); line-height: 1.65; }

/* ══════════════════════════════════════════
   BELIEF LIST
══════════════════════════════════════════ */
.belief-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.belief-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--gray-light);
  border-left: 4px solid var(--blue);
  font-size: 0.9rem;
  line-height: 1.6;
}
.belief-icon { color: var(--blue); font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 3px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Lato', sans-serif;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: white; border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: white; text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; text-decoration: none; }

/* ══════════════════════════════════════════
   INFO BOX (dark)
══════════════════════════════════════════ */
.info-box {
  background: var(--navy);
  color: white;
  padding: 28px 28px;
  border-radius: var(--radius);
  margin-top: 28px;
}
.info-box h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--gold);
}
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.info-row:last-child { margin-bottom: 0; }
.info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.info-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.info-value { font-size: 0.9rem; color: rgba(255,255,255,0.9); line-height: 1.5; }
.info-value a { color: #7dc7ff; }

/* ══════════════════════════════════════════
   DARK BANNER
══════════════════════════════════════════ */
.dark-banner {
  background: var(--navy);
  color: white;
  padding: 56px 32px;
  text-align: center;
  border-radius: var(--radius);
}
.dark-banner h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 14px;
  line-height: 1.3;
}
.dark-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ══════════════════════════════════════════
   MAP
══════════════════════════════════════════ */
.map-wrap {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══════════════════════════════════════════
   VIDEO EMBED
══════════════════════════════════════════ */
.video-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══════════════════════════════════════════
   PAGE SUB-NAV
══════════════════════════════════════════ */
.page-subnav {
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--side-pad);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.page-subnav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.page-subnav a {
  display: inline-block;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.page-subnav a:hover,
.page-subnav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: #111b2e;
  color: rgba(255,255,255,0.6);
  padding: 56px var(--side-pad) 28px;
}
.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; max-width: 270px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social:hover { color: white; transform: translateY(-2px); text-decoration: none; }
/* Brand colours on hover */
.footer-social[aria-label="Facebook"]:hover  { background: #1877f2; }
.footer-social[aria-label="YouTube"]:hover   { background: #ff0000; }
.footer-social[aria-label="Instagram"]:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.58); font-size: 0.86rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ══════════════════════════════════════════
   ABOUT — PASTOR CARD
══════════════════════════════════════════ */
.pastor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 580px;
  display: flex;
}
.pastor-photo {
  width: 240px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
}
.pastor-info { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.pastor-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.pastor-name {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}
.pastor-bio { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* ══════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════ */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-32 { margin-bottom: 32px; }

/* ══════════════════════════════════════════
   CHURCH ONLINE — click-to-play
══════════════════════════════════════════ */
.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.yt-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.82;
  transition: opacity 0.2s;
}
.yt-thumb:hover img { opacity: 0.65; }
.yt-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.yt-play-btn {
  width: 72px; height: 72px;
  background: rgba(220,20,20,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.yt-thumb:hover .yt-play-btn { transform: scale(1.1); }
.yt-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white; padding: 20px 16px 14px;
  font-size: 0.9rem; font-weight: 700;
}
.video-iframe-wrap {
  display: none;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.video-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══════════════════════════════════════════
   PRAY PAGE — form elements
══════════════════════════════════════════ */
.type-toggle { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.type-btn {
  padding: 8px 16px;
  border-radius: 3px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
}
.type-btn.active,
.type-btn:hover { border-color: var(--blue); color: var(--blue); background: rgba(37,99,168,0.06); }

.field-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 5px;
}
.field-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 3px;
  padding: 11px 14px;
  font-size: 0.94rem;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.field-input:focus { border-color: var(--blue); }
textarea.field-input { resize: vertical; min-height: 130px; }
.pray-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.send-btn {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Lato', sans-serif;
  margin-top: 6px;
}
.send-btn:hover { background: var(--navy); }
.error-box {
  display: none;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  color: #991b1b;
  padding: 11px 14px;
  border-radius: 3px;
  font-size: 0.87rem;
  margin-bottom: 14px;
}
.success-box {
  display: none;
  background: #f0fdf4;
  border: 2px solid #4ade80;
  color: #166534;
  padding: 22px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  margin-top: 10px;
}

/* inline-grid images that need responsive height */
.photo-grid-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 2-col variant of step cards (used on home page) */
.step-cards-2col {
  grid-template-columns: 1fr 1fr;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
══════════════════════════════════════════ */
@media (max-width: 900px) {

  :root {
    --side-pad: 24px;
  }

  /* Nav */
  .nav-inner { padding: 0 var(--side-pad); height: 66px; }
  .nav-menu  { display: none; }
  .hamburger {
    display: flex;
    touch-action: manipulation; /* removes 300ms tap delay on iOS */
  }

  /* Two-col collapses */
  .two-col,
  .two-col.img-right {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Reset order so image always comes after text on mobile */
  .two-col > *,
  .two-col.img-right > * { order: unset !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Photo strip */
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img:first-child { grid-column: 1 / 3; }

  /* Step cards */
  .step-cards { grid-template-columns: 1fr 1fr; }

  /* Service strip */
  .service-strip { padding: 16px var(--side-pad); }
  .service-item  { padding: 6px 20px; }

  /* Page hero */
  .page-hero-content { padding: 24px var(--side-pad); }

  /* photo-contain stays auto height at all sizes */
  .photo-contain { height: auto; max-width: 100%; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
══════════════════════════════════════════ */
@media (max-width: 600px) {

  :root {
    --side-pad: 16px;
  }

  /* Nav */
  .nav-inner { height: 58px; padding: 0 var(--side-pad); }
  .nav-logo img { height: 38px; }

  /* Service strip — vertical stack */
  .service-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--side-pad);
    gap: 0;
  }
  .service-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    padding: 12px 0;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  .service-item:last-child { border-bottom: none; }
  .service-label { min-width: 110px; flex-shrink: 0; }
  .service-detail { display: none; } /* hide detail on tiny screens */

  /* Hero buttons stacked */
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-hero-primary,
  .btn-hero-outline { width: 100%; max-width: 300px; text-align: center; }

  /* Section block padding */
  .section-block { padding: 40px 0; }

  /* bleed gray — use side-pad variable so it matches outer padding */
  .section-bleed-gray {
    margin-left:  calc(-1 * var(--side-pad));
    margin-right: calc(-1 * var(--side-pad));
    padding-left:  var(--side-pad);
    padding-right: var(--side-pad);
  }

  /* Photos */
  .photo-full  { height: 55vw; min-height: 180px; max-height: 300px; }
  .photo-half  { height: 60vw; min-height: 200px; max-height: 340px; }
  .photo-third { height: 55vw; min-height: 180px; max-height: 280px; }
  /* photo-contain never gets a forced height — always shows full image */
  .photo-contain { height: auto; max-width: 100%; }

  /* All grids → single column */
  .photo-grid-2,
  .photo-grid-3 { grid-template-columns: 1fr; }
  .photo-grid-2 img,
  .photo-grid-3 img { height: 56vw; }

  .photo-strip { grid-template-columns: 1fr; margin: 24px 0; }
  .photo-strip img { height: 56vw; }
  .photo-strip img:first-child { grid-column: 1; }

  .card-grid  { grid-template-columns: 1fr; gap: 18px; }
  .step-cards,
  .step-cards-2col { grid-template-columns: 1fr; }

  /* Card image height */
  .card-img { height: 52vw; }
  .photo-grid-img { height: 56vw; max-height: 280px; }

  /* Dark banner */
  .dark-banner { padding: 36px var(--side-pad); }

  /* Info box */
  .info-box { padding: 20px 16px; }
  .info-row { gap: 10px; }

  /* Pray form row → single column */
  .pray-form-row { grid-template-columns: 1fr; }

  /* Pastor card → vertical */
  .pastor-card { flex-direction: column; max-width: 100%; }
  .pastor-photo { width: 100%; height: 65vw; max-height: 320px; }

  /* Buttons in flex rows → full width */
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row .btn { width: 100%; text-align: center; }

  /* Footer */
  footer { padding: 36px var(--side-pad) 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Sub-nav always scrollable on mobile */
  .page-subnav { padding: 0 var(--side-pad); }
}
