
@media (max-width: 479px) {
    .container {
        padding: 0 clamp(0.75rem, 4vw, 1.25rem);
    }

    .header {
        padding: clamp(0.75rem, 2.5vw, 1.25rem) 0;
    }

    .header__content {
        gap: clamp(0.5rem, 2vw, 1rem);
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header__logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .header__actions {
        flex-shrink: 1;
        min-width: 0;
    }

    .header__logo-img {
        max-height: clamp(7rem, 18vw, 10rem);
        max-width: clamp(150px, 40vw, 250px);
    }

    .header__navbar {
        display: none;
    }

    .btn--cta-header {
        font-size: clamp(0.625rem, 1.4vw, 0.75rem);
        padding: clamp(0.5rem, 1.4vw, 0.625rem) clamp(0.625rem, 1.8vw, 0.875rem);
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
        min-height: 44px;
    }

    .hero {
        min-height: clamp(20rem, 50vh, 28rem);
        padding: clamp(3rem, 8vw, 5rem) 0;
    }

    .hero__title {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }

    .hero__subtitle {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }

    .section {
        padding: clamp(2.5rem, 7vw, 5rem) 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: clamp(2rem, 5vw, 3rem);
    }

    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
    }

    .grid--features {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 1.875rem);
    }

    .sobre-wrapper {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
    }

    .sobre-image {
        order: -1;
        min-height: clamp(16rem, 42vw, 24rem);
    }

    .localizacao-content {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
    }

    .localizacao-mapa {
        min-height: 260px;
        /* Fallback para navegadores sem suporte a clamp() */
        height: 24rem;
        /* Versão moderna com clamp() */
        height: clamp(20rem, 50vh, 28rem);
    }
    
    @supports not (aspect-ratio: 16 / 9) {
        .localizacao-mapa {
            padding-bottom: 56.25%;
            height: 0;
        }
    }
    
    @supports (aspect-ratio: 16 / 9) {
        .localizacao-mapa {
            aspect-ratio: 16 / 9;
            padding-bottom: 0;
            height: clamp(20rem, 50vh, 28rem);
        }
    }

    .endereco-card__actions {
        flex-direction: column;
        gap: clamp(0.875rem, 2.5vw, 1.25rem);
    }

    .endereco-card__actions .btn {
        width: 100%;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
    }

    .card {
        padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
    }

    /* Botão WhatsApp em mobile */
    .whatsapp-float {
        bottom: clamp(1rem, 3vw, 1.5rem);
        right: clamp(1rem, 3vw, 1.5rem);
        width: clamp(3rem, 7vw, 4rem);
        height: clamp(3rem, 7vw, 4rem);
    }

    .whatsapp-float__icon {
        width: clamp(1.75rem, 4.5vw, 2.25rem);
        height: clamp(1.75rem, 4.5vw, 2.25rem);
    }

    /* Esconder tooltip em mobile para economizar espaço */
    .whatsapp-float__tooltip {
        display: none;
    }
}

/* ============================================
   TABLET - TELAS MÉDIAS (480px - 1023px)
   ============================================ */
