/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #fdf8f9, #eaf4ff);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

#hamburger {
    font-size: 2rem;
    cursor: pointer;
    color: white;
}


#hamburger {
    display: none;
}

#nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #022242;
    padding: 0.5rem 2rem;
    /* Use fixed padding instead of percentage */
    position: fixed;
    width: 100%;
    /* Ensures it takes up the full viewport width */
    max-width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    min-height: 7rem;
    box-sizing: border-box;
}


#nav-brand {

    display: flex;
    align-items: center;
    gap: 2rem;
    /* Space between logo and text */
}

/* Smaller Logo */
#nav-brand img {
    width: 4rem;
    /* Adjusted to fit better */
    height: auto;
}

/* Church Name Styling */
#nav-text {
    font-size: 2rem;
    /* Adjusted to fit navbar */

    font-family: 'Futura', sans-serif;


    white-space: nowrap;
    /* Prevents text from breaking */
    display: flex;
    align-items: center;


}

/* Nav Links */
#nav-list {
    font-family: 'Helvetica ', sans-serif;
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

#nav-list li a {
    /* color: rgb(211, 151, 0); */
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-family: 'Futura', sans-serif;
    /* font-weight: bold; */
    transition: color 0.3s ease;
    /* text-shadow: 1px 1px 18px #fefefe; */

}

#nav-list li a:hover,
#nav-list li a:focus {
    color: #871d38;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #871d38;
    padding: 1rem;
    list-style: none;
    top: 100%;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;

}

.dropdown-menu li {
    margin-bottom: 0.5rem;
}

.dropdown-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: block;
}

.dropdown-menu li a:hover {
    color: white;
}

/* Hero Section */
.about-hero {
    background: url("../images/2024%20Easter%202.jpg") center/cover no-repeat;
    min-height: 30rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    padding: 2rem;
    position: relative;
    padding-top: 10rem;
    overflow: hidden;
}

/* Hide elements initially */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* When the section becomes visible */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Intro Section */
.about-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 10%;
    background-color: white;
    gap: 2rem;
}

/* Alternate Section (Reverse Layout) */
.about-intro.reverse {
    flex-direction: row-reverse;
}

/* Content Styling */
.about-intro .content {
    flex: 1;
    padding: 2rem;
    max-width: 37.5rem;
    /* 600px → 37.5rem */
}

.about-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #022242;
}

.about-intro p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.7;
}

/* Image Styling */
.about-intro .image {
    flex: 1;
    text-align: center;
}

.about-intro .image img {
    width: 100%;
    max-height: 40rem;
    object-fit: cover;
    border-radius: 2rem;
    height: auto;
}

/* #tall-image {
    max-height: 30rem; 
    object-fit: cover; 
    border-radius: 1rem; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
} */

/* Footer */
#footer {
    background-color: #022242;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-family: 'Futura', sans-serif;
}

.footer-brand img {
    width: 3rem;
    height: auto;
}



.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin: 0.25rem 0;
    font-size: 1.2rem;
}

.footer-contact a {
    color: goldenrod;
    text-decoration: underline;
}

.footer-contact a:hover {
    color: white;
}

.footer-copy {
    font-size: 1rem;
    color: #aaa;
    margin-top: 1rem;
}

/* Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
    section {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    #hamburger {

        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        padding: 0.5rem 1rem;
        margin-left: auto;

    }

    #nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 7rem;
        /* match navbar height */
        left: 0;
        width: 100%;
        background-color: #161414d1;
        /* or any color you want */
        padding: 1rem 0;
        z-index: 999;
    }


    #nav-list.show {
        display: flex;
    }

    #nav-list.hidden {
        display: none;
    }

    /*  NAVBAR */
    #nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }


    #nav-brand {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    #nav-brand img {
        width: 3rem;
    }

    #nav-text {
        font-size: 1.2rem;
        text-align: center;
    }


    .dropdown-menu {
        position: static;
        max-height: 40vh;
        overflow-y: auto;
        width: 100%;
        background-color: #871d38;
        text-align: center;
        padding: 0.5rem 0;
    }

    /* HERO */
    .about-hero {
        font-size: 2rem;
        padding: 8rem 1rem 2rem;
        text-align: center;
    }

    /* ABOUT STACK */
    .about-intro {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .about-intro .content,
    .about-intro .image {
        max-width: 100%;
        padding: 0;
    }

    .about-intro h2 {
        font-size: 2rem;
        text-align: center;
    }

    .about-intro p {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: center;
    }

    .about-intro .image img {
        max-height: 25rem;
        border-radius: 1rem;
    }

    /* FOOTER RESPONSIVE */
    /*  FOOTER */
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 600px) {
    #nav-text {
        font-size: 1rem;
    }

    #nav-brand img {
        width: 2.5rem;
    }

    #nav-list {
        gap: 0.8rem;
    }

    .about-hero {
        font-size: 1.6rem;
        padding-top: 9rem;
    }

    .about-intro h2 {
        font-size: 1.7rem;
    }

    .about-intro p {
        font-size: 1rem;
    }

    .footer-brand img {
        width: 2.5rem;
    }

    .footer-contact p {
        font-size: 0.9rem;
    }
}