/* ============================================
   Zanders Takeout — Custom Styles
   Terracotta + Sand · Clean Minimalist
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #C2704E;
  color: white;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #36312c;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* Hamburger */
.menu-line {
  transition: transform 0.4s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
  width: 1.25rem;
}

/* ============================================
   Section Eyebrow
   ============================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   Hero Floating Cards
   ============================================ */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
  animation-delay: -3s;
}

.floating-card:nth-child(4) {
  animation-delay: -4.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   Hero Eyebrow Animation
   ============================================ */
.hero-eyebrow {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Default visible state for progressive enhancement */
.reveal {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   Menu Hover Effects
   ============================================ */
.group:hover .h-px {
  /* handled by Tailwind group-hover */
}

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

.rounded-2xl.overflow-hidden img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Button Focus States
   ============================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C2704E;
  outline-offset: 2px;
  border-radius: 9999px;
}

/* ============================================
   Reduced Motion
   ============================================ */
@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;
  }

  .floating-card {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Mobile Responsiveness
   ============================================ */
@media (max-width: 767px) {
  .floating-card {
    display: none;
  }

  #hero {
    min-height: 100vh;
  }

  .font-serif {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }
}

/* ============================================
   Tablet
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .floating-card {
    display: block;
  }
}
