/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Marquee Animation ── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 25s linear infinite;
}

/* ── Scroll Down Indicator ── */
@keyframes scroll-down {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
.animate-scroll-down {
  animation: scroll-down 1.5s ease-in-out infinite;
}

/* ── Beer Card ── */
.beer-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.beer-card:hover {
  transform: translateY(-4px);
}

/* ── Feature Card ── */
.feature-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
}

/* ── Scroll Reveal (below-fold only, progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile Menu ── */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(20, 83, 45, 0.1);
}
.mobile-link:last-child { border-bottom: none; }

/* ── Nav Scroll State ── */
nav.scrolled {
  box-shadow: 0 1px 20px rgba(5, 46, 22, 0.08);
}

/* ── Mobile Menu Open State ── */
#mobile-menu.open {
  display: block;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Contact Form ── */
#contact-form .form-group input,
#contact-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(20, 83, 45, 0.15);
  border-radius: 0.75rem;
  background: white;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f1a0f;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
#contact-form .form-group input:focus,
#contact-form .form-group textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
#contact-form .form-group input::placeholder,
#contact-form .form-group textarea::placeholder {
  color: rgba(15, 26, 15, 0.35);
}
#contact-form .form-group textarea {
  resize: vertical;
  min-height: 120px;
}
#form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
#form-success.show {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
#form-success svg {
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
