/* ============================================
   Fabulous Window Cleaning — Custom Styles
   ============================================ */

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: #c8a44e;
  color: #0a1628;
}

/* Navbar transitions */
.nav-link {
  color: #0f2137;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c8a44e;
  transition: width 0.3s ease;
}

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

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

/* Dark navbar link colors */
body.nav-dark .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

body.nav-dark .nav-link:hover {
  color: #c8a44e;
}

body.nav-dark .nav-link-color {
  color: white;
}

/* Mobile menu */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 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; }

/* Hamburger animation */
#menu-btn.active #menu-icon span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

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

#menu-btn.active #menu-icon span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
  width: 1.5rem;
}

/* Service cards */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15, 33, 55, 0.1);
}

/* Scroll reveal (progressive enhancement — only when JS runs) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .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; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion fallback — ensure content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #0f2137;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #162d4a;
}

/* Image aspect ratios */
img {
  max-width: 100%;
  height: auto;
}

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

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f2137' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
