/* Responsive Design */

/* Tablets */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 700px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .content-section {
        padding: 2.5rem;
    }

    .sitemap-section {
        padding: 1.5rem;
    }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .hero {
        min-height: 70vh;
        padding: 1rem 0; /* Remove padding lateral para permitir 100% de largura */
        margin-top: 70px;
    }

    .hero-content {
        max-width: none !important; /* Força override do CSS principal */
        width: 100vw !important; /* 100% da viewport width */
        padding: 0 1rem; /* Adiciona padding lateral apenas para o conteúdo */
        margin-left: calc(-50vw + 50%); /* Centraliza horizontalmente */
        margin-right: calc(-50vw + 50%);
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 1rem;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
        word-break: break-word; /* Quebra palavras preservando quando possível */
        overflow-wrap: break-word; /* Quebra palavras longas */
        word-wrap: break-word; /* Compatibilidade */
        hyphens: auto; /* Hifenização automática */
        line-height: 1.1; /* Melhora espaçamento entre linhas */
        padding: 0 0.5rem; /* Adiciona padding para evitar corte nas bordas */
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        position: relative;
    }

    .whatsapp-float a::before {
        content: '💬';
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    .seo-content,
    .sitemap-container {
        padding: 0 1rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .sitemap-container h1 {
        font-size: 2.5rem;
    }

    .sitemap-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .sitemap-section h2 {
        font-size: 1.8rem;
    }

    .sitemap-section ul {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .sitemap-section li a {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        text-align: center;
    }
}

/* Controle da quebra de linha do H1 */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

/* Celulares pequenos */
@media (max-width: 480px) {
    .hero-content {
        max-width: none !important;
        width: 100vw !important;
        padding: 0 0.8rem;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 1.6rem;
        width: 100%;
        text-align: center;
        word-break: break-word;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.1;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.7;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        max-width: 250px;
    }

    .whatsapp-float a {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .whatsapp-text {
        margin-left: 0.3rem;
        font-size: 0.8rem;
    }

    .content-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2.5rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

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

    .cta-content {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .sitemap-container h1 {
        font-size: 2rem;
    }

    .sitemap-container > p {
        font-size: 1rem;
    }

    .sitemap-section {
        padding: 1.2rem 0.8rem;
    }

    .sitemap-section h2 {
        font-size: 1.6rem;
    }

    .sitemap-section li a {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }

    .footer-content {
        padding: 0 0.8rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .map-section h2 {
        font-size: 2rem;
    }

    .map-section iframe {
        height: 300px;
    }
}

/* Celulares muito pequenos */
@media (max-width: 360px) {
    .hero {
        padding: 0.8rem;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.1;
        padding: 0 0.3rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        max-width: 220px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section p {
        font-size: 0.9rem;
    }

    .sitemap-container h1 {
        font-size: 1.8rem;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .content-section {
        padding: 4rem;
    }

    .sitemap-section ul {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Impressão */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    header,
    .whatsapp-float,
    .cta-buttons {
        display: none !important;
    }

    .content-section {
        background: white !important;
        border: 1px solid #ccc !important;
        color: black !important;
    }

    .content-section h2 {
        color: black !important;
    }

    a {
        color: blue !important;
        text-decoration: underline !important;
    }
}

/* Orientação paisagem em dispositivos móveis */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.1;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        flex: 1;
        max-width: 200px;
    }
}

/* Alto contraste para acessibilidade */
@media (prefers-contrast: high) {
    body {
        background: black;
        color: white;
    }

    .content-section {
        border: 2px solid #10FFE3;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        border: 2px solid white;
    }
}

/* Modo escuro forçado */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
        color: #ffffff;
    }
}

/* Reduzir movimento para usuários que preferem */
@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;
    }
}

/* Zoom de texto */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }
}
