/* ===== topbar ===== */
.ebmnt1-topbar {
    display: none;
    width: 100%;
    background-color: var(--ebmnt1-color-topbar-bg);
}

.ebmnt1-topbar__inner {
    width: calc(100% - 2em);
    max-width: var(--ebmnt1-max-width-container);
    margin-inline: auto;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.ebmnt1-topbar__contact,
.ebmnt1-topbar__social {
    display: flex;
    align-items: center;
    gap: 1.25em;
}

.ebmnt1-topbar__contact-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: var(--ebmnt1-fs-small);
    font-weight: 500;
    color: var(--ebmnt1-color-topbar-text);
}

.ebmnt1-topbar__contact-item i {
    font-size: var(--ebmnt1-fs-icon-small);
    color: var(--ebmnt1-color-topbar-icon);
}

.ebmnt1-topbar__contact-item a {
    transition: color var(--ebmnt1-duration-fast) var(--ebmnt1-ease-main);
}

.ebmnt1-topbar__contact-item a:hover {
    color: var(--ebmnt1-color-topbar-link-hover);
}

.ebmnt1-topbar__social a {
    font-size: var(--ebmnt1-fs-icon-small);
    color: var(--ebmnt1-color-topbar-social-icon);
    transition: color var(--ebmnt1-duration-fast) var(--ebmnt1-ease-main);
}

.ebmnt1-topbar__social a:hover {
    color: var(--ebmnt1-color-topbar-social-hover);
}

/* ===== header (sticky, independent from hero) ===== */
.ebmnt1-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: var(--ebmnt1-color-header-bg);
    border-bottom: 1px solid var(--ebmnt1-color-header-border);
    transition: box-shadow var(--ebmnt1-duration-medium) var(--ebmnt1-ease-main);
}

.ebmnt1-header.is-scrolled {
    box-shadow: 0 0.5rem 1.5rem var(--ebmnt1-color-header-shadow);
}

.ebmnt1-header__inner {
    width: calc(100% - 2em);
    max-width: var(--ebmnt1-max-width-container);
    margin-inline: auto;
    min-height: var(--ebmnt1-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.ebmnt1-logo {
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.ebmnt1-logo__circle {
    display: grid;
    place-items: center;
    width: 2.5rem;
    aspect-ratio: 1;
    border-radius: var(--ebmnt1-radius-circle);
    background-color: var(--ebmnt1-color-logo-circle-bg);
    color: var(--ebmnt1-color-logo-icon);
    font-size: var(--ebmnt1-fs-icon-medium);
}

.ebmnt1-logo__text {
    font-size: var(--ebmnt1-fs-h3);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ebmnt1-color-logo-text);
}

.ebmnt1-header__actions {
    position: relative;
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 1em;
}

.ebmnt1-header__cta {
    display: none;
}

/* ===== burger ===== */
.ebmnt1-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    width: 2.5rem;
    aspect-ratio: 1;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--ebmnt1-color-burger-bg);
}

.ebmnt1-burger__line {
    display: block;
    width: 1.4rem;
    height: 3px;
    border-radius: 6px;
    background-color: var(--ebmnt1-color-burger-line);
    transition: transform var(--ebmnt1-duration-fast) var(--ebmnt1-ease-main), opacity var(--ebmnt1-duration-fast);
}

.ebmnt1-burger.is-open .ebmnt1-burger__line:nth-child(1) {
    transform: translateY(0.45em) rotate(45deg);
}

.ebmnt1-burger.is-open .ebmnt1-burger__line:nth-child(2) {
    opacity: 0;
}

.ebmnt1-burger.is-open .ebmnt1-burger__line:nth-child(3) {
    transform: translateY(-0.45em) rotate(-45deg);
}

/* ===== nav : parent (overlay on mobile) > panel (aside on mobile) ===== */
.ebmnt1-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    background-color: var(--ebmnt1-color-nav-overlay-bg);
    transition: opacity var(--ebmnt1-duration-medium) var(--ebmnt1-ease-main), visibility var(--ebmnt1-duration-medium);
}

.ebmnt1-nav.is-open {
    visibility: visible;
    opacity: 1;
}

.ebmnt1-nav__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(80vw, 20rem);
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: 1.25em 0 1.5em;
    overflow-y: auto;
    background-color: var(--ebmnt1-color-nav-panel-bg);
    box-shadow: 0 0 2rem var(--ebmnt1-color-nav-panel-shadow);
    transform: translateX(100%);
    transition: transform var(--ebmnt1-duration-medium) var(--ebmnt1-ease-main);
}

.ebmnt1-nav.is-open .ebmnt1-nav__panel {
    transform: translateX(0);
}

.ebmnt1-nav__close {
    align-self: flex-start;
    display: grid;
    place-items: center;
    width: 2.5rem;
    aspect-ratio: 1;
    margin-inline-start: 1.25em;
    border: none;
    border-radius: var(--ebmnt1-radius-circle);
    background-color: var(--ebmnt1-color-nav-close-bg);
    color: var(--ebmnt1-color-nav-close-icon);
    font-size: var(--ebmnt1-fs-icon-medium);
}

