/* =================================================================
   ISM Connect — Main Stylesheet
   Mobile-first, accessible, fast.
   ================================================================= */

/* -------- Variables (overridden by Customizer inline) -------- */
:root {
    --primary-color:   #2563eb;
    --secondary-color: #1e40af;
    --primary-rgb:     37, 99, 235;
    --secondary-rgb:   30, 64, 175;
    --primary-tint:    rgba(37, 99, 235, .08);
    --primary-soft:    rgba(37, 99, 235, .14);
    --primary-strong:  rgba(37, 99, 235, .92);
    --accent-color:    #d97706;
    --text-color:      #111827;
    --text-soft:       #374151;
    --muted-color:     #6b7280;
    --bg-color:        #ffffff;
    --bg-alt:          #f7f7f5;
    --bg-warm:         #faf6f0;
    --bg-deep:         #0f172a;
    --border-color:    #ececec;
    --border-strong:   #d4d4d8;
    --radius-sm:       10px;
    --radius:          18px;
    --radius-lg:       28px;
    --shadow-xs:       0 1px 2px rgba(15,23,42,.04);
    --shadow-sm:       0 2px 6px rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.03);
    --shadow:          0 8px 24px -8px rgba(15,23,42,.10), 0 4px 8px -4px rgba(15,23,42,.04);
    --shadow-lg:       0 24px 48px -12px rgba(15,23,42,.18), 0 8px 16px -8px rgba(15,23,42,.06);
    --transition:      .25s cubic-bezier(.4, 0, .2, 1);
    --container-max:   1200px;
    --font-sans:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display:    "Fraunces", "Inter", Georgia, serif;
}

/* -------- Reset / Base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-soft);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary-color); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--text-color); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }
ul.primary-menu, ul.footer-menu, ul.mobile-bar-menu, ul.social-links, ul.tag-list, ul.church-meta, ul.newsletter-bullets, ul.archive-list { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--accent-color); color: #fff; }

/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 .75rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5vw + .5rem, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw + .25rem, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.5vw + .5rem, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1rem; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: .85rem;
}

/* -------- Accessibility -------- */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px; width: 1px; overflow: hidden;
    word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: #000; color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; border-radius: 4px; }

/* -------- Layout -------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container--narrow { max-width: 820px; }
.section { padding: 4rem 0; }
@media (min-width: 768px) {
    .section { padding: 6rem 0; }
}
@media (min-width: 1100px) {
    .section { padding: 7rem 0; }
}
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
@media (min-width: 768px) { .section-header { margin-bottom: 4rem; } }
.section-title { margin: 0 0 .75rem; }
.section-description { color: var(--muted-color); font-size: 1.0625rem; line-height: 1.6; }
.section-footer { text-align: center; margin-top: 3rem; }

/* -------- Buttons -------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: .9375rem;
    letter-spacing: -0.005em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all var(--transition);
    min-height: 48px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-large   { padding: 1.1rem 2.25rem; font-size: 1rem; min-height: 56px; }
.btn-small   { padding: .55rem 1.1rem; font-size: .875rem; min-height: 40px; }
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(var(--primary-rgb),.18), inset 0 1px 0 rgba(255,255,255,.10);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(var(--primary-rgb),.55);
}
.btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border-strong);
}
.btn-outline:hover, .btn-outline:focus {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
}
.btn-soft {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: transparent;
    font-weight: 600;
}
.btn-soft:hover, .btn-soft:focus {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-block { display: flex; width: 100%; }
.btn-accent {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.btn-accent:hover, .btn-accent:focus {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* -------- Header & Navigation -------- */
.site-header {
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    gap: 1rem;
}
.site-branding { display: flex; flex-direction: column; line-height: 1.1; }
.site-title-link { color: inherit; text-decoration: none; }
.site-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.025em;
    color: var(--text-color);
}
.site-tagline { font-size: .8125rem; color: var(--muted-color); margin-top: 2px; letter-spacing: .01em; }
.custom-logo-link img { max-height: 48px; width: auto; }

/* Primary menu */
.main-navigation { display: flex; align-items: center; gap: 1.25rem; }
.primary-menu { display: none; gap: 2rem; align-items: center; }
.primary-menu li { position: relative; }
.primary-menu a {
    display: block;
    padding: .5rem 0;
    color: var(--text-soft);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
}
.primary-menu a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition);
}
.primary-menu a:hover, .primary-menu a:focus { color: var(--text-color); text-decoration: none; }
.primary-menu a:hover::after, .primary-menu a:focus::after { transform: scaleX(1); }
.primary-menu .current-menu-item > a { color: var(--text-color); }
.primary-menu .current-menu-item > a::after { transform: scaleX(1); }
.header-cta { display: none; }

/* Hamburger */
.menu-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: .5rem;
    width: 44px;
    height: 44px;
    display: flex; align-items: center; justify-content: center;
    margin-left: auto;
}
.menu-toggle-icon { display: inline-block; position: relative; width: 22px; height: 16px; }
.menu-toggle-icon span {
    position: absolute; left: 0; right: 0; height: 2px; background: var(--text-color); border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 7px; }
.menu-toggle-icon span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Desktop nav: show full menu, hide hamburger (declared AFTER base rules so cascade wins) */
@media (min-width: 992px) {
    .primary-menu { display: flex; }
    .header-cta { display: inline-flex; }
    .main-navigation .menu-toggle { display: none; }
}

/* Mobile menu open */
@media (max-width: 991.98px) {
    .main-navigation .primary-menu {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 1.25rem 1.5rem;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }
    .main-navigation.is-open .primary-menu { display: flex; }
    .main-navigation .primary-menu li { width: 100%; }
    .main-navigation .primary-menu a {
        padding: .85rem .25rem; border-bottom: 1px solid var(--border-color);
    }
    .main-navigation.is-open .header-cta { display: inline-flex; margin-top: 1rem; }
}

