/* ============================================
   The Shade Trees — Custom Styles
   ============================================ */

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: #a11536;
  color: #fefcfb;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcfb;
}
::-webkit-scrollbar-thumb {
  background: #c2254b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #851434;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
  }

  .reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
  .reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
  .reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
  .reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(254, 252, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(133, 20, 52, 0.08);
}

#navbar.scrolled .font-serif {
  color: #1f1512 !important;
}

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

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

#menu-icon-open {
  opacity: 1;
  transform: rotate(0deg);
}

#menu-icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

body.menu-open #menu-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

body.menu-open #menu-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #fefcfb, transparent);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   Menu List Items
   ============================================ */
#menu ul li {
  border-bottom: 1px solid rgba(194, 37, 75, 0.08);
  padding-bottom: 1.25rem;
}

#menu ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ============================================
   Button Hover Effects
   ============================================ */
a[href="#menu"],
a[href="#story"],
a[href="#atmosphere"],
a[href="#visit"] {
  position: relative;
}

a[href="#menu"]::after,
a[href="#story"]::after,
a[href="#atmosphere"]::after,
a[href="#visit"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c2254b;
  transition: width 0.3s ease;
}

a[href="#menu"]:hover::after,
a[href="#story"]:hover::after,
a[href="#atmosphere"]:hover::after,
a[href="#visit"]:hover::after {
  width: 100%;
}

/* ============================================
   Image Hover
   ============================================ */
.rounded-2xl.overflow-hidden {
  position: relative;
}

.rounded-2xl.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 21, 18, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  pointer-events: none;
}

.rounded-2xl.overflow-hidden:hover::after {
  opacity: 1;
}

/* ============================================
   Map Container
   ============================================ */
#visit iframe {
  filter: saturate(0.7) contrast(1.05);
  transition: filter 0.4s ease;
}

#visit iframe:hover {
  filter: saturate(1) contrast(1);
}

/* ============================================
   Divider
   ============================================ */
.max-w-7xl.mx-auto.px-6.lg\:px-8 > .h-px {
  margin-top: 0;
  margin-bottom: 0;
}
