/* ===========================
   GBC Website — Modern Theme
   Palette: Blue (#0B63D4), Red (#D62828), White (#fff)
   Font: Inter
   =========================== */

:root {
    --blue: #0B63D4;
    --red: #D62828;
    --white: #ffffff;
    --muted: #f6f8fb;
    --text: #0f1720;
    --radius: 12px;
    --container: 1200px;
    --glass: rgba(11, 99, 212, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 32, 0.06);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: var(--text);
    background: linear-gradient(180deg, var(--muted), #fff);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(15, 23, 32, 0.04);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand img {
    height: 56px;
    display: block;
}

/* Navigation */
.site-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all .18s ease;
    display: inline-block;
}

.site-nav a:hover {
    background: rgba(11, 99, 212, 0.06);
    color: var(--blue);
    transform: translateY(-2px);
}

/* Book appointment button */
.btn-appointment {
    background: linear-gradient(90deg, var(--red), #b71f1f);
    color: var(--white) !important;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.12);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

/* Hover effect - keep it solid */
.btn-appointment:hover {
    background: linear-gradient(90deg, #d32f2f, #b71f1f); /* slightly darker */
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(214, 40, 40, 0.2);
    opacity: 1; /* force full opacity */
}


/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
}

.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* dim overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-content .cta-group a {
    margin: 0 10px;
}

/* Bible quote box */
.bible-quote {
    background: rgba(255, 255, 255, 0.85);
    color: #002d62;
    display: inline-block;
    padding: 16px 24px;
    border-radius: 12px;
    font-style: italic;
    margin-bottom: 24px;
}

/* CTA buttons */
.hero-fullscreen .cta-group a {
    margin: 0 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-fullscreen h1 {
        font-size: 2.2rem;
    }

    .hero-fullscreen .lead {
        font-size: 1rem;
    }

    .bible-quote {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
}


/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: 0.85;
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 44px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: .3s ease;
}

.lightbox-close:hover {
    color: #ff3333;
}


/* Cards / Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .18s ease;
}

.card:hover {
    transform: translateY(-6px);
}

/* =============================
   Section Spacing & Layout Fix
   ============================= */

/* Add vertical spacing for all main sections */
section {
    padding: 60px 0;
    /* vertical breathing space */
}

/* Specific spacing between sections */
.section-ministry,
.section-latest,
.section-gallery,
.lead-pastor {
    margin-bottom: 60px;
}

/* Flex grid for sermons & events */
.flex-grid {
    display: flex;
    gap: 40px;
    /* increase space between cards */
    flex-wrap: wrap;
    justify-content: space-between;
}

.flex-grid>.card {
    flex: 1;
    min-width: 280px;
    /* prevent clustering on smaller screens */
}

/* Grid adjustments for ministries and gallery */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* slightly wider cards */
    gap: 32px;
    /* more space between cards */
}

/* Lead Pastor Rectangle Card */
.lead-pastor {
    padding: 80px 0;
    text-align: center;
}

.lead-pastor h2 {
    color: var(--blue);
    margin-bottom: 40px;
    font-size: 32px;
}

.pastor-card-rect {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap; /* responsive */
}

.pastor-image {
    flex: 0 0 300px; /* fixed width */
    height: 400px; /* taller rectangle */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.pastor-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the rectangle */
    border-radius: 20px;
}

/* Info section */
.pastor-info {
    flex: 1;
    text-align: left;
    color: #1e293b;
    line-height: 1.7;
}

.pastor-info h3 {
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 12px;
}

.pastor-info p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 980px) {
    .pastor-card-rect {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pastor-image {
        width: 80%;
        height: 350px;
    }

    .pastor-info {
        text-align: center;
    }
}


/* Page header */
.page-header {
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    color: var(--blue);
    margin-bottom: 8px;
}

.page-header p {
    color: #64748b;
    margin: 0;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 32, 0.06);
    background: #fff;
    font-size: 14px;
}

.contact-location {
    padding: 60px 0;
}

.contact-location h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--blue);
}

.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-grid > div {
    flex: 1;
    min-width: 280px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,32,0.08);
}

.contact-form button {
    width: 100%;
}

.location iframe {
    border-radius: 12px;
    margin-top: 12px;
}

/* Responsive */
@media(max-width:980px) {
    .contact-grid {
        flex-direction: column;
    }
}


/* Footer Social Icons */
.footer-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: #ffd700;
    /* gold accent */
    color: #002d62;
    /* dark blue text on hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1px solid rgba(11, 99, 212, 0.12);
}


/* Footer */
.site-footer {
    background: #0b1630;
    color: #dbeafe;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

/* Utilities */
.text-muted {
    color: #64748b;
}

/* Responsive */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-nav .nav-list {
        display: none;
        position: absolute;
        right: 18px;
        top: 76px;
        background: var(--white);
        flex-direction: column;
        padding: 12px;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

.mobile-menu-toggle { 
    display: block;
    position: absolute; /* position it relative to header */
    top: 20px;          /* adjust vertical position */
    right: 20px;        /* far right corner */
    background: transparent;
    border: none;
    font-size: 1.8rem;  /* size of the toggle icon */
    cursor: pointer;
    z-index: 1000;      /* ensure it’s above other elements */
}


    .site-nav .nav-list.active {
        display: flex;
    }
}

@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 28px;
    }

    .header-inner {
        padding: 10px 0;
    }
}