/* ============================================================
   Chars Consulting — Components
   ============================================================ */

/* ---- Buttons ---------------------------------------------- */
.btn {
  --btn-bg: hsl(var(--primary));
  --btn-fg: hsl(var(--primary-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-accent { --btn-bg: none; background: var(--gradient-accent); --btn-fg: hsl(var(--accent-foreground)); }
.btn-accent:hover { box-shadow: var(--shadow-glow); }

.btn-outline {
  background: transparent;
  --btn-fg: hsl(var(--primary));
  border-color: hsl(var(--primary) / .35);
  box-shadow: none;
}
.btn-outline:hover { background: hsl(var(--primary) / .06); --btn-fg: hsl(var(--primary)); }

.btn-ghost { background: transparent; --btn-fg: hsl(var(--foreground)); box-shadow: none; }
.btn-ghost:hover { background: hsl(var(--foreground) / .06); }

.btn-white { background: #fff; --btn-fg: hsl(var(--primary)); }
.btn-on-dark.btn-outline { --btn-fg:#fff; border-color: rgba(255,255,255,.5); }
.btn-on-dark.btn-outline:hover { background: rgba(255,255,255,.12); --btn-fg:#fff; }

.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---- Badges & pills --------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px;
  background: hsl(var(--accent) / .12);
  color: hsl(var(--accent));
}
.badge-green { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }
.badge-muted { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

/* ---- Cards ------------------------------------------------ */
.card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-card);
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
}
.card-flat { box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: .5rem; }
.card p { color: hsl(var(--muted-foreground)); }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 14px;
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}
.icon-badge.accent { background: hsl(var(--accent) / .12); color: hsl(var(--accent)); }
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

/* Linkable tile (alt-treatments, resources) */
a.tile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: hsl(var(--accent) / .5); color: hsl(var(--foreground)); }
a.tile .tile-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
a.tile .tile-title svg { color: hsl(var(--accent)); flex: none; }
a.tile p { font-size: .9rem; color: hsl(var(--muted-foreground)); }

/* ---- Urgent help bar -------------------------------------- */
.urgent-bar {
  background: var(--gradient-accent);
  color: #fff;
  font-size: .86rem;
  font-weight: 500;
  position: relative;
  z-index: 60;
}
.urgent-bar .container {
  min-height: var(--urgent-h);
  display: flex; align-items: center; justify-content: center;
  gap: .8rem; flex-wrap: wrap;
  padding-block: .3rem;
  text-align: center;
}
.urgent-bar strong { font-weight: 700; }
.urgent-bar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.urgent-bar a:hover { color:#fff; text-decoration: underline; }
.urgent-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulseSoft 2s infinite; }

/* ---- Header ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  background: hsl(var(--background) / .55);
}
.site-header.scrolled {
  background: hsl(var(--background) / .82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid hsl(var(--border) / .7);
}
.site-header .bar {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img, .brand svg { height: 40px; width: auto; }
.brand .brand-logo { height: 46px; }
/* Black wordmark → white on dark surfaces (footer always dark; header/drawer in dark mode) */
.site-footer .brand-logo,
.dark .brand-logo { filter: brightness(0) invert(1); }
.brand .brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.22rem; color: hsl(var(--primary)); letter-spacing: -.01em; line-height: 1; }
.brand .brand-name span { color: hsl(var(--accent)); }
.brand .brand-tag { display:block; font-family: var(--font-sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: hsl(var(--muted-foreground)); font-weight:600; padding-left:.7rem; border-left:1px solid hsl(var(--border)); }

.nav-desktop { display: flex; align-items: center; gap: 1.35rem; }
.nav-desktop a {
  font-size: .92rem; font-weight: 500; color: hsl(var(--foreground));
  padding-block: .3rem;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: hsl(var(--accent)); }
.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }

/* Interventions dropdown */
.nav-item.has-menu { position: relative; }
.nav-menu-trigger { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; }
.chev-sm { width: .85em; height: .85em; transition: transform .25s ease; }
.nav-item.has-menu:hover .chev-sm, .nav-item.has-menu:focus-within .chev-sm { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + .5rem); right: 0; min-width: 240px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 14px; box-shadow: var(--shadow-card); padding: .5rem;
  display: grid; gap: .1rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 60;
}
.nav-item.has-menu:hover .nav-menu, .nav-item.has-menu:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-menu a { padding: .5rem .7rem; border-radius: 9px; font-size: .88rem; color: hsl(var(--foreground)); white-space: nowrap; }
.nav-menu a:hover { background: hsl(var(--secondary)); color: hsl(var(--accent)); }

