/* =============================================
   Andy's Adult Day Care & Bar — Custom Styles
   ============================================= */

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

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(123, 45, 59, 0.6);
  color: #F5F0EB;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: #7B2D3B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9E3A4D;
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A96E;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #C9A96E;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* Mobile menu open state */
body.menu-open {
  overflow: hidden;
}

/* Scroll dot animation */
@keyframes scrollDot {
  0% {
    top: 0;
    opacity: 1;
  }
  50% {
    top: 60%;
    opacity: 0.5;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

/* Gallery hover */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(123, 45, 59, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  .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; }
}

/* Gold shimmer on hover for CTA */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.cta-shimmer:hover {
  background: linear-gradient(90deg, #7B2D3B 0%, #9E3A4D 50%, #7B2D3B 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* Subtle pulse for hero badge */
@keyframes subtlePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-badge {
  animation: subtlePulse 3s ease-in-out infinite;
}

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

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

/* Print styles */
@media print {
  nav, footer, .scroll-indicator {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
