html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Signature element: hazard stripe divider — a nod to warning labels on
   refrigeration/coldroom equipment. Used sparingly at section boundaries. */
.hazard-strip {
  background-image: repeating-linear-gradient(
    135deg,
    #FFC300 0px,
    #FFC300 14px,
    #0F172A 14px,
    #0F172A 28px
  );
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #ffffff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: #FF6A13;
  transition: right 0.2s ease;
}
.nav-link:hover::after { right: 0; }

.drawer-link {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.drawer-link:hover { color: #ffffff; padding-left: 0.25rem; }

.footer-link {
  color: #8D99AE;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #FFC300; }

.social-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.06);
  color: #E7EAEE;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icon:hover {
  background: #FF6A13;
  color: #0F172A;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #FFC300;
  outline-offset: 2px;
}

/* ---- Gallery filters ---- */
.gallery-filter {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid #E7EAEE;
  color: #5B6675;
  background: #ffffff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gallery-filter:hover { border-color: #FF6A13; color: #0F172A; }
.gallery-filter.is-active {
  background: #0F172A;
  border-color: #0F172A;
  color: #ffffff;
}

/* ---- Gallery grid items ---- */
.gallery-item {
  position: relative;
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  text-align: left;
  background: #0F172A;
}
.gallery-item img {
  transition: transform 0.4s ease, opacity 0.2s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(to top, rgba(15,23,42,0.92), rgba(15,23,42,0));
}
.gallery-item.is-hidden { display: none; }

#gallery-modal.is-open { display: flex; }

/* ---- Form fields ---- */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.375rem;
  padding: 0.7rem 0.9rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input::placeholder { color: rgba(231,234,238,0.4); }
.form-input:focus {
  border-color: #FF6A13;
  background: rgba(255,255,255,0.1);
}
.form-input.is-invalid { border-color: #ef4444; }

select.form-input option { color: #0F172A; }

.form-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #FF8A65;
}
.form-error.is-visible { display: block; }

#form-success.is-visible { display: flex; }

/* ================= PREMIUM AESTHETIC ================= */

/* ---- Glassmorphism cards ---- */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Scroll-triggered fade-in reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of any grid/flex container marked .stagger */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(n+7) { transition-delay: 460ms; }

/* ---- Shop: filters (mirrors gallery-filter but on dark bg) ---- */
.shop-filter {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E7EAEE;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.shop-filter:hover { border-color: #FF6A13; color: #ffffff; }
.shop-filter.is-active {
  background: #FF6A13;
  border-color: #FF6A13;
  color: #0F172A;
}

/* ---- Shop: product cards (glass, on deep slate bg) ---- */
.shop-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 19, 0.4);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.shop-card img { transition: transform 0.4s ease; }
.shop-card:hover img { transform: scale(1.04); }
.shop-card.is-hidden { display: none; }

.shop-spec-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #FFC300;
  border: 1px solid rgba(255, 195, 0, 0.35);
  white-space: nowrap;
}

#shop-modal.is-open { display: flex; }

/* ---- Shop: product image carousel (3 slides per product) ---- */
.shop-carousel {
  position: relative;
  aspect-ratio: 1 / 1;
}
.shop-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.shop-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.shop-carousel-slide.is-active { opacity: 1; }

.shop-carousel-prev,
.shop-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 20;
}
.shop-carousel-prev svg,
.shop-carousel-next svg { width: 15px; height: 15px; }
.shop-carousel:hover .shop-carousel-prev,
.shop-carousel:hover .shop-carousel-next,
.shop-carousel-prev:focus-visible,
.shop-carousel-next:focus-visible {
  opacity: 1;
}
.shop-carousel-prev { left: 8px; }
.shop-carousel-next { right: 8px; }
.shop-carousel-prev:hover,
.shop-carousel-next:hover { background: rgba(255, 106, 19, 0.9); }

/* Touch devices have no hover — keep arrows visible so they're discoverable */
@media (hover: none) {
  .shop-carousel-prev,
  .shop-carousel-next { opacity: 1; }
}

.shop-carousel-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 20;
}
.shop-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}
.shop-carousel-dot.is-active {
  background: #FF6A13;
  transform: scale(1.35);
}

/* ---- Sticky mobile action bar ---- */
#mobile-action-bar {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 1023px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }
}
