/* ============================================
   Nobibi Buena Park — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B85C38;
  transition: width 0.25s ease;
}

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

.mobile-nav-link {
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.mobile-nav-link:hover {
  background: #FBF0EC;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-grid {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal-grid {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }

  .reveal.visible,
  .reveal-grid.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* Stagger children */
  .reveal-grid > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .reveal-grid.visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-grid.visible > *:nth-child(1) { transition-delay: 0.05s; }
  .reveal-grid.visible > *:nth-child(2) { transition-delay: 0.12s; }
  .reveal-grid.visible > *:nth-child(3) { transition-delay: 0.19s; }
  .reveal-grid.visible > *:nth-child(4) { transition-delay: 0.26s; }
}

/* ── Header Shadow on Scroll ── */
#site-header.scrolled {
  box-shadow: 0 1px 12px rgba(184, 92, 56, 0.08);
}

/* ── Back to Top ── */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #B85C38;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection {
  background: #F2BEAA;
  color: #552B1A;
}

/* ── Smooth image loading ── */
img {
  background-color: #FAEDD5;
}

/* ── Mobile menu animation ── */
#mobile-menu {
  animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Print ── */
@media print {
  #site-header,
  #back-to-top,
  #mobile-menu {
    display: none !important;
  }

  body {
    color: #1c1917;
    background: white;
  }

  a {
    color: #B85C38;
  }
}
