/* Base styles */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-color: #E2E8F0;
    --accent-color: #2D3748;
    --button-bg-primary: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    --button-bg-secondary: #4A5568;
    --button-text-color: #1A202C;
    --header-height-desktop: 60px;
    --header-height-mobile: 120px;
}

* {
    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(--accent-color);
    padding-top: var(--header-height-desktop); /* Default desktop padding */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body.no-scroll {
    overflow: hidden;
}

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: var(--header-height-desktop);
    display: flex;
    flex-direction: column; /* Allows stacking header-main-row and mobile-buttons-row */
    justify-content: center;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--header-height-desktop);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    display: block;
}

/* Desktop Navigation */
.main-nav {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: static;
    background-color: transparent;
    transition: none;
}

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

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.desktop-nav-buttons {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.hamburger-menu,
.mobile-buttons-row,
.mobile-menu-overlay {
    display: none;
}

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

.btn-primary {
    background: var(--button-bg-primary);
    color: var(--button-text-color);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

.btn-secondary {
    background-color: var(--button-bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: #6A758D;
    transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

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

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

.footer-section p {
    line-height: 1.8;
    color: #CBD5E0;
}

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

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

.footer-nav a {
    color: #CBD5E0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--accent-color);
}

.copyright {
    color: #A0AEC0;
}

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

    .site-header {
        min-height: var(--header-height-mobile);
        flex-direction: column;
        align-items: stretch;
    }

    .header-main-row {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        padding: 0;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 1001;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

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

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

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

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

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        display: flex; /* Displayed when active */
        transform: translateX(0);
    }

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

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--accent-color);
    }

    .nav-list a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-radius: 0;
    }

    .nav-list a:hover, .nav-list a.active {
        background-color: var(--accent-color);
    }

    .mobile-buttons-row {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: var(--primary-color);
        border-top: 1px solid var(--accent-color);
        height: 60px;
        align-items: center;
    }

    .mobile-buttons-row .btn {
        flex: 1;
        max-width: 150px;
        padding: 8px 15px;
        font-size: 14px;
    }

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

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

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

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

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