/* ============================================
   Divine Creations & Nutrition — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background-color: #B85C38;
  color: #FDFCF8;
}

/* Hero animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Marquee */
.marquee-track {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

/* Fallback: content always visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(250, 246, 238, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(58, 34, 24, 0.08);
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FAF6EE;
}

::-webkit-scrollbar-thumb {
  background: #C9A864;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B85C38;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #B85C38;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav, .marquee-track, #contact-form, .scroll-reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
