/* ============================================================
   Lisafunktsioonid – Header  (reset kõik teema stiilid)
   ============================================================ */

.lf-header,
.lf-header * {
    box-sizing: border-box;
}

.lf-header {
    background: #124267;
    color: #fff;
    width: 100%;
    font-family: inherit;
}

/* ============================================================
   ÜLEMINE RIDA
   ============================================================ */

.lf-header__top {
    background: #124267;
}

.lf-header__top-inner {
    display: flex;
    align-items: center;
    height: 76px;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 16px;
}

.lf-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
    color: #fff !important;
    gap: 10px;
}

.lf-header__logo img {
    height: 32px;
    width: auto;
    display: block;
}

.lf-header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.lf-header__logo-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    display: block;
}

.lf-header__logo-text span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    display: block;
}

.lf-header__tools {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lf-header__tools .lf-search-form,
.lf-header__tools .lf-search-wrap {
    width: 100%;
    max-width: 420px;
}

.lf-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lf-header__hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    color: #fff;
    margin-left: auto;

}

.lf-header__hamburger:hover {
    background: none;
}

.lf-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
}

.lf-hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

.lf-header__hamburger[aria-expanded="true"] .lf-hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lf-header__hamburger[aria-expanded="true"] .lf-hamburger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.lf-header__hamburger[aria-expanded="true"] .lf-hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lf-hamburger-label {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1;
}

/* ============================================================
   ALUMINE RIDA – menüü
   ============================================================ */

.lf-header__nav-bar {
    background: #124267;
}

.lf-header__nav-inner {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.lf-header__nav {
    display: block;
}

.lf-header__menu {
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    height: 32px;
    overflow: visible !important;
}

.lf-header__menu li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    flex-shrink: 0;
}

.lf-header__menu li::before,
.lf-header__menu li::marker {
    display: none !important;
    content: none !important;
}

.lf-header__menu-item > a {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    padding: 0 10px;
    height: 32px;
    color: rgb(255,255,255) !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 300;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}

.lf-header__menu-item > a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    text-decoration: none !important;
}

.lf-header__menu-item.lf-current > a {
    background: #ffffff !important;
    color: #124267 !important;
    border-radius: 2px 2px 0 0;
}

.lf-header__menu-item.lf-current > a:hover {
    background: #ffffff !important;
    color: #124267 !important;
}

.lf-menu-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lf-menu-home-icon svg {
    display: block;
}

.lf-menu-home > a {
    padding: 0 8px !important;
}

.lf-ext-icon {
    display: inline-block;
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: 2px;
    vertical-align: middle;
    stroke: currentColor;
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */

.lf-mobile-menu {
    display: none;
    flex-direction: column;
    background: #0e3354;
}

.lf-mobile-menu.lf-open { display: flex; }

.lf-mobile-menu__list {
    list-style: none !important;
    margin: 0;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lf-mobile-menu__list li {
    list-style: none !important;
}

.lf-mobile-menu__list li::before,
.lf-mobile-menu__list li::marker {
    display: none !important;
    content: none !important;
}

.lf-mobile-menu__list li a {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1rem;
    transition: background 0.12s;
}

.lf-mobile-menu__list li a:hover { background: rgba(255,255,255,0.08); }

.lf-mobile-menu__tools {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.lf-mobile-menu__tools .lf-search-form { width: 100%; max-width: 100%; }

.lf-mobile-menu__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

@media (max-width: 860px) {
    .lf-header__tools   { display: none; }
    .lf-header__actions { display: none; }
    .lf-header__hamburger { display: flex; }
    .lf-header__nav-bar { display: none; }

    .lf-header__top-inner {
        padding: 16px 16px;
        height: auto;
        align-items: center;
    }

    .lf-header__logo {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .lf-header__top-inner {
        padding: 16px 12px;
    }
}

/* ============================================================
   KODU TAB – valge kast sinise tekstiga
   ============================================================ */

.lf-menu-home > a,
.lf-menu-home.lf-current > a,
.lf-menu-home > a:hover {
    background: none !important;
    color: #fff !important;
    width: auto !important;
    height: 32px !important;
    padding: 0 8px !important;
    border-radius: 0 !important;
    font-size: 16px;
    font-weight: 300;
    align-self: flex-end !important;
    margin-bottom: 0 !important;
    justify-content: center !important;
}
