/* ============================================================
   ALLMA MOTOS - Responsivo (site publico)
   Carregado APOS style.css. Ajustes mobile sem afetar desktop.
   ============================================================ */

/* Trava a rolagem horizontal em qualquer tela (html + body) */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Midias sempre fluidas */
img,
video,
iframe,
svg {
  max-width: 100%;
}

/* Owl Carousel: garante recorte interno do trilho (evita a pagina
   ficar "larga" sem cortar as setas, que ficam fora do carrossel) */
.owl-carousel .owl-stage-outer {
  overflow: hidden;
}

/* ---- Tablet (<= 992px) ---- */
@media (max-width: 992px) {
  .custom_nav-container .navbar-nav {
    padding-top: 15px;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 10px 25px;
    margin: 5px 0;
  }

  .slider_section .detail-box h1 {
    font-size: 2.5rem;
  }
}

/* ---- Celular (<= 768px) ---- */
@media (max-width: 768px) {
  /* Menu mobile: fundo solido e alvos de toque confortaveis */
  .header_section .navbar-collapse {
    background: rgba(14, 55, 70, 0.98);
    margin-top: 10px;
    border-radius: 10px;
    padding: 8px 0;
  }

  .header_section .navbar-nav {
    margin-left: 0;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link {
    min-height: 44px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .custom_nav-container .navbar-toggler {
    padding: 6px;
  }

  /* Hero no mobile nao recorta conteudo */
  body:not(.sub_page) .hero_area {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body:not(.sub_page) .slider_section {
    min-height: 60vh;
    padding: 20px 0;
  }

  /* Setas do carrossel de depoimentos dentro da tela */
  .client_owl-carousel .owl-nav .owl-prev {
    left: 0;
  }

  .client_owl-carousel .owl-nav .owl-next {
    right: 0;
  }

  /* Overlay do mapa visivel no toque (nao depende de hover) */
  .map_overlay {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }

  /* Titulos proporcionais */
  .heading_standard h2,
  .services_section .heading_container h2,
  .products_section .heading_container h2 {
    font-size: 1.9rem;
  }

  /* Rodape / contato empilhados */
  .contact_section .form_container {
    margin-bottom: 45px;
  }

  .footer_section .footer-info-box {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    padding-top: 15px;
  }
}

/* ---- Celular pequeno (<= 576px) ---- */
@media (max-width: 576px) {
  .heading_standard h2,
  .services_section .heading_container h2,
  .products_section .heading_container h2 {
    font-size: 1.6rem;
  }

  .service_card,
  .product_card,
  .moto-card {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Celular muito pequeno (<= 420px) ---- */
@media (max-width: 420px) {
  .slider_section .detail-box h1 {
    font-size: 2rem;
  }
}

/* ---- Desktop ---- */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}
