/* ---------------------------------------------------------------
   New World — small enhancements on top of the compiled Tailwind CSS
   (see ../tailwind.css — generated by the build in the project root)
   --------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

::selection {
  background: #ed1c24;
  color: #fff;
}

/* Industrial grid texture used behind dark sections */
.grid-texture {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* Hero sliding backgrounds ------------------------------------- */
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(7, 12, 22, 0.94) 0%, rgba(7, 12, 22, 0.78) 42%, rgba(7, 12, 22, 0.25) 100%);
}

/* Reveal-on-scroll --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Product filter ------------------------------------------------ */
.filter-btn {
  transition: all 0.2s ease;
}
.filter-btn[aria-pressed="true"] {
  background: #ed1c24;
  border-color: #ed1c24;
  color: #fff;
}
.product-card[hidden] {
  display: none;
}

/* Misc ---------------------------------------------------------- */
.header-scrolled {
  box-shadow: 0 10px 30px -18px rgba(11, 18, 32, 0.35);
}

.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.focus-ring:focus-visible {
  outline: 3px solid #ed1c24;
  outline-offset: 3px;
}

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