/*
Theme Name: No Excuses Ministries
Theme URI: https://noexcusesministries.com
Author: Redeemed Analytics
Author URI: https://redeemedanalytics.com
Description: Custom WordPress theme for No Excuses Ministries — a Spirit-led church family in South OKC.
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: no-excuses
Tags: church, ministry, custom-theme, responsive
*/

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Space+Grotesk:wght@300..700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    --color-white: #fff;
    --color-black: #0b0b0b;
    --color-red: #e53935;
    --color-red-dark: #b11d1d;
    --color-warm-light: #f1e5d8;
    --color-warm-mid: #d9c7b4;
    --color-gray-dark: #2b2b2b;
    --font-display: "Fraunces", "Georgia", serif;
    --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-label: "Space Grotesk", monospace;
    --font-hero: "Bricolage Grotesque", "Space Grotesk", sans-serif;

    /* ── CURVE CENTERING COMPENSATION ──
       Each section's ::before curve/slant extends into the section from the top,
       and the NEXT section's curve extends into this section's bottom.
       To visually center content between curve boundaries:
       padding-bottom = padding-top + (next_curve_reach − own_curve_intrusion)

       Ellipse curves: top: -100px, height: 120px → intrudes 20px into own top,
                       reaches 100px into previous section's bottom.
       Slant dividers: top: -70px, height: 80px → intrudes 10px into own top,
                       reaches ~50px avg into previous section's bottom (diagonal).
    */
    --curve-intrusion-top: 20px;       /* how far own curve extends INTO this section */
    --curve-reach-ellipse: 100px;      /* how far next section's ellipse curve reaches into our bottom */
    --curve-reach-slant: 50px;         /* avg reach of next section's slant into our bottom */
    --section-pad-top: 100px;          /* base top padding (unchanged) */
    --section-pad-bot-curve: 180px;    /* bottom when next section has ellipse curve: 100 + 100 - 20 */
    --section-pad-bot-slant: 140px;    /* bottom when next section has slant: 100 + 50 - 10 (approx) */
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Hero slow pan on background image */
@keyframes slowPan {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to   { transform: scale(1.1) translate3d(0, -8px, 0); }
}

/* Film grain noise drift */
@keyframes grainShift {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-6%, -10%, 0); }
}

/* General fade-in-up entrance */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll cue bounce at bottom of hero */
@keyframes heroCueBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* Legacy bounce (kept for compat) */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-12px); }
    60%  { transform: translateX(-50%) translateY(-6px); }
}

/* Glow drift for dark section pseudo-elements */
@keyframes glowDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(6%, -6%, 0) scale(1.05); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes glowDriftReverse {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-6%, 5%, 0) scale(1.06); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Gallery background glow orbs */
@keyframes galleryGlow {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.25; }
    50%  { transform: translate3d(5%, -8%, 0) scale(1.08); opacity: 0.4; }
    100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.25; }
}

@keyframes galleryGlowReverse {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.2; }
    50%  { transform: translate3d(-4%, 6%, 0) scale(1.06); opacity: 0.35; }
    100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.2; }
}

/* Peek stack swipe hint nudge */
@keyframes nudgeRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(12px); }
}

/* Pastor photo shine sweep — self-completing opacity lifecycle */
@keyframes shineSweep {
    0%   { transform: translateX(-20%); opacity: 0; }
    8%   { opacity: 1; }
    65%  { opacity: 1; }
    80%  { transform: translateX(300%); opacity: 0; }
    100% { transform: translateX(300%); opacity: 0; visibility: hidden; }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-warm-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    display: block;
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-black);
    margin-bottom: 20px;
}

.section-heading--white {
    color: var(--color-white);
}

/* ============================================
   SCROLL REVEAL SYSTEM (data-reveal)
   ============================================ */
[data-reveal] {
    opacity: 0;
    transition:
        opacity 600ms ease,
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal="fade"] {
    /* opacity only, no transform offset */
}

[data-reveal="left"] {
    transform: translateX(-42px);
}

[data-reveal="right"] {
    transform: translateX(42px);
}

[data-reveal="up"] {
    transform: translateY(32px);
}

/* Legacy fade-in class (kept for existing markup) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* --- Primary (Red Gradient) --- */
.btn--red,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    text-decoration: none;
    background: linear-gradient(135deg, #f24a4a, #b80f0f);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn--red::before,
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn--red:hover::before,
.btn-primary:hover::before {
    opacity: 1;
}

.btn--red:hover,
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.45);
}

