/* ==========================================================================
   MKM LOCAÇÕES - ADAPTAÇÃO RESPONSIVA (MOBILE FIRST & BREAKPOINTS)
   ========================================================================== */

/* Footer 4 colunas em desktop (V2) */
.footer-grid {
  grid-template-columns: 1.8fr 1fr 1.2fr 1.3fr;
  gap: var(--space-10);
}

/* --------------------------------------------------------------------------
   DISPOSITIVOS MÓVEIS E TABLETS (ATÉ 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  /* Header Mobile */
  .nav-menu {
    position: fixed;
    top: calc(var(--header-height, 84px) + 3px);
    left: 0;
    width: 100%;
    background-color: var(--color-dark-900);
    border-bottom: 2px solid var(--color-primary);
    flex-direction: column;
    padding: var(--space-6) var(--space-6);
    gap: var(--space-4);
    align-items: stretch;
    box-shadow: var(--shadow-xl);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-dark-700);
    font-size: var(--font-size-lg);
  }

  .nav-link::after {
    display: none;
  }

  .header-cta .btn {
    display: none;
  }

  .nav-menu-cta {
    margin-top: var(--space-4);
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero Section Mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  /* Categorias, Catálogo, Produto e Orçamento (V2) */
  .category-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .filter-chip {
    border: 1px solid var(--color-light-300);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }

  /* Como Funciona Mobile */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Sobre a MKM */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Contato */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .toast {
    bottom: 96px;
  }
}

/* --------------------------------------------------------------------------
   SMARTPHONES PEQUENOS E MÉDIOS (ATÉ 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .hero {
    padding-top: var(--space-10);
    padding-bottom: var(--space-12);
  }

  .hero-title {
    font-size: 2.125rem;
  }

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

  .header-inner {
    gap: var(--space-2);
  }

  .header-cta {
    gap: var(--space-2);
  }

  .header .brand-logo {
    width: 74px;
  }

  .header .brand-logo img {
    height: 48px;
    object-fit: contain;
  }

  .quote-link {
    padding: 0.45rem 0.65rem;
    font-size: var(--font-size-xs);
    gap: 0.375rem;
  }

  .quote-link-icon {
    width: 16px;
    height: 16px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .footer .brand-logo {
    width: min(250px, 100%);
  }

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

  /* Categorias e Catálogo Grid */
  .catalog-sidebar {
    padding: var(--space-4);
  }

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

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

  /* Produto & Detalhes */
  .period-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .product-submit {
    width: 100%;
  }

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

  /* Meu Orçamento */
  .quote-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .quote-item-remove {
    margin-left: auto;
  }

  /* CTA Band */
  .cta-band-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-band-actions .btn {
    width: 100%;
  }

  /* Steps e Diferenciais em 1 coluna */
  .steps-grid,
  .diff-grid,
  .about-highlights,
  .cities-grid {
    grid-template-columns: 1fr;
  }

  /* FAB Floating WhatsApp */
  .fab-tooltip {
    display: none;
  }

  .whatsapp-fab {
    bottom: 16px;
    right: 16px;
  }

  .toast {
    bottom: 80px;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .fab-button {
    width: 52px;
    height: 52px;
  }

  .fab-icon {
    width: 28px;
    height: 28px;
  }

  .contact-cta-card,
  .region-box {
    padding: var(--space-6);
  }

  .region-main-highlight {
    flex-direction: column;
    text-align: center;
  }

  .hero-slogan-badge {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
  }

  .btn {
    white-space: normal;
    min-height: 44px;
  }
}

.contact-grid > *,
.contact-item > div {
  min-width: 0;
}

.contact-value,
.footer-link {
  overflow-wrap: anywhere;
}

/* Arquivos JPG fornecidos: manter a marca legível sem deformar o desenho. */
@media (max-width: 640px) {
  :root { --header-height: 84px; }
  .header-inner { height: var(--header-height); }
  .nav-menu { top: 87px; }
  .header .brand-logo img { object-fit: contain; object-position: center; }
  .footer .brand-logo { width: 220px; }
  .footer .brand-logo img { height: auto; }
}
