/* Zanzibar MindCare — shared styles
   Colours come from the logo:
   navy  #003851  headings, header text, footer
   teal  #36C0C0  accents on dark backgrounds
   teal-dark #167777  links and buttons on light backgrounds (5.3:1 on white)
*/
:root {
  --navy: #003851;
  --navy-2: #0A4A66;
  --teal: #36C0C0;
  --teal-dark: #167777;
  --teal-darker: #0F5C5C;
  --teal-tint: #E6F5F5;
  --bg: #FBFAF7;
  --sand: #F3F0E9;
  --line: #E2DDD2;
  --text: #22394A;
  --muted: #4E6474;
  --on-dark: #D5E4EC;
  --on-dark-muted: #A9C2CF;
  --crisis: #A93226;
  --crisis-bg: #FCEFEC;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 56, 81, .10);
  --head: "Playfair Display", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.75;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.22; margin: 0 0 .75rem; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal-darker); }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section { padding: 4.5rem 0; }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section.alt { background: var(--sand); }
.eyebrow {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-dark); font-weight: 600; margin-bottom: .35rem;
}
.rule { width: 56px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--navy)); margin: .6rem 0 1.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .g2, .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split.wide-left { grid-template-columns: 1.25fr 1fr; } }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(251, 250, 247, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0, 56, 81, .10); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: auto; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1.1; display: block; color: var(--navy); }
.brand-name, .brand-tag { white-space: nowrap; }
.brand-tag { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin-top: .2rem; }
@media (min-width: 1100px) and (max-width: 1299px) { .brand-tag { display: none; } }
@media (max-width: 519px) { .brand-tag { display: none; } }

.nav-links { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: .15rem; }
.nl {
  display: inline-flex; align-items: center; gap: .3rem; font-family: var(--body); font-size: .92rem; white-space: nowrap;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: .45rem .6rem; border-radius: 6px; line-height: 1.4;
}
.nl:hover, .nl[aria-current="page"], .nl.is-current { background: var(--teal-tint); color: var(--navy); }
.nl[aria-current="page"], .nl.is-current { box-shadow: inset 0 -2px 0 var(--teal-dark); }
.nl svg { width: 13px; height: 13px; transition: transform .2s; }
.drop { position: relative; }
.drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; list-style: none; margin: 0; padding: .45rem 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.drop-btn[aria-expanded="true"] + .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: .5rem 1.15rem; font-size: .92rem; color: var(--text); text-decoration: none; }
.drop-menu a:hover { background: var(--teal-tint); color: var(--navy); }
.drop-sep { height: 1px; background: var(--line); margin: .35rem 1.15rem; }

#hbg { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; border-radius: 6px; cursor: pointer; }
#hbg:hover { background: var(--teal-tint); }
#hbg span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 1px; transition: transform .25s, opacity .25s; }
#hbg[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hbg[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#hbg[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mob { display: none; border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - 76px); overflow-y: auto; }
#mob.open { display: block; }
#mob ul { list-style: none; margin: 0; padding: 0; }
.mlink { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 1rem; }
.mgroup { margin: 1rem 0 .25rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); font-weight: 600; }
.msub { padding-left: 1rem !important; border-left: 2px solid var(--line); }
.msub .mlink { font-size: .95rem; padding: .45rem 0; border-bottom: 0; color: var(--text); }
.mob-inner { padding: .5rem 1.25rem 1.5rem; }

