/* ==================================================
   HEADER
================================================== */

.em-site-header {
    max-width: var(--em-max-width);
    margin: 0 auto;
    padding: 25px 20px;
}

/* ==================================================
   BRANDING
================================================== */

.em-site-branding a {
    color: var(--em-blue);
    text-decoration: none;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

/* ==================================================
   LOGO
================================================== */

.custom-logo {
    width: auto;
    max-height: 120px;
}

@media (max-width: 768px) {

    .custom-logo {
        max-height: 70px;
    }

}

/* ==================================================
   TOP BAR
================================================== */

.em-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.em-header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* ==================================================
   ACTION BUTTONS
================================================== */

.em-search-icon,
.em-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;

    color: var(--em-dark);
    font-size: 2rem;

    transition: color 0.2s ease;
}

.em-search-icon:hover,
.em-login-icon:hover,
.em-search-icon:focus-visible,
.em-login-icon:focus-visible {
    color: var(--em-blue);
}

@media (max-width: 768px) {

    .em-search-icon,
    .em-login-icon {
        font-size: 1.5rem;
    }

}

/* ==================================================
   MAIN NAVIGATION
================================================== */

.em-main-navigation {
    margin-top: 20px;

    overflow-x: auto;

    white-space: nowrap;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.em-main-navigation::-webkit-scrollbar {
    display: none;
}

.em-main-navigation ul {
    display: flex;
    flex-wrap: nowrap;

    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.em-main-navigation a {
    color: var(--em-dark);
    text-decoration: none;
    font-weight: 600;
}

.em-main-navigation a:hover,
.em-main-navigation a:focus-visible {
    color: var(--em-blue);
}

/* Navigation active */

.em-main-navigation .current-menu-item > a,
.em-main-navigation .current-menu-parent > a,
.em-main-navigation .current-menu-ancestor > a {
    color: var(--em-blue);
}

.em-main-navigation a[aria-current="page"] {
    color: var(--em-blue);
}
