/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-top: 100px; /* Adjust based on header height */
    background-color: #f4f7f6;
    color: #333;
}

/* Site Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Minimum height for content adaptation */
    background-color: #1a202c; /* Dark solid background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.header-top-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.logo {
    font-size: 2.2em;
    font-weight: 900;
    color: #FFD700; /* Secondary color for logo */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    padding: 5px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.desktop-nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.main-nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #007BFF; /* Primary color for underline */
    transition: width 0.3s ease;
}

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

.main-nav a:hover, .main-nav a.active {
    color: #007BFF; /* Primary color on hover/active */
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 15px;
}

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

.btn-primary {
    background-image: linear-gradient(45deg, #007BFF, #0056b3);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-image: linear-gradient(45deg, #0056b3, #007BFF);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-image: linear-gradient(45deg, #FFD700, #c7a700);
    color: #333;
    border: none;
}

.btn-secondary:hover {
    background-image: linear-gradient(45deg, #c7a700, #FFD700);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-image: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
    border: none;
}

.btn-tertiary:hover {
    background-image: linear-gradient(45deg, #1e7e34, #28a745);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

/* Mobile Header Buttons - Hidden on desktop */
.mobile-header-buttons-wrapper {
    display: none;
    background-color: #2a3342; /* Slightly lighter than header top */
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Below hamburger menu */
}

.mobile-header-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700; /* Secondary color for bars */
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu .bar:last-child {
    margin-bottom: 0;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden by default */
    width: 100%;
    height: 100%;
    background-color: #1a202c; /* Same as header background */
    z-index: 1001;
    transition: left 0.4s ease-in-out;
    overflow-y: auto;
    padding-top: 20px;
}

.mobile-nav-overlay.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay .logo {
    font-size: 1.8em;
}

.close-menu {
    font-size: 2.5em;
    color: #FFD700;
    cursor: pointer;
    padding: 5px 15px;
    line-height: 1;
}

.mobile-nav-overlay nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav-overlay nav li {
    margin-bottom: 15px;
}

.mobile-nav-overlay nav a {
    display: block;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.3em;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-nav-overlay nav a:hover, .mobile-nav-overlay nav a.active {
    background-color: #007BFF;
    color: white;
}

/* Site Footer Styles */
.site-footer {
    background-color: #1a202c; /* Dark solid background */
    color: #f0f0f0;
    padding: 40px 20px 20px;
    font-size: 0.95em;
}

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

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

.footer-branding .footer-logo {
    font-size: 2.2em;
    font-weight: 900;
    color: #FFD700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.footer-col h3 {
    color: #007BFF; /* Primary color for headings */
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 5px;
    display: inline-block;
}

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

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

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

.footer-nav a:hover {
    color: #007BFF;
}

.footer-contact p {
    margin-bottom: 8px;
}

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

.copyright {
    color: #ccc;
    font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .desktop-nav-right {
        gap: 20px;
    }
    .main-nav ul {
        gap: 15px;
    }
    .main-nav a {
        font-size: 1em;
    }
    .header-buttons .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 150px; /* Adjust for taller mobile header */
    }

    .site-header {
        min-height: auto;
        padding-bottom: 0;
    }

    .header-top-wrapper {
        padding: 10px 15px;
    }

    .header-top {
        justify-content: space-between;
        height: 60px;
    }

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

    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center;
        margin: 0;
        font-size: 1.8em;
    }

    .desktop-nav-right {
        display: none; /* Hide desktop nav and buttons */
    }

    .mobile-header-buttons-wrapper {
        display: block; /* Show mobile specific buttons */
        position: relative; /* Ensure z-index works */
        z-index: 999; /* Below hamburger menu */
    }

    .mobile-header-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .mobile-header-buttons .btn {
        flex-basis: calc(33% - 16px); /* Roughly 3 buttons per row */
        max-width: none;
        padding: 10px 5px;
        font-size: 0.85em;
    }

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

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

    .footer-col h3 {
        width: fit-content;
        margin: 0 auto 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.6em;
    }
    .mobile-header-buttons .btn {
        flex-basis: calc(50% - 16px); /* 2 buttons per row */
    }
    .mobile-nav-overlay nav a {
        font-size: 1.1em;
        padding: 10px 10px;
    }
    .close-menu {
        font-size: 2em;
    }
    .footer-branding .footer-logo {
        font-size: 1.8em;
    }
}
