/* ============================================================
   SahabatBisnis  |  Custom styles (supplements Tailwind CDN)
   Base brand color: #1d3cad
   Typeface: Plus Jakarta Sans (loaded via Google Fonts in the HTML)
   ============================================================ */

:root {
  --brand: #1d3cad;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
}

/* Utility label spacing */
.eyebrow {
  letter-spacing: 0.2em;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Subtle grid backdrop for dark sections ---------- */
.grid-lines {
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Floating WhatsApp button pulse ---------- */
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25d366;
  opacity: 0.5;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- FAQ / accordion ---------- */
details.faq > summary {
  list-style: none;
  cursor: pointer;
}
details.faq > summary::-webkit-details-marker {
  display: none;
}
details.faq[open] .faq-icon {
  transform: rotate(45deg);
}

/* ---------- Disclaimer toast ---------- */
.disclaimer-toast {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.disclaimer-toast.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Full-screen mobile menu ---------- */
#mobileMenu {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobileMenu.is-open {
  visibility: visible;
  opacity: 1;
}
#mobileMenu .menu-panel {
  transform: translateY(-10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobileMenu.is-open .menu-panel {
  transform: none;
}
/* Lock background scroll while the menu is open */
body.menu-open {
  overflow: hidden;
}

/* ---------- Accessibility: visible focus ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .wa-fab::before {
    animation: none !important;
  }
  #mobileMenu,
  #mobileMenu .menu-panel {
    transition: none;
  }
  .disclaimer-toast {
    transition: none;
  }
}
