/* ========== ESTILOS DO TOPO - CLÍNICA RADIUS ========== */

/* Topbar Moderno - Layout Simples */
.topbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2d8659 0%, #4a9d7a 50%, #5fb89a 100%);
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
    z-index: 1000;
    min-height: 95px;
}

.topbar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 95px;
}

/* Logo à Esquerda */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.topbar-logo {
    width: 180px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topbar-title {
    display: none; /* Ocultar título ao lado do logo - logo já tem o nome */
}

/* Menu e Telefone à Direita */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Telefone destacado */
.topbar-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topbar-phone i {
    font-size: 1.1rem;
}

.topbar-phone:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Menu de Navegação */
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 38px;
}

.topbar-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.topbar-link i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.topbar-link span {
    position: relative;
    z-index: 1;
}

/* Botão toggle para mobile */
.topbar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.topbar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsividade */
@media screen and (max-width: 1024px) {
    .topbar-container {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    .topbar-logo {
        width: 150px;
        height: 80px;
    }

    .topbar-right {
        gap: 1rem;
    }

    .topbar-phone {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .topbar-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        height: 36px;
    }
}

@media screen and (max-width: 768px) {
    .topbar-modern {
        position: relative;
    }

    .topbar-container {
        flex-wrap: wrap;
        padding: 0.8rem 1rem;
        min-height: auto;
    }

    .topbar-brand {
        flex: 1;
        min-width: 0;
    }

    .topbar-logo {
        width: 120px;
        height: 60px;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        order: 3;
    }

    .topbar-phone {
        flex: 1;
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    .topbar-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        order: 4;
    }

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

    .topbar-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 1rem;
    }

    .topbar-toggle {
        display: block;
        order: 2;
    }
}

/* Acessibilidade */
.topbar-phone:focus-visible,
.topbar-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Reduzir animações se preferido */
@media (prefers-reduced-motion: reduce) {
    .topbar-link,
    .topbar-phone {
        transition: none;
    }
    
    .topbar-link:hover {
        transform: none;
    }
    
    .topbar-phone:hover {
        transform: none;
    }
}
