/* ============================================
   Lyne's Cleaning & Maid Service
   Custom Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Scroll Reveal - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(15, 22, 38, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Gold accent line animation */
.gold-divider {
  position: relative;
}

.gold-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d49a1a, #e5ad2e);
  transition: width 0.4s ease;
}

.gold-divider:hover::after {
  width: 100%;
}

/* Service card hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
  background: #f0f3fa;
}

::-webkit-scrollbar-thumb {
  background: #1a2640;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #253659;
}

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

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

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

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
  -webkit-text-fill-color: #1a2640 !important;
  caret-color: #1a2640 !important;
}

/* Selection color */
::selection {
  background: rgba(212, 154, 26, 0.3);
  color: #1a2640;
}
