:root{
  --bg:hsl(205, 40%, 92%);
  --card:#111a2e;
  --muted:#000206;
  --text:#000104;
  --accent:#4fc7ff;
  --accent2:#73b942;
  --line: rgba(247, 244, 244, 0.1);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius: 16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  color:var(--text);
  background: radial-gradient(1200px 600px at 18% 2%, rgba(79,199,255,.25), transparent 60%),
              radial-gradient(900px 500px at 92% 8%, rgba(115,185,66,.16), transparent 55%),
              radial-gradient(700px 380px at 50% 100%, rgba(103,149,255,.10), transparent 62%),
              var(--bg);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(200, 208, 222, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .topbar-inner{max-width:1020px; margin:0 auto}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:8px 0; /* reduced from 12px */
  height:120px;
}
.brand{display:flex; align-items:center; gap:1mm; color:var(--text)}
.topbar .brand{margin-left:-8px}
.topbar .brand{transform:translateX(-3in)}
.brand:hover{text-decoration:none}
.brand-mark{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:12px;
    border:1px solid var(--line);
    background-color: transparent;
    overflow:hidden;
    padding:0;
}
.brand-mark img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.brand-text{font-weight:700}

.nav-desktop{display:none; gap:18px; align-items:center}
.nav-desktop a{color:var(--text); opacity:.9}
.nav-desktop a:hover{opacity:1; text-decoration:none}

.nav-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.22);
  padding:4px;
}

.nav-social-icon{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:7px;
  display:block;
}

.menu-btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  background: linear-gradient(135deg, rgba(124,218,255,.35), rgba(182,255,138,.22));
  border: 1px solid var(--line);
  padding:12px 16px;
  border-radius: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor:pointer;
  text-decoration:none;
  font-weight:700;
}
.btn:hover{filter:brightness(1.06); text-decoration:none}
.btn-small{padding:9px 14px; border-radius:12px; font-size:.95rem}
.btn-ghost{
  background: rgba(255,255,255,.06);
  box-shadow:none;
}

.hero{padding:38px 0 8px}
.hero-grid{
  display:grid; gap:18px;
}
.badge{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius:999px;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
}
h1{font-size: clamp(30px, 3.2vw, 48px); line-height:1.06; margin: 8px 0}
h1, h2, h3, h4, h5, h6{
  font-family: Optima, "Optima LT Std", "Segoe UI", Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
}
.lead{color:var(--muted); font-size: 18px; line-height:1.6; max-width: 52ch}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px}
.hero-meta{display:flex; gap:14px; flex-wrap:wrap; margin-top: 18px; color: var(--muted)}
.hero-meta a{color: var(--muted)}
.hero-meta a:hover{color: var(--text); text-decoration:none}

.hero-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.quick-links{display:grid; gap:10px; margin-top:10px}
.cardlink{
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.cardlink:hover{text-decoration:none; filter:brightness(1.06)}

.section{
  padding: 44px 0;
  position: relative;
}

.section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2{font-size: 28px; margin: 0 0 10px}
.muted{color: var(--muted); line-height:1.6}

.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}
.card{
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(79,199,255,.11) 48%, rgba(115,185,66,.10));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.staff{display:flex; gap:14px; align-items:flex-start}
.avatar{
  width:56px; height:56px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(124,218,255,.25), rgba(182,255,138,.18));
}

.avatar-photo{
  width:120px;
  height:120px;
  border-radius: 18px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}

.about-feature{
  display:grid;
  gap:16px;
  align-items:center;
  margin-bottom: 10px;
}

.about-copy{
  text-align: left;
}

.about-copy .hero-actions{
  justify-content: flex-end;
  margin-top: 10px;
}

#openPhilosophyBtn{
  padding: 14px 20px;
  font-size: 1.02rem;
}

.about-image-wrap{
  border:1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image{
  width:100%;
  height:320px;
  object-fit: cover;
  display:block;
}

.service-thumb{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.form{margin-top: 14px}
.grid2{display:grid; gap: 12px}
label{display:grid; gap: 6px; color: var(--muted); font-size: 14px}
input, select, textarea{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11,18,32,.35);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(124,218,255,.55);
  box-shadow: 0 0 0 4px rgba(124,218,255,.12);
}
.form-note{margin-top: 10px; color: var(--muted)}

#intake .form,
#intake .form label,
#intake .form input,
#intake .form select,
#intake .form textarea,
#intake .form button,
#intake .form-note{
  font-size: 12px;
}

