/*
Theme Name: Kisumu South Adventist Church
Theme URI: https://kssda.org
Author: Kisumu South SDA Web Team
Description: Digital ministry platform for Kisumu South Adventist Church, Kisumu, Kenya. Built on the worldwide Seventh-day Adventist identity palette (Pantone 540 deep blue with gold). Everything on this site is edited from the WordPress dashboard — ministries, events, leaders, sermons, weekly schedule and contact details are all content, not code.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kssda
Tags: church, custom-menu, custom-logo, featured-images, responsive, accessibility-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Change a value here and it updates everywhere on the site.
   ========================================================================== */
:root {
  /* Seventh-day Adventist identity palette */
  --blue-900: #00263a;
  --blue-800: #003b5c;   /* Pantone 540 — primary */
  --blue-700: #0a4569;
  --blue-600: #14507a;
  --blue-300: #7ea6c2;
  --blue-100: #e7eef4;
  --blue-50:  #f3f7fa;

  --gold:       #c9a227;
  --gold-light: #e8c04a;
  --gold-50:    #fdf8e8;

  /* OneVoice27 accent */
  --ov-orange: #f5901f;

  /* Neutrals */
  --ink:       #16202c;
  --ink-soft:  #55616e;
  --ink-faint: #8593a1;
  --line:      #e2e8ee;
  --surface:   #ffffff;
  --surface-2: #f7f9fb;
  --cream:     #faf9f5;

  /* Semantic */
  --success: #1f7a4d;
  --danger:  #c0392b;

  /* Typography — Mulish is a free geometric sans in the Avenir tradition */
  --font-sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Fluid type scale — shrinks smoothly on phones, no media queries needed */
  --fs-xs:   0.78rem;
  --fs-sm:   0.875rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg:   clamp(1.09rem, 1.04rem + 0.25vw, 1.2rem);
  --fs-xl:   clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
  --fs-2xl:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --fs-3xl:  clamp(2rem, 1.6rem + 1.8vw, 2.9rem);
  --fs-4xl:  clamp(2.4rem, 1.8rem + 3vw, 4rem);

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 88px;

  /* Section rhythm — tighter on phones */
  --section-y: clamp(48px, 7vw, 88px);

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Shape & depth */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 44, .06), 0 2px 6px rgba(16, 32, 44, .04);
  --shadow:    0 2px 6px rgba(16, 32, 44, .06), 0 12px 28px rgba(16, 32, 44, .08);
  --shadow-lg: 0 8px 20px rgba(16, 32, 44, .1), 0 24px 60px rgba(16, 32, 44, .12);

  --header-h: 74px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-3);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--blue-800);
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-800); }

ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--gold);
  background: var(--gold-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}

table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: var(--fs-sm); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--blue-50); font-weight: 700; color: var(--blue-800); }

/* Accessibility: visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4);
  z-index: 999;
  background: var(--gold);
  color: var(--blue-900);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section-alt   { background: var(--surface-2); }
.section-cream { background: var(--cream); }
.section-blue  { background: linear-gradient(160deg, var(--blue-800) 0%, var(--blue-900) 100%); color: #fff; }
.section-blue h1, .section-blue h2, .section-blue h3 { color: #fff; }
.section-blue p { color: #c9dced; }
.section-tight { padding-block: clamp(32px, 4vw, 52px); }

.section-head { max-width: 720px; margin: 0 auto var(--sp-7); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lg); margin-bottom: 0; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.section-blue .eyebrow { color: var(--gold-light); }

/* Auto-fitting grids: they reflow on any screen without breakpoints */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  white-space: nowrap;
  min-height: 46px;                 /* comfortable touch target */
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold       { background: var(--gold); color: var(--blue-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-light); color: var(--blue-900); box-shadow: var(--shadow); }

