/* General Reset & Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0A246A; /* Primary color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 60px;
    color: #fff;
}

.header-top-mobile-desktop {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    justify-content: space-between;
}

.logo {
    color: #FFD700; /* Secondary color for logo */
    text-decoration: none;
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.logo:hover {
    color: #FFF;
}

.main-nav {
    margin-left: auto; /* Push nav to center for desktop */
    margin-right: 20px;
}

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

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

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background-color: #FFD700; /* Secondary color */
    transition: width 0.3s ease-in-out;
}

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

.main-nav a:hover, .main-nav a.active {
    color: #FFD700;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A246A; /* Primary dark blue */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary {
    background-color: #FF6347; /* Tomato Red - vibrant */
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: #ff7f50;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

.hamburger-menu .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #FFD700;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.header-buttons-mobile {
    display: none; /* Hidden on desktop */
    background-color: #0A246A;
    padding: 10px 20px;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Below main header, above content */
}

/* Footer Styles */
.site-footer {
    background-color: #0A246A; /* Primary color */
    color: #e0e0e0;
    padding: 40px 20px;
    font-size: 0.9em;
    border-top: 5px solid #FFD700; /* Secondary color accent */
}

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

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

.footer-col h3 {
    color: #FFD700;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 5px;
}

.footer-info .logo-footer {
    color: #FFD700;
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.footer-info p {
    margin: 0;
    line-height: 1.8;
}

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

.footer-nav a, .footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-nav a:hover, .footer-contact a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 15px;
    }
    .header-top-mobile-desktop {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .header-top-mobile-desktop {
        padding: 10px 20px;
        justify-content: space-between;
    }
    .main-nav, .header-buttons-desktop {
        display: none;
    }
    .hamburger-menu {
        display: block;
        order: 1;
        width: 40px; /* Give fixed width */
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .logo {
        order: 2;
        flex-grow: 1;
        text-align: center;
        margin: 0; /* Override any desktop margins */
    }
    /* To compensate for hamburger width and center logo visually */
    .header-top-mobile-desktop::after {
        content: '';
        display: block;
        width: 40px; /* Same width as hamburger */
        order: 3;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 70%;
        height: 100vh;
        background-color: #0A246A; /* Dark background for menu */
        padding-top: 80px;
        box-shadow: 4px 0 8px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease-in-out;
        z-index: 1001; /* Above header */
        display: block; /* Override display: none for toggle */
    }

    .main-nav.nav-open {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .main-nav a {
        font-size: 1.2em;
        padding: 10px 0;
        width: 100%;
    }
    .main-nav a::after {
        height: 2px;
        bottom: 0;
    }

    .header-buttons-mobile {
        display: flex;
        position: relative; /* Ensure it stays below header, but can be controlled by z-index */
        z-index: 999; /* Below header, above content */
    }

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

    .footer-col {
        min-width: unset;
        width: 100%;
    }
    .footer-col h3 {
        text-align: center;
    }
    .footer-nav ul, .footer-contact p {
        text-align: center;
    }
    .footer-info .logo-footer {
        margin: 0 auto 15px auto;
    }
}

/* Hamburger animation */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
