:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-light: #FFFFFF;
    --text-color-dark: #333333;
    --header-height-desktop: 60px;
    --header-height-mobile-top: 60px;
    --mobile-buttons-height: 60px; /* Adjusted for padding and button height */
    --hamburger-width: 40px;
}

/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color-dark);
    padding-top: var(--header-height-desktop); /* Default desktop padding */
    transition: padding-top 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
}

/* Site Header - Fixed Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    min-height: var(--header-height-desktop);
    display: flex;
    flex-direction: column; /* Default to column for easier mobile adaptation, will be overridden for desktop */
    align-items: center;
    justify-content: center;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    min-height: var(--header-height-desktop);
    box-sizing: border-box;
}

.logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    padding: 0;
    display: block; /* Ensure logo is always visible */
}

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

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

.main-nav li a {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.desktop-nav-buttons {
    display: flex;
    align-items: center;
}

.header-main-row-spacer {
    display: none; /* Hidden on desktop */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-left: 10px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background-color: #e6c200;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #FF6347; /* Tomato */
    color: var(--text-color-light);
}

.btn-secondary:hover {
    background-color: #e55338;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
    background-color: #00BFFF; /* Deep Sky Blue */
    color: var(--text-color-light);
}

.btn-tertiary:hover {
    background-color: #00a0e0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: var(--hamburger-width);
    height: var(--hamburger-width);
    position: relative;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Buttons Area (Hidden on Desktop) */
.mobile-buttons-area {
    display: none; /* Hidden by default on desktop */
    width: 100%;
    background-color: #7a0000; /* Slightly darker than secondary */
    padding: 10px 20px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 999; /* Below main nav but above content */
}

/* 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.5);
    z-index: 998;
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

/* Site Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 40px 20px;
    font-size: 14px;
    line-height: 1.8;
}

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

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

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

.footer-column h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 5px;
}

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

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

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

/* Desktop specific overrides for flex-direction */
@media (min-width: 769px) {
    .site-header {
        flex-direction: row;
        min-height: var(--header-height-desktop);
    }

    .header-main-row {
        padding: 0 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: calc(var(--header-height-mobile-top) + var(--mobile-buttons-height));
    }

    .site-header {
        flex-direction: column; /* Stack header elements vertically */
        align-items: flex-start;
        min-height: auto; /* Allow height to adjust */
    }

    .header-main-row {
        padding: 10px 15px;
        justify-content: space-between;
        min-height: var(--header-height-mobile-top);
    }

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

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

    .header-main-row-spacer {
        display: block;
        width: var(--hamburger-width); /* Match hamburger width for centering */
        order: 3;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding-top: var(--header-height-mobile-top);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active {
        display: flex; /* Crucial for displaying the menu */
        transform: translateX(0);
    }

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

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

    .main-nav li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }

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

    .mobile-buttons-area {
        display: flex; /* Show mobile buttons area */
    }

    .mobile-buttons-area .btn {
        flex: 1;
        margin: 0 5px;
        padding: 8px 10px;
        font-size: 14px;
    }

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

    .footer-column {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .footer-column h3::after {
        margin: 5px auto 0;
    }
}
