/* Top navigation — a floating frosted-glass pill, as on appdeft.ai. */

.tm-topbar {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none; /* only the pill itself takes clicks */
}

.tm-topbar-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: calc(var(--vs-container) + 40px);
    min-height: 70px;
    padding: 10px 10px 10px 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 30px 60px -40px rgba(10, 22, 40, 0.45);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, min-height 0.3s ease;
}

/* A little more solid once the page is scrolled under it. */
.tm-topbar.is-scrolled .tm-topbar-inner {
    min-height: 62px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 #fff, 0 20px 40px -24px rgba(10, 22, 40, 0.45);
}

.tm-topbar-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}

.tm-topbar-logo img {
    height: 30px;
    width: auto;
}

/* Center nav links */
.tm-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-nav-links a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--vs-ink);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tm-nav-links a:hover {
    color: var(--vs-brand);
    background: rgba(10, 99, 246, 0.07);
}

.tm-topbar-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.tm-topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vs-ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tm-topbar-phone:hover {
    color: var(--vs-brand);
}

.tm-topbar-flag {
    font-size: 1rem;
    line-height: 1;
}

.tm-nav-cta {
    min-height: 50px;
    padding: 0 22px;
    font-size: 0.95rem;
}

/* Responsive: progressively hide secondary items */
@media (max-width: 1024px) {
    .tm-topbar-phone {
        display: none;
    }
}

@media (max-width: 860px) {
    .tm-nav-links {
        display: none;
    }
}

@media (max-width: 1280px) {
    .tm-topbar-inner {
        margin: 0 16px;
        width: auto;
    }
}

@media (max-width: 520px) {
    .tm-topbar {
        top: 10px;
    }
    .tm-topbar-inner {
        gap: 12px;
        min-height: 60px;
        padding: 8px 8px 8px 18px;
    }
    .tm-topbar-logo img {
        height: 26px;
    }
    .tm-nav-cta {
        min-height: 44px;
        padding: 0 16px;
        font-size: 0.86rem;
    }
}