.ebmnt1-nav__list {
    display: flex;
    flex-direction: column;
}

.ebmnt1-nav__item {
    position: relative;
    border-bottom: 1px solid var(--ebmnt1-color-nav-panel-border);
}

.ebmnt1-nav__link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    padding: 0.8em 1.25em;
    border: none;
    background: none;
    font-family: inherit;
    font-size: var(--ebmnt1-fs-body);
    font-weight: 500;
    color: var(--ebmnt1-color-nav-panel-link-text);
    transition: color var(--ebmnt1-duration-fast) var(--ebmnt1-ease-main);
}

.ebmnt1-nav__link:hover {
    color: var(--ebmnt1-color-nav-panel-link-hover);
}

.ebmnt1-nav__arrow {
    font-size: var(--ebmnt1-fs-small);
    color: var(--ebmnt1-color-dropdown-arrow-icon);
    transition: transform var(--ebmnt1-duration-fast) var(--ebmnt1-ease-main);
}

.ebmnt1-nav__item.is-open .ebmnt1-nav__arrow {
    transform: rotate(180deg);
}

.ebmnt1-nav__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ebmnt1-duration-medium) var(--ebmnt1-ease-main);
}

.ebmnt1-nav__item.is-open .ebmnt1-nav__sub {
    max-height: 30rem;
}

.ebmnt1-nav__sub-link {
    display: block;
    padding: 0.6em 2.25em;
    font-size: var(--ebmnt1-fs-body);
    color: var(--ebmnt1-color-nav-panel-link-text);
    transition: color var(--ebmnt1-duration-fast) var(--ebmnt1-ease-main);
}

.ebmnt1-nav__sub-link:hover {
    color: var(--ebmnt1-color-nav-panel-link-hover);
}

.ebmnt1-nav__panel-cta {
    align-self: flex-start;
    margin-inline-start: 1.25em;
}

.ebmnt1-nav__panel-cta .ebmnt1-btn__label {
    background-color: var(--ebmnt1-color-nav-panel-cta-bg);
    color: var(--ebmnt1-color-nav-panel-cta-text);
}

.ebmnt1-nav__panel-cta:hover .ebmnt1-btn__label {
    color: var(--ebmnt1-color-btn-label-text);
}

@media (min-width: 768px) {
    .ebmnt1-topbar {
        display: block;
    }

    .ebmnt1-header__cta {
        display: inline-flex;
    }
}

/* ===== desktop nav ===== */
@media (min-width: 1024px) {
    .ebmnt1-burger,
    .ebmnt1-nav__close,
    .ebmnt1-nav__panel-cta {
        display: none;
    }

    .ebmnt1-nav {
        position: static;
        flex: 1;
        display: flex;
        justify-content: center;
        visibility: visible;
        opacity: 1;
        background: none;
    }

    .ebmnt1-nav__panel {
        position: static;
        width: auto;
        padding: 0;
        flex-direction: row;
        overflow: visible;
        background: none;
        box-shadow: none;
        transform: none;
    }

    .ebmnt1-nav__list {
        flex-direction: row;
        align-items: center;
    }

    .ebmnt1-nav__item {
        border-bottom: none;
    }

    .ebmnt1-nav__link {
        padding: 0.9em 0.9em;
        color: var(--ebmnt1-color-nav-link-text);
    }

    .ebmnt1-nav__link:hover,
    .ebmnt1-nav__item:hover > .ebmnt1-nav__link {
        color: var(--ebmnt1-color-nav-link-hover);
    }

    .ebmnt1-nav__arrow {
        color: var(--ebmnt1-color-nav-arrow-icon);
    }

    .ebmnt1-nav__item:hover .ebmnt1-nav__arrow {
        transform: rotate(180deg);
    }

    .ebmnt1-nav__sub {
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        width: 15rem;
        max-height: none;
        padding: 0.4em 0;
        border-radius: 1.25rem;
        background-color: var(--ebmnt1-color-dropdown-bg);
        visibility: hidden;
        opacity: 0;
        transform: scale(1, 0.8);
        transform-origin: top;
        transition: all var(--ebmnt1-duration-fast) var(--ebmnt1-ease-main);
    }

    .ebmnt1-nav__item.is-open .ebmnt1-nav__sub {
        max-height: none;
    }

    .ebmnt1-nav__item:hover > .ebmnt1-nav__sub,
    .ebmnt1-nav__item:focus-within > .ebmnt1-nav__sub {
        visibility: visible;
        opacity: 1;
        transform: scale(1, 1);
    }

    .ebmnt1-nav__sub-link {
        padding: 0.4em 1.25em;
        color: var(--ebmnt1-color-dropdown-link-text);
    }

    .ebmnt1-nav__sub-link:hover {
        color: var(--ebmnt1-color-dropdown-link-hover);
        padding-inline-start: 1.5em;
    }
}