/* Mobile bottom bar */
.mobile-bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0,0,0,.05);
}
.mobile-bar-menu {
    display: flex; justify-content: space-around; align-items: center; margin: 0; padding: 0; list-style: none;
}
.mobile-bar-menu a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: .5rem .35rem; min-height: 48px;
    color: var(--text-color); font-size: .75rem; font-weight: 600; text-decoration: none;
    border-radius: var(--radius-sm);
}
.mobile-bar-menu a:hover, .mobile-bar-menu .current-menu-item > a { color: var(--primary-color); background: var(--bg-alt); }
@media (min-width: 992px) {
    .mobile-bottom-bar { display: none; }
}
.has-mobile-bar { padding-bottom: 70px; }
@media (min-width: 992px) {
    .has-mobile-bar { padding-bottom: 0; }
}

/* -------- Hero / Slider -------- */
.section-hero { padding: 0; background: var(--bg-warm); }
.hero-slider { position: relative; overflow: hidden; }
/* Grid stacking: all slides share one cell so the container takes the max
   height of all slides — prevents layout jump when the active slide changes. */
.hero-slides { position: relative; display: grid; grid-template-columns: 1fr; min-height: 520px; }
@media (min-width: 768px) { .hero-slides { min-height: 600px; } }
@media (min-width: 1100px) { .hero-slides { min-height: 680px; } }

.hero-slide {
    grid-column: 1; grid-row: 1;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(var(--primary-rgb),.06), transparent 60%),
        radial-gradient(ellipse at 85% 100%, rgba(217,119,6,.05), transparent 55%),
        linear-gradient(180deg, var(--bg-warm) 0%, #fff 100%);
    padding: 4rem 0 4.5rem;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    pointer-events: none;
    transition: opacity .6s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }

/* Full-bleed (single column, no image card) */
.hero-slide--has-image, .hero-slide--plain { text-align: center; justify-content: center; }
.hero-slide--has-image {
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-slide--has-image::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.45) 0%, rgba(15,23,42,.65) 100%);
    z-index: 1;
}
.hero-slide--has-image .hero-headline,
.hero-slide--has-image .hero-subheadline { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-slide--has-image .hero-subheadline { color: rgba(255,255,255,.92); }

.hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 1rem; }
.hero-slide--has-image .hero-inner,
.hero-slide--plain .hero-inner { max-width: 880px; margin: 0 auto; }
.hero-slide--has-image .hero-content,
.hero-slide--plain .hero-content { display: contents; }

/* Split layout (text + image card) */
.hero-slide--split .hero-inner {
    display: grid; gap: 2.5rem; align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .hero-slide--split .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}
.hero-slide--split .hero-content { max-width: 580px; }
.hero-slide--split .hero-ctas { justify-content: flex-start; }

.hero-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .4rem .9rem;
    background: var(--primary-tint);
    color: var(--primary-color);
    border: 1px solid var(--primary-soft);
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 1.5rem;
}
.hero-slide--has-image .hero-badge {
    background: rgba(255,255,255,.16);
    color: #fff;
    border-color: rgba(255,255,255,.25);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw + .5rem, 4.25rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}
