@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ============================================================
   TCLC NIGERIA â€” WORLD CLASS DESIGN SYSTEM
   ============================================================ */
:root {
    --navy: #070D2E;
    --navy-mid: #0D1654;
    --brand-blue: #1A56DB;
    --sky: #4A9FE8;
    --light-blue: #BFE0F5;
    --lilac: #C9B8E8;
    --lilac-soft: #EDE5F8;
    --yellow: #F5C842;
    --yellow-soft: #FFF8D6;
    --white: #FFFFFF;
    --off-white: #F7F8FF;
    --text-dark: #070D2E;
    --text-mid: #3A4070;
    --text-light: #7A84B0;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --shadow-sm: 0 2px 12px rgba(7,13,46,.07);
    --shadow-md: 0 8px 32px rgba(7,13,46,.13);
    --shadow-lg: 0 24px 64px rgba(7,13,46,.18);
    --r: 16px;
    --r-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--off-white);
    margin: 0;
    line-height: 1.7;
}

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

/* NAVBAR */
.navbar {
    background: rgba(255,255,255,0.97) !important;
    padding: .9rem 0;
    box-shadow: 0 2px 24px rgba(7,13,46,.06);
    border-bottom: none !important;
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -.5px;
    background: linear-gradient(135deg, var(--navy), var(--brand-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .3px;
    color: var(--text-mid) !important;
    padding: .45rem 1.1rem !important;
    border-radius: 50px;
    transition: all .2s ease;
}

    .nav-link:hover {
        color: var(--brand-blue) !important;
        background: var(--lilac-soft);
    }

/* HERO */
.hero-section {
    min-height: 91vh;
    background: linear-gradient(155deg, rgba(7,13,46,.9) 0%, rgba(26,86,219,.72) 55%, rgba(201,184,232,.35) 100%), url('https://images.unsplash.com/photo-1549060279-7e168fcee0c2?w=1800&q=85') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 130px;
        background: linear-gradient(to top, var(--off-white), transparent);
        z-index: 2;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        top: 15%;
        right: -80px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(245,200,66,.14), transparent 70%);
        pointer-events: none;
    }

.hero-badge {
    display: inline-block;
    background: rgba(245,200,66,.18);
    border: 1px solid rgba(245,200,66,.5);
    color: var(--yellow);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem,6vw,5.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.04;
    margin-bottom: 1.5rem;
}

    .hero-title span {
        color: var(--yellow);
        font-style: italic;
    }

.hero-subtitle {
    font-size: 1.12rem;
    color: rgba(255,255,255,.8);
    font-weight: 300;
    max-width: 510px;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: var(--yellow);
    color: var(--navy);
    font-weight: 700;
    padding: 14px 38px;
    border-radius: 50px;
    border: none;
    font-size: .95rem;
    transition: all .25s ease;
    box-shadow: 0 8px 28px rgba(245,200,66,.4);
    text-decoration: none;
    display: inline-block;
}

    .btn-hero-primary:hover {
        background: #f0bc20;
        transform: translateY(-2px);
        box-shadow: 0 14px 36px rgba(245,200,66,.5);
        color: var(--navy);
    }

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    font-weight: 600;
    padding: 14px 38px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,.4);
    font-size: .95rem;
    transition: all .25s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(4px);
}

    .btn-hero-outline:hover {
        border-color: var(--white);
        background: rgba(255,255,255,.1);
        color: var(--white);
    }

/* HERO CAROUSEL */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

    .hero-carousel-section .carousel,
    .hero-carousel-section .carousel-inner,
    .hero-carousel-section .carousel-item {
        height: calc(91vh - 84px);
        min-height: 560px;
    }

.hero-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(7,13,46,.35) 0%, rgba(26,86,219,.25) 55%, rgba(0,0,0,.15) 100%);
    z-index: 1;
}

.hero-carousel-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(to top, var(--off-white), transparent);
    z-index: 3;
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

    .hero-slide-content .hero-title {
        font-family: var(--font-display);
        font-size: clamp(2.6rem, 5.5vw, 4.8rem);
        font-weight: 900;
        color: var(--white);
        line-height: 1.05;
        margin-bottom: 1.3rem;
    }

        .hero-slide-content .hero-title span {
            color: var(--yellow);
            font-style: italic;
        }

    .hero-slide-content .hero-subtitle {
        font-size: 1.1rem;
        color: rgba(255,255,255,.82);
        font-weight: 300;
        margin-bottom: 2.2rem;
    }

.tclc-indicators {
    z-index: 4;
    bottom: 28px;
    gap: 8px;
}

    .tclc-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,.4);
        border: none;
        opacity: 1;
        transition: all .3s ease;
    }

    .tclc-indicators .active {
        background: var(--yellow);
        width: 28px;
        border-radius: 50px;
    }

.carousel-control-prev,
.carousel-control-next {
    width: 64px;
    z-index: 4;
    opacity: 1;
}

.tclc-carousel-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all .25s ease;
}

