/* MEGA MENU — shared styles for all mega menu instances (Services, Network, etc.) */

.mega-menu-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 560px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
    pointer-events: auto;
}

.mega-menu-overlay.is-open {
    display: block;
    animation: megaFadeUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes megaFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* Column heading */
.mega-menu-heading,
.mega-menu-col-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #43727c;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
}

/* Two-column grid inside card */
.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

/* Column */
.mega-menu-col {
    display: flex;
    flex-direction: column;
}

/* Individual item */
.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    margin-bottom: 2px;
}

.mega-menu-item:last-child {
    margin-bottom: 0;
}

.mega-menu-item:hover {
    background: #f4f8f9;
}

/* Icon wrapper */
.mega-menu-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.mega-menu-item:hover .mega-menu-item__icon {
    background: #43727c;
}

.mega-menu-item__icon svg {
    width: 18px;
    height: 18px;
    stroke: #43727c;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.15s ease;
}

.mega-menu-item:hover .mega-menu-item__icon svg {
    stroke: #ffffff;
}

/* Text */
.mega-menu-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu-item__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d1922;
    line-height: 1.3;
}

.mega-menu-item__desc {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Backdrop — shared by all mega menu instances */
.mega-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: transparent;
    cursor: default;
}

.mega-menu-backdrop.is-open {
    display: block;
}

/* Dropdown chevron — Services / Network trigger links.
   Add the same selector here whenever a new mega menu trigger is added. */
.menu-item--services-trigger > a.menu-link::after,
.menu-item--network-trigger > a.menu-link::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin-left: 0.4em;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.25s ease;
}

.menu-item--services-trigger > a.menu-link[aria-expanded="true"]::after,
.menu-item--network-trigger > a.menu-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Mobile: hide */
@media (max-width: 768px) {
    .mega-menu-overlay,
    .mega-menu-backdrop {
        display: none !important;
    }
}