/* --- Secondary (Glassmorphism) --- */
.btn--outline,
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-black);
    border: 2px solid var(--color-black);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn--outline:hover,
.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--outline-white {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

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

/* --- Give CTA --- */
.give-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #ff4d4d, #c90000);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.give-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.45);
}

/* --- Arrow link --- */
.link-arrow {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-red);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--color-red-dark);
}

.link-arrow::after {
    content: "\2192";
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: padding 0.4s ease, background-color 0.4s ease;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.20) 85%, transparent 100%);
}

/* Header solid background on scroll (all viewports) */
.site-header.scrolled {
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo --- */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    text-decoration: none;
}

.site-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.site-logo-text {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-white);
}

/* --- Nav container (the element that morphs) --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 10px 20px;
    border-radius: 0;
    background: transparent;
    border: 1px solid transparent;
    transition:
        background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.4s ease;
}

/* Nav pill morph on scroll */
.nav-scrolled {
    border-radius: 999px;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
    padding: 8px 24px;
}

/* Nav links with underline on hover */
.main-nav a {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--color-red);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav a:hover {
    color: var(--color-white);
}

/* Give button in nav (no underline) */
.nav-give-btn {
    background-color: var(--color-red) !important;
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-give-btn::after {
    display: none !important;
}

.nav-give-btn:hover {
    background-color: var(--color-red-dark) !important;
}

/* ============================================
   MOBILE MENU (Hamburger -> X)
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    transform-origin: center;
}

/* Bar rotation: bar 1 rotate 45deg, bar 2 fade, bar 3 rotate -45deg */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer backdrop */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Drawer slides from right */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--color-black);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        border-radius: 0 !important;
        z-index: 1000;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .main-nav a::after {
        display: none;
    }

    /* Reset pill morph on mobile */
    .nav-scrolled {
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        border-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* --- Hero background image with slowPan --- */
.hero-bg {
    position: absolute;
    inset: -20px; /* extra bleed for pan + blur */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.85) brightness(0.55) blur(3px);
    animation: slowPan 22s ease-in-out infinite alternate;
    will-change: transform;
}

/* --- Film grain overlay (SVG noise texture) --- */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: soft-light;
    opacity: 0.4;
    animation: grainShift 14s steps(2) infinite;
    pointer-events: none;
    z-index: 1;
}

/* --- Gradient overlay --- */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.25) 75%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
}

/* --- Hero content with staggered fadeInUp --- */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    padding: 0 24px;
    text-align: center;
}

.hero-content > * {
    animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content .hero-label {
    animation-delay: 0s;
}

.hero-content h1 {
    animation-delay: 0s;
}

.hero-content .hero-subtitle {
    animation-delay: 0.2s;
}

.hero-content .btn,
.hero-content .hero-social {
    animation-delay: 0.4s;
}

.hero-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero h1 em {
    font-family: var(--font-display);
    color: var(--color-red);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle,
.hero-content > p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-align: center;
}

/* --- Hero buttons row (button + social pill side by side) --- */
.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

/* --- Hero follow pill (glassmorphism) --- */
.hero-follow-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    margin: 0;
}

.hero-follow-pill:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.45);
}

/* --- Hero social icons (compact inside pill) --- */
.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.hero-social a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-social a svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* --- Scroll cue bouncing chevron --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: heroCueBounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.scroll-indicator:hover svg {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   NEXT GATHERING SECTION
   ============================================ */
.next-gathering {
    /* Next section (.pillars) has ellipse curve reaching 100px into our bottom.
       No curve above (hero above) → top stays 80px.
       Bottom: 80 + 100 = 180px for visual centering */
    padding: 80px 0 180px;
    background-color: #f6eee5;
    position: relative;
}

.gathering-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.gathering-card .section-label {
    text-align: left;
}

.gathering-main-text {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    text-align: left;
    color: var(--color-black);
    margin-bottom: 32px;
    line-height: 1.4;
}

.gathering-info-row {
    display: flex;
    justify-content: flex-start;
    gap: 48px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gathering-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gathering-info-item .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-warm-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gathering-info-item .info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-red);
}

.gathering-info-item h4 {
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-black);
    margin-bottom: 4px;
}

