/* Custom styles for Cafe Holiday */

:root {
  --color-coral-400: #f3735a;
  --color-coral-500: #e8553a;
  --color-charcoal-900: #111115;
  --color-charcoal-800: #1e1e24;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Navigation scroll state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

nav.scrolled .nav-link {
  color: #555562;
}

nav.scrolled .font-display {
  color: #111115;
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Button hover lift */
a[href="#menu"],
a[href="#visit"],
a[href="tel:+17153564462"] {
  will-change: transform;
}

a[href="#menu"]:hover,
a[href="#visit"]:hover {
  transform: translateY(-1px);
}

/* Image hover zoom container */
.aspect-square img,
.relative .aspect-\[4\/5\] img,
.relative .aspect-\[4\/3\] img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Selection color */
::selection {
  background: #fbc9be;
  color: #1e1e24;
}

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

/* Subtle pattern overlay for sections */
.bg-stone-50::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

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

/* 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;
  }
  img {
    transition: none !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
  background: #c4c4cc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9e9ea9;
}

/* Menu item hover */
#menu ul li {
  transition: background-color 0.15s ease;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
}
#menu ul li:hover {
  background-color: rgba(232, 115, 90, 0.04);
}
