/* ── Base ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation links ── */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(6 95 70 / 0.7);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: rgb(6 95 70);
  background-color: rgb(209 250 229 / 0.6);
}

/* ── Mobile links ── */
.mobile-link {
  display: block;
}

/* ── Floating stat cards ── */
.floating-card-1 {
  animation: float-slow 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float-medium 5s ease-in-out infinite;
  animation-delay: -1.5s;
}
.floating-card-3 {
  animation: float-fast 4.5s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ── Marquee ── */
.marquee-track {
  animation: marquee 30s linear infinite;
}
.marquee-item {
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Specialty cards ── */
.specialty-card {
  cursor: default;
}

/* ── Grocery items ── */
.grocery-item {
  cursor: default;
}

/* ── Scroll-reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion: show everything */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .floating-card-1,
  .floating-card-2,
  .floating-card-3 {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
}