.accordion{margin-top: 12px}
.acc-btn{
  width:100%;
  text-align:left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-weight:700;
  margin-bottom: 10px;
}
.acc-panel{
  padding: 0 14px 14px 14px;
  color: var(--muted);
}

.footer{margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line)}

.drawer-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  z-index:60;
}
.drawer{
  position:fixed; top:0; right:0; height:100%; width: 86%;
  max-width: 360px;
  background: rgba(232,240,247,.98);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform .22s ease;
  z-index: 70;
  padding: 16px;
}
.drawer.open{transform: translateX(0)}
.drawer-header{display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px}
.icon-btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
}
.drawer-link{
  display:block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--text);
  opacity:.9;
}
.drawer-link:hover{background: rgba(255,255,255,.55); text-decoration:none}

.reveal{opacity:0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease}
.reveal.visible{opacity:1; transform: translateY(0)}

.logo{
  height:190px;
  width:auto;
  max-width:360px;
  display:block;
  object-fit:contain;
  transition: transform .14s ease;
  will-change: transform;
}
@media (max-width: 600px) {
  .topbar-inner{
    height:76px;
  }

  .topbar .brand{
    margin-left:-30px;
    transform:none;
  }

  .logo {
    height:72px;
  }

  .brand .logo {
    padding:1mm;
  }

  .menu-btn{
    padding: 15px 18px;
    border-radius: 15px;
    font-size: 1.25rem;
    line-height: 1;
  }
}

@media (min-width: 880px){
  .topbar-inner{
    justify-content:space-between;
    gap:22px;
    padding-left:1.2in;
    padding-right:1.2in;
  }
  .topbar .brand{margin-left:-30px; transform:translateX(-2.5in)}
  .nav-desktop{
    display:flex;
    gap:20px;
    position:static;
    transform:none;
    margin:0;
  }
  .menu-btn{display:none}
  .hero-grid{grid-template-columns: 1.3fr .7fr; align-items: start}
  .about-feature{grid-template-columns: 1.05fr .95fr;}
  .cards{grid-template-columns: repeat(3, 1fr)}
  .grid2{grid-template-columns: repeat(2, 1fr)}
}

/* ABA gallery styles */
.aba-gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin-top:16px;
}
.aba-item{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
  display:block;
  transition: transform .18s ease, box-shadow .18s ease;
}
.aba-item img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}
.aba-item:hover{ transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.18)}
@media (min-width: 880px){
  .aba-item img{ height:200px; }
}

/* Force black text in contact area */
#contact, #contact * {
  color: #000 !important;
}
#contact .contact-map-card .map-wrap iframe{
  display: block;
  width: 100%;
}
#contact .contact-map-card .map-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 880px){
  #contact .contact-map-card{
    grid-column: span 2;
  }
  #contact .contact-map-card .map-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
#contact a { color: #000 !important; text-decoration: none; }
#contact a:hover { text-decoration: underline; }
#contact input, #contact textarea, #contact select, #contact button {
  color: #000 !important;
  caret-color: #000;
}

/* Subtle scale on hover/focus for interactive controls */
.interactive,
.btn,
.btn-ghost,
.btn-small,
.menu-btn,
.icon-btn,
.cardlink,
.acc-btn,
.drawer-link {
  transition: transform .14s ease, box-shadow .14s ease;
  will-change: transform;
}

