/* Base & Utilities */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navbar */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 245, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 179, 197, 0.3);
  box-shadow: 0 1px 20px rgba(138, 69, 110, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
  color: #8a456e;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  border-radius: 1px;
  transition: width 0.25s ease;
}

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

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

/* Mobile nav */
.mobile-nav-link {
  color: #8a456e;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: #71356e;
}

/* Hero badge */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}

/* Cards */
.card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(217, 179, 197, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(138, 69, 110, 0.1);
  border-color: rgba(217, 179, 197, 0.5);
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin-top: auto;
}

/* Testimonial cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
}

.testimonial-card p {
  flex: 1;
}

/* Reveal animations — progressive enhancement via prefers-reduced-motion */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* 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='%238a456e' 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;
}

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

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

/* Subtle gradient on hero image overlay */
.hero-img-overlay {
  background: linear-gradient(135deg, rgba(138, 69, 110, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5f7;
}
::-webkit-scrollbar-thumb {
  background: #d9b3c5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c08aa8;
}