/* Drawer collapsible group */
.drawer-group { border: 0; }
.drawer-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .3rem; }
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-group[open] > summary .chev-sm { transform: rotate(180deg); }
.drawer-sub { display: grid; gap: .1rem; padding: .3rem 0 .4rem .9rem; }
.drawer-sublink { color: hsl(var(--muted-foreground)); font-size: .95rem; padding: .35rem 0; }
.drawer-sublink:hover { color: hsl(var(--accent)); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.theme-toggle:hover { color: hsl(var(--accent)); }
.theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-moon { display: block; }

.hamburger {
  display: none;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer;
  align-items: center; justify-content: center;
}
.hamburger svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-desktop, .header-actions .btn { display: none; }
  .hamburger { display: inline-flex; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden; pointer-events: none;
  overflow: hidden; /* clip the off-canvas panel so it can't cause horizontal scroll */
}
.nav-drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.nav-drawer .backdrop {
  position: absolute; inset: 0;
  background: hsl(160 40% 6% / .5);
  opacity: 0; transition: opacity .3s ease;
}
.nav-drawer[data-open="true"] .backdrop { opacity: 1; }
.nav-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: hsl(var(--background));
  box-shadow: var(--shadow-elevated);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; gap: .25rem;
  overflow-y: auto;
}
.nav-drawer[data-open="true"] .panel { transform: translateX(0); }
.nav-drawer .panel .drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.nav-drawer .panel a.drawer-link {
  padding: .8rem .5rem; font-size: 1.05rem; font-weight: 500;
  color: hsl(var(--foreground)); border-bottom: 1px solid hsl(var(--border) / .6);
}
.nav-drawer .panel a.drawer-link:hover, .nav-drawer .panel a.drawer-link[aria-current="page"] { color: hsl(var(--accent)); }
.nav-drawer .panel .drawer-cta { margin-top: 1.1rem; display: grid; gap: .6rem; }

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero .hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .28; mix-blend-mode: luminosity;
}
.hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, hsl(160 55% 12% / .8), hsl(158 45% 25% / .55) 60%, hsl(340 60% 40% / .35)); }
.hero .container { position: relative; z-index: 2; padding-block: clamp(4rem, 11vw, 8rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
.hero h1 .hl { color: hsl(var(--accent)); font-style: italic; }
.hero .hero-sub { font-size: 1.2rem; margin-top: 1.4rem; max-width: 40rem; color: hsl(0 0% 100% / .9); }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .trust-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.5rem; }
.hero .trust-row .trust { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: hsl(0 0% 100% / .85); }
.hero .trust-row .trust svg { color: hsl(var(--accent)); width: 1.4rem; height: 1.4rem; flex:none; }
.hero-card {
  border-radius: 20px; padding: 1.6rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-card h2 { color: #fff; font-size: 1.4rem; }
.hero-card .stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.2rem; }
.hero-card .stat b { font-family: var(--font-serif); font-size: 2rem; color: hsl(var(--accent)); display:block; }
.hero-card .stat span { font-size: .82rem; color: hsl(0 0% 100% / .8); }

/* generic page hero (inner pages) */
.page-hero { position: relative; background: var(--gradient-hero); color: #fff; overflow: hidden; }
.page-hero .hero-overlay { position:absolute; inset:0; background: radial-gradient(120% 120% at 20% -10%, hsl(340 60% 45% / .35), transparent 55%); }
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 5.5rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: hsl(0 0% 100% / .88); max-width: 46rem; margin-top: .9rem; font-size: 1.12rem; }
.page-hero .eyebrow { color: hsl(0 0% 100% / .9); }
.page-hero .eyebrow::before { background: hsl(var(--accent)); }

/* Breadcrumbs */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; margin-bottom: 1rem; align-items:center; }
.breadcrumb a { color: hsl(0 0% 100% / .8); }
.breadcrumb a:hover { color:#fff; }
.breadcrumb .sep { color: hsl(0 0% 100% / .5); }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* ---- About / portrait ------------------------------------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait-frame { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-elevated); }
.portrait-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portrait-frame .tag {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  padding: .9rem 1.1rem; border-radius: 14px;
}
.portrait-frame .tag b { display:block; font-family: var(--font-serif); font-size: 1.1rem; color: hsl(var(--primary)); }
.portrait-frame .tag span { font-size: .82rem; color: hsl(var(--muted-foreground)); }

/* ---- Placeholder image (branded) -------------------------- */
.ph {
  position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 15% 15%, hsl(var(--teal) / .28), transparent 55%),
    radial-gradient(120% 120% at 85% 85%, hsl(var(--accent) / .22), transparent 55%),
    linear-gradient(135deg, hsl(var(--navy-dark)), hsl(var(--primary)));
  color: hsl(0 0% 100% / .85);
  overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(hsl(255 255% 255% / .06) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .5;
}
.ph svg { width: 30%; max-width: 88px; opacity: .55; position: relative; z-index: 1; }
.ph .ph-label { position: absolute; bottom: .6rem; right: .8rem; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; z-index: 1; }

/* ---- Accordion (FAQ / details) ---------------------------- */
.accordion { display: grid; gap: .75rem; }
details.acc {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--card));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
details.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem;
  color: hsl(var(--foreground));
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .chev { transition: transform .3s ease; color: hsl(var(--accent)); flex:none; }
details.acc[open] summary .chev { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 1.25rem 1.2rem; color: hsl(var(--muted-foreground)); }
details.acc[open] .acc-body { animation: fadeUp .4s ease both; }