.btn-blue       { background: var(--blue-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { background: var(--blue-700); color: #fff; box-shadow: var(--shadow); }

.btn-outline       { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

.btn-outline-blue       { background: transparent; color: var(--blue-800); border-color: var(--blue-800); }
.btn-outline-blue:hover { background: var(--blue-800); color: #fff; }

.btn-white       { background: #fff; color: var(--blue-800); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-900); }

.btn-lg { min-height: 54px; padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row.center { justify-content: center; }

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue-800);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

/* Thin utility strip above the nav — hidden on phones to save space */
.topbar {
  background: var(--blue-900);
  color: #a9c6da;
  font-size: var(--fs-xs);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 36px; }
.topbar a { color: #cfe2ef; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-items { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.topbar-social { display: flex; gap: var(--sp-3); }
.topbar-social a { display: inline-flex; }
.topbar-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 860px) { .topbar { display: none; } }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand img { height: 46px; width: auto; flex-shrink: 0; }
.brand-name { min-width: 0; }
/* nowrap keeps the church name from breaking mid-phrase and pushing the
   header to three lines on laptop widths */
.brand-name .n {
  display: block; color: #fff; font-weight: 800;
  font-size: .98rem; line-height: 1.2; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-name .t {
  display: block; color: #9fc0d6; font-size: .68rem;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
}

/* Keep the church name on one or two tight lines on small screens,
   so the sticky header never eats the top of the page. */
@media (max-width: 560px) {
  .brand img { height: 38px; }
  .brand-name .n { font-size: .84rem; }
  .brand-name .t { font-size: .6rem; letter-spacing: .03em; }
}
@media (max-width: 380px) {
  .brand-name .t { display: none; }
}

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-sm);
  color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav ul { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; position: relative; }
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: var(--sp-2) var(--sp-3);
  color: #dcebf5;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { background: rgba(255,255,255,.12); color: #fff; }

/* Dropdowns */
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 230px;
  display: block;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s var(--ease);
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { color: var(--ink); font-weight: 600; }
.main-nav .sub-menu a:hover { background: var(--blue-50); color: var(--blue-800); }

.header-cta { display: flex; align-items: center; gap: var(--sp-2); }

/* Laptop widths: tighten spacing before falling back to the drawer */
@media (min-width: 1025px) and (max-width: 1320px) {
  .main-nav a { padding-inline: 9px; font-size: .86rem; }
  .header-cta .btn { padding-inline: var(--sp-4); font-size: .82rem; }
  .brand-name .n { font-size: .9rem; }
  .brand img { height: 40px; }
}

/* Mobile drawer */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 360px);
    background: var(--blue-800);
    padding: calc(var(--header-h) + var(--sp-5)) var(--sp-5) var(--sp-7);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: var(--sp-3) var(--sp-4); font-size: 1rem; min-height: 46px; display: flex; align-items: center; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(0,0,0,.18); padding: var(--sp-1) 0 var(--sp-1) var(--sp-4);
    margin-top: 2px; border-radius: var(--radius-sm);
  }
  .main-nav .sub-menu a { color: #cfe2ef; }
  .main-nav .sub-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }

  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 20, 34, .55);
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease);
    z-index: 99;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   6. HERO SLIDER
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(460px, 74vh, 700px);
  display: grid;
  background: var(--blue-900);
  isolation: isolate;
}
.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s var(--ease);
  padding: var(--sp-8) 0;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,38,58,.92) 0%, rgba(0,59,92,.78) 45%, rgba(0,59,92,.5) 100%);
}
.hero-slide.no-image { background: linear-gradient(135deg, var(--blue-800), var(--blue-900)); }

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: #fff;
}
.hero-inner { max-width: 660px; }
.hero h1 { color: #fff; font-size: var(--fs-4xl); margin-bottom: var(--sp-4); }
.hero h1 .gold { color: var(--gold-light); }
.hero h2 { color: #fff; font-size: var(--fs-3xl); }
.hero p { color: #d3e5f1; font-size: var(--fs-lg); max-width: 54ch; }
.hero .verse {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: var(--fs-base);
  border-left: 3px solid var(--gold);
  padding-left: var(--sp-4);
  margin-block: var(--sp-5);
}

.hero-controls {
  position: absolute; bottom: var(--sp-5); left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  z-index: 2;
}
.hero-dots { display: flex; gap: var(--sp-2); }
.hero-dot {
  width: 10px; height: 10px; padding: 0;
  border-radius: 999px; border: 0;
  background: rgba(255,255,255,.42);
  cursor: pointer; transition: all .2s var(--ease);
}
.hero-dot.active { background: var(--gold); width: 30px; }
.hero-arrow {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.hero-arrow:hover { background: rgba(0,0,0,.5); }
@media (max-width: 640px) { .hero-arrow { display: none; } }

/* Quick actions strip directly under the hero */
.quick-strip { background: var(--gold); }
.quick-strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.quick-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3);
  color: var(--blue-900);
  text-decoration: none;
  border-right: 1px solid rgba(0,0,0,.09);
  transition: background .15s var(--ease);
}
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: rgba(255,255,255,.28); color: var(--blue-900); }
.quick-item .ico { font-size: 1.5rem; line-height: 1; }
.quick-item .lb { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .75; }
.quick-item .vl { display: block; font-weight: 800; font-size: .96rem; line-height: 1.3; }
@media (max-width: 700px) { .quick-item { border-right: 0; border-bottom: 1px solid rgba(0,0,0,.09); } }

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); }
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: var(--sp-3); }

