/* ========================================
   Sweeties Liquor Store & Coffee Shop
   Custom Styles
======================================== */

/* Color System */
:root {
  --color-cream: #FDF8F0;
  --color-charcoal: #2D3748;
  --color-emerald-700: #047857;
  --color-emerald-800: #065F46;
  --color-forest-green: #064E3B;
  --color-amber-400: #FBBF24;
  --color-amber-500: #F59E0B;
}

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

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
}

.font-fredoka {
  font-family: 'Fredoka', sans-serif;
}

.font-nunito {
  font-family: 'Nunito Sans', sans-serif;
}

/* Smooth Scroll Offset for Fixed Nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background: rgba(253, 248, 240, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Animation Keyframes */
@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 ease-out forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Back to Top Button */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:not(.visible) {
  transform: translateY(10px);
}

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

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

/* Form Focus States */
input:focus,
textarea:focus {
  border-color: #047857 !important;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1) !important;
}

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

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: #047857;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #065F46;
}

/* Selection Color */
::selection {
  background: rgba(4, 120, 87, 0.2);
  color: var(--color-charcoal);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .font-fredoka {
    line-height: 1.2;
  }
  
  section[id] {
    scroll-margin-top: 70px;
  }
}

@media (min-width: 1024px) {
  /* Subtle hover lift on cards */
  .group:hover {
    transform: translateY(-4px);
  }
}
