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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5e9ed;
}
::-webkit-scrollbar-thumb {
  background: #d9a9b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c1758e;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(250, 245, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(106, 55, 80, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-plum-950 {
  color: #4c1f2c;
}

#navbar.scrolled .menu-line {
  background: #4c1f2c;
}

/* Mobile menu */
.mobile-link {
  transition: color 0.3s ease;
}
.mobile-link:hover {
  color: #8a3750;
}

/* Stat cards floating animation */
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: transform 0.4s ease, background 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}
.card-1 { animation: float1 6s ease-in-out infinite; }
.card-2 { animation: float2 6s ease-in-out infinite; }
.card-3 { animation: float3 6s ease-in-out infinite; }
.card-4 { animation: float4 6s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Service cards */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(76, 31, 44, 0.3);
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(106, 55, 80, 0.12);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stat-card { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* Mobile menu animation */
.menu-line:nth-child(1) {
  transform-origin: center;
}
.menu-line:nth-child(2) {
  transform-origin: center;
}
.menu-line:nth-child(3) {
  transform-origin: center;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

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

/* Print styles */
@media print {
  #navbar, #contact-form, #form-success { display: none; }
  body { background: white; }
}
