:root {
    --primary-color: #0A2E50;
    --accent-color: #FFD700;
    --text-color-light: #f0f0f0;
    --text-color-dark: #333;
    --header-height-desktop: 70px;
    --header-height-mobile-top: 60px;
    --mobile-buttons-height: 50px;
}

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

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

body.no-scroll {
    overflow: hidden;
}

/* Site Header - Fixed, Desktop First */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    min-height: var(--header-height-desktop);
    display: block; /* Default block, flex properties applied to .header-top-row */
    padding: 0;
}

.header-top-row {
    display: flex; /* Desktop: horizontal layout */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    min-height: var(--header-height-desktop);
}

.site-header .logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    margin-right: 20px;
    white-space: nowrap;
}

.site-header .main-nav {
    flex: 1; /* Take available space */
    display: flex; /* Desktop: horizontal */
    justify-content: center;
}

.site-header .main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.site-header .main-nav a {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
    border-radius: 5px;
}

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

.header-buttons.desktop-only {
    display: flex; /* Desktop: visible */
    gap: 10px;
    margin-left: 20px; /* Space from nav */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.btn-primary:hover {
    background-color: #FFC107; /* Slightly darker accent */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

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

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

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

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

.hamburger-menu.mobile-only .bar:nth-child(2) {
    margin: 6px 0;
}

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

.mobile-menu-overlay {
    display: none; /* Hidden by default, shown on mobile by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

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

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

.site-footer .footer-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.site-footer p {
    font-size: 0.9em;
    margin-bottom: 8px;
}

.site-footer h3 {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

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

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

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --header-height-mobile-top: 60px;
        --mobile-buttons-height: 60px; /* Adjusted for better spacing */
    }

    body {
        padding-top: calc(var(--header-height-mobile-top) + var(--mobile-buttons-height));
    }

    .site-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .header-top-row {
        justify-content: space-between; /* Hamburger left, logo center */
        width: 100%;
        padding: 10px 20px;
        min-height: var(--header-height-mobile-top);
    }

    .site-header .logo {
        flex: 1;
        text-align: center;
        margin: 0;
        order: 2; /* Logo centered */
        font-size: 1.8em;
    }

    .site-header .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0; /* Will be adjusted by JS for padding-top */
        left: 0;
        width: 75%; /* Slide in from left */
        height: 100vh;
        background-color: var(--primary-color);
        padding-top: var(--header-height-mobile-top); /* Push content below fixed header part */
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        justify-content: flex-start;
        align-items: flex-start;
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

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

    .site-header .main-nav a {
        padding: 12px 20px;
        width: 100%;
        text-align: left;
    }

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

    .hamburger-menu.mobile-only {
        display: flex; /* Show hamburger */
        flex-direction: column;
        justify-content: space-around;
        order: 1; /* Hamburger to the left */
        width: 28px;
        height: 28px;
        margin-right: auto; /* Push logo to center */
    }

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

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

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

    .mobile-buttons-area.mobile-only {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px 20px;
        background-color: var(--primary-color); /* Match header background */
        gap: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        min-height: var(--mobile-buttons-height);
        z-index: 990; /* Below hamburger and main nav */
    }

    .mobile-menu-overlay {
        display: block; /* Always present for JS to toggle visibility */
    }

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

    .site-footer .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .site-footer .footer-logo {
        margin: 0 auto 15px;
    }

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