/* ============================================
   Owensboro Nutrition — Custom Styles
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(107, 27, 42, 0.2);
  color: #3D2B1F;
}

/* --- Header Scroll State --- */
#site-header.scrolled {
  box-shadow: 0 1px 20px rgba(107, 27, 42, 0.08);
}

#site-header.scrolled .absolute {
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(16px);
}

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

#mobile-menu.hidden {
  animation: slideUp 0.25s ease forwards;
}

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

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

/* --- Offering Cards --- */
.offering-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(107, 27, 42, 0.2);
}

/* --- Value Cards --- */
.value-card {
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .offering-card:hover { transform: none; }
  .value-card:hover { transform: none; }
  img { transition: none; }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(244, 154, 173, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection --- */
input::placeholder,
textarea::placeholder {
  color: rgba(253, 240, 243, 0.35);
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF6F1;
}
::-webkit-scrollbar-thumb {
  background: rgba(107, 27, 42, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 27, 42, 0.4);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Print --- */
@media print {
  #site-header,
  #mobile-menu,
  .offering-card,
  .value-card {
    transition: none !important;
  }
}
