/* Custom styles for LP Nails — Pearland */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background: #5B2C6F;
  color: #fff;
}

/* Nav scroll state */
.nav-scrolled #nav {
  box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
}

/* Mobile menu transitions */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Scroll reveal — progressive enhancement via JS */
.reveal {
  /* Default: visible (no JS) */
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

/* Image hover containers */
.rounded-2xl.overflow-hidden {
  position: relative;
}

/* Subtle grain texture overlay on hero */
#top::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf0f7;
}
::-webkit-scrollbar-thumb {
  background: #d482b3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5B2C6F;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  header, footer, .reveal { display: none; }
  body { color: #000; background: #fff; }
}