@media (min-width: 1100px) {
  .nav-links { display: flex; }
  #hbg, #mob, #mob.open { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .98rem; line-height: 1.2;
  padding: .8rem 1.6rem; border-radius: 8px; border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: var(--teal-darker); color: #fff; box-shadow: 0 4px 16px rgba(22, 119, 119, .3); }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal-dark); color: #fff; }
.btn-accent { background: var(--teal); color: var(--navy); }
.btn-accent:hover { background: #5CD0D0; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* Hero (home) */
.hero { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 70%, #10607A 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 20%, rgba(54, 192, 192, .22), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(54, 192, 192, .12), transparent 50%);
}
.hero .wrap { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .hero .wrap { padding-top: 7rem; padding-bottom: 7rem; } }
.hero h1 { color: #fff; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero .lead { color: var(--on-dark); max-width: 680px; margin: 0 auto 2.25rem; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.6rem; }
.pill { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .85rem; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #E3F1F5; }

/* Inner page header */
.page-head { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); }
.page-head .wrap { padding-top: 3.75rem; padding-bottom: 3.75rem; }
.page-head h1 { color: #fff; margin-bottom: .6rem; }
.page-head .eyebrow { color: var(--teal); }
.page-head p { color: var(--on-dark); max-width: 720px; font-size: 1.1rem; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .97rem; color: var(--muted); }
.card ul { font-size: .93rem; color: var(--text); margin-top: .5rem; }
.card ul li { margin-bottom: .2rem; }
.card .more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .93rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; flex-shrink: 0; }
.icon svg { width: 24px; height: 24px; stroke: var(--teal-dark); }

/* Who we help */
.help-item { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.help-item svg { width: 22px; height: 22px; stroke: var(--teal-dark); flex-shrink: 0; margin-top: .25rem; }
.help-item h3 { font-size: 1.05rem; margin-bottom: .2rem; font-family: var(--body); font-weight: 600; }
.help-item p { font-size: .93rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.9rem 1.7rem 1.7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; margin-bottom: 1rem;
}
.step p { color: var(--muted); font-size: .97rem; }

/* Founder */
.founder { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .founder { grid-template-columns: 240px 1fr; gap: 3rem; } }
.founder-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 8px 28px rgba(0, 56, 81, .18); margin: 0 auto; }
.founder-role { color: var(--teal-dark); font-weight: 600; margin-bottom: 1rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1rem; text-align: center; }
.stat-n { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: .4rem; }
.stat-l { font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* Experience list */
.orgs { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .orgs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .orgs { grid-template-columns: repeat(3, 1fr); } }
.org { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; font-weight: 600; color: var(--navy); font-size: .97rem; }
.org span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

/* Timeline */
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { position: relative; padding: 0 0 1.6rem 1.8rem; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-dark); box-shadow: 0 0 0 3px var(--teal-tint); }
.tl .t { font-weight: 600; color: var(--navy); }
.tl .s { font-size: .93rem; color: var(--teal-dark); }
.tl .d { font-size: .93rem; color: var(--muted); margin-top: .15rem; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .85rem; font-size: .88rem; color: var(--text); }
.badge b { color: var(--navy); }

/* Publications and projects */
.pub { border-left: 3px solid var(--teal-dark); background: #fff; border-radius: 0 10px 10px 0; padding: 1.2rem 1.4rem; margin-bottom: 1rem; font-size: .97rem; }
.pub .meta { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-dark); }

.cv-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; background: var(--navy); color: var(--on-dark); border-radius: 14px; padding: 1.75rem 2rem; }
.cv-banner p { margin: 0; }
.cv-banner .title { font-family: var(--head); font-weight: 700; color: #fff; font-size: 1.1rem; }
.cv-banner .sub { font-size: .88rem; color: var(--on-dark-muted); }

/* Info list (how sessions work) */
.info { display: grid; gap: 1rem; }
@media (min-width: 720px) { .info { grid-template-columns: repeat(2, 1fr); } }
.info div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.info h3 { font-size: 1.05rem; font-family: var(--body); font-weight: 600; margin-bottom: .3rem; }
.info p { font-size: .95rem; color: var(--muted); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal-dark); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .97rem; }

/* CTA band */
.cta { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: var(--on-dark); border-radius: 16px; padding: 3rem 2rem; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-dark); max-width: 600px; margin: 0 auto 1.75rem; }

/* Contact */
.contact-item { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.2rem; text-decoration: none; color: var(--text); }
.contact-item .icon { margin: 0; width: 42px; height: 42px; border-radius: 50%; }
.contact-item .icon svg { width: 19px; height: 19px; }
.contact-item .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); font-weight: 600; }
.contact-item .v { font-weight: 600; color: var(--navy); }
.contact-item .n { font-size: .88rem; color: var(--muted); }
.flabel { display: block; font-weight: 600; color: var(--navy); font-size: .93rem; margin-bottom: .35rem; }
.finput { width: 100%; padding: .75rem 1rem; border: 1.5px solid #C5D3DB; border-radius: 8px; background: #fff; font-family: var(--body); font-size: 1rem; color: var(--text); }
.finput:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(22, 119, 119, .18); }
.field { margin-bottom: 1.1rem; }
.req { color: var(--crisis); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--text); }
.consent input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--teal-dark); flex-shrink: 0; }
.note { font-size: .88rem; color: var(--muted); background: var(--sand); border-radius: 8px; padding: .8rem 1rem; }
.alert { border-radius: 10px; padding: 1.1rem 1.3rem; margin-bottom: 1.25rem; display: none; }
.alert.ok { background: var(--teal-tint); border: 1.5px solid var(--teal-dark); }
.alert.err { background: var(--crisis-bg); border: 1.5px solid var(--crisis); color: var(--crisis); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.calendly-inline-widget { min-width: 280px; height: 700px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }

/* Prose (privacy) */
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose p, .prose li { color: var(--text); }

/* Crisis banner */
.crisis { background: var(--crisis-bg); border-top: 3px solid var(--crisis); }
.crisis .wrap { padding-top: 1.4rem; padding-bottom: 1.4rem; display: grid; gap: .8rem; }
@media (min-width: 900px) { .crisis .wrap { grid-template-columns: 230px 1fr; align-items: center; gap: 2rem; } }
.crisis-title { display: flex; align-items: center; gap: .7rem; font-family: var(--head); font-weight: 700; color: var(--crisis); font-size: 1.05rem; margin: 0; }
.crisis-title svg { width: 30px; height: 30px; flex-shrink: 0; }
.crisis p { font-size: .92rem; color: var(--text); margin-bottom: .45rem; }
.crisis-nums { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .92rem; }
.crisis-nums a { color: var(--crisis); font-weight: 700; text-decoration: none; }
.crisis-nums a:hover { text-decoration: underline; }
.crisis-nums .grp { color: var(--text); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); }
.site-footer .wrap { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.fgrid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fgrid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.fbrand { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: .15rem; }
.ftag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.fh { font-family: var(--head); font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer p { font-size: .88rem; line-height: 1.65; margin-bottom: .6rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.flink { display: block; font-size: .9rem; text-decoration: none; margin-bottom: .45rem; }
.fbottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.fbottom .wrap { padding-top: 1.2rem; padding-bottom: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .82rem; }
.fbottom p { margin: 0; font-size: .82rem; }

/* Entrance animation (only when JS runs) */
.js .fu { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .fu.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fu { opacity: 1; transform: none; transition: none; } }

@media print {
  .site-header, .crisis, .site-footer, .cta { display: none; }
}

/* Fees */
.fees { background: var(--sand); border-radius: 16px; padding: 2.25rem 1.5rem; }
@media (min-width: 768px) { .fees { padding: 2.75rem 2.5rem; } }
.price-grid { max-width: 760px; margin: 1.5rem auto 0; }
.price { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-dark); border-radius: var(--radius); padding: 1.6rem 1.5rem; text-align: center; }
.price-name { font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.price-amt { font-family: var(--head); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: .45rem; }
.price-amt span { font-family: var(--body); font-size: .95rem; font-weight: 400; color: var(--muted); }
.price-meta { font-size: .9rem; color: var(--teal-dark); font-weight: 600; }
