/* ── MOBILE NAV DRAWER ── */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--surface);
    padding: 30px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-drawer.open {
    display: block;
}

.mobile-drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-links {
    list-style: none;
    margin-top: 48px;
}

.drawer-links li {
    margin-bottom: 4px;
}

.drawer-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.drawer-links a:hover {
    background: var(--brand-pale);
    color: var(--brand);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}


@media (max-width: 680px) {

    /* Hide desktop nav links, show hamburger */
    .hamburger {
        display: flex;
    }

    /* Nav bar layout on mobile — taller to fit the stacked emergency button */
    nav {
        padding: 0 14px;
        gap: 0;
        height: 68px;
    }

    /* Logo — fill the nav height properly */
    .nav-logo {
        gap: 8px;
    }

    .nav-logo img {
        height: 34px;
        width: auto;
    }

    .nav-logo span {
        display: block;
        font-size: 16px;
        line-height: 1;
        white-space: nowrap;
    }

    /* Right controls row — tighter gaps */
    .nav-right {
        gap: 6px;
        margin-left: auto;
    }


    .nav-right {
        min-width: 0;
    }


    .emg-number {
        font-size: 10px;
    }

    /* Emergency button — compact with stacked text */

    .nav-right {
        overflow: visible !important;
    }

    nav {
        overflow: visible !important;
    }



    .emergency-btn>span:first-child {
        font-size: 24px !important;
    }

    #cookie-banner {
        bottom: 16px;
        width: calc(100vw - 24px);

        padding: 12px 14px;

        gap: 10px;

        font-size: 12px;

        align-items: flex-start;

        z-index: 9999;
    }

    #cookie-banner button {
        padding: 7px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Compact lang select */
    .lang-select {
        padding: 5px 8px;
        font-size: 12px;
    }

    /* Compact icon buttons */
    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .hamburger {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .footer-tagline {
        max-width: 100%;
    }

    /* Hide desktop emergency button on mobile */
    .nav-right .emergency-btn {
        display: none;
    }

    /* Floating mobile emergency FAB */
    .mobile-emergency-wrap {
        position: fixed;

        right: 16px;
        bottom: 90px;

        z-index: 99999;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Text bubble */
    .fab-text-card {
        background: white;

        color: #111;

        padding: 10px 14px;

        border-radius: 14px;

        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.12);

        white-space: nowrap;
    }

    /* Floating icon button */
    .mobile-emergency-fab {
        width: 68px;
        height: 68px;

        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;

        background: linear-gradient(135deg, #ff3b3b, #c40000);

        color: white;
        text-decoration: none;

        font-size: 30px;

        box-shadow:
            0 12px 30px rgba(255, 0, 0, 0.35),
            0 0 25px rgba(255, 0, 0, 0.25);

        animation: emergencyPulse 2s infinite;
    }
}


/* On very small screens (≤ 400px) — hide logo text, keep logo image + icon-only emergency */
@media (max-width: 400px) {
    .nav-logo span {
        display: none;
    }

    .nav-logo img {
        height: 44px;
    }

    .nav-right {
        gap: 5px;
    }


}

@media (max-width: 680px) {

    .mobile-emergency-wrap {
        position: fixed;

        right: 16px;
        bottom: 90px;

        z-index: 99999;

        display: flex;

        flex-direction: column;
        align-items: center;

        gap: 10px;
    }

}