/* Base & Utilities */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
  background: #abc2d9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #81a4c8;
}

/* Navigation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #57C5B6;
  transition: width 0.25s ease;
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
#mobile-menu.open .menu-line:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}
.mobile-link {
  transition: all 0.2s ease;
}

/* Sticky nav background */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 76, 117, 0.06);
}

/* Service cards */
.service-card {
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
  transition: all 0.3s ease;
}

/* Insurance cards */
.insurance-card {
  transform: translateY(0);
}
.insurance-card:hover {
  transform: translateY(-4px);
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero image parallax-like subtle float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.floating-card {
  animation: float 4s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }
}
</style>