.gathering-info-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.gathering-directions {
    text-align: right;
    margin-top: 24px;
}

/* ============================================
   THREE PILLARS / HOW WE GATHER
   Stacked Focus Gallery with 3D Perspective
   ============================================ */
.pillars {
    /* Next section (.latest-message) has ellipse curve reaching 100px into our bottom.
       PLUS tilted cards have translateY(20px).
       Bottom: 180 + 20 = 200px */
    padding: 110px 0 190px;
    background-color: #ffffff;
    position: relative;
}

/* Wave divider: Next Gathering → Pillars — Double Peak (peaks at ~30%, ~75%) */
.pillars::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 120px;
    background: #ffffff;
    clip-path: polygon(
        0% 65%, 5% 58%, 10% 50%, 15% 42%, 20% 35%, 25% 28%,
        30% 24%, 35% 28%, 40% 36%, 45% 45%, 50% 52%, 55% 55%,
        60% 50%, 65% 42%, 70% 34%, 75% 30%, 80% 34%, 85% 42%,
        90% 52%, 95% 60%, 100% 65%,
        100% 100%, 0% 100%
    );
    z-index: 1;
}

.pillars .section-label,
.pillars .section-heading,
.pillars h2 {
    text-align: center;
}

.pillars-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
    perspective: 1000px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

/* --- Pillar card base with 3D tilt --- */
.pillar-card {
    position: relative;
    background: var(--color-black);
    border-radius: 12px;
    overflow: hidden;
    width: 280px;
    height: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease,
        filter 0.5s ease,
        opacity 0.5s ease;
    flex: 0 0 auto;
    max-width: 320px;
}

/* Tilt: left card -4deg, right card +4deg */
.pillar-card:first-child {
    transform: rotateZ(-4deg) translateY(20px);
}

.pillar-card:last-child {
    transform: rotateZ(4deg) translateY(20px);
}

/* Center card flat */
.pillar-card:nth-child(2) {
    transform: rotateZ(0deg) translateY(0px);
}

/* Hover: scale up, lift, rotation resets, z-index 10 */
.pillar-card:hover {
    transform: rotateZ(0deg) scale(1.35) translateY(-20px) !important;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Focused (click / .is-focused): scale 1.4, z-index 20 */
.pillar-card.is-focused {
    transform: rotateZ(0deg) scale(1.4) translateY(-20px) !important;
    z-index: 20;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

/* Active state: glow outline */
.pillar-card.is-active {
    transform: rotateZ(0deg) scale(1.34) translateY(-20px) !important;
    z-index: 15;
    outline: 3px solid rgba(229, 57, 53, 0.5);
    outline-offset: 4px;
}

/* Dimmed unfocused cards when a sibling is focused */
.pillars-grid.has-focus .pillar-card:not(.is-focused) {
    filter: blur(2px);
    opacity: 0.6;
    transform: scale(0.95) !important;
}

/* Backdrop portal glow behind active card */
.pillar-card.is-active::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Image fills entire card */
.pillar-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.pillar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pillar-card:hover .pillar-card-image {
    transform: scale(1.05);
}

/* Dark gradient overlay for text readability */
.pillar-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    color: var(--color-white);
    transition: transform 0.4s ease;
}

.pillar-card-content::before {
    content: "";
    position: absolute;
    inset: -80px 0 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.pillar-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--color-white);
    transition: transform 0.4s ease;
}

.pillar-card:hover .pillar-card-content h3 {
    transform: translateY(-4px);
}

.pillar-card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.pillar-card:hover .pillar-card-content p {
    transform: translateY(0);
    opacity: 1;
}

/* CTA slides in from left with delay */
.pillar-card-content .link-arrow {
    display: inline-flex;
    color: var(--color-red);
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, opacity 0.4s ease 0.1s;
}

.pillar-card:hover .pillar-card-content .link-arrow {
    transform: translateX(0);
    opacity: 1;
}

/* Mobile: stack vertically with alternating tilts */
@media (max-width: 768px) {
    .pillars-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
        perspective: none;
    }

    .pillar-card {
        max-width: 500px;
        width: 100%;
        height: 360px;
        margin-bottom: -16px;
    }

    .pillar-card:first-child {
        transform: rotateZ(-2deg);
    }

    .pillar-card:nth-child(2) {
        transform: rotateZ(1deg);
    }

    .pillar-card:last-child {
        transform: rotateZ(-1deg);
    }

    .pillar-card:hover {
        transform: rotateZ(0deg) scale(1.02) translateY(-4px) !important;
    }

    .pillar-card-content p {
        transform: none;
        opacity: 1;
    }

    .pillar-card-content .link-arrow {
        transform: none;
        opacity: 1;
    }

    .pillars-grid.has-focus .pillar-card:not(.is-focused) {
        filter: none;
        opacity: 1;
        transform: none !important;
    }
}

