/* RC's Sports Bar — Custom Styles */

:root {
  --color-navy: #14213D;
  --color-navy-dark: #0D1526;
  --color-gold: #E5B84B;
  --color-gold-dark: #C49A28;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D1526;
}
::-webkit-scrollbar-thumb {
  background: #1E3A5F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #234E78;
}

/* Selection */
::selection {
  background: rgba(229, 184, 75, 0.3);
  color: #fff;
}

/* Header scroll state */
header.scrolled {
  background: rgba(13, 21, 38, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu animation */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}

/* Smooth anchor offset for fixed header */
section[id] {
  scroll-margin-top: 80px;
}

/* Image loading placeholder */
img {
  background-color: rgba(20, 33, 61, 0.5);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #0D1526 inset !important;
  -webkit-text-fill-color: white !important;
}
