/* ============================================
   RESPONSIVE DESIGN - Mobile First Excellence
   ============================================ */

/* Tablet Grande & Desktop Menor (até 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: clamp(3rem, 6vw, 5rem);
    }
    
    .hero {
        min-height: 85vh;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (até 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(2.5rem, 5vw, 4rem);
    }
    
    html {
        font-size: 15px;
    }
    
    /* Header Mobile */
    header {
        padding: 1rem 4%;
    }
    
    .logo-link {
        font-size: 1.3rem;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height para mobile */
        padding: 2rem 4%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }
    
    .hero h1::after {
        width: 60px;
        margin: 1rem auto 0;
    }
    
    .hero p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
    
    /* CTA Mobile */
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        text-align: center;
    }
    
    /* Content Sections Mobile */
    .content-section {
        padding: var(--section-padding) 4%;
    }
    
    .content-section:nth-child(3n+1)::after {
        height: 40px;
        width: 4px;
    }
    
    .content-section h2 {
        font-size: 1.7rem;
    }
    
    .content-section p {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    /* WhatsApp CTA Mobile */
    .whatsapp-cta-section {
        margin: 2rem 0 0.5rem;
    }
    
    .whatsapp-cta-section .btn-primary {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: var(--section-padding) 4%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-info h3 {
        font-size: 1.3rem;
    }
    
    .footer-links li:hover {
        transform: none;
    }
    
    .footer-bottom {
        font-size: 0.9rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* Header Mobile Pequeno */
    header {
        padding: 0.9rem 3%;
    }
    
    .logo-link {
        font-size: 1.1rem;
    }
    
    .logo-link::before {
        font-size: 0.75rem;
        margin-right: 0.4rem;
    }
    
    /* Hero Mobile Pequeno */
    .hero {
        padding: 1.5rem 3%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .cta-group {
        padding: 0;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    /* Content Sections Mobile Pequeno */
    .content-section {
        padding: 2.5rem 3%;
    }
    
    .content-section:nth-child(3n+1)::after {
        display: none;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h2::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }
    
    .content-section p {
        font-size: 0.95rem;
    }
    
    /* WhatsApp CTA Mobile Pequeno */
    .whatsapp-cta-section .btn-primary {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    /* Footer Mobile Pequeno */
    footer {
        padding: 2.5rem 3%;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
    }
    
    .footer-info p,
    .footer-links li {
        font-size: 0.95rem;
    }
}

/* Telas muito pequenas (até 360px) */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .content-section h2 {
        font-size: 1.35rem;
    }
}

/* ============================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 5%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero h1::after {
        margin: 0.8rem auto 0;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        padding: 12px 24px;
    }
}

/* ============================================
   DESKTOP LARGE (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    :root {
        --section-padding: 6rem;
    }
    
    .hero {
        min-height: 92vh;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .content-section h2 {
        font-size: 2.6rem;
    }
    
    .content-section p {
        font-size: 1.15rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    header,
    footer,
    .hero-overlay,
    .hero-bg,
    .cta-group,
    .whatsapp-cta-section,
    .whatsapp-float {
        display: none !important;
    }
    
    .hero {
        background: none;
        min-height: auto;
        padding: 1rem;
    }
    
    .hero h1 {
        color: black;
        font-size: 24pt;
        text-shadow: none;
    }
    
    .hero p {
        color: #333;
    }
    
    .content-section {
        padding: 1rem 0;
        background: white !important;
        break-inside: avoid;
    }
    
    .content-section h2 {
        color: black;
    }
    
    .content-section p {
        color: #333;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ============================================
   REDUCED MOTION (Acessibilidade)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --primary-deep: #0d4030;
        --primary-medium: #1a6950;
        --dark-charcoal: #000000;
        --medium-gray: #333333;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .content-section h2::after {
        height: 4px;
    }
}

/* ============================================
   DARK MODE PREFERENCE (Opcional - Fundo Escuro com Fonte Clara)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* 
     * Descomente abaixo para ativar modo escuro automático
     * Seguindo a regra: fundo escuro = fonte clara
     */
    /*
    :root {
        --light-cream: #1a1a1a;
        --warm-white: #242424;
        --pure-white: #ffffff;
        --dark-charcoal: #f5f5f5;
        --medium-gray: #d1d5db;
    }
    
    body {
        background-color: var(--light-cream);
        color: var(--dark-charcoal);
    }
    
    .content-section:nth-child(odd) {
        background: #1a1a1a;
    }
    
    .content-section:nth-child(even) {
        background: linear-gradient(135deg, #242424 0%, #2a2a2a 100%);
    }
    
    .content-section p {
        color: var(--medium-gray);
    }
    */
}
