/* ===========================================
   KHGM — Kingdom Harvest Gospel Ministry
   Stylesheet | khgm.css
   =========================================== */

/* ─── TOKENS ─── */
:root {
  --white:      #FFFFFF;
  --off:        #FAFAF9;
  --off-2:      #F5F4F2;
  --rule:       #E8E6E3;
  --rule-2:     #F0EEEC;
  --ink:        #141414;
  --ink-2:      #3C3C3C;
  --ink-3:      #6E6E6E;
  --ink-4:      #ABABAB;
  --red:        #C8210E;
  --red-2:      #E02810;
  --red-light:  #FBF0EE;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --r-xs:       3px;
  --r-sm:       6px;
  --r-md:       10px;
  --r-lg:       16px;
}
[data-theme="dark"] {
  --white:      #111110;
  --off:        #161614;
  --off-2:      #1C1C1A;
  --rule:       #2A2A28;
  --rule-2:     #242422;
  --ink:        #F0EDE8;
  --ink-2:      #C8C4BC;
  --ink-3:      #888480;
  --ink-4:      #505050;
  --red:        #E84030;
  --red-2:      #FF5040;
  --red-light:  #1E0A08;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .35s;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* ─── UTILITY ─── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── REVEAL ─── */
.r  { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.rl { opacity: 0; transform: translateX(-32px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.rr { opacity: 0; transform: translateX(32px);  transition: opacity .85s var(--ease), transform .85s var(--ease); }
.rs { opacity: 0; transform: scale(.97);        transition: opacity .9s var(--ease), transform .9s var(--ease); }
.r.in, .rl.in, .rr.in, .rs.in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s !important; }
.d2 { transition-delay: .14s !important; }
.d3 { transition-delay: .21s !important; }
.d4 { transition-delay: .28s !important; }
.d5 { transition-delay: .35s !important; }
.d6 { transition-delay: .42s !important; }

/* ─── SKIP LINK ─── */
.skip {
  position: absolute; top: -80px; left: 1rem; z-index: 9999;
  background: var(--red); color: #fff; font-family: var(--sans);
  font-size: .78rem; font-weight: 600; padding: .45rem 1rem;
  border-radius: var(--r-sm);
}
.skip:focus { top: .75rem; }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-header.up { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.header-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
}

/* ── LOGO — just KHGM text, no circle ── */
.site-logo {
  display: flex; align-items: center; gap: .85rem;
  flex-shrink: 0; text-decoration: none;
}
.logo-svg {
  display: block; width: 52px; height: 52px;
  border-radius: 50%; object-fit: contain;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s;
  flex-shrink: 0;
}
.site-logo:hover .logo-svg { transform: rotate(-4deg) scale(1.08); opacity: .9; }

/* ── PRIMARY NAV ── */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .28rem;
  padding: .42rem .82rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 500;
  color: var(--ink-2); letter-spacing: .02em;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--off-2); }
.nav-caret {
  width: 8px; height: 5px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  transition: transform .2s;
}
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* Mega / Drop */
.nav-mega, .nav-drop {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  opacity: 0; pointer-events: none;
  /* Delay hiding so mouse can travel into dropdown */
  transition: opacity .22s .05s, transform .2s .05s var(--ease);
  overflow: hidden;
}
/* Invisible bridge fills the gap between nav-link and dropdown */
.nav-mega::before, .nav-drop::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
  background: transparent;
}
.nav-mega { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; }
.nav-drop { min-width: 190px; }
.nav-item:hover .nav-mega,
.nav-item:hover .nav-drop,
.nav-item.nav-open .nav-mega,
.nav-item.nav-open .nav-drop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* Show instantly, hide with delay */
  transition: opacity .12s, transform .15s var(--ease);
}
.mega-col { padding: 1.1rem 1.3rem; }
.mega-col + .mega-col { border-left: 1px solid var(--rule-2); }
.mega-head {
  font-family: var(--sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
  padding-bottom: .5rem; border-bottom: 1px solid var(--rule-2);
  margin-bottom: .45rem; display: block;
}
.mega-col a, .nav-drop a {
  display: block; padding: .38rem .5rem;
  font-family: var(--sans); font-size: .79rem; color: var(--ink-2);
  border-radius: var(--r-xs);
  transition: background .14s, color .14s, padding-left .16s;
}
.mega-col a:hover, .nav-drop a:hover {
  background: var(--off); color: var(--ink); padding-left: .85rem;
}
.nav-drop a { padding: .55rem 1rem; border-radius: 0; border-bottom: 1px solid var(--rule-2); }
.nav-drop a:last-child { border-bottom: none; }

/* ── HEADER ACTIONS ── */
.hdr-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.btn-give {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .42rem 1.05rem;
  background: var(--red); color: #fff;
  border-radius: var(--r-sm);
  transition: background .18s, transform .18s;
}
.btn-give:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-watch {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .42rem 1.05rem;
  border: 1.5px solid var(--rule); color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: border-color .18s, background .18s, color .18s;
}
.btn-watch:hover { border-color: var(--ink-3); background: var(--off); color: var(--ink); }
.theme-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1.5px solid var(--rule); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .18s, background .18s, transform .2s;
}
.theme-btn:hover { border-color: var(--ink-3); background: var(--off); transform: rotate(15deg); }
.theme-btn svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.ham-btn {
  display: none; width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1.5px solid var(--rule); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 4.5px;
  transition: border-color .18s, background .18s;
}
.ham-btn:hover { border-color: var(--ink-3); background: var(--off); }
.ham-btn span {
  display: block; width: 15px; height: 1.5px;
  background: var(--ink-2); border-radius: 2px;
  transition: transform .26s, opacity .26s;
}
.ham-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ham-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ham-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────── */
.mob-drawer {
  position: fixed; inset: 64px 0 0 0; z-index: 590;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  overflow-y: auto;
  border-top: 1px solid var(--rule);
}
.mob-drawer.open { transform: translateX(0); }
.mob-inner { padding: 1.5rem 1.25rem 3rem; }
.mob-group { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule-2); }
.mob-group:last-of-type { border-bottom: none; }
.mob-head {
  font-family: var(--sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: .65rem; display: block;
}
.mob-link {
  display: block; padding: .52rem 0;
  font-family: var(--serif); font-size: 1rem; color: var(--ink-2);
  border-bottom: 1px solid var(--rule-2);
  transition: color .15s, padding-left .15s;
}
.mob-link:last-child { border-bottom: none; }
.mob-link:hover { color: var(--ink); padding-left: .4rem; }
.mob-actions { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.mob-actions .btn-give,
.mob-actions .btn-watch { flex: 1; text-align: center; padding: .7rem 1rem; font-size: .75rem; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  background: #141414; /* always dark — never affected by theme toggle */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* Force hero text to always be white regardless of theme */
.hero .hero-label { color: rgba(255,255,255,.35) !important; }
.hero .hero-h1    { color: #fff !important; }
.hero .hero-h1 em { color: rgba(255,255,255,.6) !important; }
.hero .hero-sub   { color: rgba(255,255,255,.5) !important; }
/* Force hero grid cells to always show dark */
.hero .hero-cell  { background: #1C1C1A !important; }
.hero-bg {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(4,1fr);
  gap: 1px; opacity: .12;
}
.hero-cell { background: #1C1C1A; animation: cellBreath 8s ease-in-out infinite alternate; }
.hero-cell:nth-child(even) { animation-delay: -4s; }
.hero-cell:nth-child(3n)   { animation-delay: -2s; }
@keyframes cellBreath { from{opacity:.85;} to{opacity:1;} }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 70% 40%, rgba(200,33,14,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(255,255,255,.02) 0%, transparent 60%);
  animation: glowShift 12s ease-in-out infinite alternate;
}
@keyframes glowShift { from{opacity:.7;} to{opacity:1;} }
.hero-body {
  position: relative; z-index: 10;
  max-width: 1240px; margin: 0 auto; padding: 4rem 2rem 5.5rem; width: 100%;
}
.hero-label {
  font-family: var(--sans); font-size: .62rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.35); display: block; margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .2s forwards;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem,5.5vw,5rem);
  font-weight: 700; line-height: 1.08;
  color: #fff; max-width: 720px; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .95s var(--ease) .38s forwards;
}
.hero-h1 em { font-style: italic; font-weight: 500; color: rgba(255,255,255,.6); }
.hero-divider {
  width: 48px; height: 2px; background: var(--red);
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .7s var(--ease) .55s forwards;
}
.hero-sub {
  font-family: var(--sans); font-size: .9rem; font-weight: 300;
  color: rgba(255,255,255,.5); max-width: 480px;
  line-height: 1.82; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .68s forwards;
}
.hero-ctas {
  display: flex; gap: .85rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s var(--ease) .82s forwards;
}
.btn-primary {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .78rem 1.85rem;
  background: #fff; color: #141414 !important;
  border-radius: var(--r-sm);
  transition: background .18s, transform .22s var(--ease), box-shadow .22s;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.btn-primary:hover { background: #F0EDE8; color: #141414 !important; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.btn-outline-white {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .78rem 1.85rem;
  border: 1.5px solid rgba(255,255,255,.5); color: #fff !important;
  border-radius: var(--r-sm);
  transition: border-color .18s, color .18s, transform .2s;
}
.btn-outline-white:hover { border-color: #fff; color: #fff !important; transform: translateY(-2px); }
.hero-scroll {
  position: absolute; right: 2rem; bottom: 3rem; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  opacity: 0; animation: fadeUp .6s var(--ease) 1.3s forwards;
}
.hero-scroll-word {
  font-family: var(--sans); font-size: .52rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.25);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.hero-scroll-track { width: 1px; height: 48px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.hero-scroll-run {
  position: absolute; top: -100%; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
  animation: scrollRun 1.9s ease-in-out infinite;
}
@keyframes scrollRun { 0%{top:-100%;} 100%{top:200%;} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:none;} }

/* ─────────────────────────────────────────
   TICKER
───────────────────────────────────────── */
.ticker {
  background: var(--white); border-bottom: 1px solid var(--rule);
  height: 40px; overflow: hidden; display: flex; align-items: center;
}
.ticker-label {
  flex-shrink: 0; padding: 0 1.25rem;
  font-family: var(--sans); font-size: .58rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
  border-right: 1px solid var(--rule); white-space: nowrap;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner { display: flex; white-space: nowrap; animation: tick 36s linear infinite; }
.ticker-item { font-family: var(--sans); font-size: .72rem; color: var(--ink-3); padding: 0 2rem; display: inline-block; }
.ticker-item::before { content: "—"; margin-right: .6rem; color: var(--rule); }
@keyframes tick { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ─────────────────────────────────────────
   COUNTDOWN
───────────────────────────────────────── */
.cd-section { background: var(--white); border-bottom: 1px solid var(--rule); padding: 2rem; }
.cd-wrap {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cd-label {
  font-family: var(--sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
  display: block; margin-bottom: .3rem;
}
.cd-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.cd-timer { display: flex; align-items: baseline; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.cd-num {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 700;
  color: var(--ink); line-height: 1; letter-spacing: -.02em; display: block;
}
.cd-unit-label {
  font-family: var(--sans); font-size: .5rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
  display: block; margin-top: .15rem;
}
.cd-colon { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--rule); margin: 0 .05rem; padding-bottom: .4rem; }
.btn-cd {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem 1.35rem;
  border: 1.5px solid var(--rule); color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-cd:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-1px); }

/* ─────────────────────────────────────────
   SECTIONS SHARED
───────────────────────────────────────── */
.sec { padding: 5.5rem 0; border-bottom: 1px solid var(--rule); background: var(--white); }
.sec.alt { background: var(--off); }
.kicker {
  font-family: var(--sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4);
  display: block; margin-bottom: .85rem;
}
.sec-h {
  font-family: var(--serif); font-size: clamp(1.75rem,2.8vw,2.4rem);
  font-weight: 700; color: #141414; line-height: 1.18;
}
/* On dark sections, override to white */
.panel.dark .sec-h, .panel.red .sec-h { color: #fff; }
.sec-p {
  font-family: var(--sans); font-size: .88rem; font-weight: 300;
  color: var(--ink-3); line-height: 1.82; max-width: 520px;
}
.sec-hdr {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-bottom: 2rem;
}
.btn-link {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: color .18s, border-color .18s; white-space: nowrap;
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }

/* ─────────────────────────────────────────
   SERVICE TIMES
───────────────────────────────────────── */
.svc-layout {
  display: grid; grid-template-columns: 1fr 2.4fr; gap: 0;
  border-top: 1px solid var(--rule); margin-top: .85rem;
}
.svc-aside { padding: 2.75rem 3rem 2.75rem 0; border-right: 1px solid var(--rule); }
.svc-aside-h { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); margin-bottom: .85rem; line-height: 1.18; }
.svc-aside-p { font-family: var(--sans); font-size: .86rem; font-weight: 300; color: var(--ink-3); line-height: 1.82; margin-bottom: 1.6rem; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.svc-cell {
  padding: 1.75rem 2.25rem;
  border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
  transition: background .22s;
}
.svc-cell::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--red); transition: width .28s var(--ease);
}
.svc-cell:hover { background: var(--off); }
.svc-cell:hover::after { width: 3px; }
.svc-freq {
  font-family: var(--sans); font-size: .58rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: .65rem;
  border-bottom: 1px solid var(--red-light); padding-bottom: .45rem;
}
.svc-day {
  font-family: var(--sans); font-size: .56rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
  display: block; margin-bottom: .5rem;
}
.svc-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; line-height: 1.3; }
.svc-time { font-family: var(--sans); font-size: .78rem; color: var(--ink-3); margin-bottom: .5rem; }
.svc-tag { font-family: var(--sans); font-size: .64rem; font-weight: 500; color: var(--red); }
/* Frequency header cells */
.svc-freq-hdr {
  grid-column: span 2;
  padding: .85rem 2.25rem;
  background: var(--off-2);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.svc-freq-hdr-text {
  font-family: var(--sans); font-size: .62rem; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
/* Phone numbers block */
.svc-phones {
  grid-column: span 2;
  padding: 1.2rem 2.25rem;
  background: var(--off);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.svc-phones-label {
  font-family: var(--sans); font-size: .6rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4);
  flex-shrink: 0;
}
.svc-phones-nums {
  font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-2);
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.svc-phones-nums a { border-bottom: 1px solid var(--rule-2); transition: border-color .15s, color .15s; }
.svc-phones-nums a:hover { color: var(--ink); border-color: var(--ink); }

/* ─────────────────────────────────────────
   FULL-BLEED PANELS
───────────────────────────────────────── */
.panel {
  position: relative; min-height: 72vh; overflow: hidden;
  display: flex; align-items: center;
}
.panel-bg { position: absolute; inset: -15%; transition: transform .1s linear; }
.panel-bg-fill { width: 100%; height: 100%; }
.panel-overlay { position: absolute; inset: 0; }
.panel.dark .panel-overlay  { background: linear-gradient(108deg,rgba(10,10,9,.93) 0%,rgba(16,16,14,.82) 100%); }
.panel.light .panel-overlay { background: linear-gradient(108deg,rgba(250,250,249,.97) 0%,rgba(244,242,239,.95) 100%); }
.panel.red .panel-overlay   { background: linear-gradient(108deg,rgba(165,20,8,.92) 0%,rgba(120,12,4,.86) 100%); }
.panel-content {
  position: relative; z-index: 10;
  max-width: 1240px; margin: 0 auto; padding: 5.5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  width: 100%;
}
.panel.flip .panel-content { direction: rtl; }
.panel.flip .panel-content > * { direction: ltr; }
.panel-mark { width: 32px; height: 2px; margin-bottom: 1.25rem; }
.panel.dark .panel-mark, .panel.red .panel-mark { background: rgba(255,255,255,.25); }
.panel.light .panel-mark { background: var(--rule); }
.panel-verse {
  font-family: var(--serif); font-size: clamp(1.25rem,2.1vw,1.7rem);
  font-style: italic; font-weight: 500; line-height: 1.55; margin-bottom: .75rem;
}
.panel.dark .panel-verse, .panel.red .panel-verse { color: rgba(255,255,255,.85); }
.panel.light .panel-verse { color: #141414; }
.panel-ref {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.panel.dark .panel-ref, .panel.red .panel-ref { color: rgba(255,255,255,.3); }
.panel.light .panel-ref { color: #6E6E6E; }
.panel-kicker {
  font-family: var(--sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; display: block; margin-bottom: .75rem;
}
.panel.dark .panel-kicker  { color: rgba(255,255,255,.3); }
.panel.red .panel-kicker   { color: rgba(255,255,255,.45); }
.panel.light .panel-kicker { color: var(--red); }
.panel-h {
  font-family: var(--serif); font-size: clamp(1.65rem,2.7vw,2.35rem);
  font-weight: 700; line-height: 1.15; margin-bottom: .85rem;
}
.panel.dark .panel-h, .panel.red .panel-h { color: #fff; }
.panel.light .panel-h { color: #141414; opacity: 1 !important; }
.panel-p {
  font-family: var(--sans); font-size: .86rem; font-weight: 300;
  line-height: 1.88; margin-bottom: 1.5rem;
}
.panel.dark .panel-p, .panel.red .panel-p { color: rgba(255,255,255,.55); }
.panel.light .panel-p { color: #3C3C3C; }
.btn-panel {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .72rem 1.7rem; border-radius: var(--r-sm); display: inline-block;
  transition: background .18s, transform .22s var(--ease), box-shadow .2s;
}
.btn-panel:hover { transform: translateY(-2px); }
.panel.dark .btn-panel, .panel.red .btn-panel { background: #fff; color: #141414 !important; box-shadow: 0 4px 20px rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.15); font-weight: 700 !important; }
.panel.dark .btn-panel:hover, .panel.red .btn-panel:hover { background: #F0EDE8; color: #141414; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.panel.light .btn-panel { background: var(--red); color: #fff; box-shadow: 0 2px 12px rgba(200,33,14,.2); }
.panel.light .btn-panel:hover { background: var(--red-2); box-shadow: 0 5px 18px rgba(200,33,14,.35); }

/* ─────────────────────────────────────────
   MEMBERS
───────────────────────────────────────── */
.members-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--rule);
  border-radius: var(--r-md); overflow: hidden;
}
.mem-card { background: var(--white); transition: background .22s, transform .3s var(--ease); position: relative; }
.mem-card:hover { background: var(--off); z-index: 2; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.mem-photo { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.mem-photo-fill { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.mem-card:hover .mem-photo-fill { transform: scale(1.04); }
.c1{background:linear-gradient(150deg,#D8E8F5,#B8CCEA);}
.c2{background:linear-gradient(150deg,#F0D8D5,#DDBBB5);}
.c3{background:linear-gradient(150deg,#D5EAD8,#B5D0BA);}
.c4{background:linear-gradient(150deg,#EDE8D5,#D5C8A5);}
.c5{background:linear-gradient(150deg,#D5DCF0,#B5BEDD);}
.c6{background:linear-gradient(150deg,#EAD5E8,#D0B5CE);}
.c7{background:linear-gradient(150deg,#D5EAE0,#B5D0C0);}
.c8{background:linear-gradient(150deg,#EDE0D5,#D5BEA8);}
[data-theme="dark"] .c1{background:linear-gradient(150deg,#1A2535,#111825);}
[data-theme="dark"] .c2{background:linear-gradient(150deg,#281C1A,#180E0C);}
[data-theme="dark"] .c3{background:linear-gradient(150deg,#1A261C,#0E160F);}
[data-theme="dark"] .c4{background:linear-gradient(150deg,#262018,#16120A);}
[data-theme="dark"] .c5{background:linear-gradient(150deg,#1A1E28,#0E1218);}
[data-theme="dark"] .c6{background:linear-gradient(150deg,#221A25,#140E18);}
[data-theme="dark"] .c7{background:linear-gradient(150deg,#1A2620,#0E1610);}
[data-theme="dark"] .c8{background:linear-gradient(150deg,#25180E,#160C06);}
.mem-info { padding: .9rem 1rem .8rem; border-top: 1px solid var(--rule-2); }
.mem-name { font-family: var(--serif); font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.mem-dept { font-family: var(--sans); font-size: .64rem; color: var(--ink-4); letter-spacing: .04em; }

/* ─────────────────────────────────────────
   STORIES
───────────────────────────────────────── */
.stories-grid {
  display: grid; grid-template-columns: 1.55fr 1fr 1fr;
  gap: 1px; background: var(--rule);
  border-radius: var(--r-md); overflow: hidden;
}
.story { background: var(--white); display: flex; flex-direction: column; transition: background .2s; }
.story:hover { background: var(--off); }
.story-img { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.story.featured .story-img { aspect-ratio: 16/8; }
.story-img-fill { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.story:hover .story-img-fill { transform: scale(1.04); }
.s1{background:linear-gradient(135deg,#C5D5E8,#A0B8D5);}
.s2{background:linear-gradient(135deg,#E0C8C5,#CAAAA5);}
.s3{background:linear-gradient(135deg,#C5D8CA,#A0C0A8);}
[data-theme="dark"] .s1{background:linear-gradient(135deg,#151E2A,#0C1318);}
[data-theme="dark"] .s2{background:linear-gradient(135deg,#1E1514,#12100E);}
[data-theme="dark"] .s3{background:linear-gradient(135deg,#141E16,#0C1410);}
.story-img-cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .58rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: rgba(0,0,0,.22);
}
[data-theme="dark"] .story-img-cap { color: rgba(255,255,255,.15); }
.story-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.story-date { font-family: var(--sans); font-size: .62rem; color: var(--ink-4); letter-spacing: .1em; display: block; margin-bottom: .65rem; }
.story-h { font-family: var(--serif); font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: .55rem; flex: 1; }
.story.featured .story-h { font-size: 1.3rem; }
.story-excerpt { font-family: var(--sans); font-size: .78rem; font-weight: 300; color: var(--ink-3); line-height: 1.75; margin-bottom: .85rem; }
.story-read {
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  display: inline-block; transition: color .18s, border-color .18s;
}
.story-read:hover { color: var(--ink); border-color: var(--ink); }

/* ─────────────────────────────────────────
   EVENTS
───────────────────────────────────────── */
.evt-list { margin-top: 0; }
.evt-item {
  display: grid; grid-template-columns: 100px 1fr 38px;
  gap: 1.75rem; align-items: center;
  padding: 1.6rem .75rem;
  border-bottom: 1px solid var(--rule); border-radius: var(--r-xs);
  transition: background .2s, padding-left .22s var(--ease); cursor: pointer;
}
.evt-item:first-child { border-top: 1px solid var(--rule); margin-top: 2rem; }
.evt-item:hover { background: var(--off); padding-left: 1rem; }
.evt-day-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1; display: block; }
.evt-month    { font-family: var(--sans); font-size: .56rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); }
.evt-cat      { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: .35rem; }
.evt-title    { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: .28rem; line-height: 1.25; }
.evt-loc      { font-family: var(--sans); font-size: .75rem; color: var(--ink-3); font-weight: 300; }
.evt-arrow {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 1.5px solid var(--rule); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .18s, border-color .18s, transform .2s;
}
.evt-item:hover .evt-arrow { background: var(--ink); border-color: var(--ink); transform: translateX(3px); }
.evt-arrow svg { width: 13px; height: 13px; fill: none; stroke: var(--ink-4); stroke-width: 1.8; transition: stroke .18s; }
.evt-item:hover .evt-arrow svg { stroke: var(--white); }

/* ─────────────────────────────────────────
   NOTICES
───────────────────────────────────────── */
.notices-layout {
  display: grid; grid-template-columns: 1fr 2.4fr; gap: 0;
  border-top: 1px solid var(--rule); margin-top: .85rem;
}
.notices-aside { padding: 2.75rem 3rem 2.75rem 0; border-right: 1px solid var(--rule); }
.notices-aside-h { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); margin-bottom: .85rem; line-height: 1.18; }
.notices-aside-p { font-family: var(--sans); font-size: .86rem; font-weight: 300; color: var(--ink-3); line-height: 1.82; margin-bottom: 1.6rem; }
.notice {
  padding: 1.4rem 2rem; border-bottom: 1px solid var(--rule);
  transition: background .2s; border-radius: var(--r-xs);
}
.notice:first-child { border-top: 1px solid var(--rule-2); }
.notice:hover { background: var(--off); }
.ntag {
  font-family: var(--sans); font-size: .57rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: var(--r-xs);
  margin-bottom: .55rem; display: inline-block;
}
.ntag-new    { background: var(--red-light); color: var(--red); }
.ntag-open   { background: var(--off-2); color: var(--ink-3); border: 1px solid var(--rule); }
.ntag-notice { background: var(--off-2); color: var(--ink-4); border: 1px solid var(--rule); }
.notice-h { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .38rem; }
.notice-p { font-family: var(--sans); font-size: .78rem; font-weight: 300; color: var(--ink-3); line-height: 1.75; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule); margin-top: 1.5rem;
}
.contact-left { padding: 2.75rem 3rem 2.75rem 0; border-right: 1px solid var(--rule); }
.contact-h { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: var(--ink); margin-bottom: .85rem; line-height: 1.2; }
.contact-p { font-family: var(--sans); font-size: .86rem; font-weight: 300; color: var(--ink-3); line-height: 1.82; margin-bottom: 1.75rem; }
.c-row { display: grid; grid-template-columns: 90px 1fr; padding: .8rem 0; border-bottom: 1px solid var(--rule-2); }
.c-row:last-child { border-bottom: none; }
.c-lbl { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); padding-top: .1rem; }
.c-val { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); }
.c-val a { border-bottom: 1px solid var(--rule-2); transition: border-color .15s; }
.c-val a:hover { border-color: var(--ink); }
.contact-right { padding: 2.75rem 0 2.75rem 3rem; }
.map-block {
  background: var(--off); border: 1px solid var(--rule); border-radius: var(--r-lg);
  aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem; overflow: hidden;
}
.map-text { font-family: var(--sans); font-size: .75rem; color: var(--ink-4); text-align: center; max-width: 220px; line-height: 1.65; }
.map-code { font-family: monospace; font-size: .62rem; color: var(--ink-4); background: var(--white); border: 1px solid var(--rule); padding: .28rem .65rem; border-radius: var(--r-xs); }
.btn-dir {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1.3rem; border: 1.5px solid var(--rule); color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-dir:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-1px); }

/* ─────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────── */
.nl-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.nl-h { font-family: var(--serif); font-size: 1.65rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; line-height: 1.2; }
.nl-p { font-family: var(--sans); font-size: .84rem; font-weight: 300; color: var(--ink-3); line-height: 1.75; }
.nl-form {
  display: flex; border: 1.5px solid var(--rule); border-radius: var(--r-sm);
  overflow: hidden; background: var(--white); transition: border-color .2s;
}
.nl-form:focus-within { border-color: var(--ink-3); }
.nl-input {
  flex: 1; background: transparent; border: none;
  font-family: var(--sans); font-size: .85rem; font-weight: 300;
  color: var(--ink); padding: .75rem 1.1rem; outline: none;
}
.nl-input::placeholder { color: var(--ink-4); }
.nl-btn {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .75rem 1.35rem; background: var(--ink); color: var(--white);
  border-radius: 0 var(--r-xs) var(--r-xs) 0; transition: opacity .18s;
}
.nl-btn:hover { opacity: .82; }

/* ─────────────────────────────────────────
   FOOTER — WHITE
───────────────────────────────────────── */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); padding: 4rem 0 0; }
.footer-top {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem 3.5rem;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem;
  border-bottom: 1px solid var(--rule);
}
.footer-mark { margin-bottom: 1rem; display: block; }
.footer-name { font-family: var(--serif); font-size: .92rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: .25rem; }
.footer-place { font-family: var(--sans); font-size: .58rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); display: block; margin-bottom: 1.1rem; }
.footer-tagline { font-family: var(--sans); font-size: .8rem; font-weight: 300; color: var(--ink-3); line-height: 1.7; max-width: 230px; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: .35rem; flex-wrap: wrap; }
.foot-soc {
  font-family: var(--sans); font-size: .58rem; font-weight: 500; letter-spacing: .06em;
  color: var(--ink-3); padding: .35rem .75rem;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  transition: color .18s, border-color .18s, transform .18s;
}
.foot-soc:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-2px); }
.ftr-col-h {
  font-family: var(--sans); font-size: .56rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: .9rem; display: block;
}
.ftr-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.ftr-links a { font-family: var(--sans); font-size: .8rem; font-weight: 300; color: var(--ink-3); transition: color .18s, padding-left .18s; }
.ftr-links a:hover { color: var(--ink); padding-left: .3rem; }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding: 1.3rem 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.ftr-copy { font-family: var(--sans); font-size: .7rem; font-weight: 300; color: var(--ink-4); }
.ftr-legal { display: flex; gap: 1.35rem; }
.ftr-legal a { font-family: var(--sans); font-size: .7rem; color: var(--ink-4); transition: color .18s; }
.ftr-legal a:hover { color: var(--ink); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* ─────────────────────────────────────────
   WORDPRESS ADMIN BAR OFFSET
   Pushes fixed header below the admin bar
───────────────────────────────────────── */
.admin-bar .site-header {
    top: 32px;
    z-index: 99999; /* above WP admin bar pointers */
}
.admin-bar .mob-drawer {
    top: calc(64px + 32px);
}
.admin-bar .hero {
    padding-top: calc(64px + 32px);
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
    .admin-bar .mob-drawer {
        top: calc(64px + 46px);
    }
    .admin-bar .hero {
        padding-top: calc(64px + 46px);
    }
}
@media screen and (max-width: 600px) {
    /* WP admin bar collapses to 0 height but stays fixed at top on very small screens */
    .admin-bar .site-header {
        top: 46px;
    }
    .admin-bar .mob-drawer {
        top: calc(64px + 46px);
    }
}

@media (max-width: 1024px) {
  .svc-layout, .notices-layout { grid-template-columns: 1fr; }
  .svc-aside, .notices-aside { border-right: none; padding: 2rem 0; }
  .svc-grid { border-top: 1px solid var(--rule); }
  .panel-content { gap: 3rem; }
  .stories-grid { grid-template-columns: 1fr 1fr; }
  .stories-grid .story:nth-child(3) { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nl-wrap { gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-left { border-right: none; padding: 2rem 0; }
  .contact-right { padding: 0; }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .btn-watch { display: none; }
  .ham-btn { display: flex; }
  /* Push actions to far right when nav collapses */
  .hdr-actions { margin-left: auto; }
  .panel-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .panel.flip .panel-content { direction: ltr; }
  .members-grid { grid-template-columns: repeat(2,1fr); }
  .evt-item { grid-template-columns: 80px 1fr 38px; gap: 1rem; }
}
@media (max-width: 640px) {
  .wrap, .header-wrap, .footer-top, .footer-bottom, .cd-wrap, .nl-wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
  /* Mobile header: tighter gap, actions right */
  .header-wrap { gap: 0; }
  .hdr-actions { gap: .35rem; }
  .btn-give { font-size: .68rem; padding: .4rem .85rem; letter-spacing: .04em; }
  .hero-body { padding: 3rem 1.1rem 4.5rem; }
  .sec { padding: 3.5rem 1.1rem; }
  .panel-content { padding: 3.5rem 1.1rem; }
  .stories-grid { grid-template-columns: 1fr; }
  .stories-grid .story:nth-child(3) { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .nl-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .cd-wrap { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .svc-aside, .notices-aside { padding: 1.75rem 0; }
  .members-grid { grid-template-columns: repeat(2,1fr); }
  .evt-item { grid-template-columns: 1fr; gap: .35rem; }
  .evt-arrow { display: none; }
  .svc-phones { flex-direction: column; gap: .75rem; }
  .svc-phones-nums { flex-direction: column; gap: .4rem; }
  .notices-layout { grid-template-columns: 1fr; }
  .notices-aside { border-right: none; padding: 1.75rem 0; }
  .notices-list { border-top: 1px solid var(--rule); }
}
@media (max-width: 380px) {
  .hero-h1 { font-size: 2.2rem; }
  .members-grid { grid-template-columns: 1fr; }
  .cd-timer { gap: 0; }
  .cd-unit { min-width: 48px; }
  .cd-num { font-size: 2rem; }
  /* Tiny screens: shrink Give Online button */
  .btn-give { font-size: .62rem; padding: .38rem .7rem; }
  .theme-btn, .ham-btn { width: 30px; height: 30px; }
}

/* ─────────────────────────────────────────
   NON-HERO PAGES: push content below fixed header
───────────────────────────────────────── */
body:not(.khgm-front) #main {
    padding-top: 64px;
}
.admin-bar body:not(.khgm-front) #main,
.admin-bar #main {
    padding-top: calc(64px + 32px);
}
@media screen and (max-width: 782px) {
    body:not(.khgm-front) #main {
        padding-top: 64px;
    }
    .admin-bar #main {
        padding-top: calc(64px + 46px);
    }
}

