/* General Reset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offsets the fixed header height so content isn't hidden */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Layout */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: transparent;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

/* Header Scrolled/Hover State */
.site-header.scrolled,
.site-header:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Left: Logo */
.header-left {
    flex: 0 0 auto;
}

.logo-img {
    height: 50px; /* Adjust based on actual logo aspect ratio */
    width: auto;
    display: block;
}

/* Hide mobile logo on desktop */
.mobile-logo {
    display: none;
}

/* Hide mobile menu logo on desktop */
.mobile-menu-logo {
    display: none;
}

/* Center: Navigation */
.header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

/* Top-level Navigation Links */
.main-nav > a,
.dropdown > a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin: 0 15px;
    transition: color 0.3s ease;
    display: inline-block;
}

.site-header.scrolled .main-nav > a,
.site-header.scrolled .dropdown > a,
.site-header:hover .main-nav > a,
.site-header:hover .dropdown > a {
    color: #333;
}

.main-nav > a:hover,
.dropdown > a:hover {
    color: #0056b3;
}

/* Hide mobile donate button on desktop */
.main-nav > a.mobile-donate-btn {
    display: none;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 0;
    border-top: 3px solid #D81B60;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #D81B60;
}

/* Ensure the parent link in dropdown maintains hover state if needed */
.dropdown:hover > a {
    color: #0056b3;
}

/* Dropdown Toggle Arrow (Hidden on Desktop) */
.dropdown-toggle {
    display: none;
}

/* Right: Donate Button */
.header-right {
    flex: 0 0 auto;
}

.donate-btn {
    background-color: #D81B60;
    color: white;
    padding: 10px 20px;
    margin-right: 50px;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.donate-btn:hover {
    background-color: #001A72;
}

/* Footer Styles */
.site-footer {
    width: 100%;
    background-color: #ffffff;
    color: #333;
}

/* Tier 1: Lead Generation Block */
.footer-newsletter {
    padding: 80px 20px 60px;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.2rem;
    color: #222;
    margin-top: 0;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.subscribe-form input[type="email"] {
    flex: 1;
    max-width: 400px;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    background-color: #f0f0f0;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #D81B60;
}

.btn-subscribe {
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    background-color: #D81B60;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #001A72;
    transform: translateY(-2px);
}

/* Tier 2: Visual Hero Banner */
.footer-visual-banner {
    padding: 0 20px 60px;
    display: flex;
    justify-content: center;
}

.banner-image-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.banner-image-container img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Archivo Black', sans-serif;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
    max-width: 80%;
    text-align: left;
    line-height: 1.2;
}

/* Tier 3: Minimalist Footer */
.footer-minimal {
    background-color: #f8f9fa;
    padding: 50px 20px 40px;
    text-align: center;
}

.footer-brand {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.footer-legal {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.8;
    font-weight: 400;
}

.footer-legal p {
    margin: 4px 0;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 2000;
    margin-left: 15px;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.site-header.scrolled .hamburger .bar,
.site-header:hover .hamburger .bar {
    background-color: #333;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .site-header {
        justify-content: center;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .header-center {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.85); /* Half-transparent */
        backdrop-filter: blur(10px); /* Blur effect */
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1500;
        overflow-y: auto;
    }

    .header-center.active {
        right: 0; /* Slide in */
    }

    .mobile-menu-logo {
        display: block;
        height: 50px; /* Match standard logo height */
        width: auto;
        margin: 0 auto 30px auto; /* Centers the image and adds bottom spacing */
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav > a, 
    .dropdown {
        width: 100%;
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
    }

    .main-nav > a,
    .dropdown > a {
        color: #333;
    }

    .dropdown {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .dropdown-content {
        position: relative;
        box-shadow: none;
        border-top: none;
        background-color: transparent;
        padding-left: 20px;
        width: 100%;
        margin-top: 0;
        top: 0;
        left: 0;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Mobile Dropdown Toggles */
    .dropdown-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: transform 0.3s ease;
        line-height: 1;
    }

    .dropdown.active .dropdown-toggle {
        transform: rotate(90deg);
    }

    /* Override hover behavior on mobile */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Hide desktop donate button on mobile */
    .header-right {
        display: none;
    }

    /* Show and style mobile donate button inside nav */
    .main-nav > a.mobile-donate-btn {
        display: block;
        margin: 20px;
        width: calc(100% - 40px);
        text-align: center;
        background-color: #D81B60;
        color: #ffffff;
        border-radius: 4px;
        border-bottom: none;
    }

    .main-nav > a.mobile-donate-btn:hover {
        color: #ffffff;
        background-color: #7a2259;
    }

    /* Mobile Footer Adjustments */
    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }

    .subscribe-form input[type="email"],
    .btn-subscribe {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .banner-caption {
        font-size: 1.4rem;
        bottom: 20px;
        left: 20px;
    }
}