:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --text-color: #f0f0f0;
    --dark-text-color: #333;
    --light-bg: #f8f8f8;
}

/* Global body padding to prevent content from being hidden by fixed header */
body {
    padding-top: 6rem; /* Default for desktop, adjusted for mobile via JS or media query */
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
}

body.no-scroll {
    overflow: hidden;
}

/* Header Styles (Desktop First) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 4.5rem; /* Flexible height */
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

.site-header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    white-space: nowrap;
    order: 1;
    display: block; /* Ensure logo is always visible */
}

.site-header .main-nav {
    order: 2;
    flex-grow: 1;
    display: flex; /* Desktop: visible */
    justify-content: center;
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.site-header .main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.site-header .header-buttons {
    order: 3;
    display: flex; /* Desktop: visible */
    gap: 0.8rem;
    margin-left: auto; /* Push buttons to the right */
}

/* Button Base Styles */
.btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.btn-primary:hover {
    background-color: #e6b800;
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
    transform: translateY(-2px);
}

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

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

/* Hamburger Menu (Hidden by default on Desktop) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    background-color: var(--secondary-color);
    height: 3px;
    width: 100%;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hamburger-icon::before {
    content: '';
    top: -10px;
}

.hamburger-icon::after {
    content: '';
    top: 10px;
}

.hamburger-menu.active .hamburger-icon {
    background-color: transparent;
}

.hamburger-menu.active .hamburger-icon::before {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active .hamburger-icon::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Overlay (Hidden by default) */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-footer .footer-column {
    flex: 1;
    min-width: 250px;
}

.site-footer .footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.site-footer .footer-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.site-footer .footer-info .copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.site-footer .footer-column h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.site-footer .footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-nav li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-nav a,
.site-footer .footer-contact a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-contact a:hover {
    color: var(--secondary-color);
}

.site-footer .footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: calc(4.5rem + 4.5rem); /* Header min-height + button area height */
    }
    
    .site-header {
        flex-direction: column; /* Stack vertically */
        align-items: center;
        padding: 0.8rem 1rem;
        min-height: auto;
        box-sizing: border-box;
    }

    .site-header .hamburger-menu {
        display: block; /* Show hamburger */
        position: absolute;
        left: 1rem;
        top: 1.5rem;
        width: 30px;
        height: 30px;
    }

    .site-header .logo {
        order: 0; /* Place logo visually first */
        flex-grow: 1; /* Allow logo to take available space for centering */
        text-align: center;
        margin-right: 3rem; /* Offset for hamburger on left */
        padding: 0.5rem 0;
        width: auto; /* Reset width */
        display: block; /* Ensure logo is visible */
    }

    .site-header .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem 1.5rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease-out;
        z-index: 1000; /* Below overlay, above content */
    }

    .site-header .main-nav.active {
        display: flex; /* Show menu */
        transform: translateX(0); /* Slide into view */
    }

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

    .site-header .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header .main-nav li:last-child {
        border-bottom: none;
    }

    .site-header .main-nav a {
        padding: 1rem 0;
        display: block;
        width: 100%;
    }

    .site-header .header-buttons {
        order: 1; /* Position below logo on mobile */
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0.5rem;
    }

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

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

    .site-footer .footer-logo {
        margin-bottom: 0.5rem;
    }

    .site-footer .footer-column h3 {
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .site-footer .footer-info .copyright {
        margin-top: 1rem;
    }

    .site-footer .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

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