/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Variables */
:root {
    --primary-color: #0A2342;
    --secondary-color: #FFD700;
    --text-light: #fff;
    --text-dark: #333;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* Header Styling */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 8px var(--shadow-medium);
    z-index: 1000;
    min-height: 60px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Default to column for mobile-first */
    align-items: center;
    padding: 0; /* Padding handled by inner divs */
}

/* Mobile Top Bar */
.header-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
}

.logo {
    font-size: 2.2em; /* Larger for brand presence */
    font-weight: bold;
    color: var(--secondary-color); /* Highlight color */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    flex-grow: 1; /* Allow logo to take available space on mobile */
    padding: 5px 0;
    line-height: 1;
}
.logo:hover {
    color: #ffd700; /* Slightly brighter on hover */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002; /* Above everything else */
}
.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.header-placeholder {
    width: 30px; /* To balance the hamburger menu on the right */
    display: block; /* Show on mobile */
}

/* Mobile Buttons */
.header-mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--primary-color);
    z-index: 999; /* Below hamburger menu when open, but above page content */
    box-shadow: 0 2px 4px var(--shadow-light); /* Subtle shadow below buttons */
}

/* Main Navigation (Mobile - hidden by default, slides in) */
.main-nav {
    position: fixed;
    top: 0; /* Will be adjusted by JS */
    left: -100%; /* Hidden off-screen */
    width: 70%; /* Menu width */
    max-width: 300px; /* Max width for menu */
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: 2px 0 5px var(--shadow-medium);
    transition: left 0.3s ease-in-out;
    z-index: 1001; /* Above mobile buttons, below hamburger toggle */
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px; /* Initial space for header content (adjust with JS) */
    display: block; /* Change from none to block for sliding */
    overflow-y: auto; /* Enable scrolling for long menus */
}
.main-nav.active {
    left: 0; /* Show menu */
}
.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}
.main-nav ul li {
    width: 100%;
    margin-bottom: 15px;
}
.main-nav ul li a {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--secondary-color);
}
.main-nav ul li a::after {
    display: none; /* Remove underline effect in mobile menu */
}

/* Desktop Buttons (hidden on mobile) */
.header-desktop-buttons {
    display: none;
}

/* General Button Styles */
.btn {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 8px var(--shadow-medium);
    border: none;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}
.btn-primary:hover {
    background-color: #e6c200; /* Darker yellow */
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #071a30; /* Darker blue */
    box-shadow: 0 6px 12px rgba(10, 35, 66, 0.4);
    transform: translateY(-2px);
}

/* Footer Styling */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px;
    margin-top: 50px; /* Ensure space below main content */
    font-size: 0.9em;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-brand-info,
.footer-nav-section,
.footer-contact-info {
    flex: 1;
    min-width: 250px;
}
.footer-logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}
.footer-brand-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
}
.footer-brand-info .copyright {
    margin-top: 20px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}
.site-footer h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}
.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}
.footer-nav ul li a:hover {
    color: var(--secondary-color);
}
.footer-contact-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
}
.footer-contact-info a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.footer-contact-info a:hover {
    color: #e6c200;
}

/* Responsive Design */
@media (min-width: 769px) {
    .site-header {
        flex-direction: row; /* Align logo, nav, buttons horizontally */
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px; /* Adjust padding for desktop */
    }
    .header-mobile-buttons {
        display: none; /* Hide mobile buttons on desktop */
    }
    .hamburger-menu,
    .header-placeholder {
        display: none; /* Hide hamburger menu and placeholder on desktop */
    }
    .header-mobile-top {
        display: flex; /* Keep container visible for logo */
        width: auto; /* Reset full width */
        padding: 0; /* Reset padding */
        justify-content: flex-start; /* Align logo to left */
    }
    .logo {
        text-align: left;
        flex-grow: 0; /* Reset flex-grow from mobile */
        margin-right: 30px; /* Space between logo and nav */
    }
    .main-nav {
        display: flex; /* Show desktop nav */
        position: static; /* Reset fixed positioning for desktop */
        height: auto;
        width: auto;
        max-width: none; /* Reset mobile max-width */
        background: none;
        box-shadow: none;
        padding: 0;
        flex-grow: 1; /* Allow nav to take remaining space */
        justify-content: center; /* Center nav items */
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Vertically center items */
        overflow: visible; /* Remove mobile scroll */
        left: auto; /* Reset mobile left positioning */
        padding-top: 0; /* Reset mobile padding-top */
    }
    .main-nav ul {
        display: flex; /* Enable flexbox for ul */
        flex-direction: row; /* Horizontal layout */
        gap: 30px;
        align-items: center; /* Vertically center items */
        padding: 0; /* Reset mobile padding */
        width: auto; /* Allow natural width */
        flex-wrap: nowrap; /* Prevent wrapping */
    }
    .main-nav ul li {
        width: auto; /* Reset full width from mobile */
        margin-bottom: 0; /* Reset mobile margin */
        flex-shrink: 0; /* Prevent shrinking */
    }
    .main-nav ul li a {
        padding: 5px 0;
        border-bottom: none; /* Remove mobile border */
        white-space: nowrap; /* Prevent text wrapping */
    }
    .main-nav ul li a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background-color: var(--secondary-color);
        transition: width 0.3s ease;
    }
    .main-nav ul li a:hover::after,
    .main-nav ul li a.active::after {
        width: 100%;
    }
    .header-desktop-buttons {
        display: flex; /* Show desktop buttons */
        margin-left: 30px; /* Space between nav and buttons */
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand-info,
    .footer-nav-section,
    .footer-contact-info {
        min-width: unset;
        width: 100%;
        margin-bottom: 30px;
    }
    .footer-nav ul {
        align-items: center;
    }
    .footer-nav h3, .footer-contact-info h3 {
        text-align: center;
    }
}