:root {
    --header-navy: #0B1F33;
    --header-navy-secondary: #173451;
    --header-white: #FFFFFF;
    --header-warm-white: #FAF9F6;
    --header-slate: #52606D;
    --header-line: #E4E9ED;
    --header-gold: #B89A5E;
    --header-green: #245B4A;
    --header-max-width: 1320px;
}

.mza-site-header,
.mza-site-header * {
    box-sizing: border-box;
}

.mza-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--header-line);
    background: var(--header-white);
}

.mza-site-header__container {
    width: min(
        var(--header-max-width),
        calc(100% - 48px)
    );
    margin-inline: auto;
}

.mza-site-header__bar {
    position: relative;
    background: var(--header-white);
}

.mza-site-header__row {
    display: flex;
    align-items: center;
    min-height: 88px;
    gap: 24px;
}

.mza-site-header__logo {
    display: flex;
    align-items: center;
    flex: 0 1 250px;
    width: 250px;
    min-width: 190px;
    max-width: 250px;
    height: 64px;
    overflow: hidden;
    text-decoration: none;
}

.mza-site-header__logo img,
.mza-mobile-drawer__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/*
|--------------------------------------------------------------------------
| Desktop navigation
|--------------------------------------------------------------------------
*/
.mza-desktop-nav {
    margin-left: auto;
}

.mza-desktop-nav__list {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mza-desktop-nav__list > li {
    display: flex;
    align-items: center;
}

.mza-desktop-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 88px;
    gap: 5px;
    padding: 0;
    border: 0;
    color: var(--header-navy);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.mza-desktop-nav__link::after {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--header-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.mza-desktop-nav__link:hover::after,
.mza-desktop-nav__link:focus-visible::after,
.mza-desktop-nav__link.is-active::after {
    transform: scaleX(1);
}

.mza-desktop-nav__submenu-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 160ms ease;
}

.mza-desktop-nav__about.is-open
.mza-desktop-nav__submenu-button svg,
.mza-desktop-nav__services.is-open
.mza-desktop-nav__submenu-button svg,
.mza-desktop-nav__about:hover
.mza-desktop-nav__submenu-button svg,
.mza-desktop-nav__services:hover
.mza-desktop-nav__submenu-button svg {
    transform: rotate(180deg);
}

/*
|--------------------------------------------------------------------------
| Desktop About dropdown
|--------------------------------------------------------------------------
*/
.mza-desktop-nav__about {
    position: relative;
}

.mza-about-menu {
    position: absolute;
    top: calc(100% - 13px);
    left: -22px;
    z-index: 20;
    width: 330px;
    padding: 10px;
    border: 1px solid var(--header-line);
    border-radius: 12px;
    background: var(--header-white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
}

.mza-desktop-nav__about:hover .mza-about-menu,
.mza-desktop-nav__about:focus-within .mza-about-menu,
.mza-desktop-nav__about.is-open .mza-about-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mza-about-menu__label {
    display: block;
    padding: 5px 8px 8px;
    color: var(--header-gold);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mza-about-menu__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 10px 8px;
    border-top: 1px solid var(--header-line);
    border-radius: 8px;
    color: var(--header-navy);
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.mza-about-menu__item:hover,
.mza-about-menu__item:focus-visible,
.mza-about-menu__item.is-active {
    color: var(--header-white);
    background: var(--header-navy);
}

.mza-about-menu__number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--header-line);
    border-radius: 8px;
    color: var(--header-gold);
    font-size: 9px;
    font-weight: 600;
}

.mza-about-menu__item:hover
.mza-about-menu__number,
.mza-about-menu__item:focus-visible
.mza-about-menu__number,
.mza-about-menu__item.is-active
.mza-about-menu__number {
    border-color: rgba(255, 255, 255, 0.26);
    color: var(--header-soft-gold, #D8C69D);
}

.mza-about-menu__copy {
    min-width: 0;
}

.mza-about-menu__copy strong,
.mza-about-menu__copy small {
    display: block;
}

.mza-about-menu__copy strong {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.mza-about-menu__copy small {
    color: var(--header-slate);
    font-size: 9px;
    line-height: 1.45;
}

.mza-about-menu__item:hover
.mza-about-menu__copy small,
.mza-about-menu__item:focus-visible
.mza-about-menu__copy small,
.mza-about-menu__item.is-active
.mza-about-menu__copy small {
    color: #CCD7DE;
}

/*
|--------------------------------------------------------------------------
| Desktop right-side actions
|--------------------------------------------------------------------------
*/
.mza-site-header__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.mza-whatsapp-button,
.mza-mobile-whatsapp {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--header-line);
    border-radius: 12px;
    background: var(--header-white);
    text-decoration: none;
}

.mza-whatsapp-button {
    width: 46px;
    height: 46px;
}

.mza-whatsapp-button img,
.mza-mobile-whatsapp img {
    display: block;
    width: 72%;
    height: 72%;
    object-fit: contain;
    object-position: center;
}

.mza-whatsapp-button:hover,
.mza-whatsapp-button:focus-visible,
.mza-mobile-whatsapp:hover,
.mza-mobile-whatsapp:focus-visible {
    border-color: var(--header-green);
}

.mza-consultation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--header-navy);
    border-radius: 12px;
    color: var(--header-white);
    background: var(--header-navy);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.mza-consultation-button:hover,
.mza-consultation-button:focus-visible {
    color: var(--header-navy);
    background: var(--header-white);
}

/*
|--------------------------------------------------------------------------
| Desktop Services mega menu
|--------------------------------------------------------------------------
*/
.mza-services-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0;
    border-top: 1px solid var(--header-line);
    border-bottom: 1px solid var(--header-line);
    background: var(--header-white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
}

.mza-desktop-nav__services:hover .mza-services-menu,
.mza-desktop-nav__services:focus-within .mza-services-menu,
.mza-desktop-nav__services.is-open .mza-services-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mza-services-menu__content {
    display: grid;
    grid-template-columns: 0.75fr 1.55fr;
    gap: 48px;
    padding: 36px 0;
}

.mza-services-menu__heading {
    padding-right: 36px;
    border-right: 1px solid var(--header-line);
}

.mza-services-menu__heading > span {
    display: block;
    margin-bottom: 12px;
    color: var(--header-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mza-services-menu__heading h2 {
    margin: 0 0 13px;
    color: var(--header-navy);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.28;
}

.mza-services-menu__heading p {
    margin: 0;
    color: var(--header-slate);
    font-size: 13px;
    line-height: 1.7;
}

.mza-services-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.mza-services-menu__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 16px 0;
    border-bottom: 1px solid var(--header-line);
    color: var(--header-navy);
    text-decoration: none;
}

.mza-services-menu__item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.mza-services-menu__number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--header-line);
    border-radius: 10px;
    color: var(--header-gold);
    font-size: 11px;
    font-weight: 600;
}