@media (min-width: 480px) and (max-width: 1023px) {
    .container {
        padding: 0 clamp(1.25rem, 3.5vw, 2rem);
    }

    .header {
        padding: clamp(0.875rem, 2.5vw, 1.5625rem) 0;
    }

    .header__content {
        gap: clamp(0.5rem, 1.5vw, 1rem);
        align-items: center;
    }

    .header__logo-img {
        max-height: clamp(8rem, 20vw, 11rem);
        max-width: clamp(200px, 35vw, 350px);
    }

    .header__navbar {
        max-width: calc(100% - 360px);
        padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    }

    .nav-menu {
        gap: clamp(0.4rem, 1vw, 0.8rem);
        flex-wrap: wrap;
        row-gap: clamp(0.5rem, 1vw, 0.75rem);
    }

    .nav-menu__link {
        font-size: clamp(0.7rem, 1.2vw, 0.875rem);
        padding: clamp(0.3rem, 0.7vw, 0.5rem) clamp(0.4rem, 0.9vw, 0.6rem);
    }

    .btn--cta-header {
        font-size: clamp(0.65rem, 1.1vw, 0.8125rem);
        padding: clamp(0.5rem, 1.2vw, 0.6875rem) clamp(0.75rem, 1.8vw, 1.25rem);
        white-space: nowrap;
    }

    .hero {
        min-height: clamp(24rem, 55vh, 32rem);
        padding: clamp(4rem, 10vw, 6rem) 0;
    }

    .hero__title {
        font-size: clamp(1.75rem, 5.5vw, 3rem);
    }

    .hero__subtitle {
        font-size: clamp(1.125rem, 2.8vw, 1.375rem);
    }

    .section {
        padding: clamp(3rem, 8vw, 6rem) 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 4.5vw, 2.5rem);
        margin-bottom: clamp(2.5rem, 6vw, 4rem);
    }

    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1.75rem, 3.5vw, 2.5rem);
    }

    .grid--features {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1.75rem, 3.5vw, 2rem);
    }

    .sobre-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: clamp(2.5rem, 5vw, 3.5rem);
        align-items: center;
    }

    .sobre-image {
        order: 0;
        min-height: clamp(20rem, 45vw, 28rem);
    }

    .localizacao-content {
        grid-template-columns: 1fr 1fr;
        gap: clamp(2.5rem, 5vw, 3.5rem);
    }

    .localizacao-mapa {
        height: clamp(24rem, 55vh, 30rem);
    }

    .endereco-card__actions {
        flex-direction: row;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2.5rem, 5vw, 3.5rem);
    }

    /* Botão WhatsApp em tablet */
    .whatsapp-float {
        bottom: clamp(1.25rem, 3vw, 2rem);
        right: clamp(1.25rem, 3vw, 2rem);
    }

    /* Mostrar tooltip em tablets e maiores */
    .whatsapp-float__tooltip {
        display: block;
        opacity: 0;
        visibility: hidden;
    }
    
    .whatsapp-float:hover .whatsapp-float__tooltip,
    .whatsapp-float:focus .whatsapp-float__tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Quebra do menu em tablets menores (768px - 899px) */
@media (min-width: 768px) and (max-width: 899px) {
    .header__navbar {
        max-width: calc(100% - 360px);
    }

    .nav-menu {
        flex-wrap: wrap;
        row-gap: clamp(0.5rem, 1vw, 0.75rem);
    }

    .nav-menu li:nth-child(-n+3) {
        order: 0;
    }

    .nav-menu li:nth-last-child(-n+2) {
        order: 2;
        margin-top: clamp(0.25rem, 0.5vw, 0.5rem);
    }

    .nav-menu::after {
        content: '';
        flex-basis: 100%;
        width: 100%;
        height: 0;
        order: 1;
    }
}

/* ============================================
   DESKTOP - TELAS GRANDES (1024px - 1439px)
   ============================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 clamp(1.75rem, 2.5vw, 2.25rem);
    }

    .header__content {
        gap: clamp(1rem, 2.5vw, 2rem);
    }

    .header__logo-img {
        max-height: clamp(10rem, 18vw, 12rem);
        max-width: clamp(260px, 44vw, 380px);
    }

    .header__navbar {
        max-width: calc(100% - 420px);
        padding: 0 clamp(0.75rem, 2vw, 1.5rem);
    }

    .nav-menu {
        gap: clamp(0.6rem, 1.4vw, 1.125rem);
    }

    .nav-menu__link {
        font-size: clamp(0.8125rem, 1.3vw, 0.9375rem);
        padding: clamp(0.375rem, 0.75vw, 0.625rem) clamp(0.5rem, 1vw, 0.75rem);
    }

    .btn--cta-header {
        font-size: clamp(0.75rem, 1.2vw, 0.875rem);
        padding: clamp(0.6875rem, 1.4vw, 0.8125rem) clamp(1rem, 2.2vw, 1.5rem);
    }

    .hero {
        min-height: clamp(28rem, 60vh, 36rem);
    }

    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(2rem, 4vw, 2.5rem);
    }

    .sobre-wrapper {
        gap: clamp(3rem, 5vw, 4rem);
    }

    .sobre-image {
        min-height: clamp(22rem, 48vw, 30rem);
    }

    .localizacao-content {
        grid-template-columns: 1fr 1.5fr;
        gap: clamp(3rem, 5vw, 4rem);
    }

    .localizacao-mapa {
        height: clamp(26rem, 58vh, 32rem);
    }

    .footer__content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Quebra do menu em desktops menores (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
    .header__navbar {
        max-width: calc(100% - 420px);
    }

    .nav-menu {
        flex-wrap: wrap;
        row-gap: clamp(0.5rem, 1vw, 0.75rem);
    }

    .nav-menu li:nth-child(-n+3) {
        order: 0;
    }

    .nav-menu li:nth-last-child(-n+2) {
        order: 2;
        margin-top: clamp(0.25rem, 0.5vw, 0.5rem);
    }

    .nav-menu::after {
        content: '';
        flex-basis: 100%;
        width: 100%;
        height: 0;
        order: 1;
    }
}

/* ============================================
   LARGE DESKTOP - TELAS MUITO GRANDES (1440px+)
   ============================================ */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 clamp(2rem, 3vw, 2.75rem);
    }

    .header__navbar {
        max-width: calc(100% - 450px);
    }

    .nav-menu {
        gap: clamp(0.875rem, 1.6vw, 1.375rem);
    }

    .nav-menu__link {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        padding: clamp(0.375rem, 0.75vw, 0.625rem) clamp(0.5rem, 1vw, 0.875rem);
    }

    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: clamp(2rem, 3vw, 2.5rem);
    }

    .sobre-wrapper {
        gap: clamp(4rem, 5.5vw, 5rem);
    }

    .section-title {
        font-size: clamp(2rem, 3.5vw, 2.75rem);
    }

    .localizacao-content {
        grid-template-columns: 1fr 1.5fr;
        gap: clamp(4rem, 5.5vw, 5rem);
    }

    .localizacao-mapa {
        height: clamp(28rem, 60vh, 34rem);
    }

    .footer__content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Monitores muito grandes (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1500px;
        padding: 0 clamp(2rem, 3vw, 3rem);
    }

    html {
        font-size: 17px;
    }
}

