/* ==========================================================================
   Porks Brasil Franquias - CSS Responsivo
   Mobile-First Design
   ========================================================================== */

/* Tablet Landscape e Desktops Pequenos */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-content {
        gap: var(--spacing-lg);
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Sections */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .solution-text {
        order: 2;
    }
    
    .solution-visual {
        order: 1;
    }
    
    /* Problems Grid */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .problem-card {
        padding: var(--spacing-md);
    }
    
    .problem-icon {
        font-size: 2.5rem;
    }
    
    /* Numbers */
    .numbers-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .number-card {
        padding: var(--spacing-md);
    }
    
    .number-value {
        font-size: 2.5rem;
    }
    
    /* Investment */
    .investment-breakdown {
        gap: var(--spacing-md);
    }
    
    .investment-item {
        padding: var(--spacing-md);
    }
    
    .investment-title {
        font-size: 1.125rem;
    }
    
    .investment-value {
        font-size: 1.5rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .urgency-text {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    /* Form */
    .form-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .form-info {
        order: 1;
    }
    
    .form-container {
        order: 2;
        padding: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Hero */
    .hero {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Sections */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Problem Cards */
    .problem-card {
        padding: var(--spacing-sm);
    }
    
    .problem-card h3 {
        font-size: 1.25rem;
    }
    
    .problem-icon {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Solution */
    .solution-text h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .benefit-content h4 {
        font-size: 1rem;
    }
    
    .showcase-image {
        height: 250px;
    }
    
    .showcase-overlay {
        padding: var(--spacing-sm);
    }
    
    .showcase-title {
        font-size: 1.25rem;
    }
    
    /* Numbers */
    .number-card {
        padding: var(--spacing-sm);
    }
    
    .number-icon {
        font-size: 2rem;
    }
    
    .number-value {
        font-size: 2rem;
    }
    
    .number-label {
        font-size: 1rem;
    }
    
    /* Investment */
    .investment-item {
        padding: var(--spacing-sm);
    }
    
    .investment-title {
        font-size: 1rem;
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
    
    .investment-value {
        font-size: 1.25rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Form */
    .form-info h2 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: var(--spacing-sm);
    }
    
    .form-header h3 {
        font-size: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        gap: var(--spacing-md);
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-column a,
    .contact-item,
    .trust-item {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* Mobile Pequeno */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .number-value {
        font-size: 1.75rem;
    }
    
    .investment-value {
        font-size: 1.125rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .form-info h2 {
        font-size: 1.25rem;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Landscape Mode para Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        width: auto;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-header h2 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

/* Dark Mode Support (for future) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme by default */
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .form-section,
    .footer {
        display: none !important;
    }
    
    .hero,
    .problem-section,
    .solution-section,
    .numbers-section,
    .investment-section,
    .cta-section {
        page-break-inside: avoid;
        background: white !important;
        color: black !important;
    }
    
    .hero-title,
    .section-header h2 {
        color: black !important;
        text-shadow: none !important;
    }
    
    .highlight-text {
        color: #cc0033 !important;
    }
}

/* Focus Styles para Acessibilidade */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.social-link:focus,
.whatsapp-float:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link para Acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading States Responsive */
@media (max-width: 768px) {
    .btn-submit.loading {
        padding: 0.875rem 1rem;
    }
    
    .form-success {
        padding: var(--spacing-sm);
    }
    
    .form-success i {
        font-size: 1.5rem;
    }
    
    .form-success h4 {
        font-size: 1.125rem;
    }
}

/* Hover States para Touch Devices */
@media (hover: none) {
    .nav-link:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .problem-card:hover,
    .number-card:hover,
    .social-link:hover,
    .whatsapp-float:hover {
        transform: none;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Container Queries para Componentes (Future) */
@supports (container-type: inline-size) {
    .form-container {
        container-type: inline-size;
    }
    
    @container (max-width: 400px) {
        .form-row {
            grid-template-columns: 1fr;
        }
    }
}