/* ═══════════════════════════════════════
   ALLREDS SALON & BARBER — CUSTOM STYLES
   ═══════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ── */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#site-header.scrolled {
  background: rgba(250, 240, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(107, 58, 93, 0.08);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e89a10, #fcb832);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

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

/* ── Scroll Reveal ── */
.reveal-up   { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger children */
.reveal-up:nth-child(2)   { transition-delay: 0.1s; }
.reveal-up:nth-child(3)   { transition-delay: 0.2s; }
.reveal-up:nth-child(4)   { transition-delay: 0.3s; }
.reveal-up:nth-child(5)   { transition-delay: 0.35s; }
.reveal-up:nth-child(6)   { transition-delay: 0.4s; }
.reveal-up:nth-child(7)   { transition-delay: 0.45s; }
.reveal-up:nth-child(8)   { transition-delay: 0.5s; }

/* ── 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-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ── Float Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ── Scroll Line ── */
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}
.animate-scroll-line {
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* ── Selection ── */
::selection {
  background: rgba(236, 160, 50, 0.25);
  color: #2d1526;
}

/* ── Focus Ring ── */
:focus-visible {
  outline: 2px solid #e89a10;
  outline-offset: 2px;
}

/* ── Input Autocomplete ── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #faf0f7 inset !important;
  -webkit-text-fill-color: #2d1526 !important;
}

/* ── Smooth Scroll Offset ── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf0f7; }
::-webkit-scrollbar-thumb { background: #dc8ec0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a83d7a; }
