/* Base styles and custom components */
:root {
  --plum-950: #281118;
  --plum-900: #4a232e;
  --plum-700: #6f3045;
  --plum-600: #8a3d56;
  --plum-500: #a3516e;
  --plum-300: #dbadbe;
  --plum-200: #ebd0dc;
  --plum-100: #f5e9ee;
  --plum-50: #faf5f7;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service cards hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum-600), var(--amber-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
}

.testimonial-card:hover::after {
  border-color: var(--plum-300);
}

/* Navbar transitions */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(74, 35, 46, 0.08);
}

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

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

::-webkit-scrollbar-track {
  background: var(--plum-50);
}

::-webkit-scrollbar-thumb {
  background: var(--plum-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--plum-500);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--plum-200);
  color: var(--plum-950);
}
