:root {
  --wrap: 1360px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid #D9A54A;
  outline-offset: 3px;
}

::selection {
  background: #E8C589;
  color: #0D140E;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 2vw + 0.5rem, 3rem);
}

/* Nav transparent state — only applied on dark-hero routes before scroll */
.nav-transparent {
  background: transparent;
  color: #FBF9F5;
}

/* Reveal-on-scroll: mirrors the original's Framer Motion whileInView
   (opacity 0->1, y +20px->0, 0.7s, cubic-bezier(0.16,1,0.3,1), once). */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Editorial photo treatment: one consistent color grade across every real
   photo on the site, regardless of source lighting/backdrop. */
.editorial-photo {
  filter: saturate(0.94) contrast(1.06) brightness(1.03);
}

/* Hero load-in: background image scales down from 1.08x on first paint. */
@keyframes hero-scale-in {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-image {
  animation: hero-scale-in 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-fade-up {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.scroll-hint {
  animation: bob 2.2s ease-in-out infinite;
}

/* Vitrine kwiatomat tilt-on-hover */
.kwiatomat-tilt {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  perspective: 1200px;
}

/* Live pulsing status dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-dot {
  animation: pulse-dot 2.4s ease-in-out infinite;
}
