/* ===== Custom Styles for Healthy Haven ===== */

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

/* Base transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
  background-color: #be185d;
  color: #fffbeb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf4f8;
}
::-webkit-scrollbar-thumb {
  background: #db2777;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9d174d;
}

/* ===== Animation Keyframes ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Floating geometric shapes */
.floating-shape-1 {
  animation: float 6s ease-in-out infinite;
}
.floating-shape-2 {
  animation: float-slow 8s ease-in-out infinite;
}
.floating-shape-3 {
  animation: float 7s ease-in-out infinite reverse;
}

/* ===== Scroll Reveal Animations ===== */
/* Default: content is visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.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; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .reveal.hidden-state {
    opacity: 0;
    transform: translateY(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.hidden-state {
    opacity: 1;
    transform: none;
  }
  .floating-shape-1,
  .floating-shape-2,
  .floating-shape-3 {
    animation: none;
  }
}

/* ===== Mobile Menu ===== */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

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

/* ===== Button hover effects ===== */
a[href^="tel"] {
  text-decoration: none;
}

/* ===== Card hover lift ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== Nav active state ===== */
nav a.active {
  color: #be185d;
}

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

/* ===== Image aspect ratios ===== */
.rounded-3xl img {
  display: block;
}

/* ===== Print styles ===== */
@media print {
  .fixed, header, #mobileMenu {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