.hero-subheadline {
    font-family: var(--font-sans);
    font-size: clamp(1.0625rem, 1.25vw + .5rem, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 2rem;
    max-width: 560px;
    color: var(--muted-color);
    letter-spacing: -0.005em;
}
.hero-slide--has-image .hero-subheadline,
.hero-slide--plain .hero-subheadline { margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-slide--has-image .hero-ctas,
.hero-slide--plain .hero-ctas { justify-content: center; }

/* Image card with overlay caption (split layout) */
.hero-media { display: flex; justify-content: center; }
.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
    aspect-ratio: 5 / 4;
}
/* contain so the whole image is visible (no cropping) — letterbox area
   uses the white card background for a clean photo-frame look. */
.hero-image-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-image-caption {
    position: absolute;
    left: 1rem; right: 1rem; bottom: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    color: #fff;
    font-size: .9375rem;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
@media (min-width: 768px) {
    .hero-slide { padding: 6rem 0 6.5rem; }
}
@media (min-width: 1100px) {
    .hero-slide { padding: 7.5rem 0 8rem; }
    .hero-image-card { max-width: 580px; }
}

/* Slider controls */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.85);
    color: #111827; border: none; border-radius: 50%;
    font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition);
}
.hero-arrow:hover, .hero-arrow:focus { background: #fff; outline: 2px solid var(--primary-color); outline-offset: 2px; }
.hero-arrow--prev { left: .75rem; }
.hero-arrow--next { right: .75rem; }
.hero-dots {
    position: absolute; left: 0; right: 0; bottom: 1rem;
    display: flex; justify-content: center; gap: .5rem;
    z-index: 3;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.85);
    background: transparent; padding: 0; cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.hero-dot.is-active { background: #fff; transform: scale(1.2); }
.hero-slide:not(.hero-slide--has-image) ~ .hero-dots .hero-dot,
.hero-slider:not(:has(.hero-slide--has-image)) .hero-dot { border-color: var(--primary-color); }
.hero-slider:not(:has(.hero-slide--has-image)) .hero-dot.is-active { background: var(--primary-color); }

/* -------- Cards & grids -------- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 600px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (min-width: 900px) {
    .card-grid { gap: 2rem; }
    .card-grid--quick    { grid-template-columns: repeat(3, 1fr); }
    .card-grid--features { grid-template-columns: repeat(3, 1fr); }
    .card-grid--events   { grid-template-columns: repeat(3, 1fr); }
    .card-grid--churches { grid-template-columns: repeat(3, 1fr); }
    .card-grid--resources{ grid-template-columns: repeat(3, 1fr); }
    .card-grid--testimonials { grid-template-columns: repeat(3, 1fr); }
}

.card {
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.card-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.card:hover .card-image img { transform: scale(1.04); }
.card-icon {
    font-size: 1.75rem;
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 1.75rem 1.75rem 0;
    line-height: 1;
    border-radius: 14px;
    background: var(--bg-warm);
    color: var(--text-color);
}
.card-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 .5rem;
}
.card-title a { color: inherit; transition: color var(--transition); }
.card-title a:hover { color: var(--accent-color); text-decoration: none; }
.card-description { color: var(--muted-color); margin-bottom: 1.25rem; flex-grow: 1; line-height: 1.6; }
.card-cta, .card-actions { margin-top: auto; }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.card-cta a:not(.btn) {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    transition: gap var(--transition);
}
.card-cta a:not(.btn)::after { content: "→"; transition: transform var(--transition); }
.card-cta a:not(.btn):hover { color: var(--accent-color); text-decoration: none; }
.card-cta a:not(.btn):hover::after { transform: translateX(4px); }

/* Quick cards subtle warm tint */
.card-grid--quick .card { background: var(--bg-warm); border-color: transparent; }
.card-grid--quick .card:hover { background: #fff; border-color: var(--border-strong); }
.card-grid--quick .card-icon { font-size: 1.75rem; background: rgba(255,255,255,.7); }

/* How We Help feature cards: clean white, soft tinted badge icon + full-width soft CTA */
.card-grid--features .card {
    background: #fff;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}
.card-grid--features .card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}
.card-grid--features .card-icon {
    background: var(--primary-tint);
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 48px; height: 48px;
    border-radius: 12px;
    margin: 1.75rem 1.75rem 0;
}
.card-grid--features .card-body { padding: 1.25rem 1.75rem 1.75rem; }
.card-grid--features .card-description { margin-bottom: 1.5rem; }
.card-grid--features .card .btn-outline {
    display: flex;
    width: 100%;
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: transparent;
    font-weight: 600;
}
.card-grid--features .card .btn-outline:hover,
.card-grid--features .card .btn-outline:focus {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Section backgrounds */
.section-quick-cards { background: #fff; }
.section-how-we-help { background: var(--bg-alt); }
.section-events      { background: var(--bg-deep); color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.section-churches    { background: var(--bg-alt); }
.section-featured    { background: var(--bg-alt); }
.section-about-section   { background: #fff; }
.section-contact-section { background: var(--bg-warm); }
.section-gallery     { background: #fff; }
.section-testimonials{ background: var(--bg-warm); }
.section-newsletter  { background: var(--bg-alt); }
.section-student-journey { background: #fff; }
.section-faqs        { background: #fff; }
.section-cta-band    { background: var(--bg-warm); text-align: center; }
.section-cta-band .cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }

/* Event meta */
.event-meta { font-size: .875rem; color: var(--muted-color); margin-bottom: .5rem; }
.event-cost { font-size: .9375rem; color: var(--secondary-color); }

/* Dark Events section — compact cards with accent stripe */
.section-events::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(var(--primary-rgb),.18), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(45,212,191,.10), transparent 55%);
    pointer-events: none;
}
.section-events > .container { position: relative; z-index: 1; }
.section-events .section-title { color: #fff; }
.section-events .section-description { color: rgba(255,255,255,.65); }
.section-header--left { text-align: left; margin-left: 0; margin-right: 0; max-width: 720px; }

.section-events .card-grid--events { gap: 1rem; }
@media (min-width: 900px) { .section-events .card-grid--events { gap: 1.25rem; } }

.section-events .event-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 32px -22px rgba(0,0,0,.55);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: stretch;
}
.section-events .event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb),.35);
    box-shadow: 0 26px 48px -24px rgba(0,0,0,.55);
}
/* Calendar-style date badge — sits flush to the left edge of the card. */
.event-card-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .15rem;
    padding: 1rem .5rem;
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    text-align: center;
    line-height: 1;
}
.event-card-month {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .92;
}
.event-card-day {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.section-events .event-card .event-card-body {
    padding: 1.25rem 1.4rem 1.25rem;
    display: flex; flex-direction: column;
    gap: .55rem;
    min-width: 0;
}
.event-card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: .25rem .65rem;
    background: var(--primary-tint);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.section-events .event-card .card-title {
    color: var(--text-color);
    font-size: 1.1875rem;
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.section-events .event-card .card-title a { color: var(--text-color); }
.section-events .event-card .card-title a:hover { color: var(--primary-color); text-decoration: none; }
.event-meta-list {
    list-style: none;
    margin: .15rem 0 0;
    padding: 0;
    display: flex; flex-direction: column; gap: .3rem;
}
.event-meta-item {
    display: flex; align-items: flex-start; gap: .5rem;
    font-size: .875rem;
    color: var(--text-soft);
    line-height: 1.4;
}
.event-meta-icon { font-size: .9375rem; line-height: 1.4; flex-shrink: 0; }
.event-card-actions {
    display: flex; align-items: center; justify-content: flex-start;
    gap: .75rem;
    margin-top: .5rem;
    padding-top: .85rem;
    border-top: 1px dashed var(--border-color);
}
.event-card-cta { align-self: flex-start; }
.section-events .event-card .btn-secondary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.section-events .event-card .btn-secondary:hover,
.section-events .event-card .btn-secondary:focus {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.section-events .section-footer .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.25);
}
.section-events .section-footer .btn-outline:hover,
.section-events .section-footer .btn-outline:focus {
    background: #fff; color: var(--primary-color); border-color: #fff;
}

/* Church meta */
.church-denomination { color: var(--muted-color); font-size: .9375rem; margin-top: -.25rem; margin-bottom: .75rem; font-style: italic; }
.church-meta { font-size: .9375rem; color: var(--muted-color); margin-bottom: 1rem; }
.church-meta li { margin-bottom: .35rem; }
/* Archive card address line — icon + text, two-line clamp so cards stay even. */
.church-address {
    display: flex; align-items: flex-start; gap: .5rem;
    color: var(--text-soft);
    font-size: .9375rem;
    line-height: 1.45;
    margin: 0 0 1.1rem;
}
.church-address-icon { flex-shrink: 0; line-height: 1.45; }
.church-address span:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; }
.tag-pill {
    display: inline-block;
    padding: .25rem .65rem;
    background: var(--bg-warm);
    color: var(--secondary-color);
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
}

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-chip {
    display: inline-flex; align-items: center;
    padding: .5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-color);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--primary-color); color: var(--primary-color); text-decoration: none; }
.filter-chip.is-active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Gallery — homepage split layout with collage */
.gallery-split {
    display: grid; gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) {
    .gallery-split { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
}
.gallery-intro .section-title { text-align: left; margin-top: 0; }
.gallery-intro .section-description { margin-bottom: 2rem; }
.gallery-collage {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    aspect-ratio: 6 / 5;
}
.gallery-collage-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
}
.gallery-collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-collage-item:hover img { transform: scale(1.04); }
/* 1 tall image on the left spanning both rows, then 2x2 grid on the right */
.gallery-collage-item--0 { grid-column: 1; grid-row: 1 / span 2; }
.gallery-collage-item--1 { grid-column: 2; grid-row: 1; }
.gallery-collage-item--2 { grid-column: 3; grid-row: 1; }
.gallery-collage-item--3 { grid-column: 2; grid-row: 2; }
.gallery-collage-item--4 { grid-column: 3; grid-row: 2; }

/* Archive / full gallery grid (used by archive template) */
.gallery-grid {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid--full { gap: 1rem; }
.gallery-item {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: #fff; padding: 2rem .75rem .65rem;
    font-size: .8125rem;
}
.gallery-event { display: block; opacity: .85; font-size: .75rem; }

/* Testimonials */
.testimonial-card {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.testimonial-head {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}
.testimonial-photo {
    width: 56px; height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    flex-shrink: 0;
}
.testimonial-photo .avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.testimonial-photo--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.testimonial-initial {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.testimonial-headline {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text-color);
}
.testimonial-body { flex-grow: 1; }
.testimonial-quote {
    margin: 0 0 1.25rem;
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--text-soft);
    border: none;
    padding: 0;
    font-style: normal;
}
.testimonial-quote::before { content: none; }
.testimonial-meta {
    margin-top: auto;
    font-size: .9375rem;
    color: var(--muted-color);
    text-align: left;
    font-style: normal;
    border: none;
    padding: 0;
}
.testimonial-meta strong { color: var(--text-color); font-weight: 700; }
.testimonial-country { color: var(--muted-color); display: block; font-size: .875rem; margin-top: .15rem; }

/* Newsletter promo — warm primary gradient panel with inset card */
.newsletter-promo {
    position: relative;
    display: grid; gap: 2rem;
    grid-template-columns: 1fr;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255,255,255,.18), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(var(--accent-rgb,217,119,6),.30), transparent 55%),
        linear-gradient(135deg, var(--primary-color) 0%, var(--bg-deep) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 28px 60px -28px rgba(15,23,42,.55);
    color: rgba(255,255,255,.92);
    overflow: hidden;
}
@media (min-width: 768px) {
    .newsletter-promo { grid-template-columns: 1.1fr 1fr; padding: 3rem; gap: 3rem; align-items: center; }
}
.newsletter-title {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 2.5vw + .25rem, 2.25rem);
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    line-height: 1.15;
}
.newsletter-description {
    color: rgba(255,255,255,.82);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
    max-width: 480px;
}
.newsletter-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.newsletter-promo .btn-primary {
    background: var(--accent-color); color: #fff; border-color: var(--accent-color);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.45);
}
.newsletter-promo .btn-primary:hover,
.newsletter-promo .btn-primary:focus {
    background: #fff; border-color: #fff; color: var(--primary-color);
}
.newsletter-promo .btn-secondary {
    background: #fff; color: var(--primary-color); border-color: #fff;
}
.newsletter-promo .btn-secondary:hover,
.newsletter-promo .btn-secondary:focus {
    background: rgba(255,255,255,.9); color: var(--primary-color); border-color: #fff;
}
.newsletter-aside {
    background: #fff;
    color: var(--text-soft);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 8px 20px -10px rgba(0,0,0,.20);
    min-height: 140px;
    display: flex; align-items: center;
}
.newsletter-aside-text {
    margin: 0;
    color: rgba(15,23,42,.30);
    font-size: 1rem;
    line-height: 1.55;
}
.newsletter-bullets {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: .65rem;
    color: var(--text-color);
    width: 100%;
}
.newsletter-bullets li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-soft);
    font-size: .9375rem;
    line-height: 1.5;
}
.newsletter-bullets li::before {
    content: "";
    position: absolute; left: 0; top: .5em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* New Student Journey — trail layout with sticky intro */
.section-student-journey {
    position: relative;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(var(--primary-rgb), .08), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(217, 119, 6, .06), transparent 60%),
        linear-gradient(180deg, var(--bg-warm) 0%, #fff 100%);
    overflow: hidden;
}
.journey-bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle, rgba(15,23,42,.06) 1px, transparent 1.5px);
    background-size: 22px 22px;
    background-position: 0 0;
    opacity: .55;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
}
.section-student-journey > .container { position: relative; z-index: 1; }

