/* =========================================================
   SERVICES MEGA MENU
   New file — does not modify albatross-navbar styles.
   Link this AFTER your existing stylesheets:
   <link rel="stylesheet" href="assets/services-megamenu.css" />
   ========================================================= */

.services-megamenu {
    /* hidden by default */
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    position: absolute;
    top: 100px; /* sits directly under the 100px navbar */
    left: 0;
    width: 100%;

    background: rgba(10, 10, 12, 0.96);
    border-top: 1px solid rgba(246, 178, 26, 0.25);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);

    z-index: 9998; /* just under navbar's 9999 */

    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;

    font-family: "Manrope", sans-serif;
}

.services-megamenu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.services-megamenu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 40px) clamp(20px, 3.9vw, 56px);

    display: flex;
    align-items: stretch;
    gap: clamp(24px, 3vw, 48px);
}

/* -----------------------------------------
   LEFT: SERVICE LIST
   ----------------------------------------- */

.services-menu-list {
    flex: 0 0 300px;

    list-style: none;
    margin: 0;
    padding: 0;

    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: clamp(20px, 2.5vw, 32px);
}

.services-menu-item {
    display: flex;
    align-items: center;

    padding: 14px 18px;
    margin-bottom: 6px;

    font-size: 17px;
    font-weight: 500;
    color: #ffffff;

    border-radius: 8px;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.services-menu-item:hover {
    background: rgba(246, 178, 26, 0.12);
    color: #F6B21A;
}

.services-menu-item.active {
    background: #F6B21A;
    color: #111111;
    font-weight: 600;
}

/* -----------------------------------------
   RIGHT: CONTENT PANEL
   ----------------------------------------- */

.services-menu-content {
    flex: 1 1 auto;
    position: relative;
    min-height: 220px;
}

.services-menu-panel {
    display: none;
    animation: servicesFadeIn 0.25s ease;
}

.services-menu-panel.active {
    display: block;
}

@keyframes servicesFadeIn {
    from {
        opacity: 0;
        transform: translateX(6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.services-menu-panel h3 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.services-menu-panel p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 0 28px 0;
}

.services-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 30px;

    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;

    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.services-learn-more:hover {
    background: #F6B21A;
    border-color: #F6B21A;
    color: #111111;
}

/* -----------------------------------------
   BACKDROP
   click-outside-to-close overlay
   ----------------------------------------- */

.services-megamenu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9997;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s;
}

.services-megamenu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* mark the toggle as active while menu is open, without touching navbar CSS */
.dropdown-nav-link.is-active {
    color: #F6B21A !important;
}

.dropdown-nav-link.is-active i {
    color: #F6B21A;
    transform: rotate(180deg);
}

/* =========================================================
   TABLET / BELOW 1200px
   stack list above content, full width
   ========================================================= */

@media (max-width: 1199.98px) {

    .services-megamenu {
        position: static;
        top: auto;
        width: 100%;

        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
    }

    .services-megamenu.is-open {
        display: block;
    }

    .services-megamenu-inner {
        flex-direction: column;
        padding: 20px 0 8px 0;
        gap: 20px;
    }

    .services-menu-list {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 16px;
    }

    .services-menu-content {
        min-height: 0;
    }

    .services-megamenu-backdrop {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .services-menu-panel h3 {
        font-size: 24px;
    }

    .services-menu-panel p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-megamenu,
    .services-megamenu-backdrop,
    .services-menu-panel {
        transition: none !important;
        animation: none !important;
    }
}