/* ---- Tables / comparison ---------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare .col { border-radius: 16px; padding: 1.6rem; border: 1px solid hsl(var(--border)); }
.compare .col.free { background: hsl(var(--primary) / .06); }
.compare .col.private { background: hsl(var(--accent) / .07); }
.compare .col h3 { display:flex; align-items:center; gap:.5rem; }
.compare ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .65rem; }
.compare li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.compare li svg { flex: none; margin-top: .15rem; }
.check { color: hsl(var(--primary)); }
.cross { color: hsl(var(--muted-foreground)); }

/* ---- Forms ------------------------------------------------ */
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field .req { color: hsl(var(--accent)); }
.input, .textarea, .select {
  width: 100%;
  font: inherit; font-size: .98rem;
  padding: .8rem .9rem;
  border: 1px solid hsl(var(--input));
  border-radius: 10px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { resize: vertical; min-height: 130px; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / .18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: hsl(var(--muted-foreground)); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---- Contact split ---------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-info .row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info .row .icon-badge { width: 2.6rem; height: 2.6rem; margin: 0; flex: none; }
.contact-info .row b { display:block; font-family: var(--font-serif); }
.contact-info .row a, .contact-info .row span { color: hsl(var(--muted-foreground)); }

/* ---- Testimonials carousel -------------------------------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: .5rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.testimonial {
  scroll-snap-align: center; flex: 0 0 min(100%, 34rem);
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: 18px; padding: 2rem;
  box-shadow: var(--shadow-card);
}
.testimonial .quote-mark { font-family: var(--font-serif); font-size: 3rem; line-height: 0; color: hsl(var(--accent) / .5); }
.testimonial blockquote { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; margin: 1rem 0 1.25rem; color: hsl(var(--foreground)); }
.testimonial .who { display: flex; align-items: center; gap: .75rem; }
.testimonial .who .avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; display:grid; place-items:center; background: var(--gradient-accent); color:#fff; font-weight:700; font-family: var(--font-serif); }
.testimonial .who b { font-family: var(--font-serif); }
.testimonial .who span { display:block; font-size: .82rem; color: hsl(var(--muted-foreground)); }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  color: hsl(var(--foreground)); cursor: pointer; display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
.carousel-btn:hover { background: hsl(var(--accent)); color:#fff; transform: scale(1.06); }
.carousel-dots { display: flex; gap: .4rem; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 999px; border: none; background: hsl(var(--muted)); cursor: pointer; transition: width .3s, background .3s; }
.carousel-dots button[aria-selected="true"] { width: 26px; background: hsl(var(--accent)); }

/* ---- Community gallery ------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .g-item { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery .g-item .ph, .gallery .g-item img { aspect-ratio: 4/3; width: 100%; height: 100%; object-fit: cover; display: block; }
/* uniform grid — no masonry spans (they left awkward empty cells) */
.gallery .g-item.tall { grid-row: span 1; }
.gallery .g-item.tall .ph, .gallery .g-item.tall img { aspect-ratio: 4/3; }

/* ---- Events ----------------------------------------------- */
.event-card { border-radius: 16px; overflow: hidden; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-card); }
.event-card .media { aspect-ratio: 3/4; background: hsl(var(--secondary)); display: flex; }
.event-card .media img { width: 100%; height: 100%; object-fit: contain; }
.event-card .body { padding: 1.3rem; }
.event-card .body .badge { margin-bottom: .6rem; }

/* ---- RAAC / resources / map ------------------------------- */
#raac-map { height: 440px; width: 100%; border-radius: 16px; box-shadow: var(--shadow-card); z-index: 1; }
.map-wrap { position: relative; }
.leaflet-popup-content { font-family: var(--font-sans); }
.leaflet-popup-content b { font-family: var(--font-serif); color: hsl(var(--primary)); }
/* Multilingual support cards */
.lang-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-top: 1.6rem; }
.lang-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .95rem .6rem; text-align: center; transition: background .2s ease, transform .2s ease; }
.lang-card:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.lang-en { display: block; font-weight: 700; color: #fff; font-size: .98rem; }
.lang-native { display: block; color: hsl(0 0% 100% / .78); font-size: .85rem; margin-top: .2rem; }
@media (max-width: 900px) { .lang-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .lang-grid { grid-template-columns: repeat(2, 1fr); } }

/* Founder / Meet Charleen section */
.founder-grid { gap: 3rem; }
.founder-photo { max-width: 26rem; border-radius: 18px; box-shadow: var(--shadow-card); object-position: center 20%; }
.founder-role { font-family: var(--font-serif); font-style: italic; color: hsl(var(--primary)); font-size: 1.05rem; margin: 0 0 1rem; }
.founder-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.founder-stats .stat b { font-family: var(--font-serif); font-size: 1.9rem; line-height: 1; color: hsl(var(--accent)); display: block; }
.founder-stats .stat span { font-size: .78rem; color: hsl(var(--muted-foreground)); }
@media (max-width: 860px) { .founder-grid { gap: 2rem; } .founder-stats { grid-template-columns: repeat(2, 1fr); } }

.resource-list { display: grid; gap: .6rem; }
.resource-list a, .resource-list .r-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem 1rem; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card));
  color: hsl(var(--foreground)); font-weight: 500;
}
.resource-list a:hover { border-color: hsl(var(--accent) / .5); color: hsl(var(--accent)); }
.resource-list .phone { font-weight: 700; color: hsl(var(--primary)); white-space: nowrap; }

