/* ========================================
   NAVBAR
======================================== */

.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 24px);
    max-width: 1200px;
    min-height: 64px;

    padding: 8px 10px 8px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e5e5;
    border-radius: 999px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 1000;
}

/* ========================================
   LOGO
======================================== */

.navbar-logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.navbar-logo a {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    display: block;

    width: 92px;
    height: auto;

    object-fit: contain;
}

/* ========================================
   LINKS
======================================== */

.navbar-links {
    display: none;
}

.navbar-links a {
    color: #111;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition: color .2s ease;
}

.navbar-links a:hover {
    color: #666;
}

/* ========================================
   ACTIONS
======================================== */

.navbar-actions {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.login-button {
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    background: #111;
    color: #fff;

    border-radius: 999px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        transform .2s ease,
        background .2s ease;
}

.login-button:hover {
    background: #222;

    transform: translateY(-1px);
}

/* ========================================
   MOBILE - VERY SMALL
======================================== */

@media (max-width: 380px) {

    .navbar {
        width: calc(100% - 20px);

        top: 10px;

        min-height: 58px;

        padding: 7px 7px 7px 14px;
    }

    .navbar-logo img {
        width: 78px;
    }

    .login-button {
        height: 38px;

        padding: 0 13px;

        font-size: 10px;
    }
}

/* ========================================
   MOBILE - NORMAL
======================================== */

@media (min-width: 480px) {

    .navbar {
        width: calc(100% - 32px);

        padding-left: 20px;
        padding-right: 10px;
    }

    .navbar-logo img {
        width: 100px;
    }

    .login-button {
        height: 44px;

        padding: 0 20px;

        font-size: 12px;
    }
}

/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) {

    .navbar {
        top: 16px;

        width: calc(100% - 48px);

        min-height: 68px;

        padding: 8px 12px 8px 22px;
    }

    .navbar-logo img {
        width: 105px;
    }

    .navbar-links {
        display: flex;
        align-items: center;

        gap: 28px;

        margin-left: auto;
        margin-right: 30px;
    }

    .navbar-actions {
        display: flex;
    }

    .login-button {
        height: 46px;

        padding: 0 22px;

        font-size: 12px;
    }
}

/* ========================================
   DESKTOP
======================================== */

@media (min-width: 1024px) {

    .navbar {
        width: calc(100% - 80px);

        height: 76px;

        padding: 0 12px 0 24px;
    }

    .navbar-logo img {
        width: 110px;
    }

    .navbar-links {
        gap: 36px;

        margin-right: 36px;
    }

    .navbar-links a {
        font-size: 14px;
    }

    .login-button {
        height: 48px;

        padding: 0 28px;

        font-size: 13px;
    }
}

/* ========================================
   LARGE DESKTOP
======================================== */

@media (min-width: 1280px) {

    .navbar-links {
        gap: 40px;
    }

    .navbar-links a {
        font-size: 15px;
    }

    .login-button {
        font-size: 14px;
    }
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    margin-left: 6px;

    border: 0;
    border-radius: 50%;

    background: #f2f2f2;
    color: #111;

    cursor: pointer;

    font-size: 14px;
}

@media (max-width: 767px) {

    .mobile-menu-button {
        display: flex;
    }

    .navbar-actions {
        gap: 2px;
    }
}

/* ========================================
   MOBILE MENU
======================================== */

@media (max-width: 767px) {

    .navbar {
        position: fixed;
    }

    .navbar-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        padding: 8px;

        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #e5e5e5;
        border-radius: 20px;

        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);

        pointer-events: none;

        transition:
            opacity .2s ease,
            visibility .2s ease,
            transform .2s ease;
    }

    .navbar-links a {
        display: flex;
        align-items: center;

        min-height: 44px;

        padding: 0 16px;

        border-radius: 12px;

        font-size: 13px;
        font-weight: 600;

        transition:
            background .2s ease,
            color .2s ease;
    }

    .navbar-links a:hover {
        background: #f5f5f5;
        color: #111;
    }

    /* MENU ABERTO */
    .navbar.menu-open .navbar-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-menu-button {
        transition:
            background .2s ease,
            transform .2s ease;
    }

    .mobile-menu-button:hover {
        background: #e9e9e9;
    }

    .mobile-menu-button:active {
        transform: scale(.95);
    }
}