/* Visual refresh: warm, readable, and centered on learners and families. */
:root {
  --neutral-bg: #fcfaf5;
  --neutral-soft: #f1f4ef;
  --text-muted: #596879;
  --accent-teal: #087f73;
  --accent-teal-light: #e5f2ed;
  --border-color: #dfe5df;
  --radius-lg: 24px;
  --shadow-md: 0 12px 36px rgba(15, 44, 89, 0.055);
}

.site-ribbon {
  background: #102e45;
  color: #ecf4f0;
  font-size: 0.73rem;
}
.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.ribbon-inner a { color: #ecf4f0; }
.ribbon-inner i { margin-right: 0.4rem; color: #ffc46a; }
.navbar { box-shadow: 0 3px 20px rgba(15, 44, 89, 0.025); }
.nav-wrapper { min-height: 86px; }
.nav-menu { gap: 1.1rem; }
.nav-link { font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
.nav-link:hover, .nav-link.active { color: var(--accent-teal); }
.nav-link::after { height: 3px; background: var(--accent-teal); }
.dropdown-menu a { font-size: 1rem; min-height: 44px; }
.nav-actions .btn-sm { font-size: 0.925rem; }
.logo-title { font-size: 1.05rem; }
.logo-sub { font-size: 0.65rem; letter-spacing: 0.12em; margin-top: 0.3rem; }
.logo-img { height: 44px; }
.nav-actions { gap: 0.6rem; }
.nav-screening {
  background: #f8f0de;
  border-color: #f1dfb9;
  box-shadow: none;
}
.btn {
  border-radius: 10px;
  min-height: 44px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-lg { padding: 0.95rem 1.3rem; font-size: 0.925rem; }
.btn-accent { box-shadow: 0 5px 16px rgba(244, 157, 37, 0.16); }
.btn-outline { border-width: 1px; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 4px;
}
.mobile-toggle { border-radius: 10px; }
.mobile-nav-donate { display: none; }
.modal-overlay { pointer-events: none; }
.modal-overlay.active { pointer-events: auto; }

/* A balanced introduction, with the full-width photo treatment retained. */
.hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(ellipse at 90% 35%, rgba(204, 229, 216, 0.4), transparent 52%), var(--neutral-bg);
}
.hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
.hero .badge-tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin-bottom: 1.35rem;
}
.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-teal);
}
.hero-title {
  font-size: clamp(2.5rem, 4.3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--accent-teal);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero-subtitle {
  font-size: 0.975rem;
  line-height: 1.9;
  max-width: 48ch;
  margin-bottom: 1.75rem;
}
.hero-cta { gap: 0.75rem; margin-bottom: 1.35rem; }
.hero-reassurance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hero-reassurance span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-reassurance i { color: var(--accent-teal); }
.hero-image-wrapper { padding-top: 0.5rem; }
.hero-photo-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-teal);
  margin-bottom: 0.8rem;
}
.hero-slider {
  aspect-ratio: 3 / 2;
  border: 6px solid var(--neutral-card);
  border-radius: 26px 26px 10px 10px;
  box-shadow: 0 18px 50px rgba(15, 44, 89, 0.09);
}
.hero-slide img { object-fit: cover; }
/* Keep the frame filled while changing photos; retain the gentle zoom. */
.hero-slide { transition: transform 0.8s ease; }
.hero-slider-dots { bottom: 12px; background: rgba(9, 28, 60, 0.62); padding: 8px 12px; }
.hero-slider-dots .dot { width: 9px; height: 9px; }
.hero-image-caption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.8rem 0.4rem 0;
  padding: 1rem 1.1rem;
  background: var(--neutral-card);
  border: 1px solid var(--border-color);
  border-radius: 10px 10px 20px 20px;
}
.hero-caption-icon, .support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-teal-light);
  color: var(--accent-teal);
}
.hero-image-caption > div { min-width: 0; }
.hero-image-caption strong, .hero-image-caption span:not(.hero-caption-icon) { display: block; }
.hero-image-caption strong { font-size: 0.85rem; color: var(--primary-navy); line-height: 1.5; }
.hero-image-caption div > span { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.2rem; }
.hero-image-caption > a { margin-left: auto; padding: 0.4rem; color: var(--accent-teal); flex-shrink: 0; }