.journey-split {
    display: grid; gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 900px) {
    .journey-split { grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: 4rem; }
}
@media (min-width: 1100px) {
    .journey-split { grid-template-columns: minmax(280px, 1fr) 1.55fr; gap: 5rem; }
}

/* Intro panel — sticky on desktop with stat eyebrow + map illustration */
.journey-intro { position: relative; }
@media (min-width: 900px) {
    .journey-intro-inner {
        position: sticky;
        top: 96px;
        padding-right: .5rem;
    }
}
.journey-intro .section-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: clamp(1.875rem, 3vw + .25rem, 2.5rem);
}
.journey-intro .section-description {
    text-align: left;
    margin: 0 0 1.5rem;
    max-width: 460px;
    font-size: 1rem;
}

.journey-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.section-student-journey .journey-actions .btn-primary {
    background: var(--bg-deep); color: #fff; border-color: var(--bg-deep);
}
.section-student-journey .journey-actions .btn-primary:hover,
.section-student-journey .journey-actions .btn-primary:focus {
    background: #000; border-color: #000;
}
.section-student-journey .journey-actions .btn-outline {
    background: #fff; color: var(--text-color); border-color: var(--border-color);
}
.section-student-journey .journey-actions .btn-outline:hover,
.section-student-journey .journey-actions .btn-outline:focus {
    background: var(--bg-alt); border-color: var(--text-color); color: var(--text-color);
}

