/* ============================================ */
/* FORTAL REBOQUES — Custom Styles              */
/* ============================================ */

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* --- Alpine.js Cloak --- */
[x-cloak] {
  display: none !important;
}

/* --- WhatsApp Pulse Animation --- */
@keyframes pulse-subtle {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2.5s ease-in-out infinite;
}

/* --- Header Scroll State --- */
#site-header.scrolled .bg-smooth-dark\/95 {
  background-color: rgba(240, 240, 240, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* --- Hero Parallax Subtle --- */
#inicio {
  background-attachment: fixed;
}

/* --- Card Service Hover --- */
#servicos .group:hover .absolute.-top-7 {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* --- FAQ Accordion Transition --- */
[x-collapse] {
  overflow: hidden;
}

/* --- Scrollbar Custom --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F6F7FB;
}

::-webkit-scrollbar-thumb {
  background: #E8A817;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C98F0E;
}

/* --- Focus Styles for Accessibility --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E8A817;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection Color --- */
::selection {
  background: #F5D680;
  color: #1F2122;
}

/* --- Mobile Menu Overlay --- */
@media (max-width: 1023px) {
  body.menu-open {
    overflow: hidden;
  }
}

/* --- Image Lazy Load Fade In --- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* Support for browsers that handle lazy natively */
img:not([loading="lazy"]),
img[loading="eager"] {
  opacity: 1;
}

/* --- Credibilidade Counter Animation --- */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#credibilidade .font-outfit {
  animation: countUp 0.6s ease forwards;
}

/* --- How It Works Steps (no connector lines) --- */
#como-funciona .grid > div {
  position: relative;
}

/* --- Print Styles --- */
@media print {
  #site-header,
  .fixed.bottom-6,
  footer {
    display: none;
  }

  main {
    padding-top: 0;
  }
}
