/* ==========================================================================
   RÉGIA UNIFORMES - RESPONSIVIDADE & MOBILE-FIRST OPTIMIZATIONS
   Conforme Diretrizes do agency-ui-designer (Acessibilidade & Pixel-Perfect)
   ========================================================================== */

/* Prevenção rigorosa de overflow horizontal */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* --- TABLETS E TELAS MÉDIAS (Max 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-badge-pill,
  .hero-pricing-anchor {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-badges {
    justify-content: center;
  }

  .main-image-wrapper {
    max-width: 100%;
    margin-inline: auto;
  }

  .main-image-wrapper img {
    height: 420px;
  }

  .floating-glass-badge.badge-top-left {
    left: 15px;
    top: 15px;
  }

  .floating-glass-badge.badge-bottom-right {
    right: 15px;
    bottom: 15px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .wholesale-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
}

/* --- DISPOSITIVOS MÓVEIS (Max 768px) --- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.15rem;
  }

  .top-announcement-bar {
    font-size: 0.78rem;
    padding: 0.6rem 0.8rem;
  }

  .top-announcement-bar .inner-wrap {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
  }

  .header-inner {
    height: 70px;
  }

  .desktop-nav {
    display: none; /* Em mobile focamos 100% no CTA direto do WhatsApp */
  }

  .brand-avatar {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .btn-header-wa {
    padding: 0.55rem 0.95rem;
    font-size: 0.8rem;
  }

  .btn-header-wa span.btn-text-full {
    display: none;
  }

  .hero-section {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.2rem);
    word-break: break-word;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary-wa,
  .hero-actions .btn-secondary-catalog {
    width: 100%;
  }

  .main-image-wrapper img {
    height: 340px;
  }

  .floating-glass-badge {
    padding: 0.6rem 0.9rem;
  }

  .floating-glass-badge strong {
    font-size: 0.82rem;
  }

  .badge-icon-box {
    width: 36px;
    height: 36px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .catalog-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
  }

  .catalog-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 0.65rem 1.15rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .size-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
    margin-inline: auto;
  }

  .calculator-card {
    padding: 1.5rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
  }

  .wa-floating-tooltip {
    display: none;
  }
}

/* --- TELAS EXTRA PEQUENAS (Max 480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-pricing-anchor {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    width: 100%;
  }

  .main-image-wrapper img {
    height: 300px;
  }

  .floating-glass-badge {
    position: static;
    margin: 0.5rem auto;
    width: 100%;
    max-width: 100%;
    animation: none;
  }

  .btn-primary-wa,
  .btn-secondary-catalog,
  .btn-product-wa,
  .btn-calc-wa {
    min-height: 48px;
    font-size: 0.95rem;
  }
}

