/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header Styles */
.site-header {
    background-color: #1A202C; /* Dark background */
    color: #FFFFFF;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 60px; /* Minimum height, adapts with content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Allows stacking for mobile buttons */
    justify-content: center;
    align-items: center;
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Constrain width for desktop */
    padding: 10px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Gold color for logo */
    text-decoration: none;
    padding: 5px 0;
    flex-shrink: 0;
}

.main-nav ul,
.mobile-nav-menu ul,
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: inline-block; /* For desktop main nav */
}

.main-nav ul li a,
.mobile-nav-menu ul li a,
.footer-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav ul li a:hover,
.mobile-nav-menu ul li a:hover,
.footer-nav ul li a:hover {
    color: #FFD700; /* Gold on hover */
    background-color: rgba(255, 255, 255, 0.1);
}

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

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #1A202C; /* Dark text */
    border: 2px solid #FFD700;
}

.btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #1A202C; /* Dark background */
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background-color: #0d1016; /* Darker */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hamburger menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 25px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Above mobile nav */
    flex-shrink: 0;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700; /* Gold lines */
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { top: 22px; }

.hamburger-menu.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile navigation menu (dropdown) */
.mobile-nav-menu {
    display: block; /* Always block for max-height transition */
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #1A202C; /* Dark background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Above header content, below hamburger active state */
    padding-bottom: 20px;
    box-sizing: border-box;
    max-height: 0; /* Start hidden */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-nav-menu ul li {
    display: block; /* Stack vertically */
    text-align: center;
}

.mobile-nav-menu ul li a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu ul li:last-child a {
    border-bottom: none;
}

/* Mobile buttons area */
.mobile-buttons-area {
    display: none; /* Hidden on desktop */
    width: 100%;
    max-width: 1200px;
    padding: 10px 0;
    gap: 10px;
    justify-content: center;
    background-color: #1A202C; /* Match header background */
    z-index: 999; /* Below header content, above main content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Footer styles */
.site-footer {
    background-color: #1A202C; /* Dark background */
    color: #FFFFFF;
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 50px; /* Space from content above */
}

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

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

.footer-column h3 {
    color: #FFD700; /* Gold heading */
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-column a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #FFD700;
}

.footer-nav ul li {
    display: block; /* Stack vertically */
}

.footer-nav ul li a {
    padding: 5px 0;
    display: inline-block; /* For proper padding and hover */
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #CCCCCC;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: auto; /* Let content define height */
        padding: 0 15px;
        flex-direction: column; /* Stack top row and buttons */
        align-items: stretch;
    }

    .header-main-row {
        padding: 10px 0;
        justify-content: space-between;
    }

    .desktop-only {
        display: none !important;
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
        order: -1; /* Move to left */
    }

    .logo {
        flex: 1; /* Allow logo to take available space */
        text-align: center; /* Center logo */
        margin: 0;
        font-size: 24px;
    }

    .mobile-buttons-area {
        display: flex; /* Show mobile buttons */
        padding: 10px 0;
        z-index: 999;
        position: relative; /* To make z-index work */
        background-color: #1A202C; /* Ensure solid background */
        width: 100%; /* Take full width */
        justify-content: center;
    }

    .site-header.menu-open .mobile-nav-menu {
        max-height: 300px; /* Sufficient height for menu items */
    }

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

    .footer-column {
        min-width: unset;
        width: 100%;
        max-width: 300px; /* Constrain width for better readability */
    }
}