/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Default desktop header height */
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #DC143C; /* Primary color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    min-height: 80px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Desktop Header Layout */
.header-main-desktop {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    display: block;
    margin-right: 30px;
}

.main-nav-desktop {
    flex-grow: 1; /* Navigation takes central space */
}

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

.main-nav-desktop li {
    margin: 0 15px;
}

.main-nav-desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav-desktop a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #fff;
    transition: width 0.3s ease;
}

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

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

.desktop-actions {
    display: flex;
    gap: 10px;
    margin-left: 30px;
}

/* Mobile Specific Elements (Hidden by default) */
.header-mobile-top,
.logo-mobile,
.mobile-top-spacer,
.mobile-actions-row,
.main-nav-mobile,
.hamburger-menu {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    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.2);
}

.btn-primary {
    background-color: #FFD700; /* Bright gold for primary action */
    color: #36454F;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.btn-primary:hover {
    background-color: #E0B500;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.9);
}

.btn-secondary {
    background-color: #36454F; /* Secondary color */
    color: #fff;
    border: 2px solid #36454F;
}

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

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1002; /* Higher than menu overlay */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

/* Footer Styles */
.site-footer {
    background-color: #36454F; /* Secondary color */
    color: #f0f0f0;
    padding: 40px 20px;
    font-size: 0.9em;
    margin-top: 40px;
}

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

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

.footer-col h3 {
    color: #DC143C;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.footer-col p, .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #DC143C;
}

.footer-logo {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: #DC143C;
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #aaa;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Adjust for mobile header height (top row + button row) */
    }
    .site-header {
        min-height: auto; /* Allow height to adjust */
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
    .header-container {
        flex-direction: column;
        padding: 0;
        min-height: auto;
    }
    .header-main-desktop {
        display: none;
    }

    /* Mobile Top Row: Hamburger | Logo | Spacer */
    .header-mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 15px;
        min-height: 60px;
        box-sizing: border-box;
    }
    .logo-mobile {
        display: block;
        flex-grow: 1; /* Allows logo to take available space */
        text-align: center;
        font-size: 2em;
        margin: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: bold;
        color: #fff;
        text-decoration: none;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: 1px;
    }
    .mobile-top-spacer {
        width: 45px; /* Equal to hamburger menu width to center logo */
        height: 1px;
    }
    .hamburger-menu {
        display: block;
    }

    /* Mobile Buttons Row (Always visible below logo) */
    .mobile-actions-row {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 10px 15px;
        background-color: #DC143C; /* Match header background */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
        gap: 15px;
        z-index: 1000; /* Lower than main-nav when active */
        box-sizing: border-box;
    }
    .btn-mobile {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /* Mobile Navigation (Hamburger Menu Overlay) */
    .main-nav-mobile {
        display: none;
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95); /* Dark overlay */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1001;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%); /* Start off-screen */
    }

    .main-nav-mobile.active {
        display: flex;
        transform: translateX(0);
    }

    .main-nav-mobile ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav-mobile li {
        margin: 15px 0;
    }

    .main-nav-mobile a {
        font-size: 1.5em;
        padding: 15px 0;
        color: #fff;
    }

    .main-nav-mobile a::after {
        background-color: #DC143C;
    }

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

    .footer-col {
        max-width: 90%;
        margin-bottom: 30px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }
}