/* General Body & Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    padding-top: 100px; /* To account for fixed header height */
}

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

/* Variables */
:root {
    --primary-color: #2C3E50;
    --accent-color: #F39C12;
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color); /* Solid background */
    box-shadow: 0 4px 12px var(--shadow-color); /* Floating effect */
    z-index: 1000; /* Ensure on top */
    min-height: 60px; /* Min height for content adaptation */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--light-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: var(--accent-color);
}

.site-header .desktop-nav-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow it to take available space */
    justify-content: flex-end; /* Push nav and buttons to right */
}

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

.site-header .main-nav ul li {
    margin-left: 25px;
}

.site-header .main-nav ul li a {
    color: var(--light-text-color);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.site-header .main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.site-header .main-nav ul li a:hover::after,
.site-header .main-nav ul li a.active::after {
    width: 100%;
}

.site-header .main-nav ul li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* No underline */
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-left: 10px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.6); /* Glow effect */
}

.btn-primary:hover {
    background-color: #e08e0b;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
}

.btn-secondary {
    background-color: #4CAF50; /* Example contrasting color */
    color: var(--light-text-color);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.btn-secondary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
}

/* Hamburger menu (mobile only) */
.hamburger-menu {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 30px;
    color: var(--light-text-color);
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Above other elements in mobile header */
}

.mobile-nav-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
    z-index: 999; /* Below hamburger, above content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    display: flex; /* Show when active */
    opacity: 1;
    visibility: visible;
}

.mobile-main-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-main-nav ul li {
    margin: 20px 0;
}

.mobile-main-nav ul li a {
    color: var(--light-text-color);
    font-size: 24px;
    font-weight: 600;
    padding: 10px 20px;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.mobile-main-nav ul li a:hover,
.mobile-main-nav ul li a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.header-buttons.mobile-only {
    display: none; /* Hidden by default */
    padding: 10px 20px;
    justify-content: center;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1000; /* Ensure on top, but below hamburger overlay */
}

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

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

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

.site-footer .footer-section h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
}

.site-footer .footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.site-footer .footer-section a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.site-footer .footer-section a:hover {
    color: var(--accent-color);
}

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

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

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

.site-footer .copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .site-header .main-nav ul li {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 140px; /* Adjust for mobile header height (top + buttons) */
    }

    .site-header {
        min-height: auto; /* Allow height to adjust */
    }

    .site-header .header-top {
        padding: 10px 15px;
        justify-content: space-between;
    }

    .site-header .hamburger-menu {
        display: block; /* Show hamburger */
        order: -1; /* Place at the very left */
    }

    .site-header .logo {
        flex: 1; /* Allow logo to take space */
        text-align: center; /* Center logo */
        margin-left: -40px; /* Counteract hamburger pushing it right */
        font-size: 24px;
    }

    .site-header .desktop-nav-wrapper {
        display: none; /* Hide desktop nav and buttons */
    }

    .header-buttons.mobile-only {
        display: flex; /* Show mobile buttons */
        position: relative; /* Ensure it's part of normal flow */
        width: 100%;
        box-shadow: none; /* Remove extra shadow, header already has it */
        padding: 10px 15px;
        gap: 10px;
        z-index: 1000; /* Below mobile nav overlay */
    }
    
    .header-buttons.mobile-only .btn {
        flex: 1; /* Make buttons fill space */
        margin: 0;
        font-size: 14px;
        padding: 8px 15px;
    }

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

    .site-footer .footer-section {
        min-width: unset;
        width: 100%;
    }
    
    .site-footer .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .site-footer .footer-nav ul li {
        margin-bottom: 0;
    }
    
    .site-footer .footer-nav ul li a {
        padding: 5px 10px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 5px;
    }
}