/* ============================================
   LATEST MESSAGE SECTION
   ============================================ */
.latest-message {
    /* Next section (.pastors-welcome) has ellipse curve reaching 100px.
       Bottom: 180 + 10px card weight = 190px */
    padding: 105px 0 185px;
    background-color: #f6eee5;
    position: relative;
}

/* Wave divider: Pillars → Latest Message — Asymmetric Swell (dominant peak at ~25%) */
.latest-message::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 120px;
    background: #f6eee5;
    clip-path: polygon(
        0% 58%, 5% 50%, 10% 40%, 15% 30%, 20% 22%, 25% 18%,
        30% 22%, 35% 32%, 40% 42%, 45% 50%, 50% 55%, 55% 52%,
        60% 48%, 65% 44%, 70% 42%, 75% 44%, 80% 48%, 85% 52%,
        90% 56%, 95% 58%, 100% 58%,
        100% 100%, 0% 100%
    );
    z-index: 1;
}

.message-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.message-card-text {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.message-card-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.message-youtube-label {
    font-family: var(--font-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}

.message-card-video {
    position: relative;
    min-height: 350px;
}

.message-card-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .message-card {
        grid-template-columns: 1fr;
    }

    .message-card-video {
        min-height: 250px;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================
   PASTOR'S WELCOME SECTION
   With reveal animations
   ============================================ */
.pastors-welcome {
    /* Next section (.stay-connected) now has wave divider reaching ~100px */
    padding: 105px 0 185px;
    background-color: #ffffff;
    position: relative;
}

/* Wave divider: Latest Message → Pastor's Welcome — Triple Ripple (peaks at ~20%, ~50%, ~78%) */
.pastors-welcome::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 120px;
    background: #ffffff;
    clip-path: polygon(
        0% 55%, 5% 50%, 10% 42%, 15% 36%, 20% 32%, 25% 36%,
        30% 44%, 35% 52%, 38% 56%, 42% 52%, 45% 44%, 48% 36%,
        50% 32%, 52% 34%, 55% 42%, 58% 50%, 62% 56%, 65% 54%,
        68% 48%, 72% 40%, 75% 34%, 78% 32%, 82% 36%, 86% 44%,
        90% 52%, 95% 58%, 100% 60%,
        100% 100%, 0% 100%
    );
    z-index: 1;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Red accent panel: scaleX reveal --- */
.welcome-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.welcome-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
    border-radius: 16px 0 0 16px;
}

.welcome-image.is-visible::before {
    transform: scaleX(1);
}

/* Photo with desaturation that clears on reveal */
.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 450px;
    filter: saturate(0.55) brightness(0.92);
    transition: filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-image.is-visible img {
    filter: none;
}

/* Photo shine sweep overlay — opacity handled entirely by keyframes */
.welcome-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(229, 57, 53, 0.08) 60%,
        transparent 80%
    );
    transform: translateX(-20%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.welcome-image.is-visible::after {
    animation: shineSweep 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* After animation completes, nuke the pseudo-element */
.welcome-image.shine-done::after {
    display: none !important;
}

/* Welcome card */
.welcome-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.welcome-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.welcome-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.welcome-pill {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--color-warm-light);
    color: var(--color-black);
}

.pastor-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pastor-highlight-pill {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--color-black);
    color: var(--color-black);
    background: transparent;
}

@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
    }

    .welcome-image img {
        min-height: 300px;
    }
}

/* ============================================
   STAY CONNECTED (DARK SECTION)
   With glow drift pseudo-elements
   ============================================ */
.stay-connected {
    /* Next section (.ministries) has wave divider reaching ~100px */
    padding: 105px 0 185px;
    background-color: #f1e5d8;
    color: var(--color-black);
    position: relative;
    overflow: hidden;
}

