:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --desktop-header-height: 80px;
    --mobile-header-top-height: 60px;
    --mobile-button-area-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    padding-top: var(--desktop-header-height);
    background-color: #f4f7f6;
    transition: padding-top 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
}

/* Site Header - Fixed and Floating */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: var(--desktop-header-height);
    display: flex;
    flex-direction: column; /* Default for mobile, overridden for desktop */
}

.site-header .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    min-height: var(--desktop-header-height);
}

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 10px 0;
    white-space: nowrap;
}

/* Main Navigation - Desktop */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

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

.main-nav ul li a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--secondary-color);
}

/* Desktop Nav Buttons */
.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

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

.hamburger-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    transform: translateY(-10px);
}

.hamburger-icon::after {
    transform: translateY(10px);
}

.hamburger-menu.active .hamburger-icon {
    background-color: transparent;
}

.hamburger-menu.active .hamburger-icon::before {
    transform: translateY(0) rotate(45deg);
}

.hamburger-menu.active .hamburger-icon::after {
    transform: translateY(0) rotate(-45deg);
}

/* Mobile Nav Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
    display: none; /* Hidden on desktop */
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

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

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(255, 204, 0, 0.4);
}

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

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

.btn-secondary:hover {
    background-color: #004d99;
}

.btn-tertiary {
    background-color: #4CAF50; /* A vibrant green for 'Download App' */
    color: var(--text-color-light);
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.4);
}

.btn-tertiary:hover {
    background-color: #45a049;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.8;
}

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

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

.site-footer .footer-section h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
}

.site-footer .footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-nav ul {
    list-style: none;
}

.site-footer .footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.site-footer .footer-nav ul li a:hover {
    color: var(--secondary-color);
}

.site-footer .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.6);
}

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

    .site-header {
        min-height: auto;
    }

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

    .site-header .logo {
        font-size: 24px;
        flex-grow: 1;
        text-align: center;
        order: 2; /* Center logo */
        padding: 0;
    }

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

    .desktop-nav-buttons {
        display: none; /* Hide desktop buttons */
    }

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        background-color: var(--primary-color);
        padding-top: var(--mobile-header-top-height);
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease-in-out;
        z-index: 999; /* Below hamburger, above overlay */
        justify-content: flex-start;
        align-items: flex-start;
    }

    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 15px;
    }

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

    .main-nav ul li a {
        padding: 10px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .main-nav ul li a::after {
        bottom: 0;
        height: 2px;
    }

    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        min-height: var(--mobile-button-area-height);
        z-index: 998; /* Below header-main, above main content */
    }

    .mobile-nav-buttons .btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 20px;
    }

    .mobile-menu-overlay {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 990; /* Below main-nav */
        transition: opacity 0.3s ease;
        opacity: 0;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

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

    .site-footer .footer-section {
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .site-footer .footer-nav {
        width: 100%;
    }

    .site-footer .footer-nav .footer-section ul {
        padding-left: 0;
    }
}