:root {
    --primary-color: #1A2B4C;
    --secondary-color: #FFD700;
    --accent-color: #FFA500;
    --text-color: #fff;
    --dark-text-color: #333;
    --button-gradient-start: #FFD700;
    --button-gradient-end: #FFA500;
    --button-shadow: rgba(255, 215, 0, 0.5);
    --header-bg: var(--primary-color);
    --footer-bg: #111A2B;
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color);
}

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

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 60px; /* Use min-height as required */
    background-color: var(--header-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    min-height: inherit; /* Inherit min-height from parent */
    justify-content: space-between;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex-grow: 1; /* Allow logo to take available space on mobile */
    text-align: center; /* Center logo on mobile */
    order: 2; /* Mobile order */
}

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

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    color: var(--secondary-color);
    position: relative;
    z-index: 1002; /* Higher than menu overlay */
    order: 1; /* Mobile order */
    width: 44px; /* Fixed width for consistent spacing */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu::before {
    content: '\2261'; /* Hamburger icon */
    display: block;
}

.header-filler { /* Used to balance logo centering on mobile */
    width: 44px; /* Match hamburger width */
    order: 3; /* Mobile order */
    visibility: hidden; /* Invisible but takes space */
}

.main-nav {
    display: none; /* Hidden by default on mobile */
    width: 100%;
    background-color: var(--header-bg); /* Match header background */
    position: absolute;
    top: 100%; /* Position below header-top */
    left: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Higher than header-buttons when active */
    padding-bottom: 10px;
    overflow-y: auto; /* Allow scrolling if menu content is too long */
    max-height: calc(100vh - 120px); /* Adjust based on header-top + header-buttons height */
}

.main-nav.active {
    display: block;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.nav-list li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.nav-list a {
    display: block;
    padding: 10px 20px;
    font-size: 18px;
    color: var(--text-color);
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

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

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 10px;
    width: 100%;
    z-index: 999; /* Lower than active mobile menu */
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--dark-text-color); /* Default text for buttons */
}

.btn-primary {
    background-image: linear-gradient(45deg, var(--button-gradient-start), var(--button-gradient-end));
    color: var(--dark-text-color);
    box-shadow: 0 5px 15px var(--button-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--button-shadow);
    background-image: linear-gradient(45deg, var(--accent-color), var(--button-gradient-start));
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-color);
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    color: #A0A0A0;
    padding: 40px 0 20px;
    font-size: 15px;
    margin-top: 50px; /* Ensure footer doesn't overlap fixed header */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

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

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

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

.footer-info p,
.footer-contact p {
    margin-bottom: 10px;
}

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

.footer-nav-list a {
    color: #A0A0A0;
    transition: color 0.3s ease;
}

.footer-nav-list a:hover {
    color: var(--secondary-color);
}

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

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 80px; /* Fixed height for desktop for consistent look */
    }

    .header-top {
        width: auto;
        padding: 0;
    }

    .logo {
        text-align: left;
        flex-grow: 0;
        margin-right: 30px;
    }

    .hamburger-menu {
        display: none;
    }

    .header-filler {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        box-shadow: none;
        background-color: transparent;
        width: auto;
        flex-grow: 1;
        padding: 0;
        max-height: none;
    }

    .nav-list {
        flex-direction: row;
        justify-content: center;
    }

    .nav-list li {
        margin: 0 15px;
        width: auto;
    }

    .nav-list a {
        padding: 8px 15px;
    }

    .header-buttons {
        display: flex;
        justify-content: flex-end;
        width: auto;
        padding-bottom: 0;
    }

    .site-header {
        min-height: auto; /* Revert to auto on desktop, height is set on container */
    }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
    }

    .header-buttons {
        padding: 10px 20px;
        background-color: rgba(26, 43, 76, 0.95); /* Slightly darker for distinction */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        margin-top: -1px; /* Overlap header-top border slightly */
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        position: relative; /* For z-index to work */
        z-index: 999; /* Below main-nav active */
    }

    .footer-col {
        min-width: 100%;
        text-align: center;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-nav-list {
        align-items: center;
    }
}
