/* Global Styles & Desktop First */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #333;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    padding-top: 0; /* Will be set by JS for fixed header */
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff; /* Solid background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Floating effect */
    min-height: 70px;
    display: flex;
    flex-direction: row; /* Desktop default */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between; /* Logo left, buttons right */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    display: block; /* Ensure logo is always visible */
    order: 1; /* Logo on the left */
    padding: 0;
}

.main-nav {
    flex: 1; /* Occupy middle space */
    display: flex; /* Desktop default */
    flex-direction: row; /* Desktop default */
    justify-content: center;
    margin: 0 20px;
    order: 2; /* Menu in the middle */
}

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

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

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

.header-buttons {
    display: flex;
    gap: 10px;
    order: 3; /* Buttons on the right */
}

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

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

.btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

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

.btn-secondary:hover {
    background-color: #e0a800;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-tertiary {
    background-color: #6c757d;
    color: #fff;
}

.btn-tertiary:hover {
    background-color: #5a6268;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

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

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

.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);
}

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

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

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
}

.site-footer a {
    color: #ccc;
}

.site-footer a:hover {
    color: var(--primary-color);
}

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

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-col h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-info .footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

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

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

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

/* Mobile Styles */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* Stack elements vertically */
        align-items: stretch;
        padding: 0;
        min-height: unset;
    }

    .header-container {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Prevent wrapping in top bar */
    }

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

    .logo {
        order: 2; /* Centered */
        flex-grow: 1; /* Take available space */
        text-align: center;
        display: block; /* Ensure logo is visible */
    }

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

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; /* Menu width */
        height: 100vh;
        background-color: var(--light-bg);
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        flex-direction: column; /* Vertical menu items */
        padding-top: 60px; /* Space for logo/hamburger if needed, but JS will adjust */
        transform: translateX(-100%); /* Start off-screen to the left */
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        margin: 0;
    }

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

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

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

    .main-nav li a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        color: var(--text-color);
    }

    .mobile-buttons-area {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        padding: 10px 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999; /* Below hamburger/menu */
        width: 100%;
        box-sizing: border-box;
    }

    .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; /* Below menu, above content */
    }

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

    body.no-scroll {
        overflow: hidden;
    }

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

    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .footer-col h3 {
        margin-top: 20px;
    }
}
