/* ============================================
   Hardy's Lounge — Custom Styles
   ============================================ */

/* Base & Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Selection Color */
::selection {
  background-color: rgba(20, 184, 166, 0.2);
  color: #134e4a;
}

/* Reveal Animation — Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  /* Staggered delays for grid items */
  .card:nth-child(1) .reveal { transition-delay: 0.1s; }
  .card:nth-child(2) .reveal { transition-delay: 0.2s; }
  .card:nth-child(3) .reveal { transition-delay: 0.3s; }
}

/* Card Hover Effects */
.card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

/* Navbar Scroll State */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .nav-link {
  color: #334155;
}

#navbar.scrolled .nav-link:hover {
  color: #0d9488;
}

/* Mobile Menu Open State */
#mobile-menu.open {
  max-height: 400px;
}

.menu-line:nth-child(3) {
  transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.4rem;
}

/* Mobile Nav Links */
.mobile-nav-link {
  position: relative;
  padding-left: 0;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
  width: 16px;
}

/* Smooth input focus */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

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

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print styles */
@media print {
  #navbar, #contact-form, .reveal { display: none; }
  body { color: #000; background: #fff; }
}
