/* Global styles (Desktop first) */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 70px; /* Default padding for desktop header height, adjusted by JS */
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #2F4F4F; /* Secondary color for header background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-height: 70px; /* Minimum height for desktop header */
    display: flex; /* Use flex for main header content */
    flex-direction: column; /* Default to column, overridden for desktop content */
}

.header-desktop-content {
    display: flex; /* Desktop layout: Logo, Nav, Buttons in a row */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-family: 'Arial Black', Gadget, sans-serif; /* Creative font */
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Primary color for logo */
    text-decoration: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    display: block; /* Ensure logo is always block/inline-block */
}

.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; /* Spacing between desktop nav items */
}

.desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #FFD700; /* Primary color on hover/active */
}

.desktop-nav-buttons {
    display: flex;
    gap: 10px;
}

/* Common button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px; /* Rounded buttons */
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Button shadow */
}

.btn-primary {
    background-image: linear-gradient(45deg, #FFD700, #FFA500); /* Gold to Orange gradient */
    color: #2F4F4F; /* Dark text for contrast */
}

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

.btn-secondary {
    background-color: #4682B4; /* SteelBlue, contrasting with primary */
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5F9EA0; /* CadetBlue */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Hide mobile elements on desktop */
.mobile-header-top,
.mobile-only-logo,
.mobile-button-area,
.main-nav, /* This is the mobile nav */
.hamburger-menu,
.mobile-menu-overlay {
    display: none;
}

/* Footer styles */
.site-footer {
    background-color: #2F4F4F; /* Secondary color for footer */
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
}

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

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

.footer-col h3 {
    color: #FFD700; /* Primary color for footer headings */
    margin-bottom: 15px;
    font-size: 18px;
}

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

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

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FFD700;
}

.footer-about p {
    color: #ccc;
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Hide desktop elements on mobile */
    .header-desktop-content,
    .desktop-nav,
    .desktop-nav-buttons {
        display: none;
    }

    /* Show mobile elements */
    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background-color: #2F4F4F;
        width: 100%;
        box-sizing: border-box; /* Include padding in width */
    }

    .mobile-only-logo {
        display: block; /* Show mobile logo */
        flex: 1; /* Take available space */
        text-align: center; /* Center the logo */
        margin: 0;
        font-size: 24px; /* Adjust font size for mobile */
        color: #FFD700;
    }

    .mobile-header-spacer {
        width: 40px; /* Balance hamburger button space */
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002; /* Ensure hamburger is above overlay */
    }

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

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

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

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

    .mobile-button-area {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: #2F4F4F; /* Same as header background */
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-button-area .btn {
        flex: 1; /* Make buttons take equal width */
        max-width: 150px; /* Limit button width on smaller screens */
        padding: 8px 15px; /* Adjust padding for mobile buttons */
        font-size: 14px;
    }

    /* Mobile Navigation Menu */
    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 70%; /* Menu width */
        height: 100%;
        background-color: #3C5B6F; /* Slightly different background for mobile menu */
        flex-direction: column;
        padding-top: 80px; /* Space for hamburger/logo area */
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        z-index: 1001; /* Above content, below hamburger */
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease;
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

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

    .main-nav li a {
        color: #fff;
        padding: 15px 20px;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: background-color 0.3s ease;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .main-nav li a:hover {
        background-color: #4F798A;
    }

    .mobile-menu-overlay {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5); /* Semi-transparent overlay */
        z-index: 999; /* Below menu, above content */
    }

    .mobile-menu-overlay.active {
        display: block; /* Show when active */
    }

    body.no-scroll {
        overflow: hidden;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

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