.callout {
  border-left: 4px solid hsl(var(--accent));
  background: hsl(var(--accent) / .07);
  padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0;
}
.callout.green { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .07); }

/* ---- Self-assessment quiz --------------------------------- */
.quiz { max-width: 44rem; margin-inline: auto; }
.quiz .progress { height: 8px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; margin-bottom: 1.5rem; }
.quiz .progress > i { display:block; height: 100%; background: var(--gradient-accent); width: 0; transition: width .4s ease; }
.quiz .qcount { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); font-weight: 600; }
.quiz .qtext { font-family: var(--font-serif); font-size: 1.5rem; margin: .5rem 0 1.3rem; }
.quiz .options { display: grid; gap: .7rem; }
.quiz .opt {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem; border: 1.5px solid hsl(var(--border)); border-radius: 12px;
  cursor: pointer; background: hsl(var(--card)); transition: border-color .2s, background .2s;
  font-weight: 500;
}
.quiz .opt:hover { border-color: hsl(var(--accent) / .6); }
.quiz .opt input { accent-color: hsl(var(--accent)); width: 1.15rem; height: 1.15rem; }
.quiz .opt.selected { border-color: hsl(var(--accent)); background: hsl(var(--accent) / .07); }
.quiz .quiz-nav { display: flex; justify-content: space-between; margin-top: 1.6rem; gap: 1rem; }
.quiz-result { text-align: center; }
.quiz-result .score-ring {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1.5rem;
  display: grid; place-items: center;
  background: conic-gradient(hsl(var(--accent)) var(--pct,0%), hsl(var(--muted)) 0);
}
.quiz-result .score-ring b { background: hsl(var(--card)); width: 118px; height: 118px; border-radius:50%; display:grid; place-items:center; font-family: var(--font-serif); font-size: 2rem; color: hsl(var(--primary)); }

