/* General Body and Reset Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding-top: var(--header-total-height, 120px); /* Default padding-top, adjusted by JS */
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1a1a1a; /* Dark background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-height: 60px; /* Base height for desktop */
    display: flex;
    flex-direction: column; /* Stack elements inside header */
}

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

.site-header .header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 10px 0;
}

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Primary gold */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-right: 20px; /* Space between logo and nav on desktop */
}

.site-header .main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.site-header .main-nav li a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
    white-space: nowrap;
}

.site-header .main-nav li a:hover,
.site-header .main-nav li a.active {
    color: #1a1a1a;
    background-color: #FFD700;
    border-radius: 5px;
}

.site-header .header-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #FFD700; /* Primary gold */
    color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background-color: #8B0000; /* Secondary dark red */
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.4);
}

.btn-secondary:hover {
    background-color: #6a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 0, 0, 0.6);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002; /* Ensure it's above other elements */
}

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

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

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

.header-placeholder {
    display: none; /* Hidden by default on desktop */
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 40px 20px;
    font-size: 14px;
    margin-top: 50px;
}

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

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

.site-footer .footer-section h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.site-footer .footer-section p,
.site-footer .footer-section ul {
    line-height: 1.6;
    margin-bottom: 10px;
    list-style: none;
    padding: 0;
}

.site-footer .footer-nav li a {
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s;
}

.site-footer .footer-nav li a:hover {
    color: #FFD700;
}

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

.site-footer .footer-bottom p {
    color: #888888;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    transition: background-color 0.3s, transform 0.3s;
    z-index: 990;
}

.scroll-to-top:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-total-height, 120px); /* Adjusted for mobile header via JS */
    }

    .site-header {
        flex-direction: column;
        min-height: auto;
    }

    .site-header .header-container {
        flex-direction: column;
        padding: 0;
    }

    .site-header .header-top {
        width: 100%;
        justify-content: space-between;
        padding: 10px 20px;
        background-color: #1a1a1a;
        z-index: 1001;
        position: relative;
    }

    .site-header .logo {
        flex: 1;
        text-align: center;
        margin-right: 0;
    }

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

    .header-placeholder {
        display: block;
        width: 40px;
        height: 1px;
    }

    .site-header .main-nav {
        position: fixed;
        top: var(--header-total-height, 0px); /* JS will set this */
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-total-height, 0px));
        background-color: #1a1a1a;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        display: block;
        padding: 0;
    }

    .site-header .main-nav.active {
        transform: translateX(0);
    }

    .site-header .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .site-header .main-nav li {
        margin-bottom: 5px;
    }

    .site-header .main-nav li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
    }
    .site-header .main-nav li:last-child a {
        border-bottom: none;
    }

    .site-header .header-buttons {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        background-color: #222222;
        gap: 15px;
        z-index: 998;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .site-header .header-buttons .btn {
        flex: 1;
        max-width: 150px;
        padding: 12px 15px;
        font-size: 15px;
    }

    /* Footer mobile adjustments */
    .site-footer .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .site-footer .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }
    .site-footer .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .site-footer .footer-nav li {
        width: 45%; /* Two columns */
        text-align: left;
    }
    .site-footer .footer-nav li a {
        margin-bottom: 0;
    }
}