a.card, .card-link { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-300);
}

.card-media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media .thumb {
  aspect-ratio: 16 / 10;
  background-color: var(--blue-100);
  background-image: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-50) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  place-items: center;
}
/* Placeholder mark, hidden as soon as a real photo is set inline */
.card-media .thumb:not([style*="url"])::after {
  content: '\271D';
  font-size: 2rem;
  color: var(--blue-300);
  opacity: .6;
}
.card-media .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-media .body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.card-media .body h3 { margin-bottom: var(--sp-2); }
.card-media .body .more { margin-top: auto; padding-top: var(--sp-4); font-weight: 800; font-size: var(--fs-sm); color: var(--blue-600); }

.badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-3);
}
.badge-gold { background: var(--gold-50); color: #8a6d12; }
.badge-live { background: #fdecea; color: var(--danger); }

.meta { color: var(--ink-faint); font-size: var(--fs-sm); }

/* ==========================================================================
   8. PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(140deg, var(--blue-800), var(--blue-900));
  color: #fff;
  padding-block: clamp(46px, 7vw, 82px);
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-hero p { color: #bfd8e8; max-width: 62ch; margin-inline: auto; font-size: var(--fs-lg); }

.breadcrumbs { font-size: var(--fs-sm); color: #9fc0d6; margin-bottom: var(--sp-3); }
.breadcrumbs a { color: #cfe2ef; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.entry-content { padding-block: var(--section-y); }
.entry-content h2 { margin-top: var(--sp-7); }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin-top: var(--sp-5); }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { margin-bottom: var(--sp-4); }

/* ==========================================================================
   9. WEEKLY SCHEDULE & PROGRAM LISTS
   ========================================================================== */
.schedule { display: grid; gap: var(--sp-3); }
.schedule-row {
  display: grid;
  grid-template-columns: 52px 128px 1fr;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
}
.schedule-row .ico { font-size: 1.4rem; text-align: center; }
.schedule-row .time { font-weight: 800; color: var(--blue-800); font-size: var(--fs-sm); }
.schedule-row .what { font-weight: 600; }
.schedule-row .note { display: block; color: var(--ink-faint); font-size: var(--fs-sm); font-weight: 400; }
@media (max-width: 620px) {
  .schedule-row { grid-template-columns: 40px 1fr; gap: var(--sp-3); }
  .schedule-row .time { grid-column: 2; }
  .schedule-row .what { grid-column: 2; }
  .schedule-row .ico { grid-row: span 2; }
}

.day-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day-card .day-head {
  background: var(--blue-800); color: #fff;
  padding: var(--sp-3) var(--sp-5);
  font-weight: 800; letter-spacing: .02em;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
}
.day-card .day-head .when { font-size: var(--fs-sm); color: var(--gold-light); font-weight: 700; }
.day-card .day-body { padding: var(--sp-5); }
.day-card .day-body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. EVENTS
   ========================================================================== */
.month-heading {
  display: flex; align-items: center; gap: var(--sp-4);
  margin: var(--sp-7) 0 var(--sp-4);
}
.month-heading:first-child { margin-top: 0; }
.month-heading h2 { margin: 0; font-size: var(--fs-xl); white-space: nowrap; }
.month-heading .rule { flex: 1; height: 1px; background: var(--line); }
.month-heading .count {
  background: var(--gold); color: var(--blue-900);
  font-size: var(--fs-xs); font-weight: 800;
  padding: 3px 12px; border-radius: 999px;
}

.event-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--sp-3);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.event-row:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.event-date {
  text-align: center;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  padding: var(--sp-2);
  border: 1px solid var(--blue-100);
}
.event-date .d { display: block; font-size: 1.5rem; font-weight: 800; color: var(--blue-800); line-height: 1; }
.event-date .m { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; margin-top: 2px; }
.event-body h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.event-body .meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.event-body .meta span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 620px) {
  .event-row { grid-template-columns: 62px 1fr; }
  .event-row .event-cta { grid-column: 1 / -1; }
  .event-row .event-cta .btn { width: 100%; }
}

.is-past { opacity: .58; }

/* ==========================================================================
   11. MINISTRIES & LEADERS
   ========================================================================== */
.ministry-qa { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.qa-item {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: var(--sp-5);
  border-left: 4px solid var(--blue-600);
}
.qa-item h3 {
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue-600);
  margin-bottom: var(--sp-2);
}
.qa-item p:last-child { margin-bottom: 0; }

