/* ============================================
   Salon 417 — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: #B8860B;
  color: #0A1628;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1628;
}
::-webkit-scrollbar-thumb {
  background: #B8860B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E8C54A;
}

/* ============================================
   Animations
   ============================================ */

/* Hero entrance animations — above the fold, always visible */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 40px;
    opacity: 1;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* Scroll reveal — BELOW the fold only, progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .animate-fade-in-up {
    animation: none;
    opacity: 1;
  }

  .animate-scroll-line {
    animation: none;
    opacity: 0.5;
    height: 24px;
  }

  html {
    scroll-behavior: auto;
  }

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #B8860B;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover {
  color: #E8C54A;
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  display: block;
  transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  position: relative;
}

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

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Decorative Elements
   ============================================ */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #B8860B, transparent);
}

/* ============================================
   Hover Effects
   ============================================ */
a, button {
  transition: all 0.3s ease;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.2;
  }
}

@media (min-width: 768px) {
  /* Subtle parallax-like effect on hero */
  #top {
    will-change: transform;
  }
}
