:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-color: #E2E8F0;
    --accent-color: #38A169;
    --bg-dark: #1A202C;
    --bg-light: #2D3748;
    --btn-primary-bg: #FFD700;
    --btn-primary-text: #1A202C;
    --btn-secondary-bg: #4A5568;
    --btn-secondary-text: #E2E8F0;
    --btn-tertiary-bg: #38A169;
    --btn-tertiary-text: #E2E8F0;
    --header-height-desktop: 70px;
    --header-height-mobile-top: 60px;
    --header-height-mobile-buttons: 60px;
    --header-total-height: calc(var(--header-height-mobile-top) + var(--header-height-mobile-buttons));
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-dark);
    padding-top: var(--header-total-height); /* Dynamic padding set by JS */
}

/* =======================================
   Header Styles (Desktop First) 
   ======================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: var(--header-height-desktop);
    display: flex;
    flex-direction: column; /* Default for mobile, overridden for desktop */
    justify-content: center;
    align-items: center;
}

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

.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    display: block; /* Ensure logo is always visible */
}

.main-nav {
    flex: 1; /* Allow nav to take available space on desktop */
    display: flex; /* Desktop: visible */
    flex-direction: row; /* Desktop: horizontal */
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

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

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

.header-buttons-desktop {
    display: flex; /* Desktop: visible */
    gap: 15px;
}

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

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background-color: #E5C100; /* Slightly darker gold */
}

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

.btn-secondary:hover {
    background-color: #3E4656; /* Slightly darker grey */
}

.btn-tertiary {
    background-color: var(--btn-tertiary-bg);
    color: var(--btn-tertiary-text);
}

.btn-tertiary:hover {
    background-color: #2F855A; /* Slightly darker green */
}

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

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-about p {
    font-size: 0.9em;
    line-height: 1.8;
}

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

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

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

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

.footer-contact a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--bg-dark);
    font-size: 0.85em;
    color: #A0AEC0;
}

/* =======================================
   Media Queries (Mobile Styles) 
   ======================================= */
@media (min-width: 769px) {
    .site-header {
        flex-direction: row; /* Desktop: horizontal layout for header-top */
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    .header-top {
        min-height: var(--header-height-desktop);
        padding: 0;
    }
    .logo {
        order: -1; /* Place logo to the far left */
        margin-right: 20px;
    }
    .main-nav {
        order: 0; /* Place nav in the middle */
    }
    .header-buttons-desktop {
        order: 1; /* Place buttons to the far right */
    }
    .header-buttons-mobile {
        display: none; /* Hide mobile buttons on desktop */
    }
    body {
        padding-top: var(--header-height-desktop);
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* Mobile: vertical layout */
        align-items: stretch;
        min-height: unset;
    }

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

    .hamburger-menu {
        display: block;
        order: -1; /* Place hamburger to the far left */
    }

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

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

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

    .logo {
        flex-grow: 1; /* Allow logo to take remaining space */
        text-align: center;
        padding: 0;
        font-size: 2em;
    }

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

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        background-color: var(--bg-light);
        padding-top: var(--header-height-mobile-top);
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease-out;
        z-index: 1000;
        align-items: flex-start;
    }

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

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

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--bg-dark);
    }

    .main-nav a {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .header-buttons-mobile {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: var(--bg-dark);
        min-height: var(--header-height-mobile-buttons);
        flex-wrap: wrap;
        z-index: 999; /* Ensure buttons are below hamburger but above content */
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 998;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

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

    /* Footer adjustments for mobile */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-nav ul {
        padding-left: 0;
    }
}

/* Ensure body padding-top is correctly applied */
body.no-scroll {
    overflow: hidden;
}