/* Ultrawide (2560px+) */
@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
        padding: 0 clamp(3rem, 4vw, 4.5rem);
    }

    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: clamp(2.5rem, 3.5vw, 3rem);
    }

    .sobre-wrapper {
        gap: clamp(4rem, 4.5vw, 5rem);
    }

    .section-title {
        font-size: clamp(2.25rem, 3.5vw, 3rem);
    }

    .hero__title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    html {
        font-size: 18px;
    }
}

/* 4K e Ultrawide grandes (3440px+) */
@media (min-width: 3440px) {
    .container {
        max-width: 2000px;
        padding: 0 clamp(4rem, 5vw, 6rem);
    }

    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: clamp(3rem, 4vw, 3.5rem);
    }

    .sobre-wrapper {
        gap: clamp(5rem, 5vw, 6rem);
    }

    .section-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .hero__title {
        font-size: clamp(3rem, 5.5vw, 4rem);
    }

    html {
        font-size: 20px;
    }
}

/* ============================================
   ORIENTAÇÃO E CASOS ESPECIAIS
   ============================================ */

/* Orientação paisagem em dispositivos móveis */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: clamp(2rem, 5vw, 3rem) 0;
    }

    .header {
        padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    }

    .header__logo-img {
        max-height: clamp(7rem, 16vw, 10rem);
    }

    .section {
        padding: clamp(2rem, 5vw, 4rem) 0;
    }

    .section-title {
        margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }
}

/* Orientação retrato em tablets */
@media (orientation: portrait) and (min-width: 768px) and (max-width: 1023px) {
    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telas verticais (monitor girado) */
@media (orientation: portrait) and (min-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 0 clamp(2rem, 4vw, 3rem);
    }

    .header__logo-img {
        max-height: clamp(9rem, 14vw, 11rem);
    }

    .grid--servicos,
    .grid--beneficios,
    .grid--depoimentos {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 4vw, 2.5rem);
    }

    .sobre-wrapper {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 5vw, 3.5rem);
    }

    .sobre-image {
        order: -1;
    }

    .localizacao-content {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 5vw, 3.5rem);
    }

    .localizacao-mapa {
        height: clamp(24rem, 50vh, 32rem);
    }

    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ACESSIBILIDADE E PREFERÊNCIAS
   ============================================ */

/* Respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .whatsapp-float {
        animation: none !important;
    }

    .whatsapp-float:hover {
        transform: none !important;
    }
}

/* Garantir legibilidade em zoom alto (50% - 200%) */
@media (min-width: 1px) {
    .btn {
        min-height: max(44px, 1.2em);
        font-size: max(0.75rem, 1em);
    }

    .container {
        padding: 0 max(1rem, 2vw);
    }

    .section {
        padding: max(2.5rem, 6vw) 0;
    }

    .card {
        padding: max(1.25rem, 3vw) max(1rem, 2.5vw);
    }

    .hero__title,
    .section-title,
    .card__title {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   IMPRESSÃO
   ============================================ */
@media print {
    .header,
    .btn--primary,
    .btn--cta-header,
    .footer,
    .whatsapp-float {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}
