/* ─── Custom overrides & additions ─────────────────────────── */

/* Smooth focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #d1411d;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle page transitions */
a, button {
  transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
  background: #f3a086;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d1411d;
}

/* Selection color */
::selection {
  background: #f8c4b3;
  color: #6e2213;
}

/* ─── Scroll reveal (progressive enhancement) ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .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; }
}

/* ─── Navbar scroll state ──────────────────────────────────── */
#navbar.scrolled {
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

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

/* ─── Form select 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='%23a8a29e' stroke-width='2.5' 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;
  appearance: none;
}

/* ─── Service card hover image parallax ────────────────────── */
.group:hover .card-img {
  transform: scale(1.05);
}

/* ─── Button ripple effect ─────────────────────────────────── */
button::after, a.button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ─── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
