:root {
    --lime: #a6ce39;
    --lime-deep: #8fb82a;
    --lime-soft: #f2f7e4;
    --navy: #2d295c;
    --navy-deep: #1f1c42;
    --grey: #6d6f73;
    --line: rgba(45, 41, 92, 0.12);
    --bg: #fbfbfa;
    --surface: #ffffff;
    --ink: #2c2b34;
    --muted: #6d6f73;
    --radius: 6px;
    --font-display: "Libre Baskerville", "Times New Roman", serif;
    --font-body: "Karla", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        linear-gradient(180deg, #ffffff 0%, var(--bg) 35%, #f4f5f1 100%);
    line-height: 1.7;
    font-size: 1.05rem;
}
a {
    color: var(--navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
a:hover { color: var(--lime-deep); }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, calc(100% - 2.25rem)); margin-inline: auto; }

.announce {
    background: var(--lime-soft);
    color: var(--navy);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 0.45rem 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    line-height: 1.35;
}
.announce a { color: var(--navy); font-weight: 700; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand-logo {
    height: clamp(48px, 6.5vw, 62px);
    width: auto;
    max-width: min(420px, 58vw);
    object-fit: contain;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; align-items: center; }
.site-nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.98rem;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.site-nav a:hover { color: var(--navy); }
.nav-cta {
    background: var(--lime) !important;
    color: var(--navy-deep) !important;
    padding: 0.5rem 1.05rem;
    border-radius: var(--radius);
    font-weight: 700;
}
.nav-cta:hover { background: var(--lime-deep) !important; color: var(--navy-deep) !important; }

/* Desktop: clear logo-left / links-right church nav */
@media (min-width: 901px) {
    html { scroll-padding-top: 5.5rem; }
    .site-header .wrap {
        width: min(1240px, calc(100% - 2.5rem));
    }
    .header-inner {
        flex-wrap: nowrap;
        gap: 1.5rem;
        padding: 0.55rem 0;
        min-height: 4.25rem;
    }
    .brand-logo {
        height: 52px;
        max-width: 320px;
    }
    .site-nav {
        display: flex;
        flex-wrap: nowrap;
        flex: 1 1 auto;
        justify-content: flex-end;
        align-items: center;
        gap: 0.1rem;
        min-width: 0;
    }
    .site-nav a:not(.nav-cta) {
        font-size: 0.94rem;
        letter-spacing: 0.01em;
        white-space: nowrap;
        padding: 0.45rem 0.55rem;
        border-bottom: 2px solid transparent;
        border-radius: 0;
    }
    .site-nav a:not(.nav-cta):hover,
    .site-nav a:not(.nav-cta):focus-visible {
        color: var(--navy);
        border-bottom-color: var(--lime);
    }
    .site-nav a:not(.nav-cta).is-active {
        color: var(--navy);
        border-bottom-color: var(--lime);
    }
    .site-nav .nav-cta {
        margin-left: 0.65rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-bottom: none;
    }
    .site-nav .nav-cta.is-active {
        background: var(--lime-deep) !important;
        box-shadow: inset 0 0 0 2px rgba(31, 28, 66, 0.12);
    }
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--navy);
    border-radius: var(--radius);
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars {
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}
body.nav-open {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: min(78vh, 680px);
    display: grid;
    align-items: end;
    color: white;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(45, 41, 92, 0.45) 0%, rgba(31, 28, 66, 0.82) 100%),
        url("../images/hero.jpg") center/cover no-repeat,
        radial-gradient(circle at 70% 20%, #3d3872, #2d295c 55%, #1f1c42);
}
.hero-content {
    position: relative;
    padding: 4.25rem 0 3.5rem;
    animation: rise 0.85s ease both;
}
.hero-logo {
    width: min(270px, 70vw);
    height: auto;
    margin-bottom: 1.4rem;
    background: #fff;
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.eyebrow {
    margin: 0;
    font-family: var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lime);
}
.hero h1, .page-hero h1, .page-banner h1, h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: 0;
    text-transform: none;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    margin: 0.45rem 0 0.8rem;
    max-width: 15ch;
}
.lede {
    font-size: 1.15rem;
    max-width: 36rem;
    color: inherit;
    opacity: 0.95;
}
.service-line {
    font-weight: 600;
    margin: 1rem 0 1.4rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0.75rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--lime);
    color: var(--navy-deep);
}
.btn-primary:hover { background: var(--lime-deep); color: var(--navy-deep); }
.btn-ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.75); }

