/* =========================================================
   ATRA PREMIUM MEGA MENU
   Services — Desktop
========================================================= */


/* =========================================================
   NAVIGATION REFERENCE
========================================================= */

.atra-navigation--desktop {
    position: relative;
}


/* =========================================================
   SERVICES MEGA MENU
   Fixed to viewport — centered
========================================================= */
/* =========================================================
   SERVICES HOVER BRIDGE
========================================================= */

.atra-services-mega-menu::before {

    content: "";

    position: absolute;

    top: -80px;
    right: 0;

    width: 100%;
    height: 80px;

    background: transparent;

    pointer-events: auto;
}

.atra-services-mega-menu {

    position: fixed;

    top: 80px;

    right: 50%;

    width: min(1120px, calc(100vw - 48px));

    z-index: 9999;


    opacity: 0;

    visibility: hidden;

    pointer-events: none;


    transform: translateX(50%) translateY(-8px);


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


/* =========================================================
   OPEN ON SERVICES HOVER
========================================================= */

.atra-navigation__item--services:hover
.atra-services-mega-menu,

.atra-navigation__item--services:focus-within
.atra-services-mega-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;


    transform: translateX(50%) translateY(0);
}


/* =========================================================
   HOVER BRIDGE
========================================================= */

.atra-services-mega-menu::before {

    content: "";

    position: absolute;

    top: -12px;

    right: 0;

    width: 100%;

    height: 12px;
}


/* =========================================================
   CONTAINER
========================================================= */

.atra-services-mega-menu__container {

    position: relative;

    width: 100%;

    padding: 28px;

    background: var(--atra-color-background);

    border: 1px solid var(--atra-color-border);

    border-radius: 18px;

    box-shadow:
        0 18px 50px rgba(11, 19, 43, 0.10),
        0 4px 16px rgba(11, 19, 43, 0.06);

    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.atra-services-mega-menu__header {

    display: flex;

    align-items: flex-start;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--atra-color-border);
}


.atra-services-mega-menu__heading {

    max-width: 680px;
}


.atra-services-mega-menu__eyebrow {

    display: block;

    margin-bottom: 6px;

    color: var(--atra-color-blue);

    font-size: 12px;

    font-weight: 700;
}


.atra-services-mega-menu__title {

    margin: 0;

    color: var(--atra-color-text);

    font-size: 21px;

    font-weight: 700;

    line-height: 1.5;
}


.atra-services-mega-menu__description {

    margin: 6px 0 0;

    color: var(--atra-color-muted);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   SERVICES GRID
========================================================= */

.atra-services-mega-menu__grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    padding-block: 22px;
}


/* =========================================================
   SERVICE CATEGORY
========================================================= */

.atra-service-category {

    min-width: 0;

    padding: 18px;

    background: var(--atra-color-surface);

    border: 1px solid transparent;

    border-radius: 14px;

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


.atra-service-category:hover {

    background: var(--atra-color-background);

    border-color: rgba(0, 180, 216, 0.25);

    transform: translateY(-2px);
}


/* =========================================================
   MAIN SERVICE LINK
========================================================= */

.atra-service-category__main-link {

    display: flex;

    align-items: center;

    gap: 12px;

    color: inherit;

    text-decoration: none;
}


.atra-service-category__icon {

    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: var(--atra-color-blue);

    background: rgba(0, 180, 216, 0.08);

    border-radius: 12px;
}


.atra-service-category__heading {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.atra-service-category__title {

    color: var(--atra-color-text);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.6;
}


.atra-service-category__description {

    margin-top: 2px;

    color: var(--atra-color-muted);

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   SERVICE LINKS
========================================================= */

.atra-service-category__links {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 3px 12px;

    margin: 14px 0 0;

    padding: 13px 0 0;

    list-style: none;

    border-top: 1px solid var(--atra-color-border);
}


.atra-service-category__links a {

    display: block;

    padding-block: 5px;

    color: var(--atra-color-muted);

    font-size: 12px;

    line-height: 1.6;

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-right 0.2s ease;
}


.atra-service-category__links a:hover {

    color: var(--atra-color-blue);

    padding-right: 4px;
}


/* =========================================================
   FOOTER
========================================================= */

.atra-services-mega-menu__footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--atra-color-border);
}


.atra-services-mega-menu__footer-text {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.atra-services-mega-menu__footer-text strong {

    color: var(--atra-color-text);

    font-size: 13px;
}


.atra-services-mega-menu__footer-text span {

    color: var(--atra-color-muted);

    font-size: 11px;
}


/* =========================================================
   CONSULTATION LINK
========================================================= */

.atra-services-mega-menu__consultation {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    flex: 0 0 auto;

    color: var(--atra-color-blue);

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


.atra-services-mega-menu__consultation-arrow {

    transition: transform 0.2s ease;
}


.atra-services-mega-menu__consultation:hover
.atra-services-mega-menu__consultation-arrow {

    transform: translateX(-4px);
}