.carousel-control-prev:hover .tclc-carousel-arrow,
.carousel-control-next:hover .tclc-carousel-arrow {
    background: var(--yellow);
    color: var(--navy);
    border-color: var(--yellow);
}

/* STAT CARDS */
.hero-stats {
    position: relative;
    z-index: 3;
    margin-top: -56px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--r);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201,184,232,.25);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        display: block;
        height: 4px;
        background: linear-gradient(90deg, var(--brand-blue), var(--lilac), var(--yellow));
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lilac-soft), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--brand-blue);
}

/* SECTION LABELS */
.eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: .6rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem,4vw,3rem);
    font-weight: 900;
    color: var(--navy);
}

.divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), var(--yellow));
    border-radius: 4px;
    margin: .9rem auto 2rem;
}

/* PAGE HERO BANDS */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--brand-blue) 100%);
    padding: 5.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .page-hero::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 90px;
        background: linear-gradient(to top, var(--off-white), transparent);
    }

    .page-hero h1 {
        color: var(--white);
        font-size: clamp(2.2rem,5vw,3.8rem);
    }

    .page-hero p {
        color: rgba(255,255,255,.78);
        font-size: 1.1rem;
    }

/* MINISTRY CARDS */
.ministry-card {
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    background: var(--white);
    border: 1px solid rgba(201,184,232,.2);
}

    .ministry-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

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

.ministry-card-body {
    padding: 1.8rem;
}

.ministry-card.featured {
    background: linear-gradient(135deg, var(--navy), var(--brand-blue));
}

    .ministry-card.featured .ministry-card-body {
        background: transparent;
    }

.ministry-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lilac-soft), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.ministry-card.featured .ministry-icon {
    background: rgba(255,255,255,.15);
    color: var(--yellow);
}

/* SERMONS */
.sermon-card {
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(191,224,245,.4);
    transition: all .3s ease;
}

    .sermon-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
    }

.sermon-card-body {
    padding: 1.5rem;
}

.sermon-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--lilac-soft);
    color: var(--brand-blue);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: .8rem;
}

/* CONTACT */
.contact-form-card {
    background: var(--white);
    border-radius: var(--r);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201,184,232,.3);
}

.info-box {
    background: linear-gradient(145deg, var(--navy), var(--navy-mid));
    border-radius: var(--r);
    padding: 2.5rem;
    color: var(--white);
    height: 100%;
}

    .info-box h4 {
        color: var(--yellow);
        font-family: var(--font-display);
        margin-bottom: 1.5rem;
    }

    .info-box p {
        color: rgba(255,255,255,.8);
        margin-bottom: .4rem;
        font-size: .95rem;
    }

.info-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.form-control, .form-select {
    border: 1.5px solid rgba(201,184,232,.5);
    border-radius: var(--r-sm);
    padding: .75rem 1rem;
    font-family: var(--font-body);
    font-size: .95rem;
    transition: all .2s ease;
    background: var(--off-white);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--brand-blue);
        box-shadow: 0 0 0 3px rgba(26,86,219,.1);
        outline: none;
        background: var(--white);
    }

.btn-submit {
    background: linear-gradient(135deg, var(--brand-blue), var(--navy));
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 14px 38px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .25s ease;
    box-shadow: 0 6px 20px rgba(26,86,219,.35);
    width: 100%;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(26,86,219,.45);
        color: var(--white);
    }

/* ABOUT */
.value-card {
    background: var(--white);
    border: 1px solid rgba(201,184,232,.35);
    border-radius: var(--r);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
}

    .value-card:hover {
        background: linear-gradient(135deg, var(--lilac-soft), var(--yellow-soft));
        border-color: var(--lilac);
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

.pastor-card {
    background: var(--white);
    border-radius: var(--r);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201,184,232,.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .pastor-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--brand-blue), var(--lilac), var(--yellow));
    }

.pastor-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 8px 28px rgba(26,86,219,.2);
    margin-bottom: 1.5rem;
}

/* ADMIN */
.admin-header {
    background: linear-gradient(135deg, var(--navy), var(--brand-blue));
    color: var(--white);
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
}

    .admin-header h2 {
        color: var(--white);
        margin: 0;
    }