.section { padding: 3.75rem 0; }
.section-tint { background: var(--lime-soft); }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.15rem); }
.page-hero,
.page-banner {
    padding: 2rem 0 1.35rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.25rem;
    background:
        linear-gradient(180deg, rgba(242, 247, 228, 0.55) 0%, transparent 100%);
}
.page-hero h1,
.page-banner h1 {
    font-size: clamp(1.85rem, 3.8vw, 2.45rem);
    margin: 0 0 0.35rem;
}
.page-hero .lede,
.page-banner .lede {
    color: var(--muted);
    margin: 0;
    max-width: 40rem;
    font-size: 1.05rem;
}
@media (min-width: 901px) {
    .page-hero,
    .page-banner {
        padding: 2.35rem 0 1.5rem;
    }
}
.text-link { font-weight: 700; color: var(--navy); }
.text-link:hover { color: var(--lime-deep); }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; }
.panel, .form-panel, .tile, .list-item, .person {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
}
.panel-live {
    margin-bottom: 1.75rem;
    border-left: 4px solid var(--lime);
    box-shadow: 0 8px 24px rgba(45, 41, 92, 0.06);
}
.grid-3, .grid-4 { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.tile {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover {
    border-color: rgba(166, 206, 57, 0.7);
    box-shadow: 0 8px 22px rgba(45, 41, 92, 0.07);
}
.tile h3, .list-item h2, .list-item h3, .person h3 { margin-top: 0.15rem; }
.list-stack { display: grid; gap: 0.9rem; }
.list-item time, .meta { color: var(--muted); font-size: 0.92rem; }
.person img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border-radius: calc(var(--radius) - 1px);
    background: #ececef;
}

.crumbs {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: var(--muted);
}
.crumbs a {
    color: var(--lime-deep);
    font-weight: 700;
    text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}
.leader-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
}
.leader-card img,
.leader-photo-fallback {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(145deg, var(--lime-soft), #e4e5ec);
}
.leader-photo-fallback {
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--navy);
    font-weight: 700;
}
.leader-card-body {
    padding: 1rem 0.9rem 1.15rem;
}
.leader-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}
.leader-card .meta {
    margin: 0;
    color: var(--lime-deep);
    font-weight: 700;
}

.member-cta {
    background: var(--navy);
    color: #f3f3f8;
    padding: 2.4rem 0;
}
.member-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.member-cta h2 {
    color: #fff;
    margin: 0 0 0.4rem;
}
.member-cta p {
    margin: 0;
    max-width: 36rem;
    color: #d7d8e4;
}
.member-cta .btn-primary {
    border: 0;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0;
}
.schedule-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-panel h3 { margin-top: 0; }
.prose { max-width: 42rem; }
.feature-image {
    margin-bottom: 1.15rem;
    border-radius: var(--radius);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}
.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #ececef;
}
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid figcaption {
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.form-panel, .signup { display: grid; gap: 0.7rem; }
.form-panel label, .signup label {
    display: grid;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.95rem;
}
input, textarea, button { font: inherit; border-radius: var(--radius); }
input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 0.7rem 0.8rem;
    background: white;
}
input:focus, textarea:focus {
    outline: 2px solid rgba(166, 206, 57, 0.45);
    border-color: var(--lime-deep);
}
.consent {
    font-weight: 500 !important;
    display: flex !important;
    align-items: start;
    gap: 0.5rem;
}
.consent input { width: auto; margin-top: 0.2rem; }
.form-success { color: var(--lime-deep); font-weight: 700; }
.form-error { color: #9b2c2c; font-size: 0.9rem; }
.embed-block { margin-top: 1.75rem; }
.fb-page-wrap {
    background: white;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: auto;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr);
    gap: 1.35rem;
    align-items: start;
}
.watch-player h2 { margin-top: 0.35rem; }
.watch-live-badge {
    display: inline-block;
    margin: 0;
    padding: 0.2rem 0.55rem;
    background: #c62828;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
}
.fb-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #12121a;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0.85rem 0 0.5rem;
}
.fb-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.fb-page-embed {
    width: 100%;
    max-width: 520px;
    margin: 0.85rem auto 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.fb-page-embed iframe {
    display: block;
    width: 100%;
    min-height: 700px;
    border: 0;
}
.watch-fallback {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0;
}
.watch-side {
    display: grid;
    gap: 1rem;
}

@media (max-width: 900px) {
    .watch-layout { grid-template-columns: 1fr; }
}

.site-footer {
    margin-top: 2.5rem;
    background: var(--navy);
    color: #ececf2;
    padding: 3rem 0 1.5rem;
}
.site-footer a { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.footer-logo {
    width: min(250px, 100%);
    height: auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.9rem;
}
.footer-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    margin-top: 0;
}
.socials { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1rem; }
.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 1rem;
    color: #b4b5c2;
    font-size: 0.9rem;
}
.site-footer .schedule-list li {
    border-bottom-color: rgba(255,255,255,0.14);
    color: #d7d8e4;
}
.footer-schedule { margin-top: 0.35rem; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
    .grid-4, .grid-3, .split, .footer-grid, .leaders-grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: inline-flex; }
    .header-inner {
        flex-wrap: wrap;
        position: relative;
    }
    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        flex-basis: 100%;
        margin: 0.35rem 0 0;
        padding: 0.35rem 0 0.65rem;
        border-top: 1px solid var(--line);
        background: var(--surface);
        max-height: min(70vh, calc(100dvh - 5.5rem));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.7rem 0.15rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--line);
    }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav .nav-cta {
        margin-top: 0.55rem;
        justify-content: center;
        min-height: 48px;
        padding: 0.75rem 1rem;
        border-bottom: 0;
    }
    .member-cta-inner { align-items: flex-start; }
}

@media (max-width: 640px) {
    .grid-4, .grid-3, .split, .footer-grid, .leaders-grid { grid-template-columns: 1fr; }
    .hero { min-height: 68vh; }
    .brand-logo { max-width: min(280px, 72vw); height: 44px; }
    .wrap { width: min(1080px, calc(100% - 1.5rem)); }
    .section { padding: 2.75rem 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .watch-layout { gap: 1rem; }
    .member-cta { padding: 2rem 0; }
}