.mza-services-menu__copy {
    min-width: 0;
}

.mza-services-menu__copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.mza-services-menu__copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--header-slate);
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mza-services-menu__arrow {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--header-gold);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 160ms ease;
}

.mza-services-menu__item:hover
.mza-services-menu__arrow {
    transform: translate(2px, -2px);
}

.mza-services-menu__empty {
    margin: 0;
    color: var(--header-slate);
    font-size: 13px;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Mobile header actions
|--------------------------------------------------------------------------
*/
.mza-mobile-actions {
    display: none;
    align-items: center;
    margin-left: auto;
    gap: 9px;
}

.mza-mobile-whatsapp,
.mza-mobile-menu-button {
    width: 44px;
    height: 44px;
}

.mza-mobile-menu-button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--header-line);
    border-radius: 12px;
    background: var(--header-white);
    cursor: pointer;
}

.mza-mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--header-navy);
}

.mza-mobile-menu-button span + span {
    margin-top: 4px;
}

/*
|--------------------------------------------------------------------------
| Mobile drawer
|--------------------------------------------------------------------------
*/
.mza-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(11, 31, 51, 0.58);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.mza-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    width: min(430px, 92vw);
    border-left: 1px solid var(--header-line);
    color: var(--header-navy);
    background: var(--header-white);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 200ms ease;
}

body.mza-mobile-menu-open {
    overflow: hidden;
}

body.mza-mobile-menu-open .mza-mobile-overlay {
    opacity: 1;
    visibility: visible;
}

body.mza-mobile-menu-open .mza-mobile-drawer {
    transform: translateX(0);
}

.mza-mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 18px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--header-line);
}

.mza-mobile-drawer__logo {
    display: flex;
    align-items: center;
    width: 210px;
    max-width: calc(100% - 60px);
    height: 56px;
    overflow: hidden;
    text-decoration: none;
}

.mza-mobile-drawer__close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--header-line);
    border-radius: 11px;
    color: var(--header-navy);
    background: var(--header-white);
    cursor: pointer;
}

