/* =========================================================
   CatchyMinds — professional site styles
   1 Tokens · 2 Base · 3 Top bar & header · 4 Hero · 5 Sections
   6 Components · 7 Inner pages · 8 Forms · 9 Footer · 10 Companion
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --deep: #032F35;          /* hero / footer background */
  --deep-2: #07434B;
  --teal: #33737C;          /* brand */
  --teal-ink: #00424A;      /* links, headings on light */
  --sage: #E6EFF0;          /* soft section tint */
  --surface: #FBFCFC;       /* page background */
  --white: #FFFFFF;
  --ink: #0E2A2E;           /* body text */
  --muted: #4F6669;         /* secondary text */
  --line: #D7E4E6;          /* hairlines */
  --gold: #E5A83A;          /* marigold accent: CTAs on dark, small details */

  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(14,42,46,.06), 0 12px 32px -12px rgba(14,42,46,.18);
}

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.1; }
h3 { font-size: 1.4rem; line-height: 1.25; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
p { max-width: 62ch; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 99; }

/* ---------- 3. TOP BAR & HEADER ---------- */
.topbar { background: var(--deep); color: #B6D0D4; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; min-height: 38px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .links { display: flex; gap: 1.5rem; }
@media (max-width: 720px) { .topbar .where { display: none; } .topbar .wrap { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,252,252,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(14,42,46,.35); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 52px; height: 52px; flex: none; }
.logo-text { display: grid; line-height: 1.05; }
.logo-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; }
.logo-text span { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: .55rem .85rem; border-radius: 8px; }
.nav a:hover { color: var(--teal-ink); background: var(--sage); }
.nav a[aria-current="page"] { color: var(--teal-ink); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav .btn { margin-left: .75rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- 4. HERO (dark, with 3D) ---------- */
.hero { position: relative; background: radial-gradient(1100px 600px at 80% 42%, #0E5560 0%, transparent 62%), linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #D8E8EA; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; min-height: min(78vh, 700px); padding: 4.5rem 0 7.5rem; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lead { font-size: 1.22rem; color: #C0D7DB; margin-top: 1.4rem; max-width: 46ch; }
.hero .btn-row { margin-top: 2.2rem; }
.hero-3d { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-3d canvas { width: 100%; height: 100%; }
.hero-3d .fallback { width: 100%; height: 100%; }
.trust { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.14); }
.trust div { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: #D8E8EA; }
.trust svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* hero load sequence: the one orchestrated motion besides the 3D grow */
.hero .reveal { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .reveal:nth-child(2) { animation-delay: .12s; } .hero .reveal:nth-child(3) { animation-delay: .24s; } .hero .reveal:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 3.5rem 0 7rem; min-height: 0; }
  .hero-3d { max-width: 440px; justify-self: center; margin-top: -1rem; }
}

/* Chooser card overlaps the hero edge */
.chooser-wrap { position: relative; z-index: 2; margin-top: -4.5rem; }
.chooser { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 2rem 2.25rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.chooser h2 { font-size: 1.75rem; }
.chooser p.muted { margin-top: .4rem; font-size: .98rem; }
.chooser-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { font: 600 .98rem var(--sans); color: var(--ink); cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .7rem 1.2rem; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--teal); }
.choice[aria-pressed="true"] { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.chooser-result { margin-top: 1.25rem; }
.chooser-result[hidden] { display: none; }
.chooser-result ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.25rem; margin-top: .75rem; }
.chooser-result li { padding-left: 1.5rem; position: relative; font-size: .97rem; }
.chooser-result li::before { content: ""; position: absolute; left: 0; top: .45em; width: .85rem; height: .5rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.chooser-result .btn-row { margin-top: 1.25rem; }
.chooser-result.show { animation: rise .35s ease-out; }
@media (max-width: 860px) { .chooser { grid-template-columns: 1fr; padding: 1.6rem; } .chooser-result ul { grid-template-columns: 1fr; } }

/* ---------- 5. SECTIONS ---------- */
section { padding: 6rem 0; }
.tint { background: var(--sage); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-head p { color: var(--muted); }
.section-head.single { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 1rem; } section { padding: 4.5rem 0; } }

/* ---------- 6. COMPONENTS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; cursor: pointer; border: 1.5px solid var(--teal-ink); background: var(--teal-ink); color: #fff; font: 600 .98rem var(--sans); padding: .85rem 1.45rem; border-radius: 10px; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: #002F35; border-color: #002F35; }
.btn.ghost { background: transparent; color: var(--teal-ink); }
.btn.ghost:hover { background: var(--sage); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1E1A10; }
.btn.gold:hover { background: #F0B95A; border-color: #F0B95A; }
.btn.light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn.light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.nav a.btn { color: #fff; padding: .7rem 1.15rem; }
.nav a.btn:hover { background: #002F35; color: #fff; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* Service grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 1.85rem 1.85rem; display: flex; flex-direction: column; gap: .7rem; transition: background .2s; }
.svc:hover { background: #F5F9FA; }
.svc .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; margin-bottom: .4rem; }
.svc .ico svg { width: 24px; height: 24px; stroke: var(--teal-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc p { color: var(--muted); font-size: .98rem; flex: 1; }
.svc .for { font-size: .86rem; color: var(--teal-ink); font-weight: 500; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* Profile card (stands in for a photo until one is added) */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4.5rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.profile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.profile-photo { aspect-ratio: 16 / 10; background: linear-gradient(150deg, #CFE3E6, #A6CDD3); display: grid; place-items: center; }
.profile-photo .initials img { width: 84px; height: 84px; }
.profile-photo .initials { width: 112px; height: 112px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font: 500 2.2rem var(--serif); color: var(--teal-ink); box-shadow: 0 8px 24px -10px rgba(0,0,0,.25); }
.profile-body { padding: 1.6rem 1.75rem 1.75rem; }
.profile-body h3 { font-size: 1.45rem; }
.profile-body .role { color: var(--muted); margin-top: .15rem; }
.creds { list-style: none; margin-top: 1.25rem; display: grid; gap: .65rem; }
.creds li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; font-size: .95rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.creds li span:first-child { color: var(--muted); }
.about-copy p + p { margin-top: 1rem; }
.about-copy .btn-row { margin-top: 2rem; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2rem; }
.pillars h4 { margin-bottom: .25rem; }
.pillars p { color: var(--muted); font-size: .96rem; }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .creds li { grid-template-columns: 1fr; gap: .1rem; } }

/* Process: a real sequence, so numbering is meaningful */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; padding: 0 1.5rem 0 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 .95rem var(--sans); color: var(--teal-ink); padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 2px solid var(--line);
  /* teal line drawn over the grey one as the step scrolls in */
  border-bottom: 0; padding-bottom: calc(.9rem + 2px);
  background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 100% / 0% 2px, linear-gradient(var(--line), var(--line)) no-repeat 0 100% / 100% 2px;
  transition: background-size .8s cubic-bezier(.4,0,.2,1) var(--d, 0s); }
.steps li.in::before, html:not(.js) .steps li::before { background-size: 100% 2px, 100% 2px; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: .97rem; margin-top: .5rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Conditions we support */
.concerns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.concerns h4 { color: var(--teal-ink); padding-bottom: .7rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span { font-size: .92rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .85rem; }
@media (max-width: 860px) { .concerns { grid-template-columns: 1fr; gap: 2rem; } }

/* FAQ / guides via <details> */
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 1.35rem 3rem 1.35rem 0; position: relative; font: 500 1.2rem var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa .answer { padding: 0 0 1.5rem; color: var(--muted); max-width: 72ch; }
.qa .answer > * + * { margin-top: .75rem; }
.qa .answer ol, .qa .answer ul { padding-left: 1.25rem; }
.qa .answer li + li { margin-top: .3rem; }
.tag { display: inline-block; font: 600 .78rem var(--sans); color: var(--teal-ink); background: var(--sage); border-radius: 6px; padding: .2rem .55rem; margin-right: .75rem; vertical-align: middle; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.faq-layout .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* CTA band */
.cta { background: var(--deep); color: #C0D7DB; border-radius: var(--r-lg); padding: 3.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(51,115,124,.35), transparent 70%); pointer-events: none; }
.cta h2 { color: #fff; }
.cta p { margin-top: .75rem; }
.cta .btn-row { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 2.25rem; } }

/* ---------- 7. INNER PAGES ---------- */
.page-hero { background: var(--sage); border-bottom: 1px solid var(--line); padding: 4rem 0 3.5rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.page-hero p { font-size: 1.18rem; color: var(--muted); margin-top: 1rem; }

.svc-detail { display: grid; grid-template-columns: 4rem 1fr 15rem; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-detail:first-child { border-top: 1px solid var(--line); }
.svc-detail .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--sage); display: grid; place-items: center; }
.svc-detail .ico svg { width: 26px; height: 26px; stroke: var(--teal-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-detail p { color: var(--muted); margin-top: .5rem; }
.svc-detail ul { margin-top: 1rem; padding-left: 1.2rem; font-size: .97rem; display: grid; gap: .3rem; }
.svc-detail aside { font-size: .92rem; display: grid; gap: .9rem; align-content: start; }
.svc-detail aside div span { display: block; color: var(--muted); font-size: .82rem; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 3.5rem 1fr; } .svc-detail aside { grid-column: 2; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.values div { border-top: 2px solid var(--teal); padding-top: 1.25rem; }
.values p { color: var(--muted); font-size: .97rem; margin-top: .5rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }

/* ---------- 8. FORMS ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form.booking { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 2.25rem; display: grid; gap: 1.2rem; }
form.booking h2 { font-size: 1.7rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(51,115,124,.12); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } form.booking { padding: 1.5rem; } }
.form-error { color: #A3361B; font-weight: 600; font-size: .95rem; }
.form-error:empty { display: none; }
.form-note { font-size: .88rem; color: var(--muted); }
.info-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); padding: 1.75rem; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.info-list { list-style: none; display: grid; gap: 1.1rem; }
.info-list li { display: grid; gap: .1rem; }
.info-list span { font-size: .82rem; color: var(--muted); }
.map { margin-top: 1.25rem; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: repeating-linear-gradient(45deg, #DAE7E9 0 12px, #E6EFF0 12px 24px); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }

/* ---------- 9. FOOTER ---------- */
.site-footer { background: var(--deep); color: #A6C3C7; margin-top: 6rem; padding: 4.5rem 0 2rem; font-size: .95rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-text span { color: #A6C3C7; }
.site-footer p { margin-top: 1rem; }
.site-footer a { color: #DCEAEC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 3.5rem; padding-top: 1.5rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 10. COMPANION (page + pop-up) ---------- */
.companion-layout { display: grid; grid-template-columns: 1fr 20rem; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .companion-layout { grid-template-columns: 1fr; } }
.companion-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: min(80vh, 760px); box-shadow: var(--shadow); }
.companion-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.offline { padding: 2.5rem; display: grid; gap: 1rem; align-content: center; justify-items: center; text-align: center; height: 100%; width: 100%; background: var(--white); }
.offline h3 { font-size: 1.4rem; }
.offline p { color: var(--muted); }
.side-note { display: grid; gap: 1.25rem; }
.side-note .info-card p { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.safety { border-left: 3px solid var(--gold); background: #FFF8EB; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.2rem; font-size: .93rem; }

.chat-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: flex; align-items: center; gap: .6rem; cursor: pointer; background: var(--teal-ink); color: #fff; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; padding: .55rem 1.2rem .55rem .55rem; font: 600 .95rem var(--sans); box-shadow: 0 14px 34px -12px rgba(0,66,74,.7); }
.chat-fab .dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.chat-fab .dot img { width: 26px; height: 26px; }
.chat-fab:hover { background: #002F35; }
.chat-fab[aria-expanded="true"] .label::after { content: ""; }
.chat-teaser { position: fixed; right: 1.25rem; bottom: 5.2rem; z-index: 40; max-width: 290px; background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow); padding: 1rem 2.4rem 1rem 1.1rem; font-size: .95rem; cursor: pointer; animation: rise .35s ease-out; }
.chat-teaser strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: .2rem; }
.chat-teaser .x { position: absolute; top: .4rem; right: .45rem; background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: .2rem .45rem; border-radius: 6px; }
.chat-teaser .x:hover { background: var(--sage); }
.chat-panel { position: fixed; right: 1.25rem; bottom: 5.4rem; z-index: 41; width: min(410px, calc(100vw - 2rem)); height: min(660px, calc(100vh - 7.5rem)); background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(3,47,53,.5); display: flex; flex-direction: column; }
.chat-panel[hidden] { display: none; }
.chat-panel.opening { animation: rise .25s ease-out; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: var(--deep); color: #fff; }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.chat-head .avatar img { width: 26px; height: 26px; }
.chat-head .who { line-height: 1.2; flex: 1; }
.chat-head .who strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.chat-head .who span { font-size: .8rem; color: #A6C3C7; }
.chat-head a, .chat-head .close { color: #DCEAEC; background: none; border: 0; cursor: pointer; border-radius: 8px; display: grid; place-items: center; width: 34px; height: 34px; }
.chat-head a:hover, .chat-head .close:hover { background: rgba(255,255,255,.1); color: #fff; }
.chat-head svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-body { flex: 1; display: flex; min-height: 0; }
.chat-body iframe { flex: 1; width: 100%; border: 0; display: block; }
@media (max-width: 520px) {
  .chat-fab .label { display: none; } .chat-fab { padding: .55rem; }
  .chat-panel { right: .5rem; left: .5rem; width: auto; bottom: 5rem; height: calc(100vh - 6.5rem); }
  .chat-teaser { right: .75rem; left: .75rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero .reveal { opacity: 1; transform: none; }
}

/* ---------- 11. SCROLL REVEALS ---------- */
/* Only when JS runs (html.js), so content is never hidden without it */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s), translate .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js .rv.in { opacity: 1; translate: none; }
.hero-copy { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; translate: none; } .steps li::before { background-size: 100% 2px, 100% 2px; } }

/* ---------- 12. INTERACTIVE MOTION (html.fx = mouse user, motion allowed) ---------- */
/* Concern tags are clickable everywhere */
.tags span { cursor: pointer; transition: background .2s, border-color .2s, color .2s, translate .2s; }
.tags span:hover, .tags span:focus-visible { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; translate: 0 -2px; }
.tags span.picked { animation: pick .6s ease-out; }
@keyframes pick { 40% { scale: 1.12; } }

/* 3D hero hint */
.hero-hint { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; font-size: .85rem; color: #B6D0D4; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: .35rem .85rem; border-radius: 999px; pointer-events: none; opacity: 0; animation: hintIn .8s 2.6s forwards; transition: opacity .4s; white-space: nowrap; }
.hero-hint.used { opacity: 0 !important; animation: none; }
@keyframes hintIn { to { opacity: 1; } }

/* Cursor spotlight on dark sections */
.fx .spot { --mx: -999px; --my: -999px; }
.fx .spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(150,206,212,.13), transparent 60%); }
.fx .site-footer { position: relative; }
.fx .spot > * { position: relative; z-index: 1; }

/* Card tilt + sheen */
.fx .tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s), translate .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.fx .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.55), transparent 55%); mix-blend-mode: soft-light; }
.fx .tilt:hover { box-shadow: 0 22px 44px -22px rgba(14,42,46,.35); z-index: 2; }
.fx .tilt:hover::after { opacity: 1; }
.fx .svc .ico { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s; }
.fx .svc:hover .ico { transform: translateY(-3px) rotate(-6deg); background: #D3E5E8; }

/* Magnetic buttons glide back smoothly */
.fx .magnet { transition: background .15s, border-color .15s, color .15s, transform .3s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* Steps: hovered step stays bright, others soften */
.steps li { transition: opacity .3s; }
.steps:has(li.focus) li:not(.focus) { opacity: .5; }
.steps li.focus h3 { color: var(--teal-ink); }

/* ---------- 13. CONTENT SECTIONS (v2) ---------- */
/* "Talk to your Companion" pill in the nav, right beside Home */
.nav a.nav-companion { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .42rem .95rem; margin: 0 .35rem; background: var(--white); }
.nav a.nav-companion:hover, .nav a.nav-companion[aria-current="page"] { border-color: var(--teal-ink); background: var(--sage); box-shadow: none; border-radius: 999px; }
@media (max-width: 960px) { .nav a.nav-companion { margin: .6rem 0 .2rem; justify-content: center; } }

/* Motto card (home "Why CatchyMinds" + About story) */
.motto { background: var(--deep); color: #DCEAEC; border-radius: var(--r-lg); padding: 2.75rem 2.5rem; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.motto::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(51,115,124,.45), transparent 70%); pointer-events: none; }
.motto img { width: 72px; height: 72px; background: #fff; border-radius: 50%; padding: 4px; }
.motto blockquote { font: 500 clamp(1.7rem, 3vw, 2.3rem)/1.2 var(--serif); color: #fff; margin-top: 1.5rem; max-width: 18ch; position: relative; z-index: 1; }
.motto figcaption { margin-top: 1.25rem; color: var(--gold); font-size: .92rem; font-weight: 500; position: relative; z-index: 1; }

/* Testimonial */
.testimonial { max-width: 860px; margin: 0 auto; text-align: center; }
.testimonial blockquote { font: 400 clamp(1.45rem, 2.6vw, 2rem)/1.35 var(--serif); color: var(--ink); }
.testimonial blockquote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: .6; color: var(--gold); margin-bottom: .6rem; }
.testimonial figcaption { margin-top: 1.5rem; display: grid; gap: .15rem; }
.testimonial figcaption span { color: var(--muted); font-size: .92rem; }

/* Founder qualifications */
.qual-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; margin-top: 1.5rem; }
.qual-list li { padding-left: 1.5rem; position: relative; font-size: .97rem; }
.qual-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: .85rem; height: .5rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 560px) { .qual-list { grid-template-columns: 1fr; } }

/* Counselling: the dedicated, highlighted block on Services */
.counsel-band { position: relative; background: radial-gradient(900px 500px at 85% 0%, #0E5560 0%, transparent 60%), linear-gradient(160deg, var(--deep), var(--deep-2)); color: #C0D7DB; scroll-margin-top: 90px; overflow: hidden; }
.counsel-band h2 { color: #fff; }
.counsel-band .section-head p { color: #C0D7DB; }
.counsel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.counsel-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 1.5rem 1.4rem; }
.counsel-card h3 { color: #fff; font-size: 1.25rem; }
.counsel-card p { margin-top: .5rem; font-size: .96rem; color: #C0D7DB; }
@media (max-width: 900px) { .counsel-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .counsel-grid { grid-template-columns: 1fr; } }

/* Homeschooling + Open schooling on one page */
.school-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; scroll-margin-top: 90px; }
.school-intro, .school-open { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.25rem; display: grid; gap: 1rem; align-content: start; justify-items: start; }
.school-open { scroll-margin-top: 100px; }
.school-intro ul { padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .97rem; }
.school-intro p, .school-open > p { color: var(--muted); }
.ico-lg .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--sage); display: grid; place-items: center; }
.ico-lg .ico svg { width: 26px; height: 26px; stroke: var(--teal-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; width: 100%; margin: .5rem 0 .75rem; }
.level { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; background: var(--surface); }
.level-badge { display: inline-block; font: 600 .8rem var(--sans); color: #fff; background: var(--teal-ink); border-radius: 6px; padding: .2rem .55rem; }
.level h3 { font-size: 1.2rem; margin-top: .7rem; }
.level p { color: var(--muted); font-size: .93rem; margin-top: .35rem; }
@media (max-width: 960px) { .school-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } .school-intro, .school-open { padding: 1.5rem; } }

/* ---------- 14. Skill Swap ---------- */
#skill-swap { scroll-margin-top: 90px; }
.swap-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.swap-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.25rem; display: grid; gap: 1rem; align-content: start; justify-items: start; }
.swap-card > p { color: var(--muted); }
/* example pairs: the arrow icon gently rocks, so the idea of "swapping" is visible at a glance */
.swap-pairs { list-style: none; padding: 0; display: grid; gap: .6rem; width: 100%; }
.swap-pairs li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.swap-pairs span { background: var(--sage); border-radius: 999px; padding: .45rem .9rem; text-align: center; font-weight: 500; color: var(--teal-ink); }
.swap-pairs b .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-ink); display: flex; align-items: center; justify-content: center; }
.swap-pairs b svg { flex: none; width: 18px; min-width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .swap-pairs b .ico { animation: swap-rock 3.2s ease-in-out infinite; }
  .swap-pairs li:nth-child(2) b .ico { animation-delay: .4s; }
  .swap-pairs li:nth-child(3) b .ico { animation-delay: .8s; }
  .swap-pairs li:nth-child(4) b .ico { animation-delay: 1.2s; }
}
@keyframes swap-rock { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(180deg); } }
.swap-steps { list-style: none; padding: 0; display: grid; gap: 1rem; width: 100%; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: .25rem; }
.swap-steps li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.swap-steps .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal-ink); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.swap-steps h4 { font: 600 1rem var(--sans); color: var(--ink); }
.swap-steps p { color: var(--muted); font-size: .93rem; }
.swap-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0; }
.swap-tags span { font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .85rem; }
.swap-facts { display: grid; gap: .8rem; width: 100%; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.swap-facts dt { font-size: .85rem; color: var(--muted); }
.swap-facts dd { margin: 0; font-weight: 500; color: var(--ink); }
@media (max-width: 960px) { .swap-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .swap-card { padding: 1.5rem; } }

/* ---------- 15. Distance learning (inside the homeschooling section) ---------- */
.distance { margin-top: 2rem; background: var(--deep); color: #fff; border-radius: var(--r-lg); padding: 2.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center; scroll-margin-top: 100px; }
.distance h2 { color: #fff; }
.distance p { color: rgba(255,255,255,.8); margin-top: .5rem; max-width: 60ch; }
.distance .ico-lg .ico { background: rgba(255,255,255,.1); }
.distance .ico-lg .ico svg { stroke: #fff; }
.distance-points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.distance-points li { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; }
.distance-cta { display: grid; gap: .6rem; }
.distance .btn { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.distance .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.distance .btn.ghost:hover { background: rgba(255,255,255,.1); }
@media (max-width: 960px) { .distance { grid-template-columns: 1fr; justify-items: start; } .distance-cta { grid-auto-flow: column; } }
@media (max-width: 520px) { .distance { padding: 1.5rem; } .distance-cta { grid-auto-flow: row; } }
#faq { scroll-margin-top: 90px; }

/* ---------- 16. Google reviews ---------- */
.reviews-band { background: var(--sage); }
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.reviews-head p { color: var(--muted); margin-top: .5rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--gold); }
.g-badge { display: grid; grid-template-columns: auto auto; column-gap: .6rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: .8rem 1.1rem; text-decoration: none; color: var(--ink); }
.g-badge strong { grid-row: span 2; font: 500 2.2rem/1 var(--serif); color: var(--teal-ink); }
.g-badge > span:last-child { font-size: .85rem; color: var(--muted); }
/* a sideways-scrolling row: each card snaps into place, so it works with a finger on phones and a trackpad on laptops */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; }
.review { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; display: grid; gap: .9rem; align-content: start; margin: 0; }
.review blockquote { margin: 0; color: var(--ink); line-height: 1.6; }
.review figcaption { font-size: .85rem; color: var(--muted); }
@media (min-width: 1100px) { .reviews { grid-auto-columns: calc((100% - 2.2rem) / 3); } }
