:root {
    --primary-color: #007BFF;
    --primary-dark-color: #0056b3;
    --secondary-color: #FFD700;
    --secondary-dark-color: #ccac00;
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --dark-bg: #222;
    --header-height-desktop: 80px;
    --mobile-header-bar-height: 60px;
    --mobile-buttons-area-height: 120px; /* Approx 3 buttons with padding */
    --mobile-total-header-height: calc(var(--mobile-header-bar-height) + var(--mobile-buttons-area-height));
}

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-height-desktop); /* Default padding for fixed header on desktop */
    color: var(--text-color);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* Header Styles - Desktop First */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    color: var(--light-text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: var(--header-height-desktop);
    display: flex;
    flex-direction: column; /* Default to column for safety, will be row for desktop content wrapper */
    align-items: center;
    justify-content: center;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    min-height: var(--header-height-desktop);
}

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 10px 0;
    display: block; /* Ensure visibility */
    white-space: nowrap;
}

.site-header .logo.mobile-logo-center {
    display: none; /* Hidden on desktop */
}

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

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

.main-nav ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 17px;
    padding: 10px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.desktop-nav-buttons {
    display: flex; /* Desktop: show buttons */
    gap: 15px;
    margin-left: auto; /* Push to right */
}

/* General Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    color: #fff;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #343a40);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #23272b);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark-color));
    color: var(--dark-bg);
}
.btn-tertiary:hover {
    background: linear-gradient(135deg, var(--secondary-dark-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile-specific elements (hidden on desktop) */
.mobile-header-bar,
.mobile-buttons-area,
.hamburger-menu,
.mobile-menu-overlay {
    display: none; /* Hidden by default on desktop */
}

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

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

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

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    body {
        padding-top: var(--mobile-total-header-height); /* Adjust padding for mobile fixed header + buttons */
    }

    .site-header {
        flex-direction: column; /* Stack elements vertically */
        min-height: auto; /* Allow height to be determined by content */
    }

    .header-content-wrapper {
        display: none; /* Hide desktop header content */
    }

    /* Mobile Header Bar */
    .mobile-header-bar {
        display: flex; /* Show mobile header bar */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: var(--mobile-header-bar-height);
        padding: 0 15px;
        background-color: var(--dark-bg);
        z-index: 1001; /* Above buttons */
    }

    .site-header .logo {
        display: none; /* Hide desktop logo */
    }
    .site-header .logo.mobile-logo-center {
        display: block; /* Show mobile logo */
        flex-grow: 1; /* Take available space */
        text-align: center; /* Center the logo */
        font-size: 24px;
        padding: 0;
    }

    .mobile-spacer {
        width: 40px; /* Balance hamburger space */
    }

    /* Mobile Buttons Area */
    .mobile-buttons-area {
        display: flex; /* Show mobile buttons */
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 10px 15px;
        background-color: var(--dark-bg);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 998; /* Below mobile-header-bar, above main content */
        gap: 10px;
    }
    .mobile-buttons-area .btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Hamburger Menu */
    .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;
    }

    .hamburger-menu:focus {
        outline: none;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: var(--light-text-color);
        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);
    }

    /* Mobile Navigation Menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 75%; /* Adjust as needed */
        height: 100%;
        background-color: var(--dark-bg);
        padding-top: var(--mobile-header-bar-height); /* Push menu content below mobile-header-bar */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease;
        z-index: 1001;
        display: none; /* Ensure it's hidden */
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav.active {
        transform: translateX(0); /* Show menu */
        display: flex; /* Ensure it's visible */
    }

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

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

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

    .main-nav ul li a {
        padding: 15px 25px;
        display: block;
        width: 100%;
        font-size: 18px;
    }

    /* Mobile Menu Overlay */
    .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 adjustments for mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 30px;
    }
    .footer-col:last-child {
        margin-bottom: 0;
    }

    .footer-col ul li a {
        display: inline-block; /* For better spacing in a column layout */
        margin: 5px 0;
    }
}