/* Wave divider: Pastor's Welcome → Stay Connected — Dramatic Crest (sharp peak at ~35%) */
.stay-connected::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 120px;
    background: #f1e5d8;
    clip-path: polygon(
        0% 62%, 5% 56%, 10% 48%, 15% 40%, 20% 32%, 25% 24%,
        30% 18%, 35% 15%, 40% 20%, 45% 30%, 50% 42%, 55% 52%,
        60% 58%, 65% 60%, 70% 56%, 75% 50%, 78% 48%, 82% 50%,
        86% 54%, 90% 58%, 95% 62%, 100% 64%,
        100% 100%, 0% 100%
    );
    z-index: 1;
}

/* Glow orb pseudo-elements removed — warm-tone section doesn't need them */

.stay-connected .container {
    position: relative;
    z-index: 1;
}

.stay-connected .section-heading {
    color: var(--color-black);
}

.stay-connected-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.stay-connected .section-label,
.stay-connected .section-heading,
.stay-connected .stay-connected-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SOCIAL TILES (Stay Connected grid)
   Platform-specific accent colors
   ============================================ */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.social-card {
    --tile-accent: var(--color-red);
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    transition:
        all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

/* Platform-specific accent colors */
.social-card[data-platform="youtube"],
.social-card.social-card--youtube {
    --tile-accent: #ff2d2d;
}

.social-card[data-platform="instagram"],
.social-card.social-card--instagram {
    --tile-accent: #c13584;
}

.social-card[data-platform="facebook"],
.social-card.social-card--facebook {
    --tile-accent: #1877f2;
}

.social-card[data-platform="spotify"],
.social-card.social-card--spotify {
    --tile-accent: #1db954;
}

.social-card[data-platform="rumble"],
.social-card.social-card--rumble {
    --tile-accent: #6bbf59;
}

.social-card[data-platform="parler"],
.social-card.social-card--parler {
    --tile-accent: #d64545;
}

.social-card[data-platform="playtv"],
.social-card.social-card--playtv {
    --tile-accent: #555555;
}

.social-card[data-platform="app"],
.social-card.social-card--app {
    --tile-accent: #555555;
}

/* External link arrow — vertically centered at right */
.social-card::after {
    content: "\2197";
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}
.social-card:hover::after {
    color: var(--tile-accent);
}

/* Hover: lift + enhanced shadow + border color */
.social-card:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    border-color: var(--tile-accent);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 0 20px color-mix(in srgb, var(--tile-accent) 15%, transparent);
}

.social-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

/* Icon wrap — solid brand color at rest, white SVG */
.social-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tile-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
}

.social-card:hover .social-card-icon {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--tile-accent) 30%, transparent),
        rgba(255, 255, 255, 0.1) 80%
    );
}

/* Instagram special radial gradient */
.social-card[data-platform="instagram"]:hover .social-card-icon,
.social-card.social-card--instagram:hover .social-card-icon {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}

.social-card-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
    transition: fill 0.3s ease;
}

.social-card:hover .social-card-icon svg {
    fill: var(--color-white);
}

.social-card h4 {
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-black);
}

.social-card p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MINISTRIES SECTION
   Peek Stack Gallery
   ============================================ */
.ministries {
    /* Peek-stack cards + next section has ellipse curve reaching 100px */
    padding: 130px 0 210px;
    background-color: #efe2d6;
    position: relative;
    overflow: hidden;
}

/* Wave divider: Stay Connected → Ministries — Rolling Hills (peaks at ~25%, ~72%) */
.ministries::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 120px;
    background: #efe2d6;
    clip-path: polygon(
        0% 50%, 5% 44%, 10% 38%, 15% 32%, 20% 28%, 25% 26%,
        30% 28%, 35% 34%, 40% 42%, 45% 52%, 48% 58%, 50% 60%,
        52% 58%, 55% 52%, 60% 44%, 65% 36%, 68% 30%, 72% 28%,
        76% 30%, 80% 36%, 85% 44%, 90% 50%, 95% 54%, 100% 56%,
        100% 100%, 0% 100%
    );
    z-index: 1;
}

/* Glow orbs removed — warm background section doesn't need them */

.ministries .container {
    position: relative;
    z-index: 1;
}

.ministries .section-label,
.ministries .section-heading,
.ministries h2 {
    text-align: center;
}

/* Desktop: stacked cards with peek-on-hover */
.ministries-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
    gap: 0;
    margin-top: 40px;
    position: relative;
}