/* Trail — vertical dashed line connecting numbered markers */
.journey-trail {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: grid;
    gap: 1.25rem;
}
.journey-trail::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 32px;
    width: 0;
    border-left: 2px dashed rgba(var(--primary-rgb), .35);
    z-index: 0;
}
.journey-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.25rem;
    align-items: start;
    position: relative;
    z-index: 1;
}
.journey-step-marker {
    position: relative;
    width: 48px;
    display: flex; align-items: flex-start; justify-content: center;
}
.journey-step-number {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-deep);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 0 0 7px rgba(var(--primary-rgb), .15);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.journey-step--last .journey-step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
.journey-step-flag {
    position: absolute;
    top: -10px; right: -6px;
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.18));
}

/* Step card */
.journey-step-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.15rem 1.4rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    min-width: 0;
    position: relative;
}
.journey-step-card::before {
    content: "";
    position: absolute;
    left: -8px; top: 22px;
    width: 14px; height: 14px;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
    transition: border-color var(--transition);
}
.journey-step:hover .journey-step-card {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), .35);
}
.journey-step:hover .journey-step-card::before {
    border-color: rgba(var(--primary-rgb), .35);
}
.journey-step:hover .journey-step-number {
    transform: scale(1.05);
    background: var(--primary-color);
}
.journey-step--last:hover .journey-step-number {
    transform: scale(1.05);
}

.journey-step-meta {
    display: flex; align-items: center; gap: .55rem;
    margin-bottom: .5rem;
}
.journey-step-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), .1);
    font-size: 1.05rem;
    line-height: 1;
}
.journey-step-tag {
    display: inline-block;
    padding: .2rem .65rem;
    background: var(--bg-warm);
    color: var(--secondary-color);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.journey-step-title {
    margin: 0 0 .4rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text-color);
}
.journey-step-description {
    margin: 0;
    color: var(--text-soft);
    font-size: .9375rem;
    line-height: 1.6;
}
.journey-step--linked { cursor: pointer; }
.journey-step-title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.journey-step-title-link:hover,
.journey-step-title-link:focus { color: var(--primary-color); text-decoration: none; }
.journey-step--linked:hover .journey-step-title-link { color: var(--primary-color); }
.journey-step-link {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: .75rem;
    color: var(--primary-color);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
}
.journey-step-link::after { content: "→"; transition: transform var(--transition); }
.journey-step-link:hover,
.journey-step-link:focus { gap: .5rem; color: var(--secondary-color); text-decoration: none; }
.journey-step-link:hover::after { transform: translateX(3px); }

/* FAQs */
.faq-list { display: grid; gap: .75rem; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--primary-color); }
.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: 1.0625rem;
    position: relative;
    padding-right: 3rem;
    color: var(--text-color);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: "+";
    position: absolute; right: 1.25rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem; line-height: 1;
    color: var(--primary-color);
    transition: transform var(--transition);
}
.faq-item[open] .faq-question::after { content: "−"; }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--muted-color); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Page hero */
.page-hero {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(217,119,6,.06), transparent 60%),
        var(--bg-warm);
    padding: 4rem 0 3rem;
    text-align: center;
}
@media (min-width: 768px) { .page-hero { padding: 5.5rem 0 4.5rem; } }
.page-title { margin: 0 0 .75rem; }
.page-lead { color: var(--muted-color); font-size: 1.1875rem; line-height: 1.55; max-width: 680px; margin: 0 auto; }

/* Page content */
.page-content, .page-template .entry-content {
    line-height: 1.75;
}
.page-content .entry-thumbnail, .page-template .entry-thumbnail {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 2rem;
}

/* Disclaimer */
.disclaimer { text-align: center; color: var(--muted-color); font-size: .9375rem; max-width: 720px; margin: 1.5rem auto 0; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 2fr 1fr; gap: 2.5rem; } }
.contact-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.contact-card h2 { margin-top: 0; }
.contact-address { font-size: .9375rem; color: var(--muted-color); margin: 1rem 0; }

/* Single posts */
.event-details, .church-details {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}
.event-details ul, .church-details ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.event-details li, .church-details li { padding: .35rem 0; border-bottom: 1px dashed var(--border-color); }
.event-details li:last-child, .church-details li:last-child { border-bottom: none; }
.church-notes { background: var(--bg-warm); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }

/* Forms */
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 540px; margin: 0 auto 1.5rem; }
.search-field, .resource-search input[type="search"] {
    flex: 1 1 200px;
    min-height: 48px;
    padding: .65rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    font-size: 1rem;
    background: #fff;
}
.search-field:focus, .resource-search input[type="search"]:focus {
    outline: none; border-color: var(--primary-color);
}
.resource-search { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 640px; margin: 0 auto 1.5rem; }

/* Archive list */
.archive-list { padding: 0; }
.archive-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.archive-date { color: var(--muted-color); font-size: .9375rem; }
.no-results { text-align: center; padding: 3rem 0; color: var(--muted-color); }

