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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    padding: 10px 0;

    background: rgba(245, 243, 238, 0.90);

    backdrop-filter: blur(14px);
}


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

.nav-shell {
    position: relative;

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

    min-height: 70px;

    padding: 7px 10px 7px 14px;

    gap: 22px;

    border: 1px solid rgba(15, 26, 42, 0.10);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 16px 42px rgba(15, 26, 42, 0.08);
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    color: #0F1A2A;

    font-weight: 600;
}


.brand-mark {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    border-radius: 50%;

    background: #0F1A2A;

    color: #D6F24B;

    font-size: 0.9rem;
    font-weight: 600;
}


.brand-text {
    color: #0F1A2A;

    font-size: 1.05rem;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   PRIMARY NAV
   ========================================================= */

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 2px;

    font-size: 0.91rem;
    font-weight: 500;
}


.nav-link,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 15px;

    border: 0;

    border-radius: 999px;

    background: transparent;

    color: #0F1A2A;

    font-weight: 500;

    white-space: nowrap;

    transition:
        background 160ms ease,
        color 160ms ease;
}


.nav-link:hover,
.nav-link:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-link.is-active,
.nav-dropdown-toggle.is-active {
    background: #F0EDE6;

    color: #0F1A2A;
}


/* dropdown arrow */

.nav-dropdown-toggle > span {
    width: 7px;
    height: 7px;

    margin-left: 9px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(-2px);

    opacity: 0.65;

    transition: transform 180ms ease;
}


.nav-dropdown-toggle[aria-expanded="true"] > span {
    transform: rotate(225deg) translate(-2px, -1px);
}


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

.nav-cta {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    min-height: 52px;

    margin-left: 8px;

    padding: 0 10px 0 20px;

    border-radius: 999px;

    background: #0F1A2A;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 600;

    white-space: nowrap;

    transition:
        transform 180ms ease,
        background 180ms ease;
}


.nav-cta > span {
    display: grid;

    width: 30px;
    height: 30px;

    place-items: center;

    border-radius: 50%;

    background: #D6F24B;

    color: #0F1A2A;

    font-size: 0.9rem;

    transition: transform 180ms ease;
}


.nav-cta:hover {
    transform: translateY(-1px);

    background: #17243A;
}


.nav-cta:hover > span {
    transform: rotate(8deg);
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

.nav-dropdown {
    position: relative;
}


.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 17px);
    left: 0;

    z-index: 1200;

    display: none;

    min-width: 300px;

    padding: 16px;

    border: 1px solid rgba(15, 26, 42, 0.10);

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 28px 65px rgba(15, 26, 42, 0.14);
}


.nav-dropdown-menu::before {
    content: "";

    position: absolute;

    top: -20px;
    right: 0;
    left: 0;

    height: 20px;
}


.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
    display: block;
}


/* =========================================================
   SERVICES MEGA MENU
   ========================================================= */

.nav-dropdown-menu--services {
    position: fixed;

    top: 92px;
    left: 50%;

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

    min-width: 0;

    padding: 16px;

    transform: translateX(-50%);

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(320px, 0.85fr);

    gap: 22px;
}


.nav-dropdown:hover > .nav-dropdown-menu--services,
.nav-dropdown:focus-within > .nav-dropdown-menu--services,
.nav-dropdown.is-open > .nav-dropdown-menu--services {
    display: grid;
}


/* LEFT SIDE */

.services-mega__services {
    padding: 8px 10px 8px 12px;
}


.services-mega__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.services-mega__heading p {
    color: #687181;

    font-size: 0.73rem;
    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.services-mega__heading a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #0F1A2A;

    font-size: 0.82rem;
    font-weight: 500;

    text-decoration: underline;
    text-underline-offset: 3px;
}


.services-mega__grid {
    display: grid;

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

    column-gap: 30px;
    row-gap: 5px;
}


/* service item */

.service-mega-item {
    display: flex;

    gap: 14px;

    min-width: 0;

    padding: 12px 8px;

    border-radius: 12px;

    transition: background 150ms ease;
}


.service-mega-item:hover,
.service-mega-item:focus-visible,
.service-mega-item.is-preview-active {
    background: #F7F5F0;
}


.service-mega-item__number {
    display: grid;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    place-items: center;

    border-radius: 13px;

    background: #0F1A2A;

    color: #D6F24B;

    font-size: 0.74rem;
    font-weight: 600;
}


.service-mega-item__content {
    display: block;

    min-width: 0;
}


.service-mega-item strong {
    display: block;

    color: #0F1A2A;

    font-size: 0.91rem;
    font-weight: 600;

    line-height: 1.3;
}


.service-mega-item small {
    display: block;

    margin-top: 4px;

    color: #687181;

    font-size: 0.78rem;
    font-weight: 400;

    line-height: 1.45;
}


/* =========================================================
   DYNAMIC RIGHT PREVIEW
   ========================================================= */

