/* Desktop: keep original navbar look (full-width bar, hanging logo, inline links) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background-color: var(--red, #FF5252);
}

.site-nav {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 75px;
    min-height: 75px;
    color: #fff;
}

.menu-logo {
    display: flex;
    align-items: flex-start;
}

.nav-logo {
    display: block;
    line-height: 0;
}

.logo-image {
    margin-top: 80px;
    height: 120px;
    width: auto;
    display: block;
}

.nav-toggle {
    display: none;
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-link {
    padding: 10px;
    margin: 5px;
    text-decoration: none;
    color: #fff;
    border-radius: 10px;
    transition: 0.4s ease;
    font-weight: bold;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    background-color: #fff;
    color: var(--red, #FF5252);
}

.footer .copyright a {
    color: #fff;
    text-decoration: none;
}

.footer .copyright a:hover {
    text-decoration: underline;
}

body.inner-page {
    background-color: #f5f5f5;
}

body.inner-page .inner-main a,
body.inner-page .legal-hero a,
body.inner-page .privacy-policy-container a,
body.inner-page .support-text a {
    color: var(--red, #FF5252);
}

body.inner-page .backToTop,
body.inner-page .backToTop i {
    color: #fff;
}

body.inner-page .site-header .nav-link {
    color: #fff;
}

body.inner-page .site-header .nav-link:hover,
body.inner-page .site-header .nav-link.is-active {
    color: var(--red, #FF5252);
}

body.inner-page .footer a,
body.inner-page .footer .copyright a,
body.inner-page .footer .copyright.footer-links a {
    color: #fff;
}

.inner-main {
    min-height: calc(100vh - 75px);
}

@media only screen and (min-width: 769px) {
    body.inner-page .inner-main {
        padding-top: 100px;
    }
}

/* Mobile: collapsible navbar only */
@media only screen and (max-width: 768px) {
    .site-header {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    body.inner-page {
        padding-top: 0;
    }

    body.inner-page .inner-main {
        padding-top: 72px;
    }

    .site-nav {
        justify-content: space-between;
        align-items: center;
        height: auto;
        min-height: 72px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .menu-logo {
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .nav-logo {
        max-width: 100%;
    }

    .logo-image {
        margin-top: 0;
        height: 40px;
        max-width: min(200px, 58vw);
        width: auto;
        object-fit: contain;
    }

    .nav-toggle {
        display: flex;
        flex: 0 0 44px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 2px solid #fff;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
        z-index: 2;
        margin-left: auto;
    }

    .nav-toggle-bar {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .site-nav.is-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav.is-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .site-nav.is-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--red, #FF5252);
        padding: 0 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 10001;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease, visibility 0s linear 0.35s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .site-nav.is-open .nav-menu {
        max-height: 320px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0.5rem 1rem 1rem;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease, visibility 0s;
    }

    .nav-link {
        text-align: center;
        padding: 0.85rem 1rem;
        margin: 0;
        font-size: 0.95rem;
        white-space: normal;
    }

    body.nav-open {
        overflow: hidden;
    }
}