/* Footer */
.site-footer {
    background: var(--bg-deep);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.site-footer a { color: #e2e8f0; transition: color var(--transition); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 4rem; } }
.footer-title {
    color: #fff;
    margin: 0 0 .75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.footer-subtitle { color: #64748b; font-size: .9375rem; margin-bottom: 1.25rem; line-height: 1.5; }
.footer-contact { font-size: .9375rem; line-height: 1.7; color: #94a3b8; }
.footer-email { margin-top: .5rem; }
.widget-title {
    color: #fff;
    font-size: .75rem;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
    font-family: var(--font-sans);
}
.footer-menu, .social-links { padding: 0; }
.footer-menu li, .social-links li { padding: .4rem 0; font-size: .9375rem; }
.social-icon { display: inline-block; margin-right: .5rem; }
.footer-bottom {
    margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.06);
    font-size: .875rem; color: #64748b; text-align: center;
    line-height: 1.7;
}
.parent-ministry { margin-top: .5rem; font-size: .8125rem; opacity: .75; }

/* -------- Featured Highlight section -------- */
.featured-stack { display: grid; gap: 2rem; }
.featured-wrap {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: grid; gap: 2rem;
    position: relative;
    overflow: hidden;
}
.featured-wrap::before {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
}
.featured-wrap > * { position: relative; z-index: 1; }
.featured-wrap.has-image { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .featured-wrap { padding: 4rem; gap: 3rem; }
    .featured-wrap.has-image { grid-template-columns: 1fr 1fr; align-items: center; }
    .featured-wrap.featured-layout-image-left.has-image .featured-media { order: 0; }
    .featured-wrap.featured-layout-image-left.has-image .featured-body { order: 1; }
    .featured-wrap.featured-layout-image-right.has-image .featured-media { order: 1; }
    .featured-wrap.featured-layout-image-right.has-image .featured-body { order: 0; }
}
.featured-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); display: block; }
.featured-eyebrow {
    display: inline-block;
    font-size: .75rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.featured-title {
    font-size: clamp(1.875rem, 3.5vw + .25rem, 3rem);
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}
.featured-description { margin-bottom: 1.75rem; font-size: 1.0625rem; line-height: 1.7; }
.featured-description > *:first-child { margin-top: 0; }
.featured-description > *:last-child { margin-bottom: 0; }
.featured-description p { margin: 0 0 1rem; }
.featured-description p:last-child { margin-bottom: 0; }
.featured-description h3,
.featured-description h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 1.5rem 0 .75rem;
    line-height: 1.25;
}
.featured-description h3 { font-size: 1.375rem; }
.featured-description h4 { font-size: 1.125rem; }
.featured-description ul,
.featured-description ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}
.featured-description ul { list-style: none; padding-left: 0; }
.featured-description ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .5rem;
}
.featured-description ul li::before {
    content: "";
    position: absolute;
    left: 0; top: .65em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}
.featured-description ol { padding-left: 1.5rem; }
.featured-description ol li { margin-bottom: .5rem; }
.featured-description a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--accent-color);
}
.featured-description a:hover { text-decoration-thickness: 2px; }
.featured-description blockquote {
    margin: 1.25rem 0;
    padding: .75rem 0 .75rem 1.25rem;
    border-left: 3px solid var(--accent-color);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.5;
}
.featured-description strong { font-weight: 700; }
.featured-description code {
    background: rgba(0,0,0,.08);
    padding: .15em .4em;
    border-radius: 4px;
    font-size: .9em;
}

/* Color styles */
/* Dark style: rich primary-tinted gradient (warmer than flat bg-deep) with a
   soft inner border + larger shadow for a premium feel. */
