/* ========================================
   RESPONSIVE DESIGN - PREMIUM
   ======================================== */

/* ========================================
   TABLETS (1024px e menor)
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 20px;
    }

    #hero {
        padding: 140px 0 100px;
    }

    #hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    #hero p {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .content-section {
        padding: 40px 35px;
    }

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

    .footer-content {
        gap: 30px;
    }
}

/* ========================================
   TABLETS PEQUENOS E CELULARES GRANDES (768px e menor)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header Mobile */
    #header {
        padding: 1rem 0;
    }

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

    .logo h1::after {
        width: 40px;
    }

    /* Hero Mobile */
    #hero {
        padding: 110px 0 70px;
    }

    #hero::before,
    #hero::after {
        display: none;
    }

    #hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
        line-height: 1.25;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.8;
    }

    #hero .container > p:first-of-type::before,
    #hero .container > p:first-of-type::after {
        display: none;
    }

    /* CTA Buttons Mobile */
    .cta-buttons, .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .cta-primary, .cta-secondary, .cta-tertiary, .content-cta, .cta-button {
        padding: 16px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Map Mobile */
    #map-embed {
        padding: 50px 0;
    }

    #map-container {
        height: 350px;
        border-radius: 16px;
    }

    /* Content Sections Mobile */
    #seo-content {
        padding: 50px 0;
    }

    #seo-content::before {
        display: none;
    }

    .content-section {
        margin-bottom: 35px;
        padding: 30px 22px;
        border-radius: 20px;
    }

    .content-section::before {
        height: 3px;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .content-section h2::after {
        width: 50px;
        height: 2px;
    }

    .content-section p {
        font-size: 0.98rem;
        line-height: 1.8;
        margin-bottom: 1.2rem;
    }

    .content-section p:last-of-type {
        margin-bottom: 1.5rem;
    }

    /* Footer Mobile */
    #footer {
        padding: 50px 0 25px;
    }

    #footer::after {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 35px;
    }

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

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.2rem;
    }

    .footer-section p, 
    .footer-section li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 25px;
        font-size: 0.85rem;
    }

    /* WhatsApp Float Mobile */
    #whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-link {
        width: 58px;
        height: 58px;
    }

    .whatsapp-icon {
        font-size: 1.5rem;
    }
}

/* ========================================
   CELULARES (480px e menor)
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    /* Header Small Mobile */
    #header {
        padding: 0.9rem 0;
    }

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

    /* Hero Small Mobile */
    #hero {
        padding: 95px 0 55px;
    }

    #hero h1 {
        font-size: 1.85rem;
        margin-bottom: 0.7rem;
    }

    #hero p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* CTA Buttons Small Mobile */
    .cta-primary, .cta-secondary, .cta-tertiary, .content-cta, .cta-button {
        padding: 14px 24px;
        font-size: 0.9rem;
        max-width: 280px;
    }

    /* Map Small Mobile */
    #map-container {
        height: 300px;
        border-radius: 14px;
    }

    /* Content Sections Small Mobile */
    .content-section {
        padding: 25px 18px;
        margin-bottom: 28px;
        border-radius: 18px;
    }

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

    .content-section p {
        font-size: 0.94rem;
        line-height: 1.75;
    }

    /* Footer Small Mobile */
    #footer {
        padding: 40px 0 20px;
    }

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

    /* WhatsApp Float Small Mobile */
    #whatsapp-float {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-link {
        width: 54px;
        height: 54px;
    }

    .whatsapp-icon {
        font-size: 1.4rem;
    }
}

/* ========================================
   CELULARES MUITO PEQUENOS (360px e menor)
   ======================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    #hero h1 {
        font-size: 1.65rem;
        margin-bottom: 0.6rem;
    }

    #hero p {
        font-size: 0.9rem;
    }

    .cta-primary, .cta-secondary, .cta-tertiary, .content-cta, .cta-button {
        padding: 12px 20px;
        font-size: 0.85rem;
        max-width: 260px;
    }

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

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

    .whatsapp-link {
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon {
        font-size: 1.3rem;
    }
}

/* ========================================
   ORIENTAÇÃO PAISAGEM PARA CELULARES
   ======================================== */
@media (max-width: 896px) and (orientation: landscape) {
    #hero {
        padding: 80px 0 50px;
    }

    #hero h1 {
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }

    #hero p {
        font-size: 0.95rem;
        max-width: 80%;
    }

    .cta-buttons, .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cta-primary, .cta-secondary, .cta-tertiary, .cta-button {
        width: auto;
        max-width: none;
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .content-section {
        padding: 25px 20px;
    }

    #map-container {
        height: 280px;
    }
}

/* ========================================
   TELAS GRANDES (1400px e maior)
   ======================================== */
@media (min-width: 1400px) {
    :root {
        --container-max: 1400px;
        --section-padding: 120px;
    }

    #hero {
        padding: 180px 0 140px;
    }

    #hero h1 {
        font-size: 4rem;
    }

    #hero p {
        font-size: 1.25rem;
        max-width: 800px;
    }

    .content-section {
        padding: 60px;
    }

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

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

    #map-container {
        height: 550px;
    }
}

/* ========================================
   TELAS EXTRA GRANDES (1800px e maior)
   ======================================== */
@media (min-width: 1800px) {
    :root {
        --container-max: 1600px;
    }

    #hero h1 {
        font-size: 4.5rem;
    }

    #hero p {
        font-size: 1.35rem;
        max-width: 900px;
    }
}

/* ========================================
   AJUSTES PARA IMPRESSÃO
   ======================================== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    #whatsapp-float {
        display: none !important;
    }

    #header {
        position: static;
        background: none !important;
        border-bottom: 2px solid #333;
        padding: 15px 0;
    }

    .logo h1 {
        color: black !important;
    }

    #hero {
        background: none !important;
        color: black !important;
        padding: 30px 0;
    }

    .hero-overlay {
        display: none;
    }

    .cta-buttons, .hero-ctas {
        display: none;
    }

    .content-section {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 20px;
        padding: 20px;
    }

    .content-section::before {
        display: none;
    }

    .content-cta {
        display: none;
    }

    #footer {
        background: none !important;
        border-top: 2px solid #333;
        padding: 20px 0;
    }

    .footer-section a {
        color: black !important;
        text-decoration: underline;
    }
}

/* ========================================
   SUPORTE A DARK MODE DO SISTEMA
   (Mantém design claro por padrão, mas adapta sutilmente)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* O site mantém cores claras no conteúdo principal
       mas podemos intensificar alguns contrastes */
    
    body {
        /* Mantém fundo claro com texto escuro para legibilidade */
    }
    
    .content-section {
        /* Aumenta levemente o contraste das sombras */
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    }
}

/* ========================================
   SUPORTE A ALTO CONTRASTE
   ======================================== */
@media (prefers-contrast: high) {
    .content-section {
        border: 2px solid #333;
    }

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

    #footer {
        border-top: 3px solid white;
    }
}
