@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   HOMERO'S BEER - Custom Styles
   ============================================ */

/* Body base */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #FFF8E7;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Bubble rise */
@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  40%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(var(--sway, 15px)) scale(0.4); opacity: 0; }
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,215,0,0.25), rgba(255,140,0,0.05));
  border: 1px solid rgba(255,215,0,0.15);
  animation: bubbleRise linear infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Hero entrance animations */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title    { animation: heroFadeIn 1s ease 0.2s both; }
.hero-subtitle { animation: heroFadeIn 1s ease 0.5s both; }
.hero-buttons  { animation: heroFadeIn 1s ease 0.8s both; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for child reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Tab fade in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shimmer text */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, #FFD700 25%, #FFF8E7 50%, #FFD700 75%);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge pulse */
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}
.badge-pulse { animation: badgePulse 2s ease-in-out infinite; }

/* WhatsApp button pulse */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 35px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* Success slide down */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-anim { animation: slideDown 0.5s ease; }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background-color: #3D1C02;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Active nav link */
.nav-link.active { color: #FFD700 !important; }

/* Mobile menu slide */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}
.mobile-menu.open {
  max-height: 700px;
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,215,0,0.35);
}
.btn-primary:active { transform: translateY(0); }

/* ============================================
   CARDS
   ============================================ */

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.22);
}

/* Promo card glow */
.promo-glow {
  box-shadow: 0 4px 15px rgba(255,215,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.promo-glow:hover {
  box-shadow: 0 8px 35px rgba(255,215,0,0.28);
  transform: translateY(-5px);
}

/* ============================================
   MENU TABS
   ============================================ */

.menu-tab {
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.menu-tab:hover {
  border-color: rgba(255,215,0,0.4);
  color: #FFD700;
}
.menu-tab.active {
  background: #FFD700;
  color: #3D1C02;
  border-color: #FFD700;
}

.tab-content { animation: fadeInUp 0.4s ease; }

/* Menu item cards */
.menu-item-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.menu-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s ease;
  animation: waPulse 3s ease-in-out infinite;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  animation: none;
  box-shadow: 0 8px 32px rgba(37,211,102,0.65);
}

/* ============================================
   FORMS
   ============================================ */

.form-input {
  width: 100%;
  background: rgba(255,248,231,0.08);
  border: 2px solid rgba(255,215,0,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: #FFF8E7;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.form-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}
.form-input::placeholder { color: rgba(255,248,231,0.4); }
.form-input option { background: #3D1C02; color: #FFF8E7; }

.form-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,248,231,0.7);
  margin-bottom: 6px;
}

/* Light form variant */
.form-input-light {
  width: 100%;
  background: #fff;
  border: 2px solid #e5d9a0;
  border-radius: 12px;
  padding: 12px 16px;
  color: #3D1C02;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.form-input-light:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}
.form-label-light {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5C3A1E;
  margin-bottom: 6px;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #3D1C02; }
::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #FF8C00; }

/* ============================================
   HERO DECORATIVE
   ============================================ */

.hero-bg {
  background: linear-gradient(145deg, #0d0500 0%, #1f0a00 30%, #3D1C02 70%, #2a1400 100%);
}

/* Foam top bar */
@keyframes foamWave {
  0%, 100% { transform: scaleX(1) translateY(0); }
  50%       { transform: scaleX(1.02) translateY(-2px); }
}
.foam-wave { animation: foamWave 3s ease-in-out infinite; }

/* Section wave dividers */
.wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

/* ============================================
   UTILITY
   ============================================ */

/* Prevent layout shift */
html { scroll-behavior: smooth; }

/* Section padding */
.section-pad { padding: 80px 0; }
@media (max-width: 768px) { .section-pad { padding: 56px 0; } }

/* Beer decorative emoji */
.beer-float {
  animation: heroFadeIn 1s ease 1.1s both;
}

/* Price badge */
.price-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #3D1C02;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 2px 10px;
  border-radius: 20px;
}

/* Day pill */
.day-pill {
  display: inline-block;
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
