
/* ==================================================
   AKRA — SHARED SERVICES SIDEBAR
   Desktop / iPhone Safari / Android Chrome
   ================================================== */

/* 1. SERVICES BUTTON — ALL DEVICES */

.service-menu-button {
    position: fixed !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;

    z-index: 2147483000 !important;
}

/* 2. SIDEBAR SCROLLING — ALL DEVICES */

.service-sidebar {
    box-sizing: border-box !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    scrollbar-width: auto;
    scrollbar-color: #d8b66a #081626;
}

/* 3. SIDEBAR SCROLLBAR */

.service-sidebar::-webkit-scrollbar {
    width: 12px;
}

.service-sidebar::-webkit-scrollbar-track {
    background: #081626;
}

.service-sidebar::-webkit-scrollbar-thumb {
    background: #d8b66a;
    border-radius: 10px;
    border: 2px solid #081626;
}

.service-sidebar::-webkit-scrollbar-thumb:hover {
    background: #f2d58a;
}

/* 4. OPEN SIDEBAR — ALL DEVICES */

.service-sidebar.active {
    pointer-events: auto !important;
}

/* 5. MOBILE LAYOUT */

@media screen and (max-width: 768px) {

    /* Keep the Services button visible and tappable */

    .service-menu-button {
        position: fixed !important;

        top: 145px !important;
        left: auto !important;
        right: 18px !important;
        bottom: auto !important;

        width: auto !important;
        min-width: 100px;
        min-height: 48px;

        margin: 0 !important;
        padding: 12px 18px !important;

        font-size: 14px !important;
        line-height: 1.2;

        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto !important;
        touch-action: manipulation !important;

        z-index: 2147483000 !important;
    }

    /* Closed sidebar:
       off-screen, invisible, cannot intercept taps */

    .service-sidebar {
        position: fixed !important;

        top: 0 !important;
        left: auto !important;
        right: 0 !important;
        bottom: auto !important;

        width: 88% !important;
        max-width: 430px !important;

        height: 100vh !important;
        height: 100dvh !important;

        margin: 0 !important;

        transform: translate3d(105%, 0, 0) !important;

        visibility: hidden !important;
        pointer-events: none !important;

        z-index: 2147483001 !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch;

        transition:
            transform 0.35s ease,
            visibility 0.35s ease !important;
    }

    /* Open sidebar */

    .service-sidebar.active {
        right: 0 !important;

        transform: translate3d(0, 0, 0) !important;

        visibility: visible !important;
        pointer-events: auto !important;

        z-index: 2147483001 !important;
    }

    /* Close button */

    .service-sidebar .close-menu {
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation;

        min-height: 44px;
    }

    /* Sidebar navigation links */

    .service-sidebar a {
        pointer-events: auto !important;
        touch-action: manipulation;
    }
}

/* 6. SMALL PHONES */

@media screen and (max-width: 480px) {

    .service-sidebar {
        width: 90% !important;
        max-width: 100vw !important;
        padding: 24px !important;
    }

    .service-menu-button {
        right: 18px !important;
        top: 145px !important;
        bottom: auto !important;
    }
}

/* 7. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .service-sidebar {
        transition: none !important;
    }
}

/* ==========================================
   AKRA — PREMIUM FLOATING SOCIAL MENU
   Shared across all pages
   ========================================== */

.floating-menu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147482000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Main navy and gold button */

.floating-menu .main-float {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0;
    margin: 0;

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

    border: 1.5px solid #d8b66a;
    border-radius: 50%;

    background: linear-gradient(145deg, #173e63, #061321);
    color: #e8c77c;

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    box-shadow:
        0 8px 24px rgba(6, 19, 33, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.floating-menu .main-float:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #215a83, #102e4e);
    box-shadow: 0 12px 28px rgba(6, 19, 33, 0.35);
}

/* Rotate the + into an × when opened */

.floating-menu.active .main-float {
    transform: rotate(45deg);
}

/* Elegant expandable contact links */

.floating-menu .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 145px;
    padding: 12px 18px;
    margin: 0;

    border: 1px solid rgba(216, 182, 106, 0.45);
    border-radius: 30px;

    background: #081626;
    color: #f8f4ea;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 6px 20px rgba(6, 19, 33, 0.22);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.96);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.floating-menu.active .social-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-menu .social-btn:hover {
    background: #123458;
    color: #e8c77c;
}

/* Mobile refinement */

@media screen and (max-width: 768px) {
    .floating-menu {
        right: 18px;
        bottom: 18px;
    }

    .floating-menu .main-float {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 25px;
    }

    .floating-menu .social-btn {
        min-width: 135px;
        padding: 11px 15px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .floating-menu .main-float,
    .floating-menu .social-btn {
        transition: none;
    }
}
