/* === Custom Styles for Sartori Cleaning === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0a0c;
}
::-webkit-scrollbar-thumb {
  background: #6e162e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9f1a38;
}

/* Selection color */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fce7eb;
}

/* === Service Cards === */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* === Testimonial Cards === */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  color: rgba(251, 191, 36, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* === Fade-in animations (below the fold only) === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* === Navbar glass effect when scrolled === */
nav.scrolled {
  background: rgba(7, 5, 7, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(110, 22, 46, 0.2);
}

/* === Mobile menu animation === */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Form input focus glow === */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08);
}

/* === Button ripple-like effect on hover === */
button, a {
  position: relative;
  overflow: visible;
}

/* === Subtle grain texture overlay (optional enhancement) === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
