/* ── Custom styles for Sweeter Creations Sugar House ── */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fffaf0;
}
::-webkit-scrollbar-thumb {
  background: #f8c0d8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #eb639a;
}

/* Selection color */
::selection {
  background: #f8c0d8;
  color: #8B1A4A;
}

/* ── Scroll reveal (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Nav scroll shadow ── */
.nav-scrolled {
  box-shadow: 0 4px 20px rgba(139, 26, 74, 0.08);
}

/* ── Hero image gradient animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating {
  animation: float 4s ease-in-out infinite;
}

/* ── Card hover effects ── */
.offerings-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offerings-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(139, 26, 74, 0.12);
}

/* ── Button ripple ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after {
  opacity: 1;
}

/* ── Input focus glow ── */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(248, 192, 216, 0.4);
}

/* ── Mobile menu transition ── */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Decorative patterns ── */
.sweet-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(248, 192, 216, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(139, 26, 74, 0.05) 0%, transparent 50%);
}
