/* =========================================================
   HEADER BLOCK — BEM
   ========================================================= */

.smartfix-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--sf-bg-white);
    border-bottom: 1px solid var(--sf-border-color);
    padding: 0 var(--sf-padding-section);
}

.smartfix-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 103px;
}

.smartfix-header__logo {
    flex-shrink: 0;
}

.smartfix-header__logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.smartfix-header__logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.smartfix-header__logo-text {
    font-family: var(--sf-font-logo);
    font-size: var(--sf-fs-logo);
    color: var(--sf-text-dark);
    line-height: 1;
    letter-spacing: 0;
}

/* Nav */
.smartfix-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.smartfix-header__menu {
    display: flex;
    align-items: center;
    gap: var(--sf-gap-nav);
    list-style: none;
    margin: 0;
    padding: 0;
}

.smartfix-header__menu li a {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-nav);
    color: var(--sf-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.smartfix-header__menu li a:hover,
.smartfix-header__menu li.current-menu-item a {
    color: var(--sf-color-primary);
}

/* CTA */
.smartfix-header__cta {
    flex-shrink: 0;
    height: 43px;
}

/* Burger — hidden on desktop */
.smartfix-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.smartfix-header__burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--sf-text-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 834px) {
    .smartfix-header {
        padding: 0 24px;
    }

    .smartfix-header__inner {
        height: 72px;
        position: relative;
    }

    .smartfix-header__burger {
        display: flex;
    }

    .smartfix-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -24px;
        right: -24px;
        background: var(--sf-bg-white);
        border-top: 1px solid var(--sf-border-color);
        padding: 20px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .smartfix-header__nav--open {
        display: block;
    }

    .smartfix-header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .smartfix-header__cta {
        display: none;
    }

    /* Burger open state */
    .smartfix-header__burger[aria-expanded="true"] .smartfix-header__burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .smartfix-header__burger[aria-expanded="true"] .smartfix-header__burger-line:nth-child(2) {
        opacity: 0;
    }

    .smartfix-header__burger[aria-expanded="true"] .smartfix-header__burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Mobile */
@media (max-width: 375px) {
    .smartfix-header {
        padding: 0 16px;
    }
}
