/* ============================================
   Tortoise Tea House — Custom Styles
   ============================================ */

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom selection color */
::selection {
  background: #cc9a16;
  color: #0d1f38;
}

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

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — only when JS runs
   and prefers-reduced-motion is not set
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .scroll-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);
  }
}

/* Hidden by default for JS-enhanced reveal */
.scroll-reveal.revealed {
  opacity: 0;
  transform: translateY(30px);
}

/* ============================================
   Navbar scroll state
   ============================================ */
#navbar.scrolled {
  background: rgba(4, 10, 20, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

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

/* ============================================
   Gold accent hover effects
   ============================================ */
a[href^="tel"] {
  text-decoration: none;
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid #cc9a16;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
    line-height: 1.1;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4rem;
  }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  nav, #gallery, .scroll-reveal { display: none; }
  body { background: white; color: black; }
  a[href]::after { content: " (" attr(href) ")"; }
}
