/* ============================================================
   RESPONSIVIDADE DO SITE PUBLICO
   Carregado por ultimo em app/cabecalho.php.
   Ajusta hero, secoes, carrosseis, formularios, rodape e o
   fluxo de agendamento em celulares e tablets.
   ============================================================ */

/* Base: nada estoura a largura da tela */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
iframe,
video {
  max-width: 100%;
}

.container {
  padding-left: 16px;
  padding-right: 16px;
}

/* Alturas com suporte a barra de endereco dos navegadores moveis */
.hero_area {
  min-height: 100svh;
}

body:not(.sub_page) .hero_area {
  height: 100svh;
}

/* ---------------------------
   Tablets (ate 992px)
   --------------------------- */
@media (max-width: 992px) {
  .layout_padding {
    padding: 64px 0;
  }

  .layout_padding2 {
    padding: 52px 0;
  }

  .layout_padding-top {
    padding-top: 64px;
  }

  .layout_padding-bottom {
    padding-bottom: 64px;
  }

  .layout_padding2-top {
    padding-top: 52px;
  }

  .layout_padding2-bottom {
    padding-bottom: 52px;
  }

  .slider_section {
    padding: 40px 0 60px;
  }

  body:not(.sub_page) .slider_section {
    padding: 24px 0 40px;
  }

  .slider_section .detail-box {
    text-align: center;
  }

  .slider_section .detail-box h1 {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .slider_section .img-box {
    margin-top: 28px;
  }

  .heading_container h2 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .about_section .detail-box {
    margin: 28px 0;
  }

  /* Carrossel de produtos: sem margens laterais gigantes */
  .product_section .product_container {
    margin: 0;
    padding: 22px 0;
  }

  .product_section .owl-carousel .owl-nav {
    position: static;
    flex-direction: row;
    justify-content: center;
    transform: none;
    margin-top: 18px;
  }

  .product_section .owl-carousel .owl-nav button.owl-next,
  .product_section .owl-carousel .owl-nav button.owl-prev {
    width: 42px;
    height: 42px;
    margin: 0 4px;
  }

  .client_section .box .detail-box {
    padding: 55px 18px 20px;
  }

  .contact_section .map_container {
    height: 280px;
    margin-top: 24px;
  }

  .footer_section .footer_content {
    padding: 44px 0 6px;
  }

  .footer_section .footer-col {
    margin-bottom: 30px;
  }

  /* Alvos de toque confortaveis */
  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 12px 18px;
  }

  .tema-toggle {
    width: 44px;
    height: 44px;
  }
}

/* ---------------------------
   Celulares (ate 768px)
   --------------------------- */
@media (max-width: 768px) {
  .hero_area {
    min-height: auto;
  }

  /* Na home o hero deixa de travar a altura inteira */
  body:not(.sub_page) .hero_area {
    height: auto;
    min-height: 88svh;
    overflow: visible;
  }

  body:not(.sub_page) .slider_section {
    min-height: 0;
  }

  .hero_area .hero_bg_box img {
    object-position: center;
  }

  .slider_section .detail-box h1 {
    font-size: 1.85rem;
  }

  .slider_section .detail-box p {
    font-size: 0.95rem;
  }

  .slider_section .detail-box a,
  .about_section .detail-box a,
  .product_section .btn-box a,
  .btn-box2 a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
  }

  .heading_container h2 {
    font-size: 1.5rem;
  }

  .layout_padding {
    padding: 48px 0;
  }

  .layout_padding2 {
    padding: 40px 0;
  }

  .product_section .box .img-box {
    padding: 10px;
  }

  .product_section .box .img-box img {
    max-width: 100%;
    max-height: 170px;
  }

  .about_section .img-box img {
    height: auto;
  }

  .contact_section .form_container {
    margin-bottom: 12px;
  }

  .contact_section .form_container button {
    width: 100%;
    padding: 12px 20px;
  }

  .client_section .box .detail-box {
    padding: 50px 16px 18px;
  }

  .client_section .box .img-box {
    margin-left: 12px;
  }

  .footer_section .footer_form button,
  .footer_section .footer_form .botao-verde,
  .footer_section .footer_form .botao-azul {
    display: block;
    width: 100%;
    padding: 12px 20px;
  }

  .footer_section .footer-info-box {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer_section .social_box {
    justify-content: center;
  }

  .footer_section .social_box a {
    margin: 0 5px;
  }

  /* Menu de navegacao em coluna dentro do collapse */
  .custom_nav-container .navbar-nav {
    align-items: stretch;
  }

  .custom_nav-container .navbar-nav .nav-item {
    width: 100%;
  }

  /* Formularios: campos confortaveis no toque (evita zoom no iOS) */
  input,
  select,
  textarea,
  .form-control {
    font-size: 16px !important;
  }

  /* Agendamento: etapas e calendario */
  .steps-container {
    margin-bottom: 18px !important;
  }

  .step-progress {
    justify-content: space-between;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .step {
    flex: 0 0 auto;
  }

  .step-title {
    font-size: 10px;
  }

  .calendario-box {
    padding: 10px;
  }

  .calendario-dia {
    padding: 10px 0;
    font-size: 15px;
  }

  .step-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .step-buttons .btn-prev,
  .step-buttons .btn-next,
  .btn-prev-final,
  .btn-whatsapp {
    width: 100%;
    text-align: center;
  }

  .btn-whatsapp {
    display: block;
  }
}

/* ---------------------------
   Celulares pequenos (ate 576px)
   --------------------------- */
@media (max-width: 576px) {
  .slider_section .detail-box h1 {
    font-size: 1.6rem;
  }

  .heading_container h2 {
    font-size: 1.35rem;
  }

  .client_section .box .detail-box {
    padding: 46px 14px 16px;
  }

  .contact_section .map_container {
    height: 220px;
  }

  .product_section .box .detail-box {
    padding: 10px;
  }

  .footer_section h4 {
    font-size: 15px;
  }

  .calendario-semana span {
    font-size: 10px;
  }

  /* O calendario tem 7 colunas: sem minmax(0,1fr) e sem zerar o padding
     lateral dos dias, a ultima coluna (sabado) sai da tela e fica cortada. */
  .calendario-semana,
  .calendario-dias {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  .calendario-box .calendario-dia {
    padding: 9px 0 !important;
    min-width: 0 !important;
    font-size: 14px;
  }

  /* O nome do mes quebrava em duas linhas e estourava o cabecalho do card */
  .calendario-topo strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .calendario-box .calendario-nav {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
}

@media (max-width: 420px) {
  .slider_section .detail-box h1 {
    font-size: 1.45rem;
  }

  .layout_padding {
    padding: 38px 0;
  }

  .calendario-dia {
    padding: 9px 0;
    font-size: 14px;
  }
}

/* ---------------------------
   Desktop grande
   --------------------------- */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}