/* ---- Blog ------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-card); }
.post-card .media { aspect-ratio: 16/9; }
.post-card .body { padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card .meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--accent)); font-weight: 600; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: hsl(var(--foreground)); }
.post-card h3 a:hover { color: hsl(var(--accent)); }
.post-card .excerpt { color: hsl(var(--muted-foreground)); font-size: .95rem; flex: 1; }
.post-card .readmore { font-weight: 600; color: hsl(var(--accent)); font-size: .9rem; }
.article-head { max-width: 44rem; }
.article-meta { display:flex; flex-wrap:wrap; gap: .5rem 1.2rem; color: hsl(0 0% 100% / .85); font-size: .9rem; margin-top: 1rem; }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--gradient-dark); color: hsl(0 0% 100% / .8); margin-top: 2rem; }
.site-footer a { color: hsl(0 0% 100% / .75); }
.site-footer a:hover { color: hsl(var(--accent)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: clamp(2.5rem,6vw,4rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer .brand .brand-name { color: #fff; }
.site-footer .brand .brand-name span { color: hsl(var(--accent)); }
.footer-links { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer-cta { display: grid; gap: .7rem; }
.footer-phone { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; }
.footer-phone:hover { color: hsl(var(--accent)); }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color:#fff; }
.socials a:hover { background: hsl(var(--accent)); color:#fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center; font-size: .82rem; }

/* ---- Chat widget ------------------------------------------ */
.chat-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--gradient-accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-elevated);
  transition: transform .25s ease;
}
.chat-fab:hover { transform: scale(1.07) translateY(-2px); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 91;
  width: min(92vw, 360px);
  border-radius: 18px; overflow: hidden;
  background: hsl(var(--card)); box-shadow: var(--shadow-elevated);
  border: 1px solid hsl(var(--border));
  transform: translateY(16px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.chat-panel[data-open="true"] { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-panel .chat-head { background: var(--gradient-hero); color:#fff; padding: 1rem 1.2rem; }
.chat-panel .chat-head b { font-family: var(--font-serif); font-size: 1.05rem; }
.chat-panel .chat-head p { font-size: .82rem; color: hsl(0 0% 100% / .85); }
.chat-panel .chat-body { padding: 1.2rem; display: grid; gap: .8rem; }
.chat-panel .chat-body p { font-size: .92rem; color: hsl(var(--muted-foreground)); }

/* ---- Toast ------------------------------------------------ */
.toast-region { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; display: grid; gap: .6rem; }
.toast {
  min-width: 260px; max-width: 340px;
  background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-left: 4px solid hsl(var(--primary));
  border-radius: 10px; padding: .85rem 1rem; box-shadow: var(--shadow-elevated);
  animation: fadeUp .3s ease both; font-size: .92rem;
}
.toast.accent { border-left-color: hsl(var(--accent)); }
.toast.error { border-left-color: hsl(var(--destructive)); }

/* ---- Misc / helpers --------------------------------------- */
.divider { height: 1px; background: hsl(var(--border)); border: 0; margin-block: 2rem; }
.cta-band { background: var(--gradient-hero); color:#fff; border-radius: 22px; padding: clamp(2rem,5vw,3.2rem); text-align:center; overflow: hidden; position: relative; }
.cta-band h2 { color:#fff; }
.cta-band p { color: hsl(0 0% 100% / .9); max-width: 42rem; margin: .8rem auto 1.6rem; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .35rem .8rem; border-radius: 999px; background: hsl(var(--secondary)); font-size: .82rem; font-weight: 500; color: hsl(var(--primary)); }
.icon-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.icon-list li { display: flex; gap: .7rem; align-items: flex-start; }
.icon-list li svg { flex: none; margin-top: .2rem; color: hsl(var(--accent)); }


/* ---- Glossary --------------------------------------------- */
.gloss-toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-direction: column; gap: .75rem; padding: .85rem 0; margin-bottom: 1.5rem; background: hsl(var(--background) / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid hsl(var(--border)); }
.gloss-search-wrap { position: relative; display: flex; align-items: center; }
.gloss-search-ic { position: absolute; left: .85rem; color: hsl(var(--muted-foreground)); pointer-events: none; }
.gloss-search { padding-left: 2.55rem; width: 100%; }
.gloss-az { display: flex; flex-wrap: wrap; gap: .18rem; justify-content: center; }
.gloss-az a, .gloss-az span { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; border-radius: 8px; font-size: .8rem; font-weight: 700; text-decoration: none; }
.gloss-az a { color: hsl(var(--primary)); background: hsl(var(--secondary)); }
.gloss-az a:hover { background: hsl(var(--accent)); color: #fff; }
.gloss-az span { color: hsl(var(--muted-foreground) / .35); }
.gloss-letter { margin-bottom: 2rem; scroll-margin-top: calc(var(--header-h) + 3.5rem); }
.gloss-letter-h { color: hsl(var(--accent)); font-size: 1.55rem; margin-bottom: .8rem; padding-bottom: .3rem; border-bottom: 2px solid hsl(var(--border)); }
.gloss-list { margin: 0; display: grid; gap: .7rem; }
.gloss-item { margin: 0; }
.gloss-dt { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.gloss-term { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: hsl(var(--foreground)); }
.gloss-dd { margin: .35rem 0 0; color: hsl(var(--muted-foreground)); line-height: 1.55; }
.gloss-chip { font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; background: hsl(var(--secondary)); color: hsl(var(--primary)); }
.gloss-chip--medical { background: hsl(200 60% 92%); color: hsl(200 72% 30%); }
.gloss-chip--therapy { background: hsl(265 55% 93%); color: hsl(265 45% 42%); }
.gloss-chip--programs-care-levels { background: hsl(158 45% 90%); color: hsl(158 55% 26%); }
.gloss-chip--substances { background: hsl(12 65% 92%); color: hsl(12 62% 40%); }
.gloss-chip--recovery { background: hsl(150 52% 90%); color: hsl(150 58% 25%); }
.gloss-chip--family-support { background: hsl(338 62% 94%); color: hsl(338 55% 43%); }
.gloss-chip--crisis { background: hsl(0 72% 93%); color: hsl(0 66% 43%); }
.gloss-chip--cultural { background: hsl(36 78% 90%); color: hsl(33 72% 35%); }
.gloss-noresults { padding: 1.4rem; text-align: center; color: hsl(var(--muted-foreground)); }
.gloss-item[hidden], .gloss-letter[hidden] { display: none; }
@media (min-width: 640px) {
  .gloss-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .gloss-search-wrap { flex: 1; max-width: 22rem; }
}

.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.footer-legal a { color: inherit; opacity: .85; text-decoration: none; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
