/* ===== Custom Styles for Passion Care Services ===== */

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #d4a556;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B85C38;
}

/* Hero entrance animations */
.hero-element {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.2s; }
.hero-element:nth-child(2) { animation-delay: 0.4s; }
.hero-element:nth-child(3) { animation-delay: 0.6s; }
.hero-element:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal animations (below-the-fold only) */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  /* Staggered delays for grid items */
  .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }
}

/* Mobile menu link styles */
.mobile-menu-link {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
}

/* Navbar transition states */
.navbar-scrolled .navbar-text,
.navbar-scrolled .navbar-text-sub {
  color: #1c1917 !important;
}

.navbar-scrolled .navbar-link {
  color: #44403c !important;
}

/* Parallax-like subtle image movement on hero */
#hero .absolute.inset-0 img {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

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

/* Selection color */
::selection {
  background: #f8c4b0;
  color: #5c2e1e;
}

/* Print styles */
@media print {
  #navbar,
  #hero .absolute.bottom-8,
  .scroll-reveal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}
