/*
 * tindAir HEADER
 * Csak a fejléc stílusai vannak ebben a fájlban.
 */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    margin: 0;
    border: none;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    width: 100%;
    min-height: 72px;
    height: 72px;
    margin: 0;
    padding: 0 clamp(20px, 4vw, 72px);
    display: flex;
    align-items: center;
    gap: 32px;
    transition:
        height 0.25s ease,
        min-height 0.25s ease;
}

.site-header.scrolled {
    background: rgba(235, 237, 239, 0.96);
    color: var(--tindair-text);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .header-inner {
    min-height: 56px;
    height: 56px;
}

.site-header .custom-logo {
    filter: brightness(0) invert(1);
    transition: filter 0.25s ease;
}


.site-header.scrolled .custom-logo {
    filter: none;
}

.site-brand {
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
    line-height: 1;
    color: inherit;
}

.brand-main {
    font-size: clamp(1.55rem, 2.1vw, 2.15rem);
    font-weight: 750;
    letter-spacing: -0.06em;
}

.brand-sub {
    margin-top: 5px;
    margin-left: 42%;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-brand-logo,
.site-brand-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-header .custom-logo {
    width: auto;
    height: auto;
    max-width: 130px;
    max-height: 44px;
    transition:
        max-width 0.25s ease,
        max-height 0.25s ease;
}

.site-header.scrolled .custom-logo {
    max-width: 110px;
    max-height: 34px;
}

.site-header .site-brand,
.site-header .site-brand-logo,
.site-header .custom-logo-link {
    width: auto;
    max-height: 44px;
    display: flex;
    align-items: center;
    transition: max-height 0.25s ease;
}

.site-header.scrolled .site-brand,
.site-header.scrolled .site-brand-logo,
.site-header.scrolled .custom-logo-link {
    max-height: 34px;
}

.main-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.5vw, 42px);
}

.main-navigation a {
    position: relative;
    padding: 10px 0;
    font-size: 0.94rem;
    font-weight: 600;
    color: inherit;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 4px;
    height: 2px;
    background: currentColor;
    transition: right 180ms ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    font-size: 0.92rem;
    font-weight: 650;
    white-space: nowrap;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    padding: 0 17px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.88rem;
    line-height: 1;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        height 0.25s ease,
        min-height 0.25s ease,
        padding 0.25s ease,
        font-size 0.25s ease;
}

.site-header.scrolled .header-cta {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 0.80rem;
}

.header-cta:hover,
.header-cta:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--tindair-text);
}

.site-header.scrolled .header-cta:hover,
.site-header.scrolled .header-cta:focus-visible {
    background: var(--tindair-dark);
    border-color: var(--tindair-dark);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    background: transparent;
    color: inherit;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 68px;
        height: 68px;
        padding: 0 20px;
    }

    .site-header.scrolled .header-inner {
        min-height: 50px;
        height: 50px;
    }

    .site-header .custom-logo {
        max-width: 120px;
        max-height: 42px;
    }

    .site-header.scrolled .custom-logo {
        max-width: 88px;
        max-height: 30px;
    }

    .site-header .site-brand,
    .site-header .site-brand-logo,
    .site-header .custom-logo-link {
        max-height: 42px;
    }

    .site-header.scrolled .site-brand,
    .site-header.scrolled .site-brand-logo,
    .site-header.scrolled .custom-logo-link {
        max-height: 30px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 14px 20px 24px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(232, 234, 236, 0.99);
        color: var(--tindair-text);
        box-shadow: 0 18px 28px rgba(0, 0, 0, 0.08);
    }

    .site-header.nav-open {
        background: rgba(232, 234, 236, 0.99);
        color: var(--tindair-text);
    }

    .site-header.nav-open .main-navigation {
        display: flex;
    }

    .main-navigation a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .main-navigation a:last-child {
        border-bottom: 0;
    }

    .header-actions {
        display: none;
    }

    .site-header.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 62px;
        height: 62px;
        padding: 0 16px;
    }

    .site-header.scrolled .header-inner {
        min-height: 46px;
        height: 46px;
    }

    .site-header .custom-logo {
        max-width: 105px;
        max-height: 38px;
    }

    .site-header.scrolled .custom-logo {
        max-width: 72px;
        max-height: 26px;
    }

    .site-header .site-brand,
    .site-header .site-brand-logo,
    .site-header .custom-logo-link {
        max-height: 38px;
    }

    .site-header.scrolled .site-brand,
    .site-header.scrolled .site-brand-logo,
    .site-header.scrolled .custom-logo-link {
        max-height: 26px;
    }
}

@media (max-width: 420px) {
    .brand-main {
        font-size: 1.55rem;
    }
}
