/* ===== Custom Styles for Wealthy Healthy Now ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F6;
}
::-webkit-scrollbar-thumb {
  background: #E0C4CC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C4A0AA;
}

/* ===== Hero Animations ===== */
.hero-content {
  animation: heroFadeUp 1s ease-out forwards;
  opacity: 0;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Service Cards ===== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ===== Testimonial Cards ===== */
.testimonial-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }

/* ===== Navbar scroll effect ===== */
header.scrolled {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

header.scrolled .font-serif,
header.scrolled .tracking-\[0\.2em\] {
  color: #7B2D3B;
}

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

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ===== Section reveal animations ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Input focus styles ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

/* ===== Button hover glow ===== */
button:hover,
a:hover {
  /* Subtle focus glow handled per-element */
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .service-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  #about .aspect-\[4\/5\] {
    aspect-ratio: 3/4;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .service-card,
  .testimonial-card {
    padding: 2rem;
  }
}

/* ===== Print styles ===== */
@media print {
  header,
  #contactForm,
  #successMessage {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
