/* ═══════════════════════════════════════════════════════════
   ACQUA X DO BRASIL — responsive.css
   Mobile-first breakpoints
═══════════════════════════════════════════════════════════ */

/* ── LARGE DESKTOP (1280px+) ── */
@media (min-width: 1280px) {
  .container { max-width: 1240px; }
}

/* ── DESKTOP (1024px - 1279px) ── */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
}

/* ── TABLET (768px - 1023px) ── */
@media (max-width: 1024px) {
  /* Topbar */
  .topbar-left span:last-child { display: none; }

  /* Navbar */
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 24px 40px;
    gap: 4px;
    box-shadow: -8px 0 32px rgba(0,0,0,.15);
    transition: right .3s cubic-bezier(.4,0,.2,1);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    border: none;
    background: var(--c-blue-50);
    border-radius: var(--r-md);
    margin-top: 4px;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-toggle { justify-content: space-between; }

  .hamburger { display: flex; }
  .nav-cta   { display: none; }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 998;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.show { display: block; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 80px;
  }
  .hero-visual { order: -1; display: flex; justify-content: center; }
  .hero-card-main { max-width: 380px; width: 100%; }
  .hero-title { font-size: 2.2rem; }
  .hero-badge-float.top-right  { top: -10px; right: 0; }
  .hero-badge-float.bottom-left{ bottom: -10px; left: 0; }

  /* Numbers */
  .numbers-grid, .numbers-grid-5 { grid-template-columns: repeat(3, 1fr); }

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

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-timeline { max-width: 560px; }

  /* Calculator */
  .calculator-wrapper { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }

  /* Cases */
  .cases-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

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

  /* Tech */
  .tech-grid { grid-template-columns: 1fr; }
  .tech-visual { order: -1; }

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

  /* Quote */
  .quote-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { max-width: 100%; }

  /* Testimonials: show 2 per view */
  .testimonial-card { min-width: 50%; }

  /* WhatsApp & BackTop */
  .back-to-top { right: 96px; }
}

/* ── MOBILE (max-width: 767px) ── */
@media (max-width: 767px) {
  /* Container */
  .container { padding: 0 16px; }

  /* Topbar */
  .topbar { display: none; }

  /* Navbar */
  .navbar-inner { height: 64px; }
  .logo-icon { width: 36px; height: 36px; font-size: 1.2rem; }
  .logo-name  { font-size: 1.1rem; }

  /* Hero */
  .hero { min-height: auto; padding: 100px 0 0; }
  .hero-inner { padding-bottom: 60px; }
  .hero-title  { font-size: 1.8rem; }
  .hero-subtitle { font-size: .95rem; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.6rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .hero-card-main { max-width: 100%; }
  .hero-badge-float { display: none; }

  /* Numbers */
  .numbers-grid, .numbers-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nc-value { font-size: 1.8rem; }

  /* Sections */
  .services-section,
  .about-section,
  .calculator-section,
  .cases-section,
  .testimonials-section,
  .tech-section,
  .sustain-section,
  .quote-section,
  .coverage-section,
  .faq-section { padding: 60px 0; }

  .section-title { font-size: 1.6rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }

  /* About */
  .about-values { gap: 12px; }

  /* Calculator */
  .calc-inputs, .calc-results { padding: 24px; }

  /* Cases */
  .cases-grid { grid-template-columns: 1fr; }

  /* Testimonials/Reviews: 1 per row on mobile */
  .testimonial-card { min-width: 100%; padding: 8px; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* Tech */
  .app-mockup { width: 260px; }

  /* Sustain */
  .sustain-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ssc-value { font-size: 2rem; }

  /* Quote */
  .quote-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* States */
  .state-btn { padding: 10px 18px; font-size: .82rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-certs { justify-content: center; }

  /* WhatsApp Float */
  .whatsapp-float { padding: 14px; }
  .wa-label { display: none; }
  .back-to-top { right: 86px; }

  /* Back to top / WA adjustment */
  .whatsapp-float { bottom: 20px; right: 20px; }
  .back-to-top { bottom: 20px; right: 80px; }
}

/* ── SMALL MOBILE (max-width: 400px) ── */
@media (max-width: 400px) {
  .hero-title { font-size: 1.55rem; }
  .numbers-grid, .numbers-grid-5 { grid-template-columns: 1fr 1fr; }
  .nc-value { font-size: 1.5rem; }
  .sustain-stats { grid-template-columns: 1fr 1fr; }
  .ssc-value { font-size: 1.8rem; }
  .states-grid { justify-content: flex-start; }
  .state-btn { font-size: .78rem; padding: 8px 14px; }
}

/* ── PRINT ── */
@media print {
  .topbar, .navbar, .whatsapp-float, .back-to-top,
  .hero-particles, .slider-controls { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { background: #003366 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
  .section-title { page-break-after: avoid; }
  .service-card, .case-card { page-break-inside: avoid; }
}

/* ── ACCESSIBILITY ── */
:focus-visible {
  outline: 3px solid var(--c-blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── HIGH CONTRAST ── */
@media (prefers-color-scheme: dark) {
  /* Site is light-mode by design; keep as is but improve contrast on subtle elements */
  .topbar { background: #001020; }
}

/* SEO Section */
@media (max-width: 767px) {
  .seo-grid { grid-template-columns: 1fr; gap: 28px; }
  .seo-block h2 { font-size: .97rem; }
}

/* ─────────────────────────────────────────
   SCROLL-SNAP SLIDERS — responsive sizes
───────────────────────────────────────── */

/* Tablet: testimonials = 2 per view */
@media (max-width: 1024px) {
  /* Testimonials: 2 per view on tablet: (100% - 1 gap) / 2 */
  .tslider-slide {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    min-width: 240px;
  }
}

/* Mobile: all sliders = 1 per view */
@media (max-width: 640px) {
  .case-slide {
    flex: 0 0 calc(100% - 0px);
    width: 100%;
    min-width: unset;
  }
  .tslider-slide {
    flex: 0 0 calc(100% - 0px);
    width: 100%;
    min-width: unset;
  }
}
