/* Global Styles & Desktop First */
:root {
    --primary-color: #1A2E47;
    --secondary-color: #FFD700;
    --text-color: #f0f0f0;
    --dark-text-color: #333;
    --button-hover-color: #e6c200;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: 80px; /* Default padding for desktop fixed header */
    line-height: 1.6;
    color: var(--dark-text-color);
    scroll-behavior: smooth;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 60px;
    display: flex;
    flex-direction: column; /* Stack header-main-row and mobile-header-buttons on mobile, desktop overrides for header-main-row */
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

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

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Desktop horizontal */
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.desktop-nav-buttons {
    display: flex;
    gap: 15px;
    order: 3;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.btn-primary:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background-color: #4CAF50; /* A vibrant green */
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

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

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

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 130px; /* Adjust padding for fixed header (approx 60px) + mobile buttons (approx 50px) + spacing */
    }

    .site-header {
        flex-direction: column; /* Stack header-main-row and mobile-header-buttons */
        padding: 10px 15px;
        min-height: auto;
    }

    .header-main-row {
        justify-content: space-between;
        margin-bottom: 10px; /* Space between top row and mobile buttons */
    }

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

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

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

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

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

    .logo {
        flex: 1;
        text-align: center;
        order: 2;
        font-size: 1.8em;
    }

    .desktop-nav-buttons {
        display: none; /* Hide desktop buttons */
    }

    .mobile-header-buttons {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding-bottom: 5px;
        z-index: 998; /* Below overlay */
    }

    .mobile-header-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .main-nav {
        display: none; /* Hidden by default for mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS to be below header-main-row */
        left: 0;
        width: 70%;
        height: 100vh; /* Will be adjusted by JS to calc(100vh - header-main-row-height) */
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001; /* Above overlay */
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-bottom: 30px;
    }

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

    .main-nav a {
        display: block;
        padding: 10px 0;
        font-size: 1.2em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav li:last-child a {
        border-bottom: none;
    }

    .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; /* Below mobile menu, above header content */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block; /* Show when active */
        opacity: 1;
    }

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

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

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Utility for no scroll */
body.no-scroll {
    overflow: hidden;
}
