/* ══════════════════════════════════════════════
   Yocasta's Beauty Salon — Custom Styles
   ══════════════════════════════════════════════ */

/* ── Base ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ── Marquee animation ── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* ── Navbar scroll state ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ── Service cards ── */
.service-card {
  will-change: transform;
}

/* ── Gallery items ── */
.gallery-item {
  will-change: transform;
}

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

/* ── Hamburger animation ── */
#menu-btn.active #menu-icon span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

#menu-btn.active #menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-btn.active #menu-icon span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
  width: 50%;
}

/* ── Back to top ── */
#back-to-top.visible {
  opacity: 1;
  translate: 0;
  pointer-events: all;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-marquee { animation: none; }
  .service-card, .gallery-item { transition: none; }
  .gallery-item img { transition: none; }
  #back-to-top { transition: none; }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
