/* ========================================
   Lidgerwood Beauty Salon — Custom Styles
   ======================================== */

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: #C0523A;
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1e1e1e;
}
::-webkit-scrollbar-thumb {
  background: #C0523A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a84430;
}

/* Scroll Reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    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; }
}

/* Scroll line animation */
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* Navbar transition */
.nav-scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-link,
.nav-scrolled #nav-logo-text,
.nav-scrolled #nav-sub-text {
  color: #fff !important;
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Form select arrow override for better cross-browser */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C0523A' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
}

/* Image loading placeholder */
img {
  background-color: #e3e3e3;
}

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

/* Print styles */
@media print {
  nav, #back-to-top, .animate-scroll-line {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
