/* Site-specific styles — complements Tailwind CDN */
:root {
  --color-navy: #0a2540;
  --color-blue: #1e40af;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Focus visible for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Phone CTA emphasis */
.phone-cta {
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.phone-cta:hover {
  transform: translateY(-1px);
}

/* Card hover */
.practice-card,
.teaser-card,
.testimonial-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.practice-card:hover,
.teaser-card:hover {
  transform: translateY(-4px);
}

/* Nav underline animation */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--color-blue);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--color-blue);
  font-weight: 600;
}

/* Mobile menu */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.is-open {
  max-height: 24rem;
  opacity: 1;
}

#mobile-menu.is-closed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
