/* ── Custom base styles ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ── Floating decorative shapes ── */
.floating-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.shape-circle-1 {
  width: 600px;
  height: 600px;
  background: #065f46;
  border-radius: 50%;
  top: -200px;
  right: -200px;
  animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 400px;
  height: 400px;
  background: #065f46;
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 260px solid #065f46;
  top: 50%;
  left: 5%;
  transform: rotate(15deg);
  animation: float-medium 18s ease-in-out infinite;
  opacity: 0.03;
}

.shape-square {
  width: 200px;
  height: 200px;
  background: #065f46;
  border-radius: 32px;
  top: 60%;
  right: 8%;
  transform: rotate(45deg);
  animation: float-medium 22s ease-in-out infinite reverse;
  opacity: 0.03;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -40px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translate(0, 0) rotate(15deg); }
  50% { transform: translate(40px, -30px) rotate(25deg); }
}

/* ── Navbar scroll state ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

#navbar.scrolled .nav-link {
  color: #065f46;
}

#navbar.scrolled .nav-link:hover {
  color: #059669;
}

#navbar.scrolled .font-display {
  color: #065f46;
}

/* ── Beer card hover ── */
.beer-card {
  transform: translateY(0);
}

.beer-card:hover {
  transform: translateY(-4px);
}

/* ── Taproom card hover ── */
.taproom-card {
  transform: translateY(0);
}

.taproom-card:hover {
  transform: translateY(-4px);
}

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

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

/* ── Mobile menu transition ── */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}

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

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefdf8;
}
::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* ── Selection color ── */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}
