/* General Reset & Body */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2C3E50; /* Secondary color for header background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: auto; /* Allow height to adjust dynamically */
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Default to column for mobile */
}

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px; /* Ensure a minimum height for the top bar */
    padding: 0 20px;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700; /* Primary color for logo */
    text-decoration: none;
    text-align: center;
    padding: 10px 0;
    flex-grow: 1;
}

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

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700;
    margin: 5px 0;
    transition: 0.4s;
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

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

.main-nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #FFD700;
    color: #2C3E50;
    border-radius: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #FFD700; /* Gold */
    color: #2C3E50; /* Dark blue */
    border: 2px solid #FFD700;
}

.btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.btn-secondary {
    background-color: #E74C3C; /* Red */
    color: #FFFFFF;
    border: 2px solid #E74C3C;
}

.btn-secondary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* Desktop Header Buttons */
.desktop-header-buttons {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* Mobile specific button styles */
.btn-mobile-primary,
.btn-mobile-secondary {
    padding: 8px 15px;
    font-size: 0.9em;
    margin: 0 5px;
}
.btn-mobile-primary {
    background-color: #FFD700;
    color: #2C3E50;
    border: 1px solid #FFD700;
}
.btn-mobile-secondary {
    background-color: #E74C3C;
    color: #FFFFFF;
    border: 1px solid #E74C3C;
}


/* Footer */
.site-footer {
    background-color: #2C3E50; /* Dark blue */
    color: #FFFFFF;
    padding: 40px 20px 20px;
    margin-top: 50px; /* Give space for fixed header */
}

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

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

.footer-column h3 {
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-column p,
.footer-column a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #FFD700;
    text-decoration: underline;
}

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

.footer-nav ul 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);
}

.footer-bottom p {
    font-size: 0.85em;
    color: #AAAAAA;
}

/* Responsive Design */
@media (min-width: 769px) {
    body {
        padding-top: 70px; /* Adjust for desktop header height */
    }
    
    .site-header {
        flex-direction: row; /* Change to row layout on desktop */
        align-items: center;
        padding: 0 20px;
        min-height: 70px;
    }
    
    .hamburger-menu,
    .header-mobile-buttons,
    .top-bar-spacer {
        display: none !important;
    }
    
    .header-top-bar {
        justify-content: flex-start;
        padding: 0;
        flex-grow: 0;
        flex-shrink: 0;
        min-height: auto;
    }
    
    .logo {
        flex-grow: 0;
        margin-right: 30px;
        text-align: left;
        padding: 0;
    }
    
    .main-nav {
        display: flex;
        flex-direction: row;
        flex-grow: 1;
        justify-content: center;
        align-items: center;
        gap: 40px; /* Gap between menu and buttons */
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin: 0;
        padding: 0;
        flex-grow: 0;
        justify-content: center;
    }
    
    .desktop-header-buttons {
        display: flex;
        gap: 10px;
        margin-left: 0; /* Remove margin-left, gap is handled by parent */
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0;
        min-height: auto;
    }

    .header-top-bar {
        justify-content: space-between;
        padding: 10px 15px;
        min-height: auto;
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: -1; /* Place hamburger first (left) */
        margin-right: auto; /* Push logo to center */
    }

    .logo {
        flex-grow: 0;
        text-align: center;
        margin: 0 auto;
        font-size: 1.8em;
    }

    .top-bar-spacer {
        width: 45px; /* Equal width to hamburger to balance logo center */
        visibility: hidden;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #2C3E50;
        position: absolute;
        top: 100%; /* Position below the header-top-bar */
        left: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        overflow-y: auto;
        max-height: calc(100vh - 120px); /* Adjust based on header height */
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .desktop-header-buttons {
        display: none;
    }

    .header-mobile-buttons {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        background-color: #2C3E50;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 999;
        width: 100%;
        box-sizing: border-box;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .header-mobile-buttons .btn {
        margin: 0 8px;
    }

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

    .footer-column {
        min-width: auto;
        margin-bottom: 20px;
    }

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-nav ul li {
        margin-bottom: 0;
    }
    .footer-nav ul li a {
        padding: 5px 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
    }
}