/* Tablet Devices */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero-content {
        max-width: 800px;
        order: 1;
    }

    .hero-image {
        justify-content: center;
        order: 2;
        width: 100%;
    }

    .image-wrapper {
        max-width: 80%;
    }

    .glass-float-card {
        left: 0;
        bottom: -20px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.25rem;
        --spacing-xl: 3rem;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 var(--spacing-md);
        height: 70px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        color: var(--primary-dark);
        cursor: pointer;
        order: 2;
        z-index: 1001;
    }

    nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        padding: var(--spacing-lg) var(--spacing-md);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        overflow-y: auto;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    nav ul li a {
        font-size: 1.25rem;
    }

    .btn-header {
        display: none;
    }

    .logo-container {
        order: 1;
    }

    .logo-icon {
        height: 35px !important;
        margin-left: 0 !important;
    }

    .prof-services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .prof-item {
        padding: 1rem;
    }

    section {
        padding-top: 120px !important;
        /* Account for fixed header */
        padding-bottom: var(--spacing-xl);
    }

    .hero {
        padding-top: 120px !important;
        min-height: auto;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin: 1.5rem auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Hero images adjustments */
    .pills-container {
        margin-top: 3rem;
    }

    .pill-1,
    .pill-2 {
        width: 140px;
        height: 220px;
    }

    .about-container {
        flex-direction: column !important;
        gap: var(--spacing-lg) !important;
    }

    .about-text {
        text-align: center;
    }

    .about-image {
        width: 100% !important;
        margin-top: 1.5rem;
        padding-bottom: 2rem;
        /* Espaço para o card flutuante */
    }

    .experience-card {
        right: 50% !important;
        transform: translateX(50%);
        bottom: -30px !important;
    }

    .team-card {
        height: auto;
        min-height: 450px;
    }

    .member-img {
        height: 300px;
    }

    .member-img img {
        object-position: top center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact-items {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 30px;
        right: 20px;
        left: auto !important;
        /* Remove qualquer conflito com 'left' */
        z-index: 999;
    }

    .team-carousel {
        padding: 0 15px !important;
        /* Reduz padding lateral no mobile */
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
        /* Esconde as setas no mobile, facilitando o toque deslizando */
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .pill-1,
    .pill-2 {
        width: 120px;
        height: 180px;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}