.kgv-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

.kgv-header__inner {
    max-width: 1320px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 28px;
}

.kgv-header__logo {
    flex-shrink: 0;
}

.kgv-header__logo img {
    display: block;
    max-height: 58px;
    width: auto;
}

.kgv-header__nav {
    margin-left: auto;
}

.kgv-menu {
    display: flex;
    align-items: center;
    gap: 26px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.kgv-menu li {
    position: relative;
    margin: 0;
}

.kgv-menu a {
    color: #1f2933;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.kgv-menu a:hover {
    color: #2f7d32;
}

.kgv-header__actions {
    flex-shrink: 0;
}

.kgv-header__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    background: #2f7d32;
    color: #ffffff;
    text-decoration: none;

    border-radius: 6px;

    font-size: 15px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.kgv-header__contact:hover {
    background: #266929;
    color: #ffffff;
}

/* Dropdown parent */
.kgv-menu .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Mala strelica */
.kgv-menu .menu-item-has-children > a::after {
    content: "⌄";
    font-size: 12px;
    line-height: 1;
    transform: translateY(-1px);
}

/* Dropdown */
.kgv-menu .sub-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;

    min-width: 240px;
    margin: 0;
    padding: 10px;

    list-style: none;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 2000;
}

/* Dropdown stavke */
.kgv-menu .sub-menu li {
    width: 100%;
}

.kgv-menu .sub-menu a {
    display: block;
    width: 100%;

    padding: 11px 14px;

    border-radius: 7px;

    color: #1f2933;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Hover */
.kgv-menu .sub-menu a:hover {
    background: #f4f7f4;
    color: #2f7d32;
}

/* Prikaz dropdown-a */
.kgv-menu .menu-item-has-children:hover > .sub-menu,
.kgv-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   MOBILE HEADER
========================= */

.kgv-header__toggle {
    display: none;
    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;
}

.kgv-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;

    background: #1f2933;

    border-radius: 2px;
}

/* Mobile */
@media (max-width: 900px) {

    .kgv-header__inner {
        min-height: 72px;
        padding: 0 18px;
        gap: 16px;

        position: relative;
    }

    .kgv-header__logo img {
        max-height: 50px;
    }

    .kgv-header__toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .kgv-header__actions {
        display: none;
    }

    .kgv-header__nav {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        margin: 0;

        background: #ffffff;

        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);

        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;

        z-index: 1999;
    }

    .kgv-header.is-menu-open .kgv-header__nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .kgv-menu {
        display: block;

        width: 100%;

        margin: 0;
        padding: 12px 18px 18px;

        list-style: none;
    }

    .kgv-menu > li {
        width: 100%;

        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .kgv-menu > li:last-child {
        border-bottom: 0;
    }

    .kgv-menu > li > a {
        display: flex;
        align-items: center;

        width: 100%;

        padding: 15px 0;

        font-size: 16px;
        font-weight: 600;
    }

    /* Na telefonu isključujemo desktop hover dropdown */
    .kgv-menu .sub-menu {
        position: static;

        min-width: 0;
        width: 100%;

        margin: 0;
        padding: 0 0 8px 14px;

        border: 0;
        border-radius: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none;

        display: none;
    }

    .kgv-menu .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .kgv-menu .sub-menu a {
        padding: 10px 0;

        font-size: 14px;
        font-weight: 500;

        white-space: normal;
    }

    .kgv-menu .menu-item-has-children > a {
        justify-content: space-between;
    }

    .kgv-menu .menu-item-has-children > a::after {
        content: "+";

        font-size: 20px;
        font-weight: 400;

        transform: none;
    }

    .kgv-menu .menu-item-has-children.submenu-open > a::after {
        content: "−";
    }
}

/* =========================
   STICKY HEADER
========================= */

.kgv-header {
    position: sticky;
    top: 0;
    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.kgv-header__inner {
    transition:
        min-height 0.25s ease,
        padding 0.25s ease;
}

.kgv-header__logo img {
    transition: max-height 0.25s ease;
}

.kgv-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.kgv-header.is-scrolled .kgv-header__inner {
    min-height: 68px;
}

.kgv-header.is-scrolled .kgv-header__logo img {
    max-height: 46px;
}

@media (max-width: 900px) {

    .kgv-header.is-scrolled .kgv-header__inner {
        min-height: 64px;
    }

    .kgv-header.is-scrolled .kgv-header__logo img {
        max-height: 44px;
    }
}