/* Lucca — Fé e Paciência
   Custom layer on top of Tailwind (loaded via CDN). */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header background appears once the user scrolls down (toggled in script.js). */
[data-header] {
  background-color: transparent;
}

[data-header].is-scrolled {
  background-color: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(60, 95, 35, 0.08), 0 8px 24px rgba(60, 95, 35, 0.06);
}

/* Ensure the QR canvas/img rendered by qrcodejs fits its container nicely. */
#pix-qr img,
#pix-qr canvas {
  width: 200px !important;
  height: 200px !important;
  display: block;
  border-radius: 4px;
}

/* Toast visible state. */
[data-toast].is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Subtle entrance for sections as they scroll into view. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
