/* === Custom Styles for Clearer Minds Mental Health === */

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

/* Section label */
.section-label {
  letter-spacing: 0.2em;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled .nav-link {
  color: rgba(6, 78, 59, 0.7);
}

#navbar.scrolled .nav-link:hover {
  color: rgba(6, 95, 70, 1);
}

#navbar.scrolled .font-serif {
  color: rgba(6, 78, 59, 1);
}

/* Hero animations */
.hero-subtitle {
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-body {
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
  animation: fadeUp 0.8s ease forwards 0.8s;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered service cards */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

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

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

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.25rem;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(5, 150, 105, 0.2);
  color: #064E3B;
}