.services-mega__preview {
    overflow: hidden;

    border-radius: 22px;

    background: #0F1A2A;

    transition: opacity 150ms ease;
}


.services-mega__preview.is-changing {
    opacity: 0.72;
}


.services-mega__preview-image {
    height: 228px;

    overflow: hidden;

    background: #D9DDD8;
}


.services-mega__preview-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 300ms ease,
        opacity 180ms ease;
}


.services-mega__preview-content {
    display: flex;
    flex-direction: column;

    min-height: 245px;

    padding: 25px 25px 24px;
}


.services-mega__preview h3 {
    color: #ffffff;

    font-size: 1.55rem;
    font-weight: 600;

    line-height: 1.08;
    letter-spacing: -0.025em;
}


.services-mega__preview p {
    max-width: 360px;

    margin-top: 14px;

    color: #BBC3CE;

    font-size: 0.91rem;

    line-height: 1.55;
}


.services-mega__preview-button {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    width: max-content;

    min-height: 46px;

    margin-top: auto;

    padding: 0 18px;

    border-radius: 999px;

    background: #D6F24B;

    color: #0F1A2A;

    font-size: 0.84rem;
    font-weight: 600;
}


/* =========================================================
   COMPACT DROPDOWNS
   ========================================================= */

.nav-dropdown-menu--compact {
    width: 300px;
}


.dropdown-title {
    margin: 0 0 10px;

    color: #0F1A2A;

    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.nav-dropdown-menu--compact a {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 8px 10px;

    border-radius: 9px;

    color: #333B48;

    font-size: 0.87rem;

    transition: background 150ms ease;
}


.nav-dropdown-menu--compact a:hover {
    background: #F4F1EB;
}


.dropdown-divider {
    height: 1px;

    margin: 8px 0;

    background: #EBE7DF;
}


.dropdown-action {
    color: #0F1A2A !important;

    font-weight: 600 !important;
}


/* =========================================================
   MOBILE BUTTON
   ========================================================= */

.nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;

    border-radius: 50%;

    background: #0F1A2A;
}


.nav-toggle span {
    display: block;

    width: 18px;
    height: 2px;

    margin: 4px auto;

    background: #D6F24B;
}


.mobile-menu-head {
    display: none;
}


.nav-close {
    border: 0;

    padding: 8px 12px;

    border-radius: 999px;

    background: #F0EDE6;

    color: #0F1A2A;

    font-weight: 500;
}


/* =========================================================
   1100
   ========================================================= */

@media (max-width: 1100px) {

    .brand-text {
        max-width: 132px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .primary-nav {
        font-size: 0.84rem;
    }

    .nav-link,
    .nav-dropdown-toggle {
        padding-inline: 10px;
    }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 980px) {

    .site-header {
        padding: 8px 0;
    }


    .nav-shell {
        min-height: 64px;

        padding: 6px 7px 6px 12px;
    }


    .brand-mark {
        width: 38px;
        height: 38px;
    }


    .brand-text {
        max-width: none;

        font-size: 0.96rem;
    }


    .nav-toggle {
        display: block;
    }


    .primary-nav {
        position: fixed;

        inset: 0 0 0 auto;

        z-index: 2000;

        display: none;

        width: min(420px, 100vw);
        height: 100dvh;

        overflow-y: auto;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 3px;

        padding: 20px;

        background: #F5F3EE;

        box-shadow:
            -24px 0 55px rgba(15, 26, 42, 0.16);
    }


    .primary-nav.is-open {
        display: flex;
    }


    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;

        margin-bottom: 18px;

        color: #0F1A2A;

        font-weight: 600;
    }


    .nav-link,
    .nav-dropdown-toggle {
        justify-content: space-between;

        width: 100%;
        min-height: 49px;

        padding: 0 5px;

        border-radius: 0;

        background: transparent;

        color: #0F1A2A;

        text-align: left;
    }


    .nav-dropdown-menu,
    .nav-dropdown-menu--services {
        position: static;

        display: none !important;

        width: 100%;

        min-width: 0;

        padding: 8px 0 12px 12px;

        transform: none;

        border: 0;

        border-radius: 0;

        background: transparent;

        box-shadow: none;
    }


    .nav-dropdown.is-open > .nav-dropdown-menu {
        display: block !important;
    }


    .nav-dropdown.is-open > .nav-dropdown-menu--services {
        display: block !important;
    }


    .services-mega__services {
        padding: 0;
    }


    .services-mega__heading {
        margin: 4px 0 8px;
    }


    .services-mega__heading p {
        display: none;
    }


    .services-mega__grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .service-mega-item {
        min-height: 54px;

        padding: 8px 2px;
    }


    .service-mega-item__number {
        width: 35px;
        height: 35px;

        flex-basis: 35px;

        border-radius: 10px;
    }


    .service-mega-item small {
        display: none;
    }


    .services-mega__preview {
        display: none;
    }


    .nav-cta {
        justify-content: space-between;

        width: 100%;

        margin: 18px 0 0;
    }

}