/* Sidebar menu styles for mobile navigation */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-color);
    background: none;
    border: none;
    margin-left: 1rem;
    z-index: 1100;
}


.sidebar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 24px rgba(0,0,0,0.12);
    z-index: 1200;
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
    display: none;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.sidebar-menu.active {
    right: 0;
    display: flex;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--background-color-alt);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
    padding: 2rem 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-links a:hover {
    background: var(--primary-color-transparent);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .nav-links {
        display: none !important;
    }
    .menu-toggle {
        display: block;
    }
    .sidebar-menu {
        width: 80vw;
        max-width: 320px;
        min-width: 220px;
        right: -80vw;
        box-shadow: -2px 0 24px rgba(0,0,0,0.12);
    }
    .sidebar-menu.active {
        right: 0;
        display: flex;
    }
    header {
        position: fixed !important;
        top: 0 !important;
        z-index: 2000 !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
}
.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    margin: 8px 8px 0 0;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 10px var(--primary-shadow-color);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    cursor: pointer;
}

.feature-btn i {
    font-size: 1.1rem;
    color: var(--white);
}

.feature-btn:hover {
    background: var(--primary-color-darker);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px var(--primary-shadow-color-darker);
    color: var(--white);
    text-decoration: none;
}
.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;

  

}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow-color-dark);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow-color-darker);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-shadow-color);
}

.feature-icon-large i {
    font-size: 2rem;
    color: var(--white);
}

