:root {
    /* Color Palette */
    --primary: #B8860B;
    --primary-light: #DAA520;
    --primary-dark: #8B6508;
    --secondary: #5C3A21;
    --accent: #F39C12;
    --background: #F9F9F9;
    --surface: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Section Spacing */
section {
    padding: 120px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Ministry Cards Styling */
.ministry-card {
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(184, 134, 11, 0.05);
}

.ministry-card:hover {
    transform: translateY(-15px);
    background: white;
    box-shadow: 0 25px 50px rgba(184, 134, 11, 0.15);
}

/* --- VISUAL OVERHAUL EXTENSIONS --- */

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: white;
}

.section-divider {
    width: 100px;
    height: 5px;
    background: var(--primary);
    margin: 25px auto 45px;
    border-radius: 10px;
}

/* Leadership Cards */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.leader-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
}

.leader-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.leader-card .img-wrapper {
    height: 400px;
    overflow: hidden;
}

.leader-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.leader-card .info {
    padding: 35px;
    text-align: center;
}

.leader-card span {
    display: block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.leader-card h4 {
    font-size: 1.8rem;
    color: var(--secondary);
}

/* Pastor's Message */
.pastor-section {
    position: relative;
    padding: 150px 0;
    background: #1a1a1a;
    color: white;
}

.pastor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1544427920-c49ccfb85579?auto=format&fit=crop&q=80') center/cover fixed;
    opacity: 0.3;
}

.pastor-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.pastor-content blockquote {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 40px;
}

/* Maps */
.map-container {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card .img-container {
    height: 250px;
    border-radius: 25px;
    margin-bottom: 30px;
    overflow: hidden;
    background: #f0f0f0;
    /* Fallback */
}

.project-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .img-container img {
    transform: scale(1.05);
    /* Subtle zoom on hover, but base state is fixed */
}

/* App Download Section */
.app-download-section {
    padding: 100px 0;
    background: var(--surface);
    text-align: center;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.app-badge {
    background: #000;
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 220px;
}

.app-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: #111;
}

.app-badge i {
    font-size: 2.2rem;
}

.app-badge .badge-text {
    text-align: left;
}

.app-badge .badge-text span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.app-badge .badge-text strong {
    font-size: 1.2rem;
    font-weight: 700;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 50px;
    right: 50px;
    background: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Mobile Navigation & Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

header.scrolled .menu-toggle span {
    background: var(--secondary);
}

/* Open state for hamburger */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column !important;
        text-align: center;
        gap: 30px !important;
    }

    header nav ul li a {
        color: var(--secondary) !important;
        font-size: 1.5rem;
        text-shadow: none !important;
    }

    .container {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {

    /* Section Basics */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.5rem !important;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 2.8rem !important;
    }

    .hero p {
        font-size: 1.2rem !important;
    }

    .hero .btn {
        width: 100%;
        margin: 5px 0;
    }

    .hero .container div {
        flex-direction: column;
        gap: 10px !important;
    }

    /* Grids & Cards */
    .leadership-grid,
    .projects-grid,
    .ministry-grid,
    .impact-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .pastor-content {
        padding: 30px !important;
    }

    .pastor-content h2 {
        font-size: 1.8rem !important;
    }

    .pastor-content blockquote {
        font-size: 1.4rem !important;
    }

    /* Map & Location */
    .map-container iframe {
        height: 350px !important;
    }

    /* Footer */
    footer .container {
        padding: 0 20px;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .app-badge {
        width: 100%;
        min-width: unset;
    }
}

html {
    scroll-behavior: smooth;
}

header {
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}