.ministries-container {
    width: 100%;
    position: relative;
}

.ministry-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 42% 1fr;
    max-width: 1200px;
    width: 100%;
    position: relative;
    transition:
        transform 0.76s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease,
        margin 0.76s cubic-bezier(0.22, 1, 0.36, 1);
    margin-bottom: -40px;
    cursor: pointer;
}

.ministry-card:last-child {
    margin-bottom: 0;
}

/* Stacked overlap: each subsequent card sits on top */
.ministry-card:nth-child(1) { z-index: 1; }
.ministry-card:nth-child(2) { z-index: 2; }
.ministry-card:nth-child(3) { z-index: 3; }

/* Hover: push cards below to expand */
.ministry-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 0;
    z-index: 10;
}

.ministry-card:hover ~ .ministry-card {
    transform: translateY(40px);
}

.ministry-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.ministry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image zoom on focus */
.ministry-card:hover .ministry-card-image,
.ministry-card:focus-within .ministry-card-image {
    transform: scale(1.03);
}

.ministry-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ministry-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-black);
}

/* Card lines: hidden by default, reveal on hover with stagger */
.ministry-card-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.05s;
}

.ministry-card:hover .ministry-card-content p {
    opacity: 1;
    transform: translateY(0);
}

.ministry-card-content .link-arrow {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.1s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.ministry-card:hover .ministry-card-content .link-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* Card action buttons: lift + red glow on hover */
.ministry-card .btn {
    transition: all 0.3s ease;
}

.ministry-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

/* Mobile: horizontal scroll carousel */
@media (max-width: 768px) {
    .ministries-grid {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 24px;
        align-items: stretch;
    }

    .ministry-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
        margin-bottom: 0;
        grid-template-columns: 1fr;
    }

    .ministry-card:hover ~ .ministry-card {
        transform: none;
    }

    .ministry-card-content p {
        opacity: 1;
        transform: none;
    }

    .ministry-card-content .link-arrow {
        opacity: 1;
        transform: none;
    }

    /* Swipe hint */
    .ministries-grid::after {
        content: "";
        flex: 0 0 24px;
    }

    /* Hide scrollbar */
    .ministries-grid::-webkit-scrollbar {
        display: none;
    }

    .ministries-grid {
        scrollbar-width: none;
    }
}

/* Swipe hint nudge indicator */
.ministries-swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}

.ministries-swipe-hint svg {
    animation: nudgeRight 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .ministries-swipe-hint {
        display: flex;
    }
}

/* Dot navigation for mobile carousel */
.ministries-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
}

.ministries-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-warm-mid);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ministries-dots .dot.active {
    background: var(--color-red);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .ministries-dots {
        display: flex;
    }
}

/* ============================================
   MINISTRIES FOR YOUR SEASON
   ============================================ */
.ministries-season {
    /* Next section (.contact-section) has wave divider reaching ~100px */
    padding: 105px 0 185px;
    background-color: #ffffff;
    text-align: center;
    position: relative;
}

/* Wave divider: Ministries → Ministries Season — Organic Triple Wave */
.ministries-season::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 120px;
    background: #ffffff;
    clip-path: polygon(
        0% 58%, 4% 52%, 8% 44%, 12% 36%, 15% 32%, 18% 34%,
        22% 42%, 26% 50%, 30% 54%, 34% 52%, 38% 46%, 42% 38%,
        45% 34%, 48% 36%, 52% 44%, 56% 52%, 60% 56%, 64% 52%,
        68% 44%, 72% 36%, 76% 30%, 80% 28%, 84% 32%, 88% 40%,
        92% 50%, 96% 56%, 100% 58%,
        100% 100%, 0% 100%
    );
    z-index: 1;
}

.ministries-season h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-black);
    margin-bottom: 20px;
}

.ministries-season-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

.ministries-season-pills {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pill-btn:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    /* Form content drives the section height; the cream bg extends naturally.
       Bottom padding is 0 — the gap down to the Plan Visit card is owned by
       that card's own top margin, so the two don't stack into a dead band.
       (They used to: 30px here + 60px there = 90px of cream under the form.) */
    padding: 60px 0 0;
    background-color: #f1e3d6;
    position: relative;
}

