/* Custom styles for Greenlight Home Health */

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

/* Navigation scroll state */
.nav-scrolled {
  background: rgba(253, 252, 250, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-scrolled .nav-link {
  color: #484032;
}

.nav-scrolled .font-serif {
  color: #252018;
}

/* Hero decorative shapes */
.hero-shape {
  animation: float 6s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.hero-shape:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 7s;
}

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

/* Service card hover effect */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

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

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

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

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F8F4EC;
}
::-webkit-scrollbar-thumb {
  background: #D5C4A0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8A87E;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Selection color */
::selection {
  background: #FBE2D4;
  color: #522914;
}

/* Print styles */
@media print {
  #nav, #contact-form, #form-success, .hero-shape {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
