/* ============================================
   PLAZA XOCHIMILCO — CUSTOM STYLES
   ============================================ */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8ef;
}
::-webkit-scrollbar-thumb {
  background: #d4882e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b06622;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

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

#navbar.scrolled .font-display {
  color: #1c2731 !important;
}

#navbar.scrolled .nav-link {
  color: #4a6274 !important;
}

#navbar.scrolled .menu-line {
  background: #1c2731 !important;
}

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

#mobile-menu.open .mobile-link {
  animation: fadeInUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* Menu Button Animation */
.menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   REVEAL ANIMATIONS (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #B85446;
  transition: width 0.3s ease;
  margin-top: 2px;
}

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

/* ============================================
   SHOP CARDS
   ============================================ */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 84, 70, 0.15);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
  #hero {
    padding-top: 6rem;
  }

  #hero h1 {
    font-size: 2.75rem;
  }

  .floating-card {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 1rem;
  }
}

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

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #B85446;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   UTILITY
   ============================================ */
.text-balance {
  text-wrap: balance;
}