.support-strip {
  background: #eaf1eb;
  border-top: 1px solid #dce7df;
  border-bottom: 1px solid #dce7df;
}
.support-strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 1.5rem; padding-bottom: 1.5rem; }
.support-strip-inner > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.35rem 1.15rem;
  border-right: 1px solid #cfddd1;
}
.support-strip-inner > a:first-child { padding-left: 0; }
.support-strip-inner > a:last-child { border: 0; padding-right: 0; }
.support-icon { background: #fcfaf5; width: 38px; height: 38px; font-size: 0.95rem; }
.support-strip-inner strong { display: block; font-size: 0.74rem; font-weight: 600; line-height: 1.5; }
.support-strip-inner small { display: block; font-size: 0.65rem; color: #536858; margin-top: 0.2rem; }
.support-strip-inner > a > i { margin-left: auto; font-size: 0.7rem; color: var(--accent-teal); }

/* Distinct sections, quieter surfaces, and readable interactive tools. */
.section { padding: 5rem 0; }
.section-header { max-width: 760px; margin-bottom: 2.75rem; }
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  margin-bottom: 0.8rem;
}
.section-subtitle::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -0.035em; }
.section-desc { font-size: 0.95rem; line-height: 1.85; }
#screening { background: var(--neutral-bg); }
#screening > .container { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 4rem; }
#screening .section-header { text-align: left; margin: 1.5rem 0 0; }
#screening .section-title { max-width: 15ch; }
.screening-card { padding: 2rem; width: 100%; border-top: 4px solid var(--accent-teal); }
.progress-bar-wrap { height: 5px; margin-bottom: 1.5rem; }
.quiz-question-text { font-size: 1.1rem; line-height: 1.7; }
.quiz-options { grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 1.5rem; }
.option-btn { padding: 0.85rem 1rem; border-width: 1px; border-radius: 10px; font-size: 0.85rem; line-height: 1.6; }
.quiz-nav { gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; }
.quiz-nav > span { font-size: 0.7rem !important; }
#understanding { background: var(--neutral-soft); }
.simulator-card { box-shadow: none; padding: 2rem; }
.sim-btn { border-radius: 10px; font-size: 0.85rem; min-height: 44px; }
.sim-text-box { border-radius: 12px; padding: 1.5rem; }
.myths-grid { gap: 1.25rem; }
.myth-card { box-shadow: none; }
.myth-header { align-items: flex-start; font-size: 0.875rem; }
.fact-desc { font-size: 0.875rem; line-height: 1.85; }
#programs { background: var(--neutral-bg); }
.programs-grid { max-width: none; gap: 1.25rem; }
.program-card { padding: 2rem; border-radius: 20px; box-shadow: none; scroll-margin-top: 7rem; }
.program-card::before { height: 3px; }
.program-title { font-size: 1.4rem; letter-spacing: -0.025em; }
.program-desc { max-width: 54ch; font-size: 0.925rem; line-height: 1.85; }
.program-link { font-size: 0.85rem; }
.program-icon { border-radius: 14px; }
.program-badge { font-size: 0.65rem; letter-spacing: 0.06em; }
.program-card:hover { transform: translateY(-4px); border-color: var(--accent-teal); box-shadow: var(--shadow-md); }
#history { background: var(--neutral-soft); }
.about-showcase-card { padding: 2.75rem; box-shadow: none; margin-bottom: 0; background: var(--neutral-card); }
.about-showcase-card::before { display: none; }
.about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
.about-badge { font-size: 0.7rem; }
.about-heading { font-size: 2rem; letter-spacing: -0.035em; }
.about-text { font-size: 0.925rem; line-height: 1.95; margin-bottom: 1rem; }
.about-image { border: 0; border-radius: 20px; box-shadow: none; }
#team { background: var(--neutral-bg); }
.team-grid { max-width: none; gap: 1.25rem; }
.team-card { box-shadow: none; padding: 2rem 1.5rem; border-radius: 20px; }
.team-avatar { width: 112px; height: 112px; border-radius: 24px; border: 0; box-shadow: none; background: var(--neutral-soft); }
.team-name { font-size: 1.05rem; max-width: 25ch; }
.read-more-btn { border-width: 1px; font-size: 0.75rem; padding: 0.55rem 1rem; border-radius: 8px; }
#events { background: var(--neutral-soft); }
.event-featured-card { max-width: none; box-shadow: none; padding: 2.5rem; margin-bottom: 0; }
.event-featured-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
.event-main-img { height: 360px; border: 0; box-shadow: none; }
.event-thumb-wrap { right: -8px; bottom: -12px; width: 36%; }
.event-detail-item { font-size: 0.85rem; align-items: flex-start; }
.event-detail-item > i { margin-top: 0.35rem; }

