/* =====================================================
   IAFF Local 5351 — Supplemental Theme CSS
   Core design is controlled via theme.json and
   block attributes. This file handles:
   - ADA accessibility overrides
   - Skip link
   - Focus ring
   - Reduced motion
   - Minor block polish
===================================================== */

/* ── ADA: Skip Link (WCAG 2.4.1) ──────────────── */
.skip-to-content-link,
.wp-skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: #F0A500;
  color: #0D1B2A;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content-link:focus,
.wp-skip-link:focus {
  top: 1rem;
}

/* ── ADA: Focus Ring (WCAG 2.4.7) ─────────────── */
:focus-visible {
  outline: 3px solid #F0A500 !important;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── ADA: Screen Reader Utility ───────────────── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ── Sticky Header ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Navigation Dropdown ───────────────────────── */
.wp-block-navigation__submenu-container {
  border-top: 3px solid #C0272D !important;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

/* ── Post Card Hover ───────────────────────────── */
.post-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.post-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

/* ── Values List Bullets ───────────────────────── */
.values-list li {
  list-style: none;
  padding-left: 1.2rem;
  position: relative;
}
.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #C0272D;
  border-radius: 50%;
}

/* ── Buttons: ensure white text on red ─────────── */
.wp-block-button__link {
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* ── wp-block-navigation mobile overlay color ──── */
.wp-block-navigation__responsive-dialog {
  background: #0D1B2A !important;
}
.wp-block-navigation__responsive-dialog a {
  color: #C9D4E0 !important;
}

/* ── Social link icon background on hover ──────── */
.wp-block-social-links .wp-social-link:hover {
  background: #C0272D !important;
}

/* ── Pagination ────────────────────────────────── */
.wp-block-query-pagination a {
  color: #C0272D;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid #DDE2E8;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.wp-block-query-pagination a:hover {
  background: #C0272D;
  color: #FFFFFF;
  border-color: #C0272D;
}

/* ── Reduced Motion (WCAG 2.3.3) ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── High Contrast Mode ────────────────────────── */
@media (forced-colors: active) {
  .wp-block-button__link {
    forced-color-adjust: none;
    border: 2px solid ButtonText;
  }
}

/* ── Responsive tweaks ─────────────────────────── */
@media (max-width: 600px) {
  .hero-section .wp-block-column:last-child {
    display: none;
  }
}
