/* Custom stylesheet for Elk Grove Windshield & Calibration */

/* Clean font rendering */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Suppress programmatic focus ring on section headings during view switch */
[tabindex="-1"]:focus {
  outline: none;
}

/* Active navigation state */
.nav-link[aria-current="page"] {
  color: #0284c7;
  font-weight: 700;
  border-bottom: 2px solid #0284c7;
  border-radius: 0;
}

.mobile-nav-link[aria-current="page"] {
  background-color: #f1f5f9;
  color: #0284c7;
  font-weight: 700;
}

/* Transitions for views */
.view {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0.9;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero CTA call button pulse glow & scale effect */
.hero-call-pulse {
  position: relative;
  animation: heroPulse 3.2s ease-in-out infinite;
}

.hero-call-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 0.6rem;
  background: inherit;
  opacity: 0.35;
  z-index: -1;
  animation: heroPulseRing 3.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes heroPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.35);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 8px 20px -2px rgba(56, 189, 248, 0.45);
  }
}

@keyframes heroPulseRing {
  0% {
    transform: scale(0.98);
    opacity: 0.4;
  }
  60%, 100% {
    transform: scale(1.08, 1.15);
    opacity: 0;
  }
}

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .view,
  .hero-call-pulse,
  .hero-call-pulse::before {
    animation: none !important;
  }
}
