/* ─────────────────────────────────────────────────────────────────────────
   Accessibility layer (WCAG 2.2 AA)
   Loaded after style.css on every page. Keeps the brand palette but swaps
   in accessible shades wherever a color carries text.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Text-safe versions of the brand colors (≥ 4.5:1 on white and the light
     section backgrounds). Backgrounds keep the original bright teal/pink. */
  --primary-text: #137178;   /* brand teal #27b5be, deepened for text   */
  --accent-text:  #c9243f;   /* brand red-pink #f74b63, deepened for text */
  --focus-ring:   #0d4650;
}

/* ── Skip link ────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--focus-ring);
  color: #fff;
  font-weight: 700;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}
main:focus { outline: none; }

/* ── Visible keyboard focus everywhere ────────────────────────────────── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255,255,255,.9) !important;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 1px !important;
}

/* ── Buttons ──────────────────────────────────────────────────────────
   Pink (.btn-primary) and red-pink (.btn-accent / submit) buttons are kept
   in the original brand colours by request. Note: their white labels are
   below the WCAG AA 4.5:1 contrast ratio (2.3:1 and 3.4:1). */

/* Teal outline buttons */
.btn-outline { color: var(--primary-text) !important; border-color: var(--primary-text) !important; }
.btn-outline:hover { background: var(--primary-text) !important; color: #fff !important; }

/* ── Teal / red-pink text that sat on light backgrounds ───────────────── */
.text-primary,
.testimonial-name,
.offering-card-meta,
.photo-gallery-label,
.kit-grade,
.stat-num,
.lead { color: var(--primary-text) !important; }

.blog-read-more { color: var(--accent-text) !important; }

/* Read-more style links inside dark cards keep a light pink */
.section-dark .blog-read-more,
[style*="background:#1a2e30"] .blog-read-more { color: #ff9aa9 !important; }

/* Pre-K tag on the curriculum page (white on yellow was 1.8:1) */
.ec-tag { color: #1a2e30 !important; }

/* Chips on the Early Childhood page (white on bright teal was 2.5:1) */
.ec-who-chips span { background: var(--primary-text) !important; color: #fff !important; }

/* Small status badges: same hue, deeper shade for white labels */
.video-label { background: var(--accent-text) !important; }

/* ── Tap targets (WCAG 2.5.8: at least 24×24 px) ─────────────────────── */
.slider-dot {
  position: relative;
  width: 12px;
  height: 12px;
}
.slider-dot::after {          /* invisible 28px hit area */
  content: "";
  position: absolute;
  inset: -8px;
}
.slider-dots { gap: 1rem; }

.site-footer li a,
.footer-col li a {
  display: inline-block;
  min-height: 24px;
  padding: 2px 0;
}

/* ── Respect reduced-motion preferences ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}

/* ── Heading levels ──────────────────────────────────────────────────
   Some headings were re-levelled so the outline never skips a level
   (e.g. h4 -> h3). .hN-look / .footer-col-title keep the original look.
   Generated from the h3/h4/h5 rules in style.css. */
.footer-col-title{line-height:1.2}
h2.h3-look, h1.h3-look, h3.h4-look, h2.h4-look, h4.h5-look, h3.h5-look, .footer-col-title{font-family:var(--font-head);color:var(--dark);line-height:1.2;font-weight:800}
h2.h3-look, h1.h3-look{font-size:clamp(1.25rem, 3vw, 1.75rem);margin-bottom:.65rem}
h3.h4-look, h2.h4-look{font-size:1.2rem;font-weight:700;margin-bottom:.4rem}
.section-dark .h3-look, .section-dark .h4-look{color:#fff}
.section-blue .h3-look, .section-blue .h4-look{color:#fff}
.step-card .h3-look{margin-bottom:.75rem}
.program-card .h3-look{font-size:1.15rem;margin-bottom:.5rem}
.coming-soon-card .h3-look{color:#fff;margin:0}
.content-section .h3-look{margin:1.75rem 0 .75rem;color:var(--primary-text)}
.booking-cta-box .h3-look{margin-bottom:1rem;color:var(--primary-text)}
.team-card .h4-look{margin-bottom:.35rem}
.blog-card .h3-look{font-size:1.1rem;margin-bottom:.5rem;transition:color var(--transition)}
.blog-card:hover .h3-look{color:var(--primary-text)}
.resource-card .h3-look{margin-bottom:.5rem}
.edu-benefit .h4-look{margin-bottom:.4rem}
.footer-col .h5-look, .footer-col .footer-col-title{font-family:var(--font-head);font-weight:800;font-size:.95rem;color:#fff;margin-bottom:1rem;text-transform:uppercase;letter-spacing:.08em}
.card .h3-look, .card .h4-look{margin-bottom:.75rem}
@media (max-width:480px){.post-body .h3-look{font-size:1.15rem}}
.home-pillar .h3-look{font-size:1.2rem;margin-bottom:.6rem;color:var(--dark)}
.kit-card-body .h4-look{font-size:1rem;color:var(--dark);margin-bottom:.4rem;line-height:1.3}
.offering-feature .h3-look{color:#fff;font-size:1.5rem;margin-bottom:.75rem;line-height:1.25}
.offering-card-top .h4-look{font-size:1.05rem;margin-bottom:.2rem;color:var(--dark)}
.cart-drawer-header .h3-look{margin:0;font-size:1.15rem;font-family:var(--font-head);font-weight:800}
.cta-section .h3-look{color:#1a2e30;}
.cta-section .h3-look{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.28);}
.section-dark .h3-look, .section-dark .h4-look{text-shadow:0 1px 5px rgba(0,0,0,.22);}
.offering-feature .h3-look{color:#1a2e30!important;}
.offering-feature .h3-look{color:#fff!important;}
h2.h3-look, h1.h3-look, h3.h4-look, h2.h4-look, h4.h5-look, h3.h5-look, .footer-col-title{font-weight:300!important;}
.offering-feature .h3-look, .curriculum-card .h3-look, .camp-card .h3-look, .who-card .h3-look{font-weight:300!important;}
h4.h5-look, h3.h5-look, .footer-col-title{font-weight:500!important;}

/* Screen-reader-only text */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* FAQ accordion: question is a real button inside a heading */
.faq-h { margin: 0; font-size: inherit; line-height: inherit; }
.faq-h .faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--dark);
}
