:root {
    --bg: #0c0514;
    --bg-2: #130a20;
    --bg-3: #1a0f2b;
    --purple: #5b1fa8;
    --purple-bright: #7c3aed;
    --purple-soft: #a78bfa;
    --purple-deep: #2a0d4a;
    --gold: #d8b25c;
    --text: #ffffff;
    --muted: #b7acc9;
    --line: rgba(255, 255, 255, 0.12);
    --shell: 1240px;
    --header-h: 92px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

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

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 28px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    color: #000;
    padding: 12px 20px;
    z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-stuck {
    background: rgba(12, 5, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--purple-soft);
    transition: width 0.25s ease;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #fff; }

.nav-cta {
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--purple-bright);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: #8b5cf6; transform: translateY(-2px); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.burger span {
    display: block;
    height: 2px;
    width: 26px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--purple-bright);
    color: #fff;
    border: 2px solid var(--purple-bright);
}
.btn-primary:hover { background: #8b5cf6; border-color: #8b5cf6; transform: translateY(-2px); }

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--bg); transform: translateY(-2px); }

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 34px;
    background: #fff;
    color: #140a22;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s ease;
}
.btn-light:hover { transform: translateY(-2px); }

.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* The source slides average 30 of 255 luminance and carry a blue cast, so they are
       lifted hard and rotated toward the purple of the rest of the site. */
    filter: brightness(2.3) contrast(1.12) saturate(1.15) hue-rotate(38deg);
    transform: scale(1.06);
    animation: slowZoom 14s ease-out forwards;
}

@keyframes slowZoom {
    to { transform: scale(1); }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 5, 20, 0.5) 0%, rgba(12, 5, 20, 0.12) 45%, rgba(12, 5, 20, 0.85) 100%),
        linear-gradient(120deg, rgba(91, 31, 168, 0.28), rgba(42, 13, 74, 0.12));
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 140px 28px 110px;
    max-width: 1040px;
}

.kicker {
    display: block;
    margin-bottom: 22px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--purple-soft);
}

.hero h1 {
    font-size: clamp(2.6rem, 7.2vw, 5.6rem);
    margin-bottom: 26px;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 38px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s ease;
}
.hero-dots button.is-active { background: #fff; }

/* Sections */

.section { padding: clamp(70px, 9vw, 130px) 0; }
.section-tinted { background: var(--bg-2); }
.section-purple { background: linear-gradient(140deg, var(--purple-deep), var(--purple)); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    margin-bottom: 20px;
}

.section-head p { color: var(--muted); font-size: 1.07rem; }

/* Three up tiles */

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 470px;
    padding: 44px 36px;
    text-decoration: none;
    overflow: hidden;
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 5, 20, 0.15), rgba(12, 5, 20, 0.85));
    transition: background 0.4s ease;
}

.tile:hover img { transform: scale(1.07); }
.tile:hover::after { background: linear-gradient(180deg, rgba(91, 31, 168, 0.35), rgba(12, 5, 20, 0.88)); }

.tile-body { position: relative; z-index: 2; }

.tile h3 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    margin-bottom: 14px;
}

.tile p { color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; margin-bottom: 20px; }

.tile-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Split content */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}

.split.is-flipped .split-media { order: 2; }

.split-media img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 6px;
}

.split h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 22px; }
.split p { color: var(--muted); }
.split .btn-primary, .split .btn-outline { margin-top: 14px; }

/* Service times */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    padding: 42px 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover { transform: translateY(-5px); border-color: var(--purple-soft); }

.service-day {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.service-card h3 { font-size: 1.45rem; margin-bottom: 18px; }

.service-times {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-times span {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.25);
    font-size: 0.92rem;
    font-weight: 600;
}

/* Ministry grid */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover { transform: translateY(-6px); border-color: var(--purple-soft); }

.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 30px 28px 34px; }
.card-kicker {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--purple-soft);
}
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 18px; }
.card-more { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.88rem; }

