/* Base Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: calc(var(--header-height-desktop) + 10px); /* Adjust for fixed header */
}

/* Variables */
:root {
    --primary-color: #0A2463;
    --accent-color: #FFD700;
    --text-color-light: #fff;
    --text-color-dark: #333;
    --header-height-desktop: 80px;
    --header-top-height-mobile: 60px;
    --mobile-buttons-height: 50px;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color); /* Solid background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: var(--header-height-desktop); /* Adaptive height */
    display: flex;
    flex-direction: column; /* For mobile stacking */
    justify-content: center;
    align-items: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Constrain content width */
    padding: 0 20px;
    box-sizing: border-box;
    min-height: var(--header-height-desktop);
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    margin-right: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    display: block;
    /* Creative logo design */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.desktop-nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

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

.main-nav a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: #FFC107;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background-color: #071C4B;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Mobile Specific */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger-menu .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color-light);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

.mobile-buttons {
    display: none; /* Hidden on desktop */
    z-index: 1000; /* Below mobile nav */
}

.mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Will be adjusted by JS for actual header height */
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color); /* Solid background */
    padding-top: 110px; /* Placeholder, will be dynamic */
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1001;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.is-active {
    transform: translateX(0);
}

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

.mobile-nav li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 40px 20px;
    font-size: 0.9em;
    border-top: 5px solid var(--accent-color);
}

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

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

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.footer-section p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFC107;
    text-decoration: underline;
}

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

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

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

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

    .site-header {
        min-height: auto;
        flex-direction: column; /* Stack header-top and mobile-buttons */
    }

    .header-top {
        min-height: var(--header-top-height-mobile);
        padding: 0 15px;
        justify-content: space-between;
    }

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

    .hamburger-menu {
        display: block;
        order: 1;
    }

    .logo {
        flex: 1;
        text-align: center;
        margin: 0;
        font-size: 1.8em;
        order: 2;
    }
    
    .header-top::after { /* Empty space to balance logo centering */
        content: '';
        flex: 0 0 50px; /* Approx width of hamburger + padding */
        order: 3;
    }

    .mobile-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: var(--primary-color);
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000; /* Below mobile nav */
        min-height: var(--mobile-buttons-height);
    }

    .btn-mobile-1 {
        background-color: #4CAF50; /* Green */
        color: var(--text-color-light);
    }
    .btn-mobile-1:hover { background-color: #388E3C; }

    .btn-mobile-2 {
        background-color: #F44336; /* Red */
        color: var(--text-color-light);
    }
    .btn-mobile-2:hover { background-color: #D32F2F; }

    .btn-mobile-3 {
        background-color: #9C27B0; /* Purple */
        color: var(--text-color-light);
    }
    .btn-mobile-3:hover { background-color: #7B1FA2; }

    .mobile-nav {
        top: calc(var(--header-top-height-mobile) + var(--mobile-buttons-height)); /* Position below header elements */
        height: calc(100vh - var(--header-top-height-mobile) - var(--mobile-buttons-height));
        padding-top: 0; /* Content can start from top of mobile-nav */
        background-color: var(--primary-color); /* Solid background */
    }

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

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