/* Hamburger menü stílusok */

/* Hamburger gomb - alapértelmezetten rejtett */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--vaillant-teal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animáció amikor aktív (X alakra változik) */
.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobil menü - alapértelmezetten rejtett */
.mobile-menu {
    display: none;
    position: fixed;
    top: 99px; /* header-top (41px) + header-main (58px) magassága alatt */
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
    padding: 20px 0;
}

.mobile-menu a {
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--vaillant-gray);
    transition: background-color 0.2s;
}

.mobile-menu a:hover {
    background-color: var(--vaillant-teal-light);
    color: var(--vaillant-teal);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .mobile-phone {
    background: var(--vaillant-teal);
    color: var(--white);
    margin: 10px 20px;
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border-bottom: none;
}

.mobile-menu .mobile-phone:hover {
    background: #007d6a;
}

/* Body scroll letiltása amikor menü nyitva */
body.menu-open {
    overflow: hidden;
}

/* Mobil nézet - 768px alatt */
@media (max-width: 768px) {
    /* Hamburger gomb megjelenítése */
    .hamburger {
        display: flex;
    }

    /* Asztali menü és telefonszám gomb elrejtése */
    .nav,
    .phone-btn {
        display: none !important;
    }

    /* Mobil menü megjelenítése */
    .mobile-menu {
        display: flex;
    }

    /* Header main padding módosítása mobilon */
    .header-main {
        padding: 12px 0;
    }

    /* Logo méret módosítása mobilon */
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text span {
        font-size: 11px;
    }
}

/* Tablet nézet - 769px és 1024px között */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hamburger és mobil menü rejtve */
    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    /* Asztali menü látható, de kisebb betűmérettel */
    .nav {
        gap: 20px;
    }

    .nav a {
        font-size: 14px;
    }

    .phone-btn {
        font-size: 14px;
        padding: 10px 18px;
    }
}
