/* =========================================
   LC Fresh Fruit & Smoothies — Custom Styles
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf9eb; }
::-webkit-scrollbar-thumb { background: #e8a817; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #d4900a; }

/* --- Selection --- */
::selection { background: #f4d98a; color: #0d1f54; }

/* --- Float animation for hero badge --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #1e3d9e;
  color: #f9edc4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(13, 31, 84, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 40;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #2d51b8;
}

/* --- Scroll reveal (progressive enhancement, respects reduced motion) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1; /* visible by default — JS enhances with animation */
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* --- Mobile menu transition --- */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
#mobileMenu.open {
  max-height: 500px;
  padding-bottom: 1rem;
}

/* --- Smooth focus outlines --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #D4900A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Print styles --- */
@media print {
  header, .back-to-top, #mobileMenu { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
