/* ============================================
   Mona's Country Liquor — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Selection */
::selection {
  background-color: #a8e6c3;
  color: #0a1525;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

.animate-fade-up {
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fade-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
  animation: float 5s ease-in-out infinite 1s;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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 reveal children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ============================================
   Header
   ============================================ */

#header {
  background: rgba(240, 250, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 230, 195, 0.3);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(10, 21, 37, 0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-nav-link {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
  color: #34a876;
  transform: translateX(5px);
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7bd3a5;
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* Hamburger animation */
#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ============================================
   Nav Links (Desktop)
   ============================================ */

.nav-link {
  position: relative;
}

.nav-link::after {
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   Image hover effects
   ============================================ */

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ============================================
   Smooth transitions for all interactive elements
   ============================================ */

a, button {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Map container
   ============================================ */

iframe {
  filter: saturate(0.7) brightness(1.05) contrast(1.05);
  transition: filter 0.4s ease;
}

iframe:hover {
  filter: saturate(1) brightness(1) contrast(1);
}

/* ============================================
   Responsive adjustments
   ============================================ */

@media (max-width: 767px) {
  .font-display {
    line-height: 1.1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lg\:col-span-5 {
    min-height: 500px;
  }
}

/* ============================================
   Print styles
   ============================================ */

@media print {
  #header, #menu-btn, .animate-float, .animate-float-delay {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .no-print {
    display: none;
  }
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