.leader-card { text-align: center; }
.leader-card .photo {
  width: 132px; height: 132px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-100);
  border: 3px solid var(--gold);
  display: grid; place-items: center;
  font-size: 2.6rem; color: var(--blue-300);
}
.leader-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-card h3 { font-size: var(--fs-lg); margin-bottom: 2px; }
.leader-card .role { color: var(--gold); font-weight: 800; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--sp-3); }
.leader-card .bio { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ==========================================================================
   12. STATS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
.stat { text-align: center; }
.stat .num { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat .label { font-size: var(--fs-sm); color: #b6d0e2; margin-top: var(--sp-2); font-weight: 600; }
.section:not(.section-blue) .stat .num { color: var(--blue-800); }
.section:not(.section-blue) .stat .label { color: var(--ink-soft); }

/* ==========================================================================
   13. MEDIA EMBEDS & GALLERY
   ========================================================================== */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--blue-900);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-wrap { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.live-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em;
  padding: 6px 16px; border-radius: 999px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: var(--sp-3);
}
.gallery-grid a, .gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }

/* ==========================================================================
   14. FORMS
   ========================================================================== */
.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--blue-800); }
.form-field .hint { font-weight: 400; color: var(--ink-faint); }

input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--sp-3) var(--sp-4);
  font-family: inherit;
  font-size: 16px;                 /* 16px stops iOS zooming on focus */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(20, 80, 122, .14);
}
.hp-field { position: absolute; left: -9999px; }   /* honeypot */

.notice {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-5);
  font-weight: 600;
}
.notice-success { background: #e8f6ee; color: var(--success); border: 1px solid #b9e2cb; }
.notice-error   { background: #fdecea; color: var(--danger);  border: 1px solid #f2c2bc; }

/* ==========================================================================
   15. CONTACT BLOCKS
   ========================================================================== */
.contact-list { display: grid; gap: var(--sp-3); }
.contact-item {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
a.contact-item:hover { border-color: var(--blue-300); transform: translateX(3px); }
.contact-item .ico {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--blue-50); border-radius: 50%;
  font-size: 1.2rem;
}
.contact-item > span:last-child { min-width: 0; }
.contact-item .lb {
  display: block;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); font-weight: 800; line-height: 1.4;
}
.contact-item .vl {
  display: block;
  font-weight: 700; color: var(--blue-800); word-break: break-word; line-height: 1.4;
}

.whatsapp-cta { background: #25d366 !important; color: #fff !important; }
.whatsapp-cta:hover { background: #1fb457 !important; color: #fff !important; }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer { background: var(--blue-900); color: #9db9cc; padding-top: var(--sp-8); }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.site-footer a { color: #bdd6e6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--sp-2); }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-brand img { height: 48px; width: auto; }
.footer-brand .n { color: #fff; font-weight: 800; line-height: 1.2; }
.footer-brand .t { display: block; color: #7f9db2; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

.social-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.social-row a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #cfe2ef;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.social-row a:hover { background: var(--gold); color: var(--blue-900); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--sp-5);
  font-size: var(--fs-sm);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between; align-items: center;
}
.footer-verse { font-family: var(--font-serif); font-style: italic; color: var(--gold-light); }

/* Floating WhatsApp button (mobile-first) */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 27px; height: 27px; fill: currentColor; }

/* ==========================================================================
   17. PAGINATION & MISC
   ========================================================================== */
.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-7); }
.pagination .page-numbers {
  min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  color: var(--blue-800);
}
.pagination .page-numbers:hover { background: var(--blue-50); }
.pagination .current { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }

.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.empty-state .icon { font-size: 2.6rem; margin-bottom: var(--sp-3); }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }
.filter-bar button {
  min-height: 42px;
  padding: var(--sp-2) var(--sp-5);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: var(--fs-sm);
  color: var(--ink-soft); cursor: pointer;
  transition: all .15s var(--ease);
}
.filter-bar button:hover { border-color: var(--blue-300); color: var(--blue-800); }
.filter-bar button.active { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }

/* WordPress core alignment classes */
.alignleft  { float: left; margin: 0 var(--sp-5) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-5); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption-text, figcaption { font-size: var(--fs-sm); color: var(--ink-faint); margin-top: var(--sp-2); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ==========================================================================
   18. TOUCH TARGETS
   On phones, list links need a bigger tap area than their text height.
   ========================================================================== */
@media (max-width: 782px) and (pointer: coarse) {
  .footer-grid li { margin-bottom: 0; }
  .footer-grid li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding-block: 2px;
  }
  .event-body h3 a {
    display: inline-block;
    padding-block: 8px;
  }
  .breadcrumbs a {
    display: inline-block;
    padding-block: 6px;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .wa-float, .hero-controls, .btn { display: none !important; }
  body { color: #000; }
}