.interactive:hover,
.interactive:focus,
.btn:hover,
.btn:focus,
.btn-ghost:hover,
.btn-ghost:focus,
.btn-small:hover,
.btn-small:focus,
.menu-btn:hover,
.menu-btn:focus,
.icon-btn:hover,
.icon-btn:focus,
.cardlink:hover,
.cardlink:focus,
.acc-btn:hover,
.acc-btn:focus,
.drawer-link:hover,
.drawer-link:focus {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

/* scrolling fade image */
.scroll-fade{
  padding: 36px 0;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}
.scroll-fade img{
  width:100%;
  max-width:900px;
  height:auto;
  display:block;
  opacity:0;
  transform: translateY(18px) scale(.98);
  transition: opacity .9s ease, transform .9s ease;
  border-radius:12px;
  box-shadow: var(--shadow);
}
.scroll-fade.visible img{
  opacity:1;
  transform: translateY(0) scale(1);
}
/* smaller on narrow screens */
@media (max-width:720px){
  .scroll-fade img{ max-width:100%; border-radius:10px; }
}

/* continuous horizontal ABA image movement */
.aba-marquee{
  padding: 26px 0 36px;
  overflow: hidden;
}

.aba-track{
  display:flex;
  align-items:center;
  gap:16px;
  width:max-content;
  animation: aba-marquee-move 36s linear infinite;
}

.aba-track img{
  width: min(360px, 78vw);
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

@keyframes aba-marquee-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

@media (max-width:720px){
  .aba-track{ gap:12px; animation-duration: 28s; }
  .aba-track img{ height: 180px; width: min(300px, 82vw); }
}

@media (prefers-reduced-motion: reduce){
  .aba-track{ animation: none; }
}

/* keep keyboard accessibility — show same effect on focus */
:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(124,218,255,.14);
}

.social{
  display:flex;
  gap:10px;
  align-items:center;
}
.social a{display:inline-block}
.social img{
  width:56px;
  height:56px;
  object-fit:contain;
  display:block;
  transition: transform .14s ease, opacity .14s ease;
}
@media (max-width:600px){
  .social img{ width:48px; height:48px; }
}

/* subtle enlarge on hover for header logo and social icons */
.logo{
  transition: transform .14s ease;
  will-change: transform;
}
.logo:hover,
.logo:focus{
  transform: scale(1.06);
}

.social img{
  transition: transform .14s ease, opacity .14s ease;
  will-change: transform;
}
.social a:hover img,
.social a:focus img{
  transform: translateY(-3px) scale(1.12);
  opacity: .98;
}

/* Note: Main accessibility styles are defined below around line 615+ */

/* subtle enlarge for topbar menu & drawer links */
.nav-desktop a,
.drawer-link {
  display: inline-block;
  transition: transform .14s ease, color .12s ease;
  will-change: transform;
}

.nav-desktop a:hover,
.nav-desktop a:focus,
.drawer-link:hover,
.drawer-link:focus {
  transform: translateY(-3px) scale(1.06);
  text-decoration: none;
}

/* Hero slider */
.hero-slider{
  position:relative;
  width:100vw;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  overflow:hidden;
  z-index:0;
}

.hero-slider::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:78px;
  background: var(--bg);
  z-index:4;
  pointer-events:none;
  clip-path: polygon(
    0% 45%,
    6% 56%,
    12% 44%,
    18% 58%,
    24% 46%,
    30% 60%,
    36% 48%,
    42% 62%,
    48% 50%,
    54% 64%,
    60% 52%,
    66% 60%,
    72% 48%,
    78% 58%,
    84% 44%,
    90% 54%,
    96% 42%,
    100% 50%,
    100% 100%,
    0% 100%
  );
}
.hero-slider .slides{ position:relative; height:72vh; min-height:420px; }
.hero-slider .slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  background-repeat: no-repeat;
  opacity:0;
  transition: opacity .9s ease, transform .9s ease;
  transform: translateY(8px) scale(.995);
}
.hero-slider .slide.is-active{
  opacity:1;
  transform:none;
  z-index:1;
}

/* overlay & content */
.hero-overlay{
  position:absolute; left:0; top:0; bottom:0;
  width:55%;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,0) 100%);
  pointer-events:none; z-index:1;
}
.hero-content{
  position:absolute; left:6vw; top:24%;
  z-index:2; color:#fff; max-width:640px;
}
.hero-kicker{ color:rgba(255,255,255,.9); margin:0 0 8px; font-weight:600; }
.hero-content h1{ margin:0 0 12px; font-size:clamp(28px,5.4vw,56px); line-height:1.02; text-shadow:0 8px 24px rgba(0,0,0,.35);}
.hero-sub{ margin:0 0 18px; color:rgba(255,255,255,.92); }

