/* ======== HEADER ======== */

.mp-header {
    width: 100%;
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: 0.5s ease;
}

.mp-header-inner {
    max-width: var(--section-max);
    padding: 22px var(--side-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.5s ease;
}

.mp-header.scrolled .mp-header-inner {
    padding: 12px var(--side-padding);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.mp-logo img {
    height: 60px;
    transition: .2s;
}

.mp-header.scrolled .mp-logo img {
    height: 48px;
}

/* ======== NAV (DESKTOP) ======== */

/* wrapper */
.mp-nav {
    display: flex;
    align-items: center;
}

/* MENÜ LISTA – itt nem .mp-menu ul, hanem maga a .mp-menu az UL */
.mp-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.mp-menu li {
    margin: 0;
    padding: 0;
}

.mp-menu a {
    position: relative;
    text-decoration: none;
    color: #dbe6f3;
    font-size: 20px;
    transition: color .2s ease;
}

/* aláhúzás animáció */
.mp-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
    border-radius: 999px;
}

.mp-menu a:hover,
.mp-menu .current-menu-item > a {
    color: #fff;
}

.mp-menu a:hover::after,
.mp-menu .current-menu-item > a::after {
    transform: scaleX(1);
}

/* ======== HAMBURGER ======== */

.mp-burger {
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mp-burger span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: .3s ease;
}

.mp-burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mp-burger.active span:nth-child(2) {
    opacity: 0;
}
.mp-burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ======== MOBILE NAV ======== */

.mp-mobile-menu {
    background: var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.mp-mobile-menu.open {
    max-height: 400px;
}

.mp-mobile-list {
    padding: 20px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
}

.mp-mobile-list li {
    width: 100%;
    text-align: center;
}

.mp-mobile-list a {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 0;
    display: inline-block;
}

.mp-mobile-list a:hover {
    opacity: 0.9;
}

@media (max-width: 1024px) {
    /* mobilon magát a .mp-menu-t rejtsük el */
    .mp-menu {
        display: none;
    }

    .mp-burger {
        display: flex;
    }

    .mp-header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}
