/* ═══════════════════════════════════════════════════════
   Galas Beauty Salon — Custom Styles
   ═══════════════════════════════════════════════════════ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(245, 197, 24, 0.3);
  color: #f9f3fb;
}

/* ── Navigation ── */
.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #f5c518 !important;
}

/* Scrolled nav state */
nav.scrolled {
  background: rgba(34, 13, 38, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

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

.menu-line:nth-child(1) {
  transform-origin: center;
}

.menu-line:nth-child(2) {
  transform-origin: center;
}

.menu-line:nth-child(3) {
  transform-origin: center;
}

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

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

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

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #f5c518;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 60%;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover img {
  transform: scale(1.1);
}

/* ── Gallery ── */
.gallery-item {
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(91, 44, 111, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ── Testimonials ── */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .gallery-item img,
  .service-card img {
    transition: none;
  }

  .service-card:hover img,
  .gallery-item:hover img {
    transform: none;
  }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #220d26;
}

::-webkit-scrollbar-thumb {
  background: #5B2C6F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7b2d8a;
}

/* ── Form select arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
  -webkit-appearance: none;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .font-serif {
    word-break: keep-all;
  }
}