.featured-style-dark {
    background:
        linear-gradient(135deg, var(--primary-color) 0%, var(--bg-deep) 100%);
    color: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 28px 60px -28px rgba(15,23,42,.55);
}
.featured-style-dark::before {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255,255,255,.10), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(var(--accent-rgb,217,119,6),.18), transparent 55%);
}
.featured-style-dark .featured-eyebrow { color: var(--accent-color); }
.featured-style-dark .featured-title { color: #fff; }
.featured-style-dark .featured-description { color: rgba(255,255,255,.82); }
.featured-style-dark .featured-description code { background: rgba(255,255,255,.12); color: #fff; }
.featured-style-dark .btn-primary { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.featured-style-dark .btn-primary:hover,
.featured-style-dark .btn-primary:focus { background: #fff; border-color: #fff; color: var(--primary-color); }

.featured-style-light {
    background: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.featured-style-light::before {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(217,119,6,.06), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(37,99,235,.05), transparent 55%);
}
.featured-style-light .featured-title { color: var(--primary-color); }
.featured-style-light .featured-description { color: var(--text-soft); }

.featured-style-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #b45309 100%);
    color: #fff;
}
.featured-style-accent .featured-eyebrow { color: rgba(255,255,255,.85); }
.featured-style-accent .featured-title { color: #fff; }
.featured-style-accent .featured-description { color: rgba(255,255,255,.92); }
.featured-style-accent .featured-description ul li::before { background: #fff; }
.featured-style-accent .featured-description blockquote { border-left-color: rgba(255,255,255,.6); }
.featured-style-accent .btn-primary { background: #fff; color: var(--accent-color); border-color: #fff; }
.featured-style-accent .btn-primary:hover,
.featured-style-accent .btn-primary:focus { background: var(--bg-deep); border-color: var(--bg-deep); color: #fff; }

/* -------- About Us section -------- */
.about-wrap { display: grid; gap: 2rem; }
.about-wrap.has-image { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .about-wrap.has-image { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4rem; }
}
.about-media img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.about-body .section-title { margin-top: 0; text-align: left; }
.about-body { font-size: 1.0625rem; line-height: 1.7; color: var(--text-soft); }

/* -------- Contact section -------- */
.contact-section-wrap {
    display: grid; gap: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .contact-section-wrap { grid-template-columns: 2fr 1fr; align-items: center; padding: 3.5rem; gap: 3rem; }
}
.contact-section-info { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; font-size: 1.0625rem; }
.contact-section-info a { color: var(--text-color); font-weight: 500; }
.contact-section-info a:hover { color: var(--accent-color); text-decoration: none; }

/* -------- Compact church card (homepage) -------- */
.card-grid--churches .church-card--compact { text-align: center; padding: 2.25rem 1.5rem 2rem; }
.card-grid--churches .church-card--compact .church-logo {
    display: flex; align-items: center; justify-content: center;
    width: 96px; height: 96px;
    margin: 0 auto 1.25rem;
    padding: .5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}
/* contain so the full logo is visible inside the circular frame, with a
   little inner padding so it doesn't touch the edge. */
.card-grid--churches .church-card--compact .church-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.card-grid--churches .church-card--compact .card-body { padding: 0; align-items: center; }
.card-grid--churches .church-card--compact .card-title { font-size: 1.1875rem; margin-bottom: .25rem; }
.card-grid--churches .church-card--compact .church-denomination { margin-bottom: 1.25rem; font-size: .875rem; }
.card-grid--churches .church-card--compact .card-cta { margin-top: .25rem; }

/* Mobile: convert churches grid into a swipeable horizontal slider with
   snap-points so users can browse without endless vertical scrolling.
   Each card snaps centered in the viewport with a small peek of the next
   card on either side to signal swipeability. */
@media (max-width: 767px) {
    .section-churches .card-grid--churches {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 8%;
        gap: 1rem;
        padding: .25rem 8% 1rem;
        margin: 0 -1.125rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .section-churches .card-grid--churches::-webkit-scrollbar { display: none; }
    .section-churches .card-grid--churches > .church-card {
        flex: 0 0 84%;
        max-width: 340px;
        scroll-snap-align: center;
    }
    .section-churches .card-grid--churches + .disclaimer,
    .section-churches .card-grid--churches + .section-footer { margin-top: 1.25rem; }
}

/* -------- Subtle entrance animation -------- */
@keyframes ism-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.section .section-header,
.section .card-grid > *,
.featured-wrap,
.about-wrap,
.contact-section-wrap,
.gallery-split,
.newsletter-promo,
.journey-split,
.journey-step {
    animation: ism-fade-up .7s cubic-bezier(.4,0,.2,1) both;
}
.journey-step:nth-child(2) { animation-delay: .08s; }
.journey-step:nth-child(3) { animation-delay: .16s; }
.journey-step:nth-child(4) { animation-delay: .24s; }
.journey-step:nth-child(5) { animation-delay: .32s; }
.journey-step:nth-child(6) { animation-delay: .40s; }
.section .card-grid > *:nth-child(2) { animation-delay: .08s; }
.section .card-grid > *:nth-child(3) { animation-delay: .16s; }
.section .card-grid > *:nth-child(4) { animation-delay: .24s; }
.section .card-grid > *:nth-child(5) { animation-delay: .32s; }
.section .card-grid > *:nth-child(6) { animation-delay: .40s; }
.hero-slide.is-active .hero-headline,
.hero-slide.is-active .hero-subheadline,
.hero-slide.is-active .hero-ctas {
    animation: ism-fade-up .8s cubic-bezier(.4,0,.2,1) both;
}
.hero-slide.is-active .hero-subheadline { animation-delay: .1s; }
.hero-slide.is-active .hero-ctas { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------- Countdown section -------- */
.section-countdown {
    background: var(--bg-deep);
    color: rgba(255,255,255,.85);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-countdown::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(217,119,6,.18), transparent 55%),
        radial-gradient(ellipse at 70% 100%, rgba(37,99,235,.14), transparent 55%);
    pointer-events: none;
}
.section-countdown.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.section-countdown.has-image::before {
    background: linear-gradient(180deg, rgba(15,23,42,.65) 0%, rgba(15,23,42,.85) 100%);
}
.section-countdown > .container { position: relative; z-index: 1; }
.countdown-wrap { max-width: 760px; margin: 0 auto; }
.countdown-eyebrow { color: var(--accent-color); }
.countdown-title {
    color: #fff;
    font-size: clamp(1.875rem, 4vw + .25rem, 3rem);
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}
.countdown-description {
    color: rgba(255,255,255,.75);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin: 0 auto 2.5rem;
    max-width: 560px;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: .5rem;
    margin: 0 auto 2.5rem;
    max-width: 720px;
    flex-wrap: wrap;
}
.countdown-unit {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 1rem .5rem .85rem;
    min-width: 76px;
    backdrop-filter: blur(8px);
}
.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw + .5rem, 3.25rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.countdown-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-top: .5rem;
}
.countdown-sep {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw + .5rem, 3.25rem);
    font-weight: 500;
    line-height: 1;
    color: rgba(255,255,255,.25);
    padding-top: .85rem;
}
.countdown-cta { margin-top: 1rem; }
.section-countdown .btn-primary {
    background: #fff; color: var(--text-color); border-color: #fff;
}
.section-countdown .btn-primary:hover, .section-countdown .btn-primary:focus {
    background: var(--accent-color); border-color: var(--accent-color); color: #fff;
}
.countdown-expired {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw + .25rem, 2.25rem);
    color: var(--accent-color);
    padding: 1.5rem 0;
}
@media (max-width: 540px) {
    .countdown-sep { display: none; }
    .countdown-unit { min-width: 64px; padding: .85rem .35rem .65rem; }
}

/* -------- Mobile refinements (consolidated) -------- */
@media (max-width: 600px) {
    /* Tighter container & section padding so content doesn't feel cramped against edges */
    .container { padding: 0 1.125rem; }
    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }

    /* Hero: tighter padding + smaller image card */
    .hero-slide { padding: 2.25rem 0 3rem; }
    .hero-slides { min-height: 0; }
    .hero-badge { margin-bottom: 1rem; }
    .hero-subheadline { margin-bottom: 1.5rem; }
    .hero-ctas .btn { flex: 1 1 100%; }

    /* Split layout on mobile: image card moves above the headline + CTAs
       so the visual leads and buttons stay inside the first viewport. */
    .hero-slide--split .hero-inner { gap: 1.5rem; }
    .hero-slide--split .hero-media { order: -1; }
    .hero-slide--split .hero-content { order: 1; text-align: center; }
    .hero-slide--split .hero-ctas { justify-content: center; }
    .hero-slide--split .hero-subheadline { margin-left: auto; margin-right: auto; }

    .hero-image-card { aspect-ratio: 16 / 11; max-width: 100%; }
    .hero-image-caption { left: .65rem; right: .65rem; bottom: .65rem; padding: .65rem .85rem; font-size: .875rem; }
    .hero-arrow { width: 36px; height: 36px; font-size: 1.15rem; }
    .hero-arrow--prev { left: .35rem; }
    .hero-arrow--next { right: .35rem; }
    .hero-dots { bottom: .5rem; }

    /* How-we-help feature cards: tighter inner padding */
    .card-grid--features .card-icon { margin: 1.25rem 1.25rem 0; }
    .card-grid--features .card-body { padding: 1rem 1.25rem 1.25rem; }

    /* Events: keep date badge but shrink it slightly; full-width CTA */
    .section-events .event-card { grid-template-columns: 64px 1fr; }
    .event-card-date { padding: .85rem .4rem; }
    .event-card-day { font-size: 1.875rem; }
    .event-card-month { font-size: .6875rem; letter-spacing: .12em; }
    .section-events .event-card .event-card-body { padding: 1rem 1.1rem 1rem; }
    .event-card-actions { align-items: stretch; }
    .event-card-actions .btn { width: 100%; }

    /* Gallery collage: drop to a simpler 2-column layout (1 tall hero + 3 squares) */
    .gallery-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        aspect-ratio: 3 / 4;
        gap: .5rem;
    }
    .gallery-collage-item--0 { grid-column: 1; grid-row: 1 / span 2; }
    .gallery-collage-item--1 { grid-column: 2; grid-row: 1; }
    .gallery-collage-item--2 { grid-column: 2; grid-row: 2; }
    .gallery-collage-item--3 { grid-column: 1; grid-row: 3; }
    .gallery-collage-item--4 { grid-column: 2; grid-row: 3; }

    /* Testimonials: centered header + horizontal carousel on mobile */
    .section-testimonials .section-header,
    .section-testimonials .section-header--left { text-align: center; }
    .section-testimonials .section-description { margin-left: auto; margin-right: auto; }

    .section-testimonials .card-grid--testimonials {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 8%;
        gap: 1rem;
        padding: .25rem 8% 1rem;
        margin: 0 -1.125rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .section-testimonials .card-grid--testimonials::-webkit-scrollbar { display: none; }
    .section-testimonials .card-grid--testimonials > .testimonial-card {
        flex: 0 0 84%;
        max-width: 340px;
        scroll-snap-align: center;
    }
    .testimonial-card { padding: 1.25rem; }
    .testimonial-head { grid-template-columns: 48px 1fr; gap: .75rem; }
    .testimonial-photo { width: 48px; height: 48px; }
    .testimonial-headline { font-size: 1rem; }

    /* Newsletter: tighter padding + stacked CTAs */
    .newsletter-promo { padding: 1.75rem 1.5rem; border-radius: var(--radius); gap: 1.5rem; }
    .newsletter-description { margin-bottom: 1.25rem; }
    .newsletter-actions .btn { flex: 1 1 100%; }
    .newsletter-aside { padding: 1.25rem; min-height: 0; }

    /* Journey: smaller markers + tighter card, re-align trail line */
    .journey-step { grid-template-columns: 36px 1fr; gap: .85rem; }
    .journey-step-marker { width: 36px; }
    .journey-step-number { width: 36px; height: 36px; font-size: .9375rem; }
    .journey-trail::before { left: 17px; top: 18px; bottom: 24px; }
    .journey-step-card { padding: 1rem 1.15rem 1.1rem; }
    .journey-step-card::before { top: 16px; width: 12px; height: 12px; }
    .journey-step-icon { width: 28px; height: 28px; font-size: .95rem; }
    .journey-actions .btn { flex: 1 1 100%; }

    /* Featured: tighter padding, centered text + full-width CTA on mobile */
    .featured-wrap { padding: 1.75rem 1.5rem; border-radius: var(--radius); gap: 1.25rem; }
    .featured-media img { max-height: 240px; }
    .featured-body { text-align: center; align-items: center; display: flex; flex-direction: column; }
    .featured-eyebrow { margin-bottom: .65rem; }
    .featured-title { margin-bottom: .85rem; }
    .featured-description { margin-bottom: 1.25rem; font-size: 1rem; }
    .featured-description ul { text-align: left; }
    .featured-body .btn { width: 100%; }

    /* Contact: center text + full-width CTA, centered contact list */
    .contact-section-wrap { padding: 1.75rem 1.5rem; border-radius: var(--radius); gap: 1.5rem; text-align: center; }
    .contact-section-body { display: flex; flex-direction: column; align-items: center; }
    .contact-section-body .section-title { margin-bottom: .75rem; }
    .contact-section-body .section-description { margin-bottom: 1.25rem; }
    .contact-section-body .btn { width: 100%; max-width: 320px; }
    .contact-section-info { justify-items: center; text-align: center; gap: .65rem; font-size: 1rem; }

    /* CTA band buttons stack full-width */
    .section-cta-band .cta-buttons .btn { flex: 1 1 100%; }

    /* Card titles slightly smaller so 3-word titles don't wrap awkwardly */
    .card-title { font-size: 1.25rem; }

    /* FAQs: tighter padding */
    .faq-question { padding: .9rem 1rem; padding-right: 2.5rem; font-size: 1rem; }
    .faq-question::after { right: 1rem; }
    .faq-answer { padding: 0 1rem 1rem; }
}

@media (max-width: 380px) {
    /* Extra-narrow phones: keep everything readable, prevent bleed */
    .container { padding: 0 1rem; }
    .section { padding: 2.5rem 0; }
    .hero-slides { min-height: 420px; }
    .gallery-collage { aspect-ratio: 2 / 3; }
    .testimonial-head { grid-template-columns: 1fr; }
    .testimonial-photo { width: 44px; height: 44px; }
}