.mza-mobile-drawer__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.mza-mobile-nav {
    display: grid;
    padding: 12px 20px 0;
}

.mza-mobile-nav > a,
.mza-mobile-about > button,
.mza-mobile-services > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--header-line);
    color: var(--header-navy);
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.mza-mobile-nav > a.is-active,
.mza-mobile-about.is-open > button,
.mza-mobile-services.is-open > button {
    color: var(--header-gold);
}

.mza-mobile-about > button,
.mza-mobile-services > button {
    width: 100%;
}

.mza-mobile-about > button svg,
.mza-mobile-services > button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 160ms ease;
}

.mza-mobile-about.is-open > button svg,
.mza-mobile-services.is-open > button svg {
    transform: rotate(180deg);
}

.mza-mobile-about__list,
.mza-mobile-services__list {
    display: grid;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 220ms ease,
        opacity 160ms ease,
        padding 160ms ease;
}

.mza-mobile-about.is-open
.mza-mobile-about__list {
    max-height: 230px;
    padding: 8px 0 14px;
    opacity: 1;
}

.mza-mobile-services.is-open
.mza-mobile-services__list {
    max-height: 650px;
    padding: 8px 0 14px;
    opacity: 1;
}

.mza-mobile-about__list a,
.mza-mobile-services__list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--header-line);
    color: var(--header-navy);
    text-decoration: none;
}

.mza-mobile-about__list a.is-active,
.mza-mobile-services__list a.is-active {
    color: var(--header-gold);
}

.mza-mobile-about__list a span,
.mza-mobile-services__list a span {
    color: var(--header-gold);
    font-size: 11px;
    font-weight: 600;
}

.mza-mobile-about__list a strong,
.mza-mobile-services__list a strong {
    font-size: 13px;
    font-weight: 500;
}

.mza-mobile-drawer__footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 22px 20px;
    border-top: 1px solid var(--header-line);
}

.mza-mobile-drawer__consultation,
.mza-mobile-drawer__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 9px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.mza-mobile-drawer__consultation {
    border: 1px solid var(--header-navy);
    color: var(--header-white);
    background: var(--header-navy);
}

.mza-mobile-drawer__whatsapp {
    border: 1px solid var(--header-line);
    color: var(--header-navy);
    background: var(--header-white);
}

.mza-mobile-drawer__whatsapp img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| Focus states
|--------------------------------------------------------------------------
*/
.mza-site-header a:focus-visible,
.mza-site-header button:focus-visible {
    outline: 2px solid var(--header-gold);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/
@media (max-width: 1260px) {
    .mza-desktop-nav__list {
        gap: 14px;
    }

    .mza-desktop-nav__link {
        font-size: 12px;
    }

    .mza-site-header__logo {
        flex-basis: 215px;
        width: 215px;
        max-width: 215px;
    }

    .mza-consultation-button {
        padding-inline: 14px;
        font-size: 12px;
    }
}

@media (max-width: 1130px) {
    .mza-site-header__row {
        min-height: 76px;
    }

    .mza-desktop-nav,
    .mza-site-header__actions {
        display: none;
    }

    .mza-mobile-actions {
        display: flex;
    }

    .mza-site-header__logo {
        flex: 0 1 235px;
        width: 235px;
        max-width: 235px;
        height: 56px;
    }

    .mza-services-menu,
    .mza-about-menu {
        display: none;
    }
}

@media (max-width: 640px) {
    .mza-site-header__container {
        width: min(
            var(--header-max-width),
            calc(100% - 28px)
        );
    }

    .mza-site-header__row {
        min-height: 70px;
        gap: 12px;
    }

    .mza-site-header__logo {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 190px;
        height: 50px;
    }

    .mza-mobile-actions {
        flex: 0 0 auto;
        gap: 8px;
    }

    .mza-mobile-whatsapp,
    .mza-mobile-menu-button {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
}

@media (max-width: 390px) {
    .mza-site-header__container {
        width: min(
            var(--header-max-width),
            calc(100% - 20px)
        );
    }

    .mza-site-header__logo {
        max-width: 160px;
    }

    .mza-mobile-whatsapp,
    .mza-mobile-menu-button {
        width: 40px;
        height: 40px;
    }

    .mza-mobile-drawer__logo {
        width: 185px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mza-site-header *,
    .mza-site-header *::before,
    .mza-site-header *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}