/* =========================================================
   ACCESSIBILITY ENHANCEMENTS
   Target: WCAG 2.2 Level AA
   Load this file AFTER css/style.css
   ========================================================= */

/* Keyboard skip link */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 9999;
  padding: 12px 16px;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Strong, visible keyboard focus on all interactive controls */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* Avoid a sticky header covering anchor destinations */
#main-content,
#contact,
section[id] {
  scroll-margin-top: 130px;
}

/* Current-page navigation should not rely on color alone */
nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Larger interactive targets */
nav a {
  display: inline-block;
  padding: 8px 4px;
}

.newsletter-form input,
.newsletter-form button {
  min-height: 44px;
  font: inherit;
}

/* Make form boundaries visible in high-contrast and ordinary use */
.newsletter-form input {
  border: 2px solid #767676;
}

/* Visually hidden content remains available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.honeypot {
  display: none !important;
}

/* Don't use low-contrast gray for normal-size text */
.person p,
.label {
  color: #595959;
}

/* Links in long-form/footer text should be visually recognizable */
footer a,
.privacy-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Status/error text remains visible and readable */
.newsletter-message {
  margin-top: 14px;
}

.newsletter-message:focus {
  outline: none;
}

/* Support users who request less animation/motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Preserve content and controls when text is enlarged */
@media (max-width: 760px) {
  nav a {
    padding: 10px 6px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}
