/* Cafe Largo — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background: rgba(232, 96, 58, 0.3);
  color: #fff;
}

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

/* Base text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e8603a;
}

/* Reveal animations — progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Navbar background on scroll */
nav.scrolled {
  background: rgba(17, 17, 17, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(232, 96, 58, 0.1);
}

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

/* Menu item hover */
#menu ul li {
  border-bottom: 1px solid rgba(74, 74, 74, 0.3);
  padding-bottom: 1.25rem;
}
#menu ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Image lazy load fallback */
img {
  max-width: 100%;
  height: auto;
}

/* Form styles (for future use) */
input, textarea, select {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(74, 74, 74, 0.6);
  color: #fff;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #e8603a;
}

/* Button ripple effect */
button, .btn {
  position: relative;
  overflow: hidden;
}

/* Print styles */
@media print {
  nav, #mobile-menu, .reveal-up, .reveal-left, .reveal-right {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
}
