/* Global Styles & Desktop First */
:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --button-gradient-start: #FFD700;
    --button-gradient-end: #FFA500;
    --button-hover-gradient-start: #FFEA40;
    --button-hover-gradient-end: #FFB520;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px; /* Placeholder for desktop header height */
    transition: padding-top 0.3s ease;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 70px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Default to column, desktop overrides to row for header-container */
    justify-content: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Ensure logo is visible */
    order: 0;
}

.main-nav {
    flex: 1;
    display: flex; /* Desktop: flex */
    justify-content: center;
    padding: 0 20px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(45deg, var(--button-gradient-start), var(--button-gradient-end));
    color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--button-hover-gradient-start), var(--button-hover-gradient-end));
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: var(--button-hover-gradient-start);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.hamburger-menu, .mobile-buttons-area, .mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 20px;
    font-size: 0.9em;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.footer-column p, .footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: calc(60px + 60px); /* Top bar (60px) + mobile buttons area (60px) */
    }

    .site-header {
        flex-direction: column;
        min-height: unset;
        padding-bottom: 0;
    }

    .header-container {
        padding: 10px 15px;
        justify-content: space-between;
        width: 100%;
    }

    .logo {
        font-size: 1.8em;
        flex-grow: 1;
        text-align: center;
        order: 1;
        display: block; /* Ensure logo is visible on mobile */
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        order: 0;
        position: relative;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        height: 100%;
        background-color: var(--primary-color);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease;
        z-index: 1001;
        padding-top: 80px; /* Space for logo/hamburger area */
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex; /* Crucial: make it visible */
        transform: translateX(0); /* Slide into view */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }

    .main-nav a:hover, .main-nav a.active {
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

    .mobile-buttons-area {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: var(--primary-color);
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 990; /* Below main nav, above content */
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

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

    .footer-column {
        min-width: unset;
        width: 100%;
    }

    .footer-column ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-nav li {
        margin: 0;
    }
}
