/* ===================================================
   MP ARTE — RESPONSIVE CSS
   Media Queries: mobile-first approach
   Breakpoints: 480 | 768 | 1024 | 1200 | 1400
   =================================================== */

/* ---- TABLET LANDSCAPE / SMALL DESKTOP (max 1200px) ---- */
@media (max-width: 1200px) {
    :root {
        --font-size-hero: 3.5rem;
        --spacing-section: 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-grid > *:first-child {
        grid-column: 1 / -1;
    }

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

    .stat-item + .stat-item:nth-child(3) {
        border-left: none;
    }
}

/* ---- TABLET (max 1024px) ---- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content .section-header { text-align: center; }
    .about-content .section-header .gold-divider { margin: var(--spacing-md) auto var(--spacing-xl); }

    .area-grid {
        grid-template-columns: 1fr;
    }

    .area-content .section-header { text-align: center; }
    .area-content .section-header .gold-divider { margin: var(--spacing-md) auto var(--spacing-xl); }

    .area-list { max-width: 500px; margin-left: auto; margin-right: auto; }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

    .process-steps::before { display: none; }

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

    .faq-split-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .faq-split-left {
        position: static;
        text-align: center;
    }

    .faq-split-left .section-tag { text-align: center; }
}

/* ---- MOBILE LANDSCAPE / TABLET PORTRAIT (max 768px) ---- */
@media (max-width: 768px) {
    :root {
        --header-height: 66px;
        --spacing-section: 3rem;
        --font-size-hero: 2.5rem;
    }

    /* Header mobile */
    #primary-navigation,
    .header-cta { display: none; }

    .menu-toggle { display: flex; }

    /* Header logo margin */
    .header-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .site-logo img, .site-logo svg { height: 40px; }

    /* Trust bar */
    .trust-bar-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trust-item + .trust-item {
        border-left: none;
        border-top: 1px solid var(--color-border);
    }

    .trust-item { justify-content: flex-start; text-align: left; }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item + .stat-item:nth-child(3) {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    /* Hero */
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-ctas .btn { width: fit-content; }

    .hero-features {
        gap: var(--spacing-lg);
    }

    /* Section */
    .section-title { font-size: var(--font-size-3xl); }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* About badge */
    .about-badge-float {
        right: 0;
        bottom: -10px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal { justify-content: center; }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-contacts {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    /* Price table — esconde descrição, mantém preço */
    .price-table thead th:nth-child(2),
    .price-table tbody td:nth-child(2) { display: none; }
    .price-table thead th:nth-child(3),
    .price-table tbody td:nth-child(3) { display: table-cell; }

    /* Testimonial */
    .testimonial-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .testimonial-card::before { font-size: 5rem; }

    /* Page hero — wave mais subtil + padding para não cobrir subtitle */
    .page-hero { padding: calc(var(--header-height) + 2rem) 0 calc(1.5rem + 44px); }
    .page-hero::after { height: 44px; clip-path: ellipse(75% 100% at 50% 100%); }
    .page-hero-subtitle { font-size: 1rem; padding: 0 1rem; }

    /* Mobile menu — espaçamento e tamanho */
    .mobile-nav-links { gap: var(--spacing-lg); padding: 1rem 0; }
    .mobile-nav-links a { font-size: var(--font-size-2xl); }

    /* Área de cobertura — vertical no mobile */
    .area-zones-grid { grid-template-columns: 1fr !important; max-width: 400px !important; }
    .area-zone-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.25rem 1rem;
        text-align: left;
        align-items: start;
    }
    .area-zone-card .feature-icon {
        grid-row: 1 / 3;
        align-self: center;
        margin-bottom: 0;
    }
    .area-zone-card .feature-title,
    .area-zone-card .feature-desc { text-align: left; }

    /* Container padding */
    .container,
    .container-wide { padding: 0 var(--spacing-lg); }

    /* Error 404 */
    .error-404 .error-number { font-size: 6rem; }
}

/* ---- SMALL MOBILE (max 480px) ---- */
@media (max-width: 480px) {
    :root {
        --font-size-hero: 2rem;
        --spacing-section: 2.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.7rem;
    }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .section-title { font-size: var(--font-size-2xl); }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number { font-size: 2.5rem; }

    .stat-item + .stat-item {
        border-left: none;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.2);
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .service-card { padding: var(--spacing-lg); }

    .contact-form-wrapper { padding: var(--spacing-lg); }

    .testimonial-card { padding: var(--spacing-lg); }

    .faq-question { font-size: var(--font-size-base); }
}

/* ---- HERO V2 + HEADER V2 — TABLET (max 1024px) ---- */
@media (max-width: 1024px) {
    .hero-content-v2 {
        grid-template-columns: 1fr;
    }

    .hero-image-col {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-image-panel {
        aspect-ratio: 4 / 3;
    }
}

/* ---- HERO V2 + HEADER V2 — MOBILE (max 768px) ---- */
@media (max-width: 768px) {
    /* Header V2 mobile: colapsa para flex normal */
    .header-inner--v2 {
        display: flex;
        justify-content: space-between;
    }

    .header-inner--v2 .nav-v2-left,
    .header-inner--v2 .nav-v2-right-wrap { display: none; }

    .header-inner--v2 .menu-toggle { display: flex; }

    /* Hero V2 mobile: esconde imagem, simplifica padding */
    .hero-content-v2 {
        grid-template-columns: 1fr;
        padding-top: calc(var(--header-height) + var(--spacing-xl));
        padding-bottom: var(--spacing-3xl);
        gap: var(--spacing-2xl);
    }

    .hero-image-col { display: none; }
}

/* ---- PRINT ---- */
@media print {
    #site-header,
    #site-footer,
    .hero-scroll,
    .slider-controls,
    .menu-toggle,
    .mobile-menu-overlay,
    #scroll-progress { display: none !important; }

    body { background: white; color: black; }
    a { color: black; }
    .hero-section { min-height: auto; padding: 2rem 0; }
    .hero-title,
    .hero-subtitle { color: black; }
    .page-hero { background: none; color: black; }
    .page-hero-title,
    .page-hero-subtitle { color: black; }
    .stats-section { background: white; color: black; }
    .stat-number,
    .stat-label { color: black; }
    .cta-section { background: white; }
    .cta-title { color: black; }
}

/* ---- PREFERS REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    html { scroll-behavior: auto; }
}

/* ---- HIGH CONTRAST ---- */
@media (prefers-color-scheme: dark) {
    /* O tema usa cores fixas — sem dark mode automático */
}
