/* ============================================
   Suphan Thai Kitchen — Custom Styles
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #7B2D3B;
  color: #FDF8F4;
}

/* ---------- Header scroll state ---------- */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#site-header.scrolled {
  background: rgba(253, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* ---------- Nav links ---------- */
.nav-link {
  position: relative;
}

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

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

/* ---------- Hero circles ---------- */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.circle-1 {
  width: 600px;
  height: 600px;
  background: #F5C4AB;
  top: -200px;
  right: -150px;
  animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: #F5E6D0;
  bottom: -100px;
  left: -100px;
  animation: float-slow 16s ease-in-out infinite reverse;
}

.circle-3 {
  width: 200px;
  height: 200px;
  background: #F9D0D9;
  top: 40%;
  left: 10%;
  animation: float-slow 12s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* ---------- Spice dots ---------- */
.spice-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.dot-1 {
  width: 8px;
  height: 8px;
  background: #F5C4AB;
  top: 25%;
  left: 15%;
  animation: float-dot 6s ease-in-out infinite;
}

.dot-2 {
  width: 6px;
  height: 6px;
  background: #F9D0D9;
  top: 60%;
  left: 8%;
  animation: float-dot 8s ease-in-out infinite 1s;
}

.dot-3 {
  width: 10px;
  height: 10px;
  background: #F5E6D0;
  top: 30%;
  right: 12%;
  animation: float-dot 7s ease-in-out infinite 2s;
}

.dot-4 {
  width: 5px;
  height: 5px;
  background: #F5C4AB;
  bottom: 35%;
  right: 18%;
  animation: float-dot 9s ease-in-out infinite 0.5s;
}

.dot-5 {
  width: 7px;
  height: 7px;
  background: #F9D0D9;
  bottom: 20%;
  left: 25%;
  animation: float-dot 7s ease-in-out infinite 3s;
}

@keyframes float-dot {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(10px, -15px); opacity: 0.6; }
}

/* ---------- Menu cards ---------- */
.menu-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(123, 45, 59, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.1);
  transform: translateY(-4px);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Mobile menu ---------- */
.mobile-nav-link {
  display: block;
  border-radius: 0.75rem;
}

/* ---------- Button focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ---------- 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;
  }

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

  .hero-circle, .spice-dot {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-circle {
    display: none;
  }

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

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  .menu-card {
    padding: 0.75rem;
  }
}