.table {
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

    .table thead {
        background: var(--navy);
        color: var(--white);
    }

        .table thead th {
            font-weight: 600;
            font-size: .82rem;
            letter-spacing: .5px;
            border: none;
            padding: 1rem 1.2rem;
            color: rgba(255,255,255,.85);
        }

    .table tbody td {
        padding: .9rem 1.2rem;
        vertical-align: middle;
        border-color: rgba(201,184,232,.2);
    }

    .table tbody tr:hover {
        background: var(--lilac-soft);
    }

/* FOOTER */
.footer {
    background: var(--navy) !important;
    color: rgba(255,255,255,.65);
    padding: 2.5rem 0 1.5rem;
    border-top: none !important;
}

    .footer strong {
        color: var(--yellow);
    }

    .footer a {
        color: rgba(255,255,255,.55);
        transition: color .2s;
        text-decoration: none;
    }

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

.admin-badge {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 50px !important;
}

    .admin-badge a, .admin-badge small, .admin-badge button {
        color: rgba(255,255,255,.65) !important;
    }

        .admin-badge a:hover {
            color: var(--yellow) !important;
        }

/* UTILITIES */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue), var(--lilac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-yellow {
    color: var(--yellow) !important;
}

.badge-new {
    background: linear-gradient(135deg,#ef4444,#dc2626);
    color: #fff;
    font-size: .7rem;
    padding: 4px 12px;
    border-radius: 50px;
}

.badge-read {
    background: rgba(122,132,176,.12);
    color: var(--text-light);
    font-size: .7rem;
    padding: 4px 12px;
    border-radius: 50px;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fade-up {
    animation: fadeUp .7s ease both
}

.delay-1 {
    animation-delay: .1s
}

.delay-2 {
    animation-delay: .25s
}

.delay-3 {
    animation-delay: .4s
}

.delay-4 {
    animation-delay: .55s
}

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-9px)
    }
}

.float {
    animation: float 4s ease-in-out infinite
}

@media(max-width:768px) {
    .hero-title {
        font-size: 2.4rem
    }

    .hero-section {
        min-height: 80vh
    }

    .hero-stats {
        margin-top: 1.5rem
    }

    .hero-carousel-section {
        margin-top: 0;
    }

        .hero-carousel-section .carousel,
        .hero-carousel-section .carousel-inner,
        .hero-carousel-section .carousel-item {
            height: calc(82vh - 70px);
            min-height: 460px;
        }

    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
    }

    .tclc-indicators {
        bottom: 16px;
    }
}

/* ============================================
   MOBILE GAP FIX
   ============================================ */

/* Navbar spacer â€” responsive height */
.navbar-spacer {
    height: 70px;
}

@media (max-width: 991px) {
    .navbar-spacer {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .navbar-spacer {
        height: 56px;
    }
}

/* Hero carousel mobile fix */
@media (max-width: 768px) {
    .hero-carousel-section .carousel,
    .hero-carousel-section .carousel-inner,
    .hero-carousel-section .carousel-item {
        height: calc(100vh - 56px);
        min-height: 480px;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: .95rem !important;
    }

    .hero-slide-content {
        padding: 0 1rem;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        font-size: .85rem !important;
        padding: 10px 20px !important;
    }
}

@media (max-width: 480px) {
    .hero-carousel-section .carousel,
    .hero-carousel-section .carousel-inner,
    .hero-carousel-section .carousel-item {
        height: calc(100vh - 56px);
        min-height: 440px;
    }

    .hero-title {
        font-size: 1.7rem !important;
    }
}

/* PWA safe area support (iPhone notch etc) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    #pwa-banner {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* iPhone notch/safe area fix */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    .navbar-spacer {
        height: calc(70px + env(safe-area-inset-top));
    }
}

/* HERO TITLE TUMBLE-IN + SHIMMER ANIMATION */
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(45px) rotateX(-90deg);
    transform-origin: bottom;
    animation: tumbleIn 0.75s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes tumbleIn {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}
.hero-title {
    font-weight: 900 !important;
    text-shadow: 2px 2px 0 rgba(7,13,46,.5), 4px 4px 10px rgba(0,0,0,.35);
    letter-spacing: -0.5px;
}
.hero-title em,
.hero-title .word em {
    background: linear-gradient(90deg, #F5C842 0%, #FF9642 30%, #FFF3C4 55%, #F5C842 80%, #FF9642 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 3.5s linear infinite;
    font-style: italic;
    text-shadow: none;
    filter: drop-shadow(2px 2px 0 rgba(7,13,46,.4));
}
@keyframes shimmerText {
    to { background-position: -200% center; }
}


/* === HERO TITLE — CHUNKY 3D EXTRUDED + HANDWRITTEN SCRIPT ACCENT (v2) === */
.hero-title {
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    color: #ffffff !important;
    text-shadow:
        1px 1px 0 #0a1233,
        2px 2px 0 #0a1233,
        3px 3px 0 #0a1233,
        4px 4px 0 #0a1233,
        5px 5px 0 #0a1233,
        6px 6px 0 #0a1233,
        7px 7px 10px rgba(0,0,0,.5) !important;
}
.hero-title em,
.hero-title .word em {
    font-family: 'Caveat', cursive !important;
    font-weight: 700 !important;
    font-style: normal !important;
    background: linear-gradient(90deg, #F5C842 0%, #FF9642 25%, #FFF3C4 50%, #F5C842 75%, #FF9642 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 3.5s linear infinite;
    text-shadow: none !important;
    filter: drop-shadow(3px 3px 0 #0a1233) drop-shadow(0 6px 10px rgba(0,0,0,.4));
    font-size: 1.2em;
    display: inline-block;
    transform: rotate(-3deg);
}
@keyframes shimmerText { to { background-position: -300% center; } }
