/* ============================================
   Northside Nutrition — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: #7B2D3B;
  color: #FFFDF9;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF6EE;
}
::-webkit-scrollbar-thumb {
  background: #7B2D3B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b91d44;
}

/* Reveal animations — progressive enhancement, only when JS is available */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-revealed="false"] {
  opacity: 0;
  transform: translateY(32px);
}

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

/* Header scroll state */
#site-header.scrolled {
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Hero parallax-like subtle effect */
#hero img {
  will-change: transform;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product card image hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Custom underline for links */
a:hover {
  text-decoration: none;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Print styles */
@media print {
  #site-header, #mobile-menu, .reveal {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
