/* ============================================
   Cowboy Coffee — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(200, 149, 108, 0.3);
  color: #FDF8F4;
}

/* Hero Zoom Animation */
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.animate-hero-zoom {
  animation: heroZoom 1.5s ease-out forwards;
}

/* Hero Content Animation */
.hero-badge {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

#hero h1 {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

#hero p {
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

#hero > div:last-child > div {
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

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

/* Scroll Line Animation */
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.4; }
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* Navbar Scroll State */
nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .w-10 {
  background: linear-gradient(135deg, #d4a574, #b8814f);
}

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

.mobile-link {
  animation: fadeInUp 0.4s ease-out both;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-link:nth-child(5) { animation-delay: 0.5s; }

/* Menu Tabs */
.menu-tab {
  color: rgba(253, 248, 244, 0.5);
  background: transparent;
}

.menu-tab.active {
  color: #1A0505;
  background: linear-gradient(135deg, #C8956C, #d4a574);
  box-shadow: 0 4px 15px rgba(200, 149, 108, 0.3);
}

.menu-tab:not(.active):hover {
  color: rgba(253, 248, 244, 0.8);
  background: rgba(253, 248, 244, 0.05);
}

/* Menu Content */
.menu-content {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Image Hover Glow */
.rounded-2xl.overflow-hidden:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(200, 149, 108, 0.15);
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4A0E0E, #C8956C);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c03939, #d4a574);
}

/* Focus Visible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #C8956C;
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }
}
