/* Global Reset & Base Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 0; /* Will be set dynamically by JS */
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Site Header - Fixed & Global (Desktop First) */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column; /* Stacks header-top and main-nav vertically */
    min-height: auto;
    background-color: transparent; /* Base, specific colors for sub-sections */
}

/* Header Top Area */
.header-top {
    background-color: #4B0082; /* Auxiliary color - dark violet */
    color: #FFD700; /* Main color - gold for text */
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Gold color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Ensure logo is visible on all devices */
    white-space: nowrap;
}

.desktop-nav-buttons {
    display: flex; /* Show on desktop */
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline */
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: #FF4500; /* Vibrant Orange for primary action */
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
    background-color: #FF6347;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #FFD700; /* Main color - Gold for secondary action */
    color: #4B0082; /* Dark violet text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-secondary:hover {
    background-color: #FFE873;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Main Navigation Area (Desktop) */
.main-nav {
    background-color: #FFD700; /* Main color - gold */
    padding: 15px 0;
    display: flex; /* Show on desktop */
    flex-direction: row; /* Horizontal on desktop */
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center menu items */
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 25px;
}

.nav-link {
    color: #4B0082; /* Dark violet text for nav links */
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #4B0082; /* Dark violet underline */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger menu (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above mobile-buttons-area */
    width: 30px;
    height: 24px;
    position: relative;
    margin-right: 15px;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700; /* Gold bars */
    border-radius: 2px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu .bar:last-child {
    margin-bottom: 0;
}

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

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

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

/* Mobile buttons area (Hidden on Desktop) */
.mobile-buttons-area {
    display: none; /* Hidden by default on desktop */
}

.mobile-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
    padding: 0 15px;
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    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 Styles */
.site-footer {
    background-color: #222222; /* Dark background */
    color: #f4f4f4;
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

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

.footer-col h3 {
    color: #FFD700; /* Gold heading */
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col p, .footer-col a {
    color: #bbb;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #FFD700; /* Gold on hover */
}

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

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

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .site-header {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow for mobile fixed header */
    }

    .header-top {
        padding: 10px 0;
        height: auto; /* Allow content to dictate height */
    }

    .header-container {
        width: 100%; /* Crucial: no max-width */
        max-width: none;
        padding: 0 15px;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        font-size: 24px;
        margin-left: -45px; /* Counteract hamburger width (30px) + margin (15px) */
    }

    .desktop-nav-buttons {
        display: none;
    }

    .hamburger-menu {
        display: block;
        order: -1;
        margin-right: 15px;
    }

    .mobile-buttons-area {
        display: block; /* Show mobile buttons area */
        background-color: #4B0082; /* Same as header-top */
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 990;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-buttons-container {
        width: 100%;
        max-width: none;
        padding: 0 15px;
        align-items: center; /* Center buttons vertically */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0; /* Will be set dynamically by JS */
        left: 0;
        width: 80%;
        height: 100%; /* Will be set dynamically by JS */
        background-color: #4B0082; /* Dark violet background for mobile menu */
        color: #FFD700;
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 4px 0 8px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
    }

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

    .nav-container {
        flex-direction: column;
        width: 100%;
        max-width: none;
        padding: 0 15px;
        align-items: flex-start;
        gap: 0;
    }

    .nav-link {
        color: #FFD700; /* Gold text for mobile nav links */
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-link::after {
        background-color: #FFD700; /* Gold underline for mobile */
    }

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

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

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-nav li {
        margin: 0;
    }
}

/* No-scroll class for body when menu is open */
body.no-scroll {
    overflow: hidden;
}
