/*
Theme Name: Triumph Church Ministries
Theme URI: https://triumphchurchministries.org
Author: Triumph Church Ministries
Author URI: https://triumphchurchministries.org
Description: Official theme for Triumph Church Ministries (T.C.M.) — Reaching Texas | Touching the World
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: triumph-church
Tags: church, ministry, custom-menu, featured-images, full-width-template, responsive-layout
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — TRIUMPH CHURCH BRAND COLORS
   ============================================================ */
:root {
  /* Brand Colors (extracted from Triumph Church Ministries logo) */
  --color-primary-dark:    #2C3E52;   /* Deep Navy/Slate Blue — primary background */
  --color-primary-accent:  #5B9BD5;   /* Sky/Steel Blue — primary accent */
  --color-gold:            #C9A84C;   /* Gold/Champagne — secondary accent */
  --color-gold-bright:     #D4AF37;   /* Bright Gold — highlight */
  --color-white:           #FFFFFF;
  --color-text-dark:       #1A2533;   /* Dark Navy — text on light backgrounds */
  --color-text-muted:      #5A6A7A;
  --color-bg-light:        #F7F8FA;
  --color-bg-section:      #EEF1F5;
  --color-border:          #D0D8E0;
  --color-overlay:         rgba(26, 37, 51, 0.72);

  /* Typography */
  --font-heading:    'Cinzel', 'Playfair Display', Georgia, serif;
  --font-subheading: 'Montserrat', 'Trebuchet MS', sans-serif;
  --font-body:       'Open Sans', 'Lato', Arial, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-xxl: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.5s ease;

  /* Container */
  --container-max:    1280px;
  --container-narrow: 800px;

  /* Header
     --header-utility-h : height of the top utility bar
     --header-nav-h     : height of the main logo+nav bar
     --header-total-h   : sum — used for page content offset
  */
  --header-utility-h:       34px;
  --header-nav-h:           86px;
  --header-total-h:         120px;   /* 34 + 86 */
  --header-scrolled-nav-h:  68px;
  --header-scrolled-total-h: 68px;  /* utility hides on scroll */

  /* Legacy alias — kept so any leftover references still work */
  --header-height:          120px;
  --header-height-scrolled:  68px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/*
 * FIXED HEADER CLEARANCE — inner pages only (NOT the home page).
 *
 * The home page hero (.hero) is a full-screen element intentionally
 * designed to sit BEHIND the fixed nav (100vh, header overlays it).
 * WordPress automatically adds class "home" to <body> on the front page.
 *
 * All other pages use .page-hero which must start BELOW the fixed header.
 * body padding-top achieves this without any CSS margin-collapsing side
 * effects (margin-top on child elements tunnels up through the DOM tree).
 *
 * JS sets --header-actual-h after fonts load; --header-total-h is the fallback.
 */
body:not(.home) {
  padding-top: var(--header-actual-h, var(--header-total-h));
}

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

a {
  color: var(--color-primary-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* Section labels / eyebrows */
.section-label {
  display: block;
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section-pad {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section-pad--lg {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 2.2em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background-color: var(--color-primary-accent);
  color: var(--color-white);
  border-color: var(--color-primary-accent);
}

.btn--primary:hover {
  background-color: #4a8ac0;
  border-color: #4a8ac0;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-text-dark);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background-color: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: var(--color-text-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn--outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-text-dark);
}

.btn--dark {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
}

.btn--dark:hover {
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-primary-dark);
  /* flex-column lets each row (utility bar + nav row) take its natural height */
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ── WordPress Admin Bar ─────────────────────────────────────────────────────
   When logged in as admin, WP injects:  html { margin-top: 32px !important }
   This shifts body content down but our fixed header stays at top:0, leaving a
   32 px gap of visible page background between the header bottom and the hero.
   Matching the header's top to the admin-bar height closes the gap perfectly.
   body padding-top is still correct: html-margin (32) + body-padding (118) =
   150 px, which equals header-top (32) + header-height (118) = 150 px. ✓
   ─────────────────────────────────────────────────────────────────────────── */
body.admin-bar .site-header {
  top: 32px;   /* desktop admin bar height */
}

@media (max-width: 782px) {
  /* WP switches admin bar to 46 px at ≤ 782 px (independent of our nav bp) */
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Utility bar — smooth slide-up on scroll via max-height transition */
.header-utility {
  background-color: var(--color-text-dark);
  padding: 0.35rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  max-height: 60px;     /* generous cap — collapses smoothly */
  transition: max-height 0.25s ease, padding 0.25s ease;
}

/* Slide utility bar up when scrolled — smooth, no jarring snap */
.is-scrolled .header-utility {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
}

.header-utility a {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.header-utility a:hover {
  color: var(--color-gold);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icons a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.social-icons a:hover {
  color: var(--color-gold);
}

/* Header inner — main logo + nav row */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-nav-h);   /* explicit 86 px; was "100%" which collapsed */
  gap: var(--space-md);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 72px;           /* 86px nav row − 14px breathing room = 72px */
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: height var(--transition-normal);
}

.is-scrolled .site-logo img {
  height: 54px;           /* slightly smaller when scrolled (utility bar hidden) */
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  color: var(--color-white);
}

.site-logo__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.site-logo__tagline {
  font-family: var(--font-subheading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li > a {
  display: block;
  padding: 0.6em 1.1em;
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li:hover > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: var(--color-gold);
}

/* Dropdown */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-primary-dark);
  min-width: 230px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border-top: 2px solid var(--color-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  z-index: 100;
  list-style: none;
  padding: 0.5rem 0;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu li a {
  display: block;
  padding: 0.65em 1.4em;
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.82);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.primary-menu .sub-menu li a:hover {
  color: var(--color-gold);
  background-color: rgba(255,255,255,0.06);
  border-left-color: var(--color-gold);
  padding-left: 1.7em;
}

/* Dropdown arrow */
.primary-menu > li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,0.82);
}

.footer-main {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-logo {
  margin-bottom: var(--space-sm);
}

.footer-logo img {
  height: 80px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-menu a::before {
  content: '›';
  color: var(--color-gold);
  font-size: 1.1rem;
  line-height: 1;
}

.footer-menu a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.footer-contact-info li .icon {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-contact-info a {
  color: rgba(255,255,255,0.7);
}

.footer-contact-info a:hover {
  color: var(--color-gold);
}

.footer-services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-services li strong {
  color: rgba(255,255,255,0.9);
  display: block;
}

/* Footer bottom bar */
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover {
  color: var(--color-gold);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  /* Full viewport height — the fixed header overlays the top of this section.
     The home page body has NO padding-top, so the hero fills 100vh from
     document y=0. The hero content is centered in the full 100vh height,
     keeping the headline visible below the fixed nav. */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.hero__video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 37, 51, 0.82) 0%,
    rgba(44, 62, 82, 0.65) 50%,
    rgba(26, 37, 51, 0.78) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  line-height: 1.1;
}

.hero__subtitle {
  font-family: var(--font-subheading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Video controls */
.hero__video-toggle {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.hero__video-toggle:hover {
  background: rgba(255,255,255,0.25);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero__scroll-indicator span {
  font-family: var(--font-subheading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* ============================================================
   SERVICE TIMES BAR
   ============================================================ */
.service-times-bar {
  background-color: var(--color-text-dark);
  padding: var(--space-md) 0;
  border-top: 3px solid var(--color-gold);
}

.service-times-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-time-item {
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  position: relative;
}

.service-time-item + .service-time-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.service-time-item__label {
  display: block;
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}

.service-time-item__day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.service-time-item__time {
  display: block;
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

/* ============================================================
   EVENTS CARDS
   ============================================================ */
.events-section {
  background-color: var(--color-bg-light);
}

.events-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.event-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.event-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--color-bg-section);
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-card__image img {
  transform: scale(1.04);
}

.event-card__date-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-sm);
  min-width: 52px;
}

.event-card__date-badge .month {
  display: block;
  font-family: var(--font-subheading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.event-card__date-badge .day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.event-card__body {
  padding: var(--space-sm) var(--space-md);
}

.event-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.event-card__meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-accent);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.view-all-link:hover {
  color: var(--color-gold);
  gap: 0.7rem;
}

.view-all-link::after {
  content: '→';
  font-size: 1rem;
}

/* ============================================================
   GET CONNECTED
   ============================================================ */
.get-connected {
  background-color: var(--color-white);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* 3-column variant for sections like Ministry "Our Focus" — centered under heading */
.connect-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.connect-box {
  text-align: center;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: block;
}

.connect-box:hover {
  border-color: var(--color-primary-accent);
  box-shadow: 0 4px 20px rgba(91,155,213,0.15);
  transform: translateY(-4px);
  color: var(--color-text-dark);
}

.connect-box__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 1.8rem;
  transition: background var(--transition-normal);
}

.connect-box:hover .connect-box__icon {
  background: var(--color-primary-accent);
}

.connect-box__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.connect-box__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   COMMUNITY IMPACT / PULL QUOTE
   ============================================================ */
.community-impact {
  background-color: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
}

/* Background photo layer — sits beneath the dark overlay & quotation mark */
.community-impact__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.community-impact::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: -0.05em;
  font-family: var(--font-heading);
  font-size: 20rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.community-impact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.community-impact__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.community-impact__gold-line {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto var(--space-md);
}

.community-impact__sub {
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-md);
}

/* ============================================================
   WHO WE ARE
   ============================================================ */
.who-we-are {
  background-color: var(--color-bg-section);
}

.who-we-are__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.who-we-are__content h2 {
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
}

.who-we-are__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.who-we-are__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  aspect-ratio: 4/3;
  background-color: var(--color-primary-dark);
}

.who-we-are__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
  position: relative;
  background-color: var(--color-primary-dark);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-lg);
  /* No margin-top — body padding-top handles the fixed-header clearance */
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,62,82,0.5) 0%, rgba(44,62,82,0.95) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__label {
  display: block;
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 0;
}

/* Gold underline accent */
.page-hero__content::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin-top: var(--space-sm);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-md);
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header--centered {
  text-align: center;
}

/* Gold divider: rely on explicit <span class="gold-divider"> in templates.
   The :has()/:not() approach was unreliable in some browsers (CSSOM normalized
   the selector and the filter dropped, causing double gold bars). Templates
   should always include an explicit .gold-divider span. */

/* ============================================================
   INTERIOR PAGE CONTENT
   ============================================================ */
.page-content-wrap {
  /* No margin-top here — .page-hero (which always precedes this element)
     already handles the fixed-header offset. Adding margin-top here would
     create a large white gap BETWEEN the hero banner and the page content. */
  margin-top: 0;
}

.page-content {
  padding: var(--space-lg) 0;
}

.page-content--with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
}

/* ============================================================
   MINISTRY CARDS
   ============================================================ */
.ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.ministry-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: block;
}

.ministry-card:hover {
  border-color: var(--color-primary-accent);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  color: inherit;
}

.ministry-card__image {
  aspect-ratio: 16/9;
  background-color: var(--color-primary-dark);
  overflow: hidden;
}

.ministry-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ministry-card:hover .ministry-card__image img {
  transform: scale(1.04);
}

.ministry-card__body {
  padding: var(--space-sm) var(--space-md);
}

.ministry-card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ministry-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}

.ministry-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.ministry-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-accent);
  margin-top: var(--space-sm);
  transition: gap var(--transition-fast);
}

.ministry-card:hover .ministry-card__arrow {
  gap: 0.7rem;
}

/* ============================================================
   GIVE PAGE
   ============================================================ */
.give-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.give-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.give-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px rgba(201,168,76,0.15);
}

.give-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.give-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.give-card__handle {
  font-family: var(--font-subheading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-accent);
  background: var(--color-bg-section);
  padding: 0.4em 1em;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.give-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* ============================================================
   LEADERSHIP CARDS
   ============================================================ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.leader-card {
  text-align: center;
}

.leader-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: var(--color-bg-section);
  border: 4px solid var(--color-gold);
  margin: 0 auto var(--space-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-card__photo-placeholder {
  font-size: 3rem;
  color: var(--color-primary-dark);
  opacity: 0.3;
}

.leader-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}

.leader-card__title {
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.leader-card__bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.gallery-grid img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-block {
  padding: var(--space-md);
  background: var(--color-primary-dark);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.85);
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.contact-detail {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail__icon {
  color: var(--color-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-detail__label {
  font-family: var(--font-subheading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-detail__value {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.contact-detail__value a {
  color: rgba(255,255,255,0.82);
}

.contact-detail__value a:hover {
  color: var(--color-gold);
}

/* Map placeholder */
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-md);
  background: var(--color-bg-section);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-style: italic;
  border: 2px dashed var(--color-border);
}

/* Contact form */
.contact-form-wrap {
  padding: var(--space-md);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.contact-form-wrap h3 {
  margin-bottom: var(--space-md);
}

/* CF7 overrides */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  margin-bottom: 0.75rem;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary-accent);
  box-shadow: 0 0 0 3px rgba(91,155,213,0.15);
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  background: var(--color-primary-accent);
  color: var(--color-white);
  border: none;
  padding: 0.85em 2.2em;
  border-radius: var(--radius-sm);
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  width: 100%;
}

.wpcf7 input[type="submit"]:hover {
  background: #4a8ac0;
  transform: translateY(-1px);
}

/* ============================================================
   WATCH LIVE PAGE
   ============================================================ */
.video-embed-wrap {
  background: var(--color-text-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.video-embed-wrap iframe {
  width: 100%;
  height: 100%;
}

.video-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: var(--space-lg);
}

.video-placeholder__icon {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
  display: block;
}

/* ============================================================
   404 / SEARCH
   ============================================================ */
.error-404,
.search-no-results {
  text-align: center;
  padding: var(--space-xxl) 0;
}

.error-404 h1 {
  font-size: clamp(4rem, 15vw, 10rem);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 0;
}

.search-results .hentry {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.search-results .hentry:last-child {
  border-bottom: none;
}

/* Search form */
.search-form {
  display: flex;
  max-width: 500px;
  margin: var(--space-md) auto;
  gap: 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75em 1em;
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 1rem;
  outline: none;
}

.search-form button {
  padding: 0.75em 1.5em;
  background: var(--color-primary-accent);
  color: var(--color-white);
  border: 2px solid var(--color-primary-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-form button:hover {
  background: #4a8ac0;
}

/* ============================================================
   SINGLE POST / ARCHIVE
   ============================================================ */
.entry-header {
  margin-bottom: var(--space-md);
}

.entry-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--color-text-dark);
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-subheading);
  letter-spacing: 0.05em;
}

.entry-thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.entry-content {
  line-height: 1.8;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  list-style: revert;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-gold);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--color-bg-section);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-md);
}

.post-nav-link {
  font-family: var(--font-subheading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-accent);
  transition: color var(--transition-fast);
}

.post-nav-link:hover {
  color: var(--color-gold);
}

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.widget {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.widget-title {
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
}

/* ============================================================
   EVENTS (The Events Calendar plugin)
   ============================================================ */
.tribe-events-calendar th,
.tribe-events-calendar td {
  font-family: var(--font-body);
}

.tribe-events-c-top-bar {
  font-family: var(--font-subheading);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold   { color: var(--color-gold); }
.text-navy   { color: var(--color-primary-dark); }
.text-accent { color: var(--color-primary-accent); }
.text-white  { color: var(--color-white); }
.text-muted  { color: var(--color-text-muted); }

.bg-navy    { background-color: var(--color-primary-dark); }
.bg-dark    { background-color: var(--color-text-dark); }
.bg-light   { background-color: var(--color-bg-light); }
.bg-section { background-color: var(--color-bg-section); }
.bg-white   { background-color: var(--color-white); }

.gold-divider {
  width: 50px;
  height: 3px;
  background: var(--color-gold);
  display: block;
  margin: var(--space-sm) 0;
}

.gold-divider--center {
  margin: var(--space-sm) auto;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.75em 1.5em;
  background: var(--color-gold);
  color: var(--color-text-dark);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .connect-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .connect-grid--3 {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .events-grid,
  .ministry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .who-we-are__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .give-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-content--with-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  /* Mobile nav */
  .primary-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background-color: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 1rem) var(--space-sm) var(--space-lg);
    overflow-y: auto;
    transition: left var(--transition-normal);
    z-index: 999;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }

  .primary-nav.is-open {
    left: 0;
  }

  /* Mobile menu overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  .nav-overlay.is-visible {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .primary-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .primary-menu > li > a {
    padding: 1em 0.5em;
    font-size: 0.9rem;
  }

  .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--color-gold);
    margin-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .primary-menu li.is-open > .sub-menu {
    max-height: 600px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile header utility — hide */
  .header-utility {
    display: none;
  }

  /* Layout */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .events-grid,
  .ministry-grid,
  .leadership-grid,
  .gallery-grid,
  .give-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-times-bar__grid {
    grid-template-columns: 1fr;
  }

  .service-time-item + .service-time-item::before {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .events-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --space-md: 1.25rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .hero__video-container,
  .menu-toggle,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    padding-top: 0;   /* no fixed header when printing */
  }

  .page-content-wrap {
    margin-top: 0;
  }
}
