/* Custom styles — overrides and enhancements beyond Tailwind */

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

/* Ensure all interactive elements have good touch targets */
button, a {
  min-height: 44px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f4ff;
}
::-webkit-scrollbar-thumb {
  background: #b9ceff;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #86b0ff;
}

/* Selection color */
::selection {
  background: #86efac;
  color: #002175;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu animation */
#mobileMenu {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
#mobileMenu.open {
  opacity: 1;
  max-height: 400px;
}

/* Nav active state */
.navbar a.active {
  color: #22c55e !important;
}

/* Subtle pattern overlay for hero */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0, 33, 117, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Card hover glow */
.soft-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Testimonial card gradient shift on hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 33, 117, 0.12);
}

/* Ensure form inputs look great */
input, select, textarea {
  font-size: 1rem;
}

/* Prevent layout shift on images */
img {
  image-rendering: -webkit-optimize-contrast;
}