/* Wave divider: Ministries Season → Contact — Off-Center Wave (peak at ~65%) */
.contact-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 120px;
    background: #f1e3d6;
    clip-path: polygon(
        0% 62%, 5% 60%, 10% 58%, 15% 54%, 20% 50%, 25% 46%,
        30% 42%, 35% 38%, 40% 34%, 45% 30%, 50% 26%, 55% 22%,
        60% 20%, 65% 20%, 70% 24%, 75% 30%, 80% 38%, 85% 46%,
        90% 54%, 95% 60%, 100% 62%,
        100% 100%, 0% 100%
    );
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-text {
    position: sticky;
    top: 100px;
}

.contact-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-form-wrapper {
    background: var(--color-white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ------------------------------------------------------------------
   GHL contact form iframe — height handling. Read before editing.

   form_embed.js hides the iframe while it measures it
   (opacity:0 / visibility:hidden / position:absolute / left:-9999px).
   The GHL child frame then reports a height of 0 *because* it is
   hidden, so the script never un-hides it. That deadlock is what made
   the form vanish, and what made the JS fall back to a hardcoded
   height that left a gap under the card.

   Fix: keep the iframe visible and in flow with !important, so the
   child always measures a real height and reports it. The height
   itself is set inline by the sizer in front-page.php.

   DO NOT add `height` or `min-height` with !important here (or in the
   Customizer's Additional CSS). !important outranks the inline height
   the sizer writes, which pins the form at a fixed size and brings
   back both the cutoff and the whitespace.
   ------------------------------------------------------------------ */
.contact-form-wrapper iframe {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    pointer-events: auto !important;

    border: none;
    border-radius: 8px;
    background: var(--color-white);
    box-sizing: border-box;
    overflow: hidden;
}

/* First-paint estimates only — the sizer replaces these within ~400ms.
   Values are the heights GHL actually reported at each breakpoint
   (measured 2026-07-27), so the correction is invisible.
   Written mobile-first so a later max-width block can't outrank them. */
.contact-form-wrapper iframe {
    height: 1390px;   /* ~295px wide  → reported 1391 */
}

@media (min-width: 521px) {
    .contact-form-wrapper iframe {
        height: 930px;   /* ~673px wide → reported 930 */
    }
}

@media (min-width: 769px) {
    .contact-form-wrapper iframe {
        height: 988px;   /* 502px wide  → reported 988 */
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    width: 100%;
    height: 400px;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   PLAN VISIT CTA
   ============================================ */
.plan-visit-cta {
    padding: 0;
    background-color: var(--color-warm-light);
    text-align: left;
}

.plan-visit-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-gray-dark);
    border-radius: 16px;
    overflow: hidden;
    max-width: 1200px;
    /* Top margin is the entire gap between the contact form card and this one.
       Dial this number to tighten or loosen that gap. */
    margin: 40px auto 60px;
}

.plan-visit-card .plan-visit-map {
    min-height: 300px;
}

.plan-visit-card .plan-visit-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.plan-visit-card .plan-visit-info {
    padding: 48px;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-visit-card .plan-visit-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.plan-visit-cta h3 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--color-white);
}

.plan-visit-cta .cta-times {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.plan-visit-cta .cta-address {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   SCRIPTURE SECTION
   ============================================ */
.scripture-section {
    padding: 80px 0;
    background-color: var(--color-gray-dark);
    text-align: center;
}

.scripture-ref {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 16px;
}

.scripture-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 280px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: var(--color-red);
}

.footer-social-icons a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-col h4 {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    display: block;
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   MINISTRY PAGE STYLES (Single pages)
   ============================================ */
.ministry-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.ministry-hero .hero-bg {
    filter: saturate(0.85) brightness(0.55) blur(3px);
    animation: slowPan 22s ease-in-out infinite alternate;
}

.ministry-hero .hero-bg::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.6) 75%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.ministry-hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 0 24px;
}

.ministry-hero-content > * {
    animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ministry-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 16px;
    animation-delay: 0s;
}

.ministry-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    animation-delay: 0.2s;
}

.ministry-body {
    padding: 80px 0;
    background-color: var(--color-warm-light);
}

.ministry-body-content {
    max-width: 800px;
    margin: 0 auto;
}

.ministry-description {
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.ministry-description p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.ministry-description p:last-child {
    margin-bottom: 0;
}

.ministry-info-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.ministry-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--color-black);
}

.ministry-info-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.ministry-expect-list {
    list-style: none;
    padding: 0;
}

