/* Mobile contact dock — shared by all public pages. */
.mobile-contact-bar { display: none; }
.top-info-phone a { display: inline-flex; align-items: center; gap: 6px; }
.top-phone-caption, .top-spare-arrow { display: none; }

@media screen and (min-width: 769px) {
    .top-bar .top-social { align-items: center; }
    .top-bar .top-spare-link {
        gap: 8px;
        min-height: 32px;
        height: 32px;
        padding: 2px 4px 2px 11px;
        border: 1px solid #cee5f6;
        border-radius: 11px !important;
        background: linear-gradient(135deg, #fff, #e6f3fc) !important;
        box-shadow: 0 2px 8px rgba(2,20,36,.14);
        color: #123c5e !important;
        font-weight: 700;
    }
    .top-bar .top-spare-link > i { display: none; }
    .top-bar .top-spare-arrow {
        display: block;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        padding: 3px;
        border-radius: 6px;
        background: #0b63a5;
        color: #fff;
    }
    .top-bar .top-spare-link:hover { background: #fff !important; color: #123c5e !important; transform: none; }
    .top-bar .top-spare-link:focus-visible { outline: 2px solid #68c9ff; outline-offset: 2px; }
    html[dir="rtl"] .top-bar .top-spare-link { padding: 2px 11px 2px 4px; }
    html[dir="rtl"] .top-bar .top-spare-arrow { transform: scaleX(-1); }
}

/* Keep the mobile utility strip focused on the two useful shortcuts. */
@media screen and (max-width: 768px) {
    .top-bar {
        display: block;
        padding: 4px 0;
        border-bottom: 1px solid rgba(142, 202, 240, .16);
        background: linear-gradient(110deg, #092b49, #123f62);
    }
    .top-bar .container {
        flex-wrap: nowrap;
        gap: 10px;
        min-height: 44px;
        padding-inline: 16px;
    }
    .top-bar .top-info { flex: 1; min-width: 0; gap: 0; }
    .top-bar .top-info-email,
    .top-bar .top-info-hours,
    .top-bar .top-social > a:not(.top-spare-link) { display: none; }
    .top-bar .top-info-phone { min-width: 0; }
    .top-bar .top-info-phone a {
        min-height: 44px;
        white-space: nowrap;
        gap: 8px;
        font-size: 11.5px;
        font-weight: 600;
    }
    .top-bar .top-info-phone i {
        display: grid;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        place-items: center;
        border: 1px solid rgba(137, 201, 243, .16);
        border-radius: 10px;
        background: rgba(115, 189, 236, .1);
        color: #bce4ff;
        font-size: 12px;
    }
    .top-bar .top-phone-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
    .top-bar .top-phone-caption { display: block; color: #a9cce4; font-size: 8px; font-weight: 500; line-height: 1.2; }
    .top-bar .top-phone-number { color: #fff; line-height: 1.3; }
    .top-bar .top-social { flex: 0 0 auto; gap: 0; }
    .top-bar .top-spare-link {
        min-height: 44px;
        height: auto;
        margin: 0;
        gap: 8px;
        padding: 0 5px 0 12px;
        border: 1px solid #cee5f6;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #fff, #e6f3fc) !important;
        box-shadow: 0 3px 10px rgba(2, 20, 36, .14), inset 0 1px 0 #fff;
        color: #123c5e !important;
        font-size: 11px;
        font-weight: 700;
    }
    .top-bar .top-spare-link span { display: inline; }
    .top-bar .top-spare-link > i { display: none; }
    .top-bar .top-spare-arrow {
        display: block;
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        padding: 5px;
        border-radius: 8px;
        background: #0b63a5;
        color: #fff;
    }
    .top-bar .top-spare-link:hover { background: #fff !important; color: #123c5e !important; transform: none; }
    .top-bar a:focus-visible { outline: 2px solid #a9d7f5; outline-offset: -3px; }
    .top-bar .top-spare-link:focus-visible { outline-color: #68c9ff; outline-offset: 2px; }
    html[dir="rtl"] .top-bar .top-spare-link { padding: 0 12px 0 5px; }
    html[dir="rtl"] .top-spare-arrow { transform: scaleX(-1); }
}

@media screen and (max-width: 359px) {
    .top-bar .container { gap: 6px; padding-inline: 12px; }
    .top-bar .top-info-phone a { gap: 6px; font-size: 10.5px; }
    .top-bar .top-info-phone i { flex-basis: 26px; width: 26px; height: 28px; border-radius: 9px; }
    .top-bar .top-spare-link { gap: 6px; padding-inline: 8px 4px; font-size: 10px; }
    .top-bar .top-spare-arrow { flex-basis: 22px; width: 22px; height: 22px; padding: 4px; border-radius: 7px; }
    html[dir="rtl"] .top-bar .top-spare-link { padding-inline: 8px 4px; }
}

@media screen and (max-width: 768px) {
    :root { --mobile-contact-clearance: calc(80px + env(safe-area-inset-bottom, 0px)); }
    body { padding-bottom: var(--mobile-contact-clearance); }
    html { scroll-padding-bottom: var(--mobile-contact-clearance); }

    .mobile-contact-bar {
        position: fixed;
        inset-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px));
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 1000;
        display: flex;
        align-items: stretch;
        gap: 6px;
        width: auto;
        max-width: 420px;
        min-height: 60px;
        margin-inline: auto;
        padding: 6px;
        border: 1px solid rgba(164, 203, 232, .18);
        border-radius: 20px;
        background: var(--primary, #0b2a4a);
        box-shadow: 0 5px 18px rgba(6, 26, 46, .18);
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-contact-bar a {
        min-width: 0;
        text-decoration: none;
        transition: background-color .2s ease, transform .2s ease;
    }
    .mobile-contact-quick {
        display: flex;
        flex: 0 0 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 46px;
        padding: 4px 3px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .06);
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.2;
    }
    .mobile-contact-quick svg { width: 20px; height: 20px; }
    .mobile-contact-whatsapp { flex-basis: 68px; }
    .mobile-contact-whatsapp i { color: #37dc81; font-size: 23px; line-height: 1; }
    .mobile-contact-quote {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 7px 12px;
        border-radius: 14px;
        background: var(--light, #f5f9fc);
        color: var(--primary, #0b2a4a);
        text-align: start;
    }
    .mobile-contact-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
    .mobile-contact-copy small {
        color: var(--accent, #0b63a5);
        font-size: 8px;
        font-weight: 500;
        line-height: 1.15;
    }
    .mobile-contact-copy strong {
        font-family: var(--font-heading, sans-serif);
        font-size: clamp(13px, 3.8vw, 15px);
        font-weight: 650;
        letter-spacing: -.02em;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .mobile-contact-arrow {
        display: grid;
        flex: 0 0 20px;
        width: 20px;
        height: 24px;
        place-items: center;
        color: var(--accent, #0b63a5);
    }
    .mobile-contact-arrow svg { width: 18px; height: 18px; }
    .mobile-contact-bar a:active { transform: scale(.97); }
    .mobile-contact-bar a:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }
    .whatsapp-float { display: none; }
    .back-to-top { bottom: var(--mobile-contact-clearance); right: 16px; }
    .cookie-consent { bottom: var(--mobile-contact-clearance); }
    body:has(.modal-overlay.active) .mobile-contact-bar,
    body:has(.mm.open) .mobile-contact-bar { visibility: hidden; }
    html[dir="rtl"] .mobile-contact-arrow svg { transform: rotate(180deg); }
}

@media screen and (max-width: 359px) {
    .mobile-contact-bar { gap: 4px; }
    .mobile-contact-quick { flex-basis: 46px; }
    .mobile-contact-whatsapp { flex-basis: 62px; }
    .mobile-contact-quote { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-contact-bar a { transition: none; }
}