#testimonials { background: #e8f1ec; }
.testimonials-slider-container { max-width: 960px; padding: 0 4rem; }
.testimonial-card.single-card { border: 0; border-radius: 22px; padding: 2.5rem 3rem; box-shadow: 0 8px 30px rgba(15, 44, 89, 0.035); }
.testimonial-card:hover { transform: none; }
.testimonial-quote { font-style: normal; font-size: 1rem; line-height: 1.95; }
.quote-icon { color: var(--accent-teal); font-size: 2rem; opacity: 0.7; }
.testimonial-author { border-top-style: solid; }
.author-name { font-size: 0.925rem; }
.author-meta { font-size: 0.75rem; margin-top: 0.2rem; }
.author-avatar { background: var(--accent-teal); box-shadow: none; font-size: 0.9rem; }
.testimonial-nav-btn { width: 44px; height: 44px; border-color: #c9d9ce; box-shadow: none; background: transparent; }
.testimonial-dots { margin-top: 1.5rem; gap: 10px; }
.testimonial-dots .t-dot { background: #bacfc0; }
.testimonial-dots .t-dot.active { background: var(--accent-teal); }

#contact { background: var(--neutral-bg); }
.booking-grid { gap: 1.5rem; }
.booking-form { box-shadow: none; padding: 2rem; }
.form-input, .form-select, .form-textarea { border-width: 1px; border-radius: 10px; min-height: 48px; }
.form-label { font-size: 0.8rem; }
.form-group { margin-bottom: 1.1rem; }
.info-card { padding: 2.25rem; background: #123f43; box-shadow: none; }
.info-title { font-size: 1.8rem; letter-spacing: -0.025em; }
.contact-item { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-item:last-child { padding-bottom: 0; margin-bottom: 0; border: 0; }
.contact-details h5 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; }
.contact-details p { font-size: 0.875rem; }
.contact-icon { border-radius: 12px; width: 38px; height: 38px; font-size: 1rem; }
.footer { padding: 4rem 0 1.5rem; background: #102e45; }
.footer-grid { gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; }
.footer-brand p, .footer-links a { font-size: 0.8rem; }
.footer-title { font-size: 0.95rem; }
.footer .logo-title { font-size: 0.9rem; }
.footer .logo-img-footer { height: 42px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; font-size: 0.7rem; }
.footer-bottom a { color: #d1e2d9; }
.accessibility-bar { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.acc-badge { font-size: 0.75rem; }
.acc-tools { gap: 0.4rem; }
.acc-btn { border-radius: 6px; font-size: 0.7rem; }

body.high-contrast {
  --neutral-soft: #18211d;
  --accent-teal: #5eead4;
  --accent-teal-light: #20382d;
}
body.high-contrast .hero { background: var(--neutral-bg); }
body.high-contrast .support-strip, body.high-contrast #testimonials { background: #17241e; border-color: #334155; }
body.high-contrast .support-strip-inner > a { border-color: #334155; }
body.high-contrast .support-strip-inner small { color: var(--text-muted); }
body.high-contrast .support-icon { background: #20382d; }
body.high-contrast .nav-screening { background: #263429; border-color: #788d69; color: #fff; }
body.high-contrast .info-card { background: #152b2e; }
body.high-contrast .hero-caption-icon { background: #20382d; }
body.high-contrast .btn-primary, body.high-contrast .btn-outline:hover { color: #091c3c; }
body.dyslexia-friendly .hero-title { letter-spacing: var(--letter-spacing-base); line-height: 1.4; }
body.dyslexia-friendly .section-title, body.dyslexia-friendly .about-heading,
body.dyslexia-friendly .program-title { letter-spacing: var(--letter-spacing-base); line-height: 1.5; }
body.dyslexia-friendly .hero-subtitle, body.dyslexia-friendly .testimonial-quote { line-height: var(--line-height-base); }

@media (max-width: 1200px) {
  .nav-menu { gap: 0.25rem; }
  .hero-grid { gap: 2rem; }
  .hero-title { font-size: 2.75rem; }
  .support-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 0; }
  .support-strip-inner > a:nth-child(2) { border-right: 0; }
  .support-strip-inner > a:nth-child(3) { padding-left: 0; }
  .support-strip-inner > a:nth-child(4) { padding-right: 0; }
}
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.25rem; }
  .hero-cta { align-items: stretch; flex-direction: column; }
  .hero-cta .btn { padding: 0.8rem 1rem; }
  .hero-image-caption { padding: 0.8rem; gap: 0.6rem; }
  .hero-image-caption > a { display: none; }
  #screening > .container { gap: 2rem; grid-template-columns: 0.8fr 1.2fr; }
  .about-grid, .event-featured-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-showcase-card, .event-featured-card { padding: 2rem; }
  .about-heading { font-size: 1.6rem; }
  .booking-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-ribbon { font-size: 0.65rem; }
  .ribbon-inner { justify-content: center; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .ribbon-inner > a { display: none; }
  .nav-wrapper { min-height: 74px; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-title { font-size: clamp(2.15rem, 7.8vw, 3rem); max-width: 22ch; }
  .hero .badge-tag { font-size: 0.68rem; margin-bottom: 1rem; }
  .hero-subtitle { max-width: 60ch; font-size: 0.95rem; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; gap: 0.65rem; }
  .hero-cta .btn { flex: 1 1 200px; }
  .hero-reassurance { font-size: 0.68rem; gap: 0.5rem 1rem; }
  .hero-photo-heading { justify-content: flex-start; margin-bottom: 0.65rem; }
  .hero-slider { border-width: 4px; border-radius: 22px 22px 8px 8px; }
  .hero-image-caption { margin: 0.6rem 0 0; padding: 0.9rem; }
  .hero-image-caption strong { font-size: 0.78rem; }
  .hero-image-caption div > span { font-size: 0.65rem; }
  .support-strip-inner { padding-top: 1.25rem; padding-bottom: 1.25rem; gap: 0.85rem; }
  .support-strip-inner > a { padding: 0 !important; border: 0; gap: 0.5rem; align-items: flex-start; }
  .support-icon { width: 30px; height: 30px; border-radius: 9px; font-size: 0.8rem; }
  .support-strip-inner strong { font-size: 0.68rem; }
  .support-strip-inner small { font-size: 0.6rem; }
  .support-strip-inner > a > i { display: none; }
  .section { padding: 3.25rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-subtitle { font-size: 0.65rem; letter-spacing: 0.09em; }
  .section-title { font-size: 1.9rem; }
  .section-desc { font-size: 0.9rem; }
  #screening > .container { grid-template-columns: 1fr; gap: 1.5rem; }
  #screening .section-header { margin-top: 0; }
  #screening .section-title { max-width: 24ch; }
  .screening-card, .simulator-card, .program-card, .booking-form, .info-card,
  .about-showcase-card, .event-featured-card { padding: 1.35rem; }
  .quiz-question-text { font-size: 1rem; }
  .quiz-nav { justify-content: space-between; }
  .sim-controls { flex-direction: column; }
  .sim-text-box { padding: 1rem; }
  .about-grid, .event-featured-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-image { max-height: 460px; object-fit: cover; }
  .about-heading { font-size: 1.7rem; }
  .about-text { font-size: 0.9rem; }
  .team-grid { gap: 1rem; }
  .team-card { padding: 1.5rem; }
  .team-avatar { width: 100px; height: 100px; border-radius: 22px; }
  .event-main-img { height: auto; }
  .event-thumb-wrap { bottom: 0; right: 0; }
  .testimonials-slider-container { padding: 0; }
  .testimonial-card.single-card { padding: 1.5rem; }
  .testimonial-quote { font-size: 0.925rem; line-height: 1.9; }
  .testimonial-author { flex-wrap: nowrap; align-items: flex-start; gap: 0.75rem; }
  .info-title { font-size: 1.65rem; }
  .form-input, .form-select, .form-textarea { font-size: 1rem; }
  .footer { padding-top: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer .logo { flex-wrap: nowrap; }
  .footer-bottom { margin-top: 2rem; }
  .accessibility-bar { padding: 1rem 0 calc(76px + env(safe-area-inset-bottom, 0px)); }
  .acc-btn { font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .navbar .logo-title { font-size: 0.95rem; }
  .navbar .logo-sub { font-size: 0.6rem; }
  .navbar .logo-img { height: 36px; }
  .nav-wrapper { gap: 0.7rem; }
  .mobile-nav-donate { display: block; }
  .hero-reassurance span { align-items: flex-start; }
  .hero-reassurance i { margin-top: 0.3rem; }
  .hero-caption-icon { width: 36px; height: 36px; }
  .hero-image-caption > a { display: none; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-on-scroll, .reveal-scale { opacity: 1; transform: none; }
}