.ministry-expect-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.ministry-expect-list li:last-child {
    border-bottom: none;
}

.ministry-expect-list li::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-red);
    margin-top: 8px;
    flex-shrink: 0;
}

.ministry-meet-section {
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.ministry-meet-section h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 16px;
}

.ministry-meet-section p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 28px;
}

/* ============================================
   DARK SECTION GENERIC (glow drift bg)
   ============================================ */
.dark-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-gray-dark);
    color: var(--color-white);
}

.dark-section::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -15%;
    width: 55%;
    height: 65%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.1), transparent 70%);
    animation: glowDrift 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.dark-section::after {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.06), transparent 60%);
    animation: glowDrift 22s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   MOBILE RESPONSIVE — 768px
   Consolidated mobile-first responsive block
   ============================================ */
@media (max-width: 768px) {

    /* -- Section Padding — centered between wave boundaries (mobile: 80px dividers, reach=60px, intrusion=20px) -- */
    .next-gathering {
        padding: 48px 0 108px;
    }
    .pillars {
        padding: 60px 0 100px;
    }
    .latest-message {
        padding: 60px 0 100px;
    }
    .pastors-welcome {
        padding: 60px 0 100px;
    }
    .stay-connected {
        padding: 60px 0 100px;
    }
    .ministries {
        padding: 60px 0 100px;
    }
    .ministries-season {
        padding: 60px 0 100px;
    }
    .contact-section {
        /* Bottom gap is owned by .plan-visit-card's top margin — see desktop rule. */
        padding: 40px 0 0;
    }
    .scripture-section {
        padding: 48px 0;
    }

    /* -- Curve/Divider Scaling for Mobile -- */
    /* All wave dividers scale uniformly on mobile */
    .pillars::before,
    .latest-message::before,
    .pastors-welcome::before,
    .stay-connected::before,
    .ministries::before,
    .ministries-season::before,
    .contact-section::before {
        top: -60px;
        height: 80px;
    }

    /* -- Gathering Card -- */
    .gathering-card {
        padding: 28px 20px;
    }
    .gathering-info-row {
        flex-direction: column;
        gap: 20px;
    }

    /* -- Pillars Grid Padding -- */
    .pillars-grid {
        padding: 0 16px;
    }

    /* -- Message Card Text -- */
    .message-card-text {
        padding: 28px 20px;
    }

    /* -- Welcome Card -- */
    .welcome-card {
        padding: 28px 20px;
    }

    /* -- Plan Visit Card -- */
    .plan-visit-card {
        grid-template-columns: 1fr;
        margin: 28px auto 32px;
        border-radius: 12px;
    }
    .plan-visit-card .plan-visit-map {
        min-height: 220px;
    }
    .plan-visit-card .plan-visit-info {
        padding: 28px 20px;
    }

    /* -- Touch Targets -- */
    .hero-social a {
        width: 44px;
        height: 44px;
    }
    .footer-social-icons a {
        width: 44px;
        height: 44px;
    }
    .footer-social-icons {
        flex-wrap: wrap;
    }

    /* -- Contact Form -- */
    /* Height is owned by the sizer in front-page.php — never set it here. */
    .contact-form-wrapper {
        padding: 16px;
    }

    /* -- Footer -- */
    .site-footer {
        padding: 40px 0 24px;
    }

    /* -- Ministry Single Pages -- */
    .ministry-body {
        padding: 48px 0;
    }
    .ministry-description,
    .ministry-info-card,
    .ministry-meet-section {
        padding: 28px 20px;
    }
    .ministry-info-card h3,
    .ministry-meet-section h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE — 480px
   Small phone refinements
   ============================================ */
@media (max-width: 480px) {

    /* -- Hero Buttons Stack -- */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .hero-follow-pill {
        padding: 4px 8px;
    }
    .hero-social {
        gap: 2px;
    }

    /* -- Section Headings -- */
    .section-heading {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }
    .gathering-main-text {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }

    /* -- Pillar Cards -- */
    .pillar-card {
        height: 300px;
    }
    .pillar-card-content h3 {
        font-size: 1.25rem;
    }

    /* -- Scroll Indicator -- */
    .scroll-indicator {
        bottom: 20px;
    }
    .scroll-indicator svg {
        width: 24px;
        height: 24px;
    }

    /* -- Ministry Cards -- */
    .ministry-card {
        flex: 0 0 90vw;
        m