/* Pastors */

.pastors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 4vw, 56px);
}

.pastor { text-align: left; }

.pastor-photo {
    aspect-ratio: 4 / 5;
    margin-bottom: 26px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-3);
}
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.pastor-role {
    display: block;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}
.pastor h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 16px; }
.pastor p { color: var(--muted); font-size: 1rem; }

/* Watch strip */

.watch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.watch-grid h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.watch-grid p {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.88);
}

.watch-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
}
.watch-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
}
.watch-stack img:nth-child(2) { transform: translateY(-26px); }
.watch-stack img:nth-child(3) { transform: translateY(14px); }

/* Gallery strip */

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.gallery img:hover { filter: none; transform: scale(1.03); }

/* CTA band */

.cta-band {
    position: relative;
    padding: clamp(80px, 10vw, 150px) 0;
    text-align: center;
    overflow: hidden;
}
.cta-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(42, 13, 74, 0.92), rgba(91, 31, 168, 0.82));
}
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.cta-inner p { max-width: 620px; margin: 0 auto 34px; color: rgba(255, 255, 255, 0.9); }

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page banner */

.page-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 62vh;
    padding: 0 0 clamp(50px, 7vw, 90px);
    overflow: hidden;
}
.page-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 5, 20, 0.85) 0%, rgba(12, 5, 20, 0.35) 30%, rgba(12, 5, 20, 0.82) 72%, rgba(12, 5, 20, 0.97) 100%);
}
.page-banner .shell { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
.page-banner p { margin-top: 18px; max-width: 620px; color: rgba(255, 255, 255, 0.85); }

/* Ministry detail */

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.point {
    padding: 36px 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.point-num {
    display: block;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--purple-soft);
}
.point h3 { font-size: 1.25rem; margin-bottom: 12px; }
.point p { color: var(--muted); font-size: 0.97rem; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.4s ease;
}
.photo-grid img:hover { transform: scale(1.02); }

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

/* Footer */

.site-footer {
    padding: clamp(60px, 7vw, 100px) 0 40px;
    background: #080310;
    border-top: 1px solid var(--line);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 50px;
}

.footer-brand img { height: 62px; width: auto; object-fit: contain; margin-bottom: 18px; }
.footer-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

.socials { display: flex; gap: 12px; }
.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.socials svg { width: 18px; height: 18px; fill: var(--gold); }
.socials a:hover { background: var(--purple-bright); border-color: var(--purple-bright); }
.socials a:hover svg { fill: #fff; }

.footer-icon { width: 22px; height: 22px; fill: #fff; margin-bottom: 16px; }
.footer-col h3 { font-size: 1.15rem; margin-bottom: 14px; }
.footer-col p { color: var(--muted); font-size: 0.97rem; }
.footer-col a { text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--purple-soft); }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.footer-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
}
.footer-nav a:hover { color: #fff; }

.copyright {
    margin-top: 28px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Responsive */

@media (max-width: 1080px) {
    .tiles { grid-template-columns: 1fr; }
    .tile { min-height: 360px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 1150px) {
    :root { --header-h: 76px; }

    .burger { display: flex; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 24px 34px;
        background: rgba(12, 5, 20, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { transform: none; }

    .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav-link::after { display: none; }
    .nav-cta { margin-top: 20px; text-align: center; }

    .site-header { background: rgba(12, 5, 20, 0.88); backdrop-filter: blur(8px); }
    .brand img { height: 40px; }

    .split, .watch-grid { grid-template-columns: 1fr; }
    .split.is-flipped .split-media { order: 0; }
    .services, .grid-3, .points, .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .page-banner { min-height: 48vh; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .shell { padding: 0 20px; }
    .section { padding: 64px 0; }
    .services, .grid-3, .points, .pastors, .photo-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-outline, .btn-light { justify-content: center; }
    .watch-stack img:nth-child(2), .watch-stack img:nth-child(3) { transform: none; }
}
