/* ============================================
   Jack Daniels Café & Bar — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
  background: #832626;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a02e2e;
}

/* Selection */
::selection {
  background: #f5b5ab;
  color: #300e0e;
}

/* Navbar */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(253, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(131, 38, 38, 0.08);
}

.nav-text {
  transition: color 0.3s ease;
}
.nav-subtext {
  transition: color 0.3s ease;
}

/* Mobile menu */
#mobile-menu {
  box-shadow: none;
}
#mobile-menu.open {
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* Menu toggle animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
#hero {
  position: relative;
}

/* About section */
#about {
  position: relative;
}

/* Experience cards */
.experience-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

/* Gallery */
#gallery .overflow-hidden img {
  cursor: default;
}

/* Footer */
footer a {
  position: relative;
}
footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f5b5ab;
  transition: width 0.3s ease;
}
footer a:hover::after {
  width: 100%;
}

/* Button hover effects */
a[href^="tel:"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
}

/* Smooth image loading */
img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f5b5ab;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .experience-card,
  .overflow-hidden img {
    transform: none !important;
    transition: none !important;
  }
}

/* Tablet */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }
  
  .experience-card {
    margin-bottom: 0;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #hero h1 {
    font-size: 2.25rem;
  }
}

/* Large screens */
@media (min-width: 1280px) {
  #hero {
    min-height: 100vh;
  }
}
