/* Hand-written styles that don't fit Tailwind utility classes cleanly:
   skip link, custom scrollbars, particle canvas, focus rings. */

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--cream-100);
  color: var(--forest-900);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* Horizontal scroll rows (featured products) — visible but understated scrollbar */
.scroll-row {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}
.scroll-row::-webkit-scrollbar {
  height: 6px;
}
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: 999px;
}
.scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Testimonial slides stack absolutely for a crossfade; JS toggles .is-active */
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Card tilt needs perspective on the parent to read as 3D */
[data-tilt-wrap] {
  perspective: 1000px;
}

@media (prefers-reduced-motion: reduce) {
  #hero-particles {
    display: none;
  }
}
