/* ==========================================================================
   SOTO FILHOS — Homepage modernization layer
   PRESERVA cores existentes (#000 / #fff / #00BC18 / #f4f4f4 / Bootstrap defaults)
   So adiciona: micro-polish, focus states, transicoes suaves, mobile fixes.
   ========================================================================== */

/* Smooth defaults
   ---------------- */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

/* Focus states (acessibilidade — ajuda Quality Score)
   ---------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00BC18;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link (acessibilidade)
   -------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 100000;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  top: 0;
}

/* Botao success — mantem cor, melhora interacao
   ---------------------------------------------- */
.btn-success {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  border: none;
  will-change: transform;
}
.btn-success:hover,
.btn-success:focus {
  background-color: #00a015 !important;
  transform: translateY(-1px);
  box-shadow: 3px 6px 8px 0px rgba(0, 0, 0, 0.35);
  color: #fff !important;
}
.btn-success:active {
  transform: translateY(0);
  box-shadow: 2px 3px 4px 0px rgba(0, 0, 0, 0.3);
}

/* Loja online button (bg-success custom no btn-lg)
   ------------------------------------------------ */
.btn-lg.bg-success {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-lg.bg-success:hover,
.btn-lg.bg-success:focus {
  background-color: #00a015 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #fff !important;
}

/* Navbar links — melhor hover sem mudar cor base
   ----------------------------------------------- */
.navbar-nav .nav-link {
  transition: opacity 0.15s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  opacity: 0.75;
}

/* Products section — espacamento melhor + hover sutil
   --------------------------------------------------- */
section.mt-5 .col-md-4 a {
  display: block;
  transition: transform 0.2s ease;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
}
section.mt-5 .col-md-4 a:hover {
  transform: translateY(-4px);
}
section.mt-5 .col-md-4 a:hover img {
  filter: brightness(1.05);
}
.img-cover {
  transition: filter 0.2s ease;
  border-radius: 8px;
}
section.mt-5 .col-md-4 p {
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* Contato — melhor leitura
   ------------------------ */
#contato h2 {
  letter-spacing: 0.05em;
}
#contato h4 a {
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
#contato h4 a:hover {
  color: #00BC18 !important;
}
#contato .border-bottom {
  border-bottom: 1px solid #e8e8e8 !important;
}

/* Form — campos mais arejados
   --------------------------- */
.form-control {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  border-radius: 6px;
  padding: 10px 12px;
}
.form-control:focus {
  border-color: #00BC18;
  box-shadow: 0 0 0 3px rgba(0, 188, 24, 0.15);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

/* Footer
   ------ */
footer {
  background-color: #f4f4f4;
  color: #555;
}
footer p {
  margin: 0;
  line-height: 1.5;
}

/* WhatsApp widget — pulse sutil sem mudar visual
   ---------------------------------------------- */
.whatsapp-button {
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.whatsapp-button:hover {
  transform: scale(1.08);
}
.whatsapp-button img {
  display: block;
}

/* Carousel — mantem comportamento, ajusta indicators
   ------------------------------------------------- */
.carousel-indicators li {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-indicators li:hover {
  transform: scale(1.2);
}

/* Mobile fixes — sem mudar layout
   ------------------------------- */
@media (max-width: 768px) {
  .content-sg-carousel h1 {
    font-size: 36px !important;
    line-height: 1.15;
    padding: 0 16px;
  }
  .content-sg-carousel h3 {
    font-size: 16px !important;
    padding: 0 16px;
  }
  .btn-success {
    width: 100% !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
  }
  section.mt-5 .col-md-4 {
    margin-bottom: 24px;
  }
  section.mt-5 .col-md-4:last-child {
    margin-bottom: 0;
  }
  #contato .col-md-4 {
    margin-bottom: 24px;
  }
}

/* Tablet
   ------ */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-sg-carousel h1 {
    font-size: 56px !important;
  }
}

/* Reduced motion (acessibilidade)
   ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .item.active img {
    transform: none !important;
  }
}

/* Print
   ----- */
@media print {
  .whatsapp-button,
  #sg-carousel,
  .carousel-indicators,
  .carousel-control,
  iframe {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
