/* ============================================
   7 PILLARS BREWERY — Custom Styles
   Bold Editorial · Burgundy + Blush
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
  background: #7B2D3B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #662430;
}

/* --- Smooth Scrolling --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* --- Selection Color --- */
::selection {
  background: #7B2D3B;
  color: #FDF8F5;
}

/* --- Hero Animations --- */
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  animation: heroSlideUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: heroSlideUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-body {
  animation: heroSlideUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-cta-primary {
  animation: heroSlideUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-cta-secondary {
  animation: heroSlideUp 0.8s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.hero-stats {
  animation: heroSlideUp 0.8s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-bottom,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal-bottom.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* --- Navbar Active State --- */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: heroSlideUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* --- Menu Toggle Animation --- */
.menu-toggle-active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-toggle-active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle-active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* --- Brew Card Hover --- */
.group:hover .group-hover\:text-blush-200 {
  transition: color 0.3s ease;
}

/* --- Image Hover --- */
.group:hover .group-hover\:scale-105 {
  transition: transform 0.7s ease;
}

/* --- Focus Styles --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
  #navbar, #mobile-menu, .reveal-bottom, .reveal-left, .reveal-right {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