.feature-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-list {
    color: var(--text-color-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-left: 0.5rem;
    padding-left: 1.2rem;
    list-style: disc inside;
}
:root {
    --primary-color: #c53030;
    --primary-color-darker: #9c2626;
    --primary-color-transparent: rgba(197, 48, 48, 0.05);
    --secondary-color: #d69e2e;
    --text-color: #2d3748;
    --text-color-light: #4a5568;
    --text-color-lighter: #718096;
    --background-color: #fefefe;
    --background-color-alt: #f7fafc;
    --background-warm-gradient: linear-gradient(135deg, #fdfaf6 0%, #fcefe1 100%);
    --hero-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --white: #ffffff;
    --footer-background: #2d3748;
    --footer-text-color: #a0aec0;
    --header-background: rgba(255, 255, 255, 0.95);
    --shadow-color-light: rgba(0,0,0,0.08);
    --shadow-color-dark: rgba(0,0,0,0.1);
    --shadow-color-darker: rgba(0,0,0,0.15);
    --primary-shadow-color: rgba(197, 48, 48, 0.3);
    --primary-shadow-color-darker: rgba(197, 48, 48, 0.4);
}

* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;

    body {
        font-family: 'Poppins', sans-serif;
        line-height: 1.6;
        color: var(--text-color);
        background: var(--background-color);
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }


    .top-banner {
        width: 100vw;
        max-width: 100%;
        height: 320px;
        background: url('./assets/images/church-mosiac.png') center center/cover no-repeat;
        display: block;
        margin: 0 auto;
        position: relative;
    }

    @media (max-width: 768px) {
        .top-banner {
            height: 180px;
        }
    }

    header {
        background: var(--header-background);
        backdrop-filter: blur(15px);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 20px var(--shadow-color-light);
        transition: all 0.3s ease;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem 0;
    }

    .logo {
        font-family: 'Playfair Display', serif;
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .logo i {
        color: var(--secondary-color);
        font-size: 1.8rem;
    }

    .nav-links {
        display: flex;
        list-style: none;
        gap: 2.5rem;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        position: relative;
        padding: 8px 16px;
        border-radius: 25px;
    }

    .nav-links a:hover {
        color: var(--primary-color);
        background: var(--primary-color-transparent);
    }


    .hero {
        width: 100vw;
        max-width: 100%;
        background: var(--hero-gradient);
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        overflow: hidden;
        padding-top: 5rem;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        width: 100vw;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 2.5rem;
        box-sizing: border-box;
    }

    .hero-text {
        width: 100vw;
        max-width: 100%;
        text-align: center;
        animation: slideInLeft 1s ease-out;
        margin-bottom: 1rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        box-sizing: border-box;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        animation: slideInRight 1s ease-out;
        width: 100vw;
        max-width: 100%;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hero h1 {
        font-family: 'Playfair Display', serif;
        font-size: 3.5rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero .tagline {
        font-size: 1.3rem;
        color: var(--text-color-light);
        margin-bottom: 2rem;
        font-weight: 400;
    }

    .hero .description {
        font-size: 1.1rem;
        color: var(--text-color-lighter);
        margin-bottom: 3rem;
        line-height: 1.7;
    }

    .hero-visual-content i {
        font-size: 6rem;
        color: var(--primary-color);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    .cta-group {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 16px 32px;
        text-decoration: none;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .btn-primary {
        background: var(--primary-color);
        color: var(--white);
        box-shadow: 0 4px 15px var(--primary-shadow-color);
    }

    .btn-primary:hover {
        background: var(--primary-color-darker);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--primary-shadow-color-darker);
    }

    .btn-outline {
        background: transparent;
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .btn-outline:hover {
        background: var(--primary-color);
        color: var(--white);
    }

    .section {
        padding: 100px 0;
    }

    .section-warm {
        background: var(--background-warm-gradient);
    }

    .section-header {
        text-align: center;
        margin-bottom: 4rem;
    }

    .section-title {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
        color: var(--text-color-lighter);
        max-width: 700px;
        margin: 0 auto;
    }

    .churches-showcase {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 3rem;
        margin-top: 4rem;
    }

    .church-feature {
        background: var(--white);
        border-radius: 20px;
        padding: 3rem;
        box-shadow: 0 10px 40px var(--shadow-color-dark);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }

    .church-feature::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

    .church-feature:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px var(--shadow-color-darker);
    }

    .church-header {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .church-icon-large {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px var(--primary-shadow-color);
    }

    .church-icon-large i {
        font-size: 2.5rem;
        color: var(--white);
    }

    .church-info h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 0.5rem;
    }

    .church-location {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-color-lighter);
        font-size: 1rem;
    }

    .church-description {
        color: var(--text-color-light);
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .church-features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .feature-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: var(--background-color-alt);
        border-radius: 10px;
        font-size: 0.95rem;
        color: var(--text-color-light);
    }

    .feature-item i {
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .welcome-section {
        background: var(--white);
        text-align: center;
    }

    .welcome-card {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: var(--white);
        padding: 4rem;
        border-radius: 25px;
        max-width: 900px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        display: block;
    }

    .welcome-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
    }

    .welcome-card-flex {
        display: flex;
        align-items: flex-start;
        gap: 2.5rem;
        justify-content: center;
    }

    .welcome-image {
        flex: 0 0 200px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        height: auto;
    }

    .welcome-image img {
        width: 180px;
        height: 220px;
        object-fit: cover;
        border-radius: 24px;
        border: 6px solid var(--secondary-color);
        box-shadow: 0 4px 20px var(--shadow-color-dark);
        background: var(--white);
        margin: 0 auto;
        display: block;
    }

    @keyframes float {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .welcome-content {
        position: relative;
        z-index: 2;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .welcome-quote {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-style: italic;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .welcome-author {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .welcome-message {
        font-size: 1.1rem;
        line-height: 1.7;
        opacity: 0.95;
        color: var(--white);
        text-align: left;
        width: 100%;
        padding-left: 0;
        margin: 0;
    }
    }

    .contact-section {
        background: var(--background-color-alt);
    }

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    .contact-card {
        background: var(--white);
        padding: 2.5rem;
        border-radius: 15px;
        box-shadow: 0 5px 20px var(--shadow-color-light);
        transition: all 0.3s ease;
        border-left: 4px solid var(--primary-color);
        max-width: 100%;
        box-sizing: border-box;
        /* allow the grid item to shrink on small viewports to avoid clipping */
        min-width: 0;
        width: 100%;
    }

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

    .contact-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-icon i {
        color: var(--white);
        font-size: 1.3rem;
    }

    .contact-card h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-color);
    }

    .contact-details {
        color: var(--text-color-light);
        line-height: 1.6;
        word-wrap: break-word;
    }

    .newsletter-highlight {
        background: linear-gradient(135deg, var(--secondary-color), #f6ad55);
        color: var(--white);
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
        margin: 2rem 0;
    }

    .newsletter-highlight h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    footer {
        background: var(--footer-background);
        color: var(--white);
        padding: 3rem 0 2rem;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: var(--secondary-color);
    }

    .footer-section p, .footer-section a {
        color: var(--footer-text-color);
        text-decoration: none;
        line-height: 1.6;
    }

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

    .footer-bottom {
        border-top: 1px solid var(--text-color-light);
        padding-top: 2rem;
        text-align: center;
        color: var(--footer-text-color);
    }

    @media (max-width: 768px) {
        .nav-links { display: none; }
        .hero { padding-top: 6rem !important; }
        .hero-content { width: 100vw; max-width: 100%; padding: 2rem 1.2rem; box-sizing: border-box; }
        .hero-text { padding-left: 1.2rem; padding-right: 1.2rem; box-sizing: border-box; }
        .hero h1 { font-size: 2.5rem; }
        .churches-showcase { grid-template-columns: 1fr; }
        .features-showcase { grid-template-columns: 1fr; }
        .contact-grid { grid-template-columns: 1fr; }
        .contact-card {
            padding: 1.2rem;
            max-width: 98vw;
            box-sizing: border-box;
        }
        .welcome-card-flex {
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }
        .welcome-image {
            margin: 0 auto 1rem auto;
            justify-content: center;
            align-items: center;
            width: 100%;
        }
        .welcome-image img {
            margin: 0 auto;
            display: block;
        }
        .welcome-content {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .cta-group { justify-content: center; }
        .hero-visual { order: -1; margin-bottom: 2rem; width: 100vw; max-width: 100%; }
        .hero-visual-content { width: 200px; height: 200px; }
        .hero-visual-content i { font-size: 4rem; }
        .hero-text { width: 100vw; max-width: 100%; }
    }

    /* Safeguarding / contact link styles — match site design */
    .contact-section a,
    .contact-details a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.18s ease, text-decoration 0.18s ease;
    }
    .contact-section a:hover,
    .contact-details a:hover {
        color: var(--primary-color-darker);
        text-decoration: underline;
    }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80%;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInFromLeft 0.3s ease-in-out;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Newsletter list styles */
.newsletter-list ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.newsletter-list li {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--background-color-alt);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.newsletter-list li:hover {
    background: var(--primary-color-transparent);
    transform: translateX(4px);
}

.newsletter-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
}

.newsletter-list a:hover {
    color: var(--primary-color);
}