/* actions */
.hero-actions{ display:flex; gap:12px; }
.btn-primary{ background:var(--accent); color:#fff; padding:12px 16px; border-radius:10px; text-decoration:none; }
.btn-ghost{ background:transparent; border:1px solid rgba(255,255,255,.22); color:#fff; padding:12px 16px; border-radius:10px; }

/* nav buttons */
.nav{ position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border-radius:10px; display:grid; place-items:center; background:rgba(255,255,255,.9); color:#111; border:none; cursor:pointer; z-index:3; }
.nav.prev{ left:14px; } .nav.next{ right:14px; }
.nav:hover{ transform:translateY(-50%) scale(1.04); }

/* dots */
.dots{ position:absolute; right:18px; bottom:18px; display:flex; gap:8px; z-index:3; }
.dots button{ width:12px;height:12px;border-radius:999px;border:none;background:rgba(0,0,0,.25); cursor:pointer; }
.dots button[aria-pressed="true"]{ background:var(--accent); transform:scale(1.18); }

/* badge */
.hero-badge{ position:absolute; left:18px; bottom:18px; background:var(--accent); color:#fff; padding:10px 14px; border-radius:10px; z-index:3; text-decoration:none; }

/* focal crop for slide showing therapist + child faces */
.slide--faces{
  background-position: 40% 38%; /* adjust X% Y% to fine-tune the crop */
  background-size: cover;
  background-repeat: no-repeat;
}

/* tweak on narrow screens to keep faces visible */
@media (max-width: 900px){
  .slide--faces{ background-position: 42% 34%; }
}
@media (max-width: 600px){
  .slide--faces{ background-position: 48% 36%; }
}

/* responsive */
@media (max-width:900px){ .hero-slider .slides{ height:56vh; } .hero-overlay{ width:60%; } .hero-content{ top:20%; } }
@media (max-width:600px){
  .hero-slider .slides{ height:46vh; }
  .hero-overlay{ display:none; }
  .hero-content{ left:4vw; top:14%; max-width:86vw; color:#fff; }
  .nav{ width:40px;height:40px; }
  .dots{ right:10px; }
  .hero-slider::after{ height:56px; }
}
@media (prefers-reduced-motion: reduce){
  .hero-slider .slide, .nav, .dots button{ transition:none!important; }
}

/* increase hero slider image height to show more of the scene */
.hero-slider .slides {
  height: 78vh;
  min-height: 520px;
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  max-width: 1100px;
  margin: 12px 0;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

/* add visual 5mm padding around logo */
.brand .logo {
  box-sizing: content-box;
  padding: 5mm;
  background: transparent;
  display: inline-block;
}
.slide img { width:100%; height:100%; object-fit:cover; object-position: 40% 38%; }

/* ---------- Accessibility: Floating Button ---------- */
.a11y-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  min-width: 52px;
  height: 52px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(90, 98, 220, 0.95);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform .14s ease, box-shadow .14s ease;
}

.a11y-fab:hover{
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(0,0,0,0.28);
}

.fab-icon{
  font-size: 18px;
  line-height: 1;
}

.fab-label{
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Accessibility: Panel ---------- */
.a11y-panel{
  position: fixed;
  right: 18px;
  bottom: 80px;
  width: min(360px, calc(100vw - 36px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  padding: 14px;
  z-index: 9999;
  display: none;
}

.a11y-panel.active{ display: block; }

.a11y-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 12px;
}

.a11y-icon{
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.a11y-grid{
  display: grid;
  gap: 12px;
}

.a11y-group{
  padding: 12px;
  border-radius: 14px;
  background: rgba(230, 236, 242, 0.55);
  border: 1px solid rgba(0,0,0,0.06);
}

.a11y-group-title{
  font-weight: 800;
  margin-bottom: 10px;
}

.a11y-row{
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.a11y-btn{
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  font-weight: 700;
}

.a11y-btn:hover{
  background: rgba(255,255,255,1);
}

.a11y-danger{
  background: rgba(255, 230, 230, 0.9);
}

.a11y-toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  cursor: pointer;
  user-select: none;
}

.a11y-toggle input{
  width: 18px;
  height: 18px;
}

.a11y-footer{
  margin-top: 12px;
}

@media (max-width: 600px) {
  .a11y-panel{
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 74px;
    max-height: calc(100dvh - 92px);
    padding: 10px;
    overflow-y: auto;
  }

  .a11y-header{
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
  }
}

/* ---------- Accessibility: Effects (via classes & CSS vars) ---------- */
:root{
  --a11y-font-scale: 1;     /* 1.0 -> 1.25 */
  --a11y-line-height: 1.55; /* normal -> 1.85 */
  --a11y-letter-space: 0;   /* normal -> 0.03em */
}

/* Apply scaling to common text elements without breaking layout */
body{
  font-size: calc(16px * var(--a11y-font-scale));
  line-height: var(--a11y-line-height);
  letter-spacing: var(--a11y-letter-space);
}

/* Underline links */
.a11y-underline a{
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/* Hide images */
.a11y-hide-images img{
  display: none !important;
}

/* High contrast (simple, global) */
.a11y-high-contrast{
  filter: contrast(1.25) saturate(1.05);
}

/* Grayscale */
.a11y-grayscale{
  filter: grayscale(1);
}

/* Dark mode (gentle override) */
.a11y-dark{
  background: #0b1b22 !important;
  color: #eaf1f6 !important;
}
.a11y-dark .card,
.a11y-dark .section,
.a11y-dark .section-alt{
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.a11y-dark a{ color: #cfefff !important; }

/* Dyslexia-friendly font: uses system-friendly stack */
.a11y-dyslexia{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  font-weight: 500;
}

/* Reduce motion: disable animations/transitions site-wide */
.a11y-reduce-motion *{
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Bigger cursor */
.a11y-big-cursor,
.a11y-big-cursor *{
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='10' cy='10' r='8' fill='%23000'/%3E%3Ccircle cx='10' cy='10' r='6' fill='%23fff'/%3E%3C/svg%3E") 10 10, auto;
}

/* Strong focus outline for keyboard users */
.a11y-focus *:focus{
  outline: 3px solid #5a62dc !important;
  outline-offset: 3px !important;
}

/* ---------- Chatbot ---------- */
.chatbot-fab{
  position: fixed;
  right: 18px;
  bottom: 88px;
  min-width: 52px;
  height: 52px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(135deg, rgba(124,218,255,.95), rgba(90,98,220,.95));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform .14s ease, box-shadow .14s ease;
}

.chatbot-fab:hover{
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(0,0,0,0.28);
}

.chatbot-panel{
  position: fixed;
  right: 18px;
  bottom: 150px;
  width: min(380px, calc(100vw - 36px));
  height: min(550px, calc(100vh - 180px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel.active{ display: flex; }

.chatbot-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, rgba(124,218,255,.95), rgba(90,98,220,.95));
  color: #fff;
}

.chatbot-header strong{
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.chatbot-status{
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.chatbot-close{
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease;
}

.chatbot-close:hover{
  background: rgba(255,255,255,0.3);
}

/* ---------- Mission & Vision Popups ---------- */
.statement-popup{
  position: fixed;
  --mission-edge-offset: 18px;
  right: var(--mission-edge-offset);
  width: min(360px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  color: #111;
  box-shadow: var(--shadow);
  z-index: 9997;
  opacity: 0;
  transform: translateX(110%);
  transition: transform .35s ease, opacity .35s ease;
}

.mission-popup{ top: 120px; }
.vision-popup{ top: 220px; }

.statement-popup.is-intro{
  transition: transform 1.2s ease, opacity .9s ease;
}

.statement-tab{
  position: absolute;
  left: -44px;
  top: 22px;
  width: 44px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(135deg, rgba(124,218,255,.35), rgba(182,255,138,.22));
  color: var(--text);
  box-shadow: var(--shadow);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .02em;
  transition: filter .14s ease, transform .14s ease, box-shadow .14s ease;
}

.statement-popup.is-hidden .statement-tab:hover{
  filter: brightness(1.06);
  transform: rotate(180deg) translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.statement-popup h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.statement-popup p{
  margin: 0;
  line-height: 1.5;
}

.statement-popup.is-visible{
  opacity: 1;
  transform: translateX(0);
}

.statement-popup.is-hidden{
  opacity: 1;
  transform: translateX(calc(100% + var(--mission-edge-offset)));
}

.statement-popup.is-hidden:hover{
  transform: translateX(0);
}

@media (max-width: 600px){
  .statement-popup{
    --mission-edge-offset: 10px;
    width: calc(100vw - 20px);
  }

  .mission-popup{ top: 92px; }
  .vision-popup{ top: 186px; }
}

/* ---------- About Philosophy Popup ---------- */
.philosophy-popup{
  position: fixed;
  --philosophy-edge-offset: 18px;
  --philosophy-tab-width: 0px;
  left: 18px;
  top: 140px;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  color: #111;
  box-shadow: var(--shadow);
  z-index: 9996;
  opacity: 0;
  transform: translateX(-110%);
  transition: transform .55s ease, opacity .55s ease;
}

.philosophy-popup.is-visible{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.philosophy-popup.is-dismissed{
  opacity: 1;
  transform: translateX(calc(-100% - var(--philosophy-edge-offset) + var(--philosophy-tab-width)));
  pointer-events: none;
}

.philosophy-popup .statement-tab{
  display: none;
  position: absolute;
  right: calc(-1 * var(--philosophy-tab-width));
  left: auto;
  top: 20px;
  width: var(--philosophy-tab-width);
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-left: none;
  border-right: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
  font-size: 10px;
  letter-spacing: .01em;
}

.philosophy-popup.is-dismissed .statement-tab:hover{
  filter: brightness(1.06);
  transform: rotate(180deg) translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.philosophy-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.philosophy-header h3{
  margin:0;
  font-size:20px;
}

.philosophy-popup p{
  margin: 0 0 12px;
  line-height: 1.55;
}

@media (max-width: 600px){
  .philosophy-popup{
    --philosophy-edge-offset: 10px;
    left: 10px;
    top: 120px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 150px);
  }
}

.chatbot-messages{
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message{
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

.learn-more-link{
  color: navy !important;
  font-weight: 700;
}

.learn-more-link:hover{
  text-decoration: underline;
}

@keyframes slideIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.chat-message.user{
  justify-content: flex-end;
}

.message-bubble{
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-line;
}

.chat-message.bot .message-bubble{
  background: #fff;
  color: #333;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chat-message.user .message-bubble{
  background: linear-gradient(135deg, rgba(124,218,255,.95), rgba(90,98,220,.95));
  color: #fff;
}

.message-bubble ul{
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.message-bubble li{
  margin: 4px 0;
}

.chatbot-quick-replies{
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.quick-reply{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124,218,255,.5);
  background: rgba(124,218,255,.1);
  color: #333;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s ease;
}

.quick-reply:hover{
  background: rgba(124,218,255,.25);
  border-color: rgba(124,218,255,.8);
}

.chatbot-input{
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.chatbot-input input{
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f8f9fa;
  color: #333;
  outline: none;
  font-size: 14px;
}

.chatbot-input input:focus{
  border-color: rgba(124,218,255,.8);
  background: #fff;
}

.chatbot-input button{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, rgba(124,218,255,.95), rgba(90,98,220,.95));
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s ease;
}

.chatbot-input button:hover{
  transform: scale(1.05);
}

@media (max-width: 600px){
  .chatbot-panel{
    right: 12px;
    left: 12px;
    bottom: 150px;
    width: auto;
  }
  
  .chatbot-fab{
    right: 12px;
    bottom: 82px;
  }
}

/* ---------- Insurance Grid ---------- */
.insurance-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 32px;
  align-items: center;
  justify-items: center;
}

.insurance-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  min-height: 100px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.insurance-logo:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.insurance-logo img{
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter .2s ease;
}

.insurance-logo:hover img{
  filter: grayscale(0);
}

@media (max-width: 600px){
  .insurance-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .insurance-logo{
    padding: 16px;
    min-height: 80px;
  }
  
  .insurance-logo img{
    max-height: 50px;
  }
}