/* ===============================================
   ALOPAK – glavna navigacija
   =============================================== */

.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 52, 98, 0.12);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px clamp(20px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

/* LOGO */

.logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    border-radius: 8px;
}

.logo-wrap:focus-visible {
    outline: 3px solid rgba(14, 84, 143, 0.4);
    outline-offset: 4px;
}

.logo-img {
    display: block;
    height: 52px;
    width: auto;
}

/* NAV */

.nav-holder {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    color: #12344d;
    font-size: 18.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
    color: #0e548f;
    background: rgba(14, 84, 143, 0.07);
}

.nav-link:focus-visible {
    outline: 3px solid rgba(14, 84, 143, 0.4);
    outline-offset: 2px;
}

/* STRELICA */

.has-dropdown>.nav-link::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.22s ease, margin-top 0.22s ease;
}

.has-dropdown:hover>.nav-link::after,
.has-dropdown:focus-within>.nav-link::after,
.has-dropdown.open>.nav-link::after {
    transform: rotate(225deg);
    margin-top: 3px;
}

/* DROPDOWN */

.dropdown-menu {
    position: absolute;
    top: calc(100%);
    left: 50%;
    min-width: 250px;
    padding: 8px;
    list-style: none;

    background: #ffffff;
    border: 1px solid rgba(0, 52, 98, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 52, 98, 0.16);

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    pointer-events: none;

    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.has-dropdown:hover>.dropdown-menu,
.has-dropdown:focus-within>.dropdown-menu,
.has-dropdown.open>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 11px 14px;
    color: #17384f;
    font-size: 16.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(14, 84, 143, 0.09);
    color: #003462;
    padding-left: 18px;
    outline: none;
}

.dropdown-link--all {
    border-bottom: 1px solid rgba(0, 52, 98, 0.1);
    border-radius: 10px 10px 0 0 !important;
    margin-bottom: 4px;
    color: #0e548f !important;
    font-weight: 800 !important;
}

.dropdown-toggle {
    cursor: pointer;
}

/* KONTAKT DUGME */

.contact-btn {
    margin-left: 10px;
    color: #fff !important;
    background: linear-gradient(135deg, #0e548f, #003462);
    box-shadow: 0 8px 20px rgba(0, 52, 98, 0.22);
}

.contact-btn:hover {
    background: linear-gradient(135deg, #003462, #001f3b);
    transform: translateY(-1px);
}

/* BURGER */

.burger-btn {
    display: none;
    width: 46px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e548f, #003462);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.burger-btn:focus-visible {
    outline: 3px solid rgba(14, 84, 143, 0.4);
    outline-offset: 2px;
}

.burger-btn span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========== MOBILNI MENI =========== */

@media (max-width: 980px) {

    .burger-btn {
        display: flex;
    }

    .nav-holder {
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        padding: 12px;
        background: #ffffff;
        border: 1px solid rgba(0, 52, 98, 0.12);
        border-radius: 18px;
        box-shadow: 0 22px 50px rgba(0, 52, 98, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        font-size: 17px;
        padding: 13px 16px;
    }

    .contact-btn {
        margin-left: 0;
        margin-top: 6px;
        justify-content: center;
    }

    /* DROPDOWN – harmonika */

    .dropdown-menu,
    .has-dropdown:hover>.dropdown-menu,
    .has-dropdown:focus-within>.dropdown-menu,
    .has-dropdown.open>.dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 4px 0 6px;
        padding: 6px;
        border: none;
        box-shadow: none;
        background: rgba(14, 84, 143, 0.06);

        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .has-dropdown.open>.dropdown-menu {
        display: block;
    }

    /* Na dodir nema hover otvaranja */
    .has-dropdown:hover>.dropdown-menu,
    .has-dropdown:focus-within>.dropdown-menu {
        display: none;
    }

    .has-dropdown.open:hover>.dropdown-menu,
    .has-dropdown.open:focus-within>.dropdown-menu {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {

    .nav-link,
    .dropdown-menu,
    .burger-btn span,
    .has-dropdown>.nav-link::after {
        transition: none;
    }
}