/* Heart 2 Heart Senior Care — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF6F1;
}
::-webkit-scrollbar-thumb {
  background: #d4502a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c23d1e;
}

/* Selection color */
::selection {
  background: #f3bda8;
  color: #3a0f0a;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #d4502a;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fade-in animation for scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.6s ease;
}
.img-zoom:hover img {
  transform: scale(1.03);
}

/* Navbar glass effect on scroll */
.navbar-scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Decorative heart pattern */
.heart-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 54C30 54 6 42 6 24C6 14 12 8 20 8C24 8 27 11 30 14C33 11 36 8 40 8C48 8 54 14 54 24C54 42 30 54 30 54Z' fill='none' stroke='%23d4502a' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
}
