/* ============================================
   The Exotic Milkshake Bar — Custom Styles
   ============================================ */

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #f4bfa8;
  color: #6b3025;
}

/* ---- Nav ---- */
#site-nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-nav.scrolled {
  background: rgba(254, 252, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ---- Blobs ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: #f9ddd3;
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #fdf3d8;
  bottom: 5%;
  left: -5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #f4bfa8;
  top: 40%;
  left: 30%;
  animation-delay: -5s;
}

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

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

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

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

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

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

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

/* ---- Button focus styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e5704a;
  outline-offset: 2px;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcf6;
}
::-webkit-scrollbar-thumb {
  background: #f4bfa8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e5704a;
}

/* ---- Mobile adjustments ---- */
@media (max-width: 640px) {
  .blob {
    filter: blur(60px);
    opacity: 0.35;
  }
  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 250px; height: 250px; }
  .blob-3 { width: 180px; height: 180px; }
}
