:root {
    --primary-color: #0A2E50;
    --secondary-color: #1A4B7D;
    --accent-color: #FFD700;
    --text-color: #ffffff;
    --text-color-dark: #cccccc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #121212;
}

/* ===================================== */
/* Header - Desktop First Styles        */
/* ===================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 60px;
    display: flex;
    flex-direction: column;
}

.header-primary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 60px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Ensure logo is always visible */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static; /* Desktop default */
}

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

.main-nav li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav li a:hover {
    color: var(--accent-color);
    background-color: var(--secondary-color);
    border-radius: 5px;
}

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

.header-buttons-mobile-row {
    display: none; /* Hidden on desktop */
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.btn-primary:hover {
    background-color: #FFC107;
    border-color: #FFC107;
}

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

.btn-secondary:hover {
    background-color: #123A5F;
    border-color: #123A5F;
}

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

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

.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    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(--secondary-color);
    color: var(--text-color-dark);
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li a {
    color: var(--text-color-dark);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color-dark);
}

/* ===================================== */
/* Mobile Styles - Overrides Desktop     */
/* ===================================== */
@media (max-width: 768px) {
    body {
        /* Calculate padding-top based on mobile header height */
        /* header-primary-row (60px) + header-buttons-mobile-row (approx 50px) = 110px */
        padding-top: 110px;
    }

    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-primary-row {
        justify-content: space-between;
        padding: 10px 15px;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 24px;
        display: block; /* Ensure logo is always visible */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: -1;
        margin-left: 0;
    }

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

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

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

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; /* Slide-out menu width */
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 80px; /* Space for header in slide-out */
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    }

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

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

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

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

    .main-nav li a {
        padding: 15px 20px;
        text-align: left;
        width: 100%;
    }

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

    .header-buttons-mobile-row {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 8px;
        padding: 10px 15px;
        background-color: var(--secondary-color);
        min-height: 50px;
    }

    .header-buttons-mobile-row .btn {
        padding: 8px 12px;
        font-size: 14px;
        flex-grow: 1;
        text-align: center;
    }

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

    .footer-section {
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .footer-nav {
        padding: 0;
    }

    .footer-nav li a {
        padding: 5px 0;
    }

    body.no-scroll {
        overflow: hidden;
    }
}