nav{
    display: flex;
    flex-direction: row;
    height: 60px;
    align-items: center;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.05);
}

nav span{
    color: #573cf9;
}

.page-loader{
    z-index: 99999;
    width: 100%;
    height: 100%;
    inset: 0;
    background-color: #573cf9;
    position: fixed;
}

.nav-onama {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 100px;
    border: 1.5px solid #573cf9;
    color: #573cf9 !important;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-onama:hover {
    background: #573cf9;
    color: white !important;
}


#phone-number {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    background: #573cf9;
    color: white;
    height: 38px;
    border-radius: 100px;
    padding: 0 16px 0 12px;
    margin-right: 15px;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-feature-settings: "tnum";
    box-shadow: 0 2px 10px rgba(87,60,249,0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

#phone-number:hover {
    box-shadow: 0 4px 16px rgba(87,60,249,0.45);
    transform: translateY(-1px);
}

#green-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: greenPulse 2.2s ease-in-out infinite;
}

@keyframes greenPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
    50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

#logo{
    max-height: 60px;
    max-width: 200px;
}

.row{
    justify-content: space-around;
}

/* POP UP */
.scroll-to-top {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    padding: 14px 32px;
    border-radius: 100px;

    opacity: 0;
    visibility: hidden;

    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;

    background-color: #ffbc27;
    color: #1a0a4f;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    user-select: none;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scroll-to-top:hover {
    background-color: #ffd166;
    box-shadow: 0 6px 32px rgba(0,0,0,0.3);
}

.nav-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

@media (min-width: 768px) {
}

@media (max-width: 767px) {
    /* Vertikalno centriranje logo linka */
    #main-nav .width-container > a {
        display: inline-flex;
        align-items: center;
    }

    /* Logo malo veći */
    #logo {
        height: 44px;
        width: auto;
    }

    /* O nama i broj gumb malo manji */
    .nav-onama {
        height: 30px;
        font-size: 0.75rem;
        padding: 0 11px;
    }

    #phone-number {
        height: 32px;
        font-size: 0.78rem;
        padding: 0 11px 0 9px;
        margin-right: 12px;
    }

    /* Logo lijevo, gumbi desno */
    #main-nav .width-container {
        justify-content: space-between;
    }
}