/* ==========================================================================
   Calm: ROOTED template, shown with the Rooted Therapy demo persona.
   Headline: Newsreader. Body: Nunito. Labels: Jost.
   ========================================================================== */

:root {
  --navy: #0b314a;           /* text, buttons, footer */
  --navy-soft: rgba(11, 49, 74, 0.5);
  --mint: #d6eae8;           /* hero + lifespan section */
  --aqua: #a7d6d3;           /* CTA band */
  --teal: #00586d;           /* founder + newsletter */
  --teal-bright: #19b2aa;    /* secondary button, accents */
  --teal-blob: #5fb4ad;      /* hero shapes */
  --cream: #f7f6f2;          /* light sections */
  --sand: #f0ece1;           /* cards, blobs */
  --white: #ffffff;

  --serif: "Newsreader", "Freight Display Pro", Georgia, serif;
  --sans: "Nunito", "Circe Rounded", "Helvetica Neue", Arial, sans-serif;
  --label: "Jost", "Zen New", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 3.5vw, 40px);
  --max: 1240px;
  --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0;
  font-optical-sizing: auto;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

.center { text-align: center; }

.label {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 34px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: color-mix(in srgb, var(--navy) 86%, #fff); }
.btn--teal { background: var(--teal-bright); }
.btn--teal:hover { background: color-mix(in srgb, var(--teal-bright) 84%, #000); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }

/* Header ------------------------------------------------------------------ */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(11, 49, 74, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo svg { width: 50px; height: 50px; flex-shrink: 0; color: var(--teal-bright); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--label);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--navy) 55%, #fff);
}
.logo-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--teal-bright);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

/* Decorative shapes -------------------------------------------------------- */

.deco { position: absolute; pointer-events: none; }

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--mint);
  overflow: hidden;
  min-height: 650px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px 0;
}
.hero .wrap { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); }
.hero p { font-size: 19px; margin: 26px 0 40px; }

.hero .deco-left { left: 0; top: 0; height: 100%; width: auto; }
.hero .deco-right { right: 0; top: 0; height: 100%; width: auto; }

/* Founder ----------------------------------------------------------------- */

.founder {
  position: relative;
  background: var(--teal);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0;
}
.founder .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.founder-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 0.98;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder h2 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 30px; }
.founder p { margin: 0 0 18px; font-size: 17px; }
.founder .deco-lines { left: 0; bottom: 0; width: 520px; opacity: 0.35; }

/* How we can help (carousel) ---------------------------------------------- */

.help {
  background: var(--cream);
  padding: 100px 0 90px;
}
.help h2 { font-size: clamp(34px, 3.6vw, 46px); }
.help .intro { max-width: 680px; margin: 22px auto 0; }

.carousel {
  position: relative;
  margin-top: 56px;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0;
  list-style: none;
  margin: 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 40px 36px 44px;
  text-align: center;
}
.card svg { width: 26px; height: 16px; margin: 0 auto 16px; display: block; }
.card h3 { font-size: 27px; margin-bottom: 18px; }
.card p { font-size: 15px; margin: 0; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(11, 49, 74, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel-btn.prev { left: -23px; }
.carousel-btn.next { right: -23px; }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

.help .cta { margin-top: 56px; }

/* Lifespan accordion ------------------------------------------------------ */

.lifespan {
  position: relative;
  background: var(--mint);
  overflow: hidden;
  padding: 100px 0;
}
.lifespan .wrap { position: relative; z-index: 2; }
.lifespan h2 { font-size: clamp(34px, 3.6vw, 46px); }
.lifespan .intro { margin: 22px 0 50px; }
.lifespan .deco-contour { top: -40px; left: 50%; transform: translateX(-50%); width: 1500px; opacity: 0.55; }

.stages {
  display: flex;
  border: 1px solid var(--navy-soft);
  border-radius: 2px;
  min-height: 520px;
}
.stage {
  display: flex;
  border-left: 1px solid var(--navy-soft);
  flex: 0 0 58px;
  transition: flex 0.5s ease;
  overflow: hidden;
}
.stage:first-child { border-left: 0; }
.stage.active { flex: 1 1 auto; }

.stage-tab {
  flex: 0 0 58px;
  background: none;
  border: 0;
  padding: 20px 0;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 17px;
}
.stage-tab span {
  writing-mode: vertical-rl;
  white-space: nowrap;
}
.stage-tab svg { transition: transform 0.4s ease; }
.stage.active .stage-tab svg { transform: rotate(90deg); }
.stage-tab:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: -4px; }

.stage-panel {
  padding: 26px 40px 40px 10px;
  min-width: 560px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.stage.active .stage-panel { opacity: 1; transition-delay: 0.2s; }
.stage-panel .label { margin: 0 0 10px; }
.stage-panel h3 { font-size: clamp(34px, 3.4vw, 44px); margin-bottom: 26px; }
.stage-panel p { margin: 0 0 24px; max-width: 780px; }
.stage-panel h4 {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 620px;
}
.tags li span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy-soft);
  border-radius: var(--radius);
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}

/* Pricing split ------------------------------------------------------------ */

.pricing {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.pricing-text {
  padding: 90px var(--gutter) 90px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.pricing h2 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 28px; }
.pricing p { margin: 0 0 40px; max-width: 460px; }

/* Duotone photo: greyscale image tinted with the teal palette */
.duotone {
  position: relative;
  overflow: hidden;
  background: var(--teal);
}
.duotone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.1);
  mix-blend-mode: luminosity;
  opacity: 0.9;
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(167, 214, 211, 0.25), rgba(11, 49, 74, 0.35));
  mix-blend-mode: multiply;
}

/* CTA band ---------------------------------------------------------------- */

.cta-band {
  position: relative;
  background: var(--aqua);
  overflow: hidden;
  padding: 110px 0;
  text-align: center;
}
.cta-band .wrap { position: relative; z-index: 2; max-width: 760px; }
.cta-band h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 36px; }
.cta-band .deco-left { left: 0; top: 0; height: 100%; width: auto; }
.cta-band .deco-right { right: 0; top: 0; height: 100%; width: auto; }

/* Newsletter -------------------------------------------------------------- */

.newsletter {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 80px 0 90px;
}
.newsletter h2 { font-size: 36px; }
.newsletter p { max-width: 620px; margin: 18px auto 36px; font-size: 16px; }
.newsletter form {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.newsletter input {
  width: 320px;
  max-width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy);
}
.newsletter input:focus { outline: 2px solid var(--teal-bright); }
.newsletter .btn { min-height: 60px; min-width: 76px; padding: 0 24px; background: var(--teal-bright); }

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 40px;
  font-size: 15px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
}
.site-footer .logo-name { color: #c9d6db; }
.site-footer h3 {
  font-family: var(--label);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 4px; }
.footer-links a { text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.social { display: flex; gap: 10px; margin-top: 60px; }
.social a {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.social svg { width: 15px; height: 15px; }

.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin-top: 50px;
  padding-top: 40px;
}
.locations address { font-style: normal; line-height: 1.7; opacity: 0.9; }
.locations p { margin: 14px 0 0; opacity: 0.9; }
.locations a { text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
  font-size: 13px;
  opacity: 0.85;
}
.footer-bottom a { text-underline-offset: 3px; }

/* Rooted Therapy additions ---------------------------------------------- */

.hero-label { margin: 0 0 18px; color: var(--teal); font-size: 13px !important; }
.founder .label { margin: 0 0 14px; opacity: 0.8; }
.founder h2 { margin-bottom: 26px; }
.creds { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid rgba(255,255,255,0.3); }
.creds li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.3); font-family: var(--label); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }

.stages { min-height: 440px; }

.fees { margin: 0 0 30px; width: 100%; max-width: 460px; border-top: 1px solid var(--navy-soft); }
.fees div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--navy-soft); }
.fees dt { font-weight: 400; }
.fees dd { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1; }
.fees small { font-family: var(--sans); font-size: 14px; opacity: 0.7; }
.pricing p { margin-bottom: 36px; }

.faq { background: var(--white); padding: 100px 0; }
.faq .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq h2 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 20px; }
.faq-head p { margin: 0 0 32px; }
.faq .badge, .footer-badge { width: 200px; height: auto; background: #fff; padding: 10px 16px; border-radius: 6px; }
.faq .badge { border: 1px solid #e3e8ea; }
.footer-badge { margin-top: 32px; }
.faq-list details { border-bottom: 1px solid var(--navy-soft); }
.faq-list details:first-child { border-top: 1px solid var(--navy-soft); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: 23px; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 26px; color: var(--teal-bright); transition: transform 0.3s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0 0 26px; max-width: 620px; }
.faq-list summary:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 4px; }

.cta-band blockquote { margin: 0 0 40px; }
.cta-band blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; margin: 0 0 20px; }
.cta-band cite { font-family: var(--label); font-style: normal; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.site-footer address { font-style: normal; line-height: 1.7; opacity: 0.9; }
.site-footer .footer-top p { margin: 14px 0 0; opacity: 0.9; }
.site-footer .footer-top p a { text-decoration: none; }

@media (max-width: 800px) {
  .faq { padding: 70px 0; }
  .faq .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Reveal on scroll -------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage, .stage-panel { transition: none; }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 14px 24px rgba(11, 49, 74, 0.1);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid #edf1f2; font-size: 17px; }
  .nav .btn { margin-top: 18px; }

  .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .carousel-btn.prev { left: -10px; }
  .carousel-btn.next { right: -10px; }

  /* Stages become a vertical accordion */
  .stages { flex-direction: column; min-height: 0; }
  .stage { flex: none; flex-direction: column; border-left: 0; border-top: 1px solid var(--navy-soft); }
  .stage:first-child { border-top: 0; }
  .stage-tab { flex: none; flex-direction: row; padding: 18px 20px; font-size: 18px; }
  .stage-tab span { writing-mode: horizontal-tb; }
  .stage-panel { display: none; min-width: 0; padding: 0 20px 30px; opacity: 1; }
  .stage.active .stage-panel { display: block; }
  .stage-panel h3 { display: none; }
}

@media (max-width: 800px) {
  /* Shapes drop into a band beneath the text so they never sit behind it */
  .hero { min-height: 0; padding: 64px 0 210px; }
  .cta-band { padding-bottom: 190px; }
  .hero .deco-left, .hero .deco-right,
  .cta-band .deco-left, .cta-band .deco-right { height: 200px; top: auto; bottom: 0; }

  .founder { padding: 70px 0; }
  .founder .wrap { grid-template-columns: 1fr; gap: 44px; }

  .help { padding: 70px 0; }
  .carousel-track { grid-auto-columns: 86%; }
  .carousel-btn { display: none; }

  .lifespan { padding: 70px 0; }

  .pricing { grid-template-columns: 1fr; }
  .pricing-text { padding: 70px var(--gutter); }
  .pricing .duotone { height: 340px; }

  .cta-band { padding-top: 80px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .social { margin-top: 28px; }
  .locations { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .logo svg { width: 42px; height: 42px; }
  .fees div { flex-wrap: wrap; }
  .logo-name { font-size: 17px; }
  .logo-sub { font-size: 15px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Accreditation bar (about section) */
.accred {
  margin: 28px 0; padding: 16px 22px 18px; background: #fff;
  border-radius: var(--accred-radius, 14px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
  max-width: 460px; text-align: left;
}
.accred p.accred-label {
  margin: 0 0 10px; padding: 0; font-family: inherit; font-size: 0.72rem; line-height: 1.4; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5b5d5f; font-weight: 500;
}
.accred ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.accred li { margin: 0; padding: 0; border: 0; background: none; }
.accred li::before { content: none; }
.accred img {
  display: block; width: auto; max-width: none; position: static; aspect-ratio: auto;
  border-radius: 0; box-shadow: none; filter: none; object-fit: contain; margin: 0;
}
.accred-ncps { height: 40px; }
.accred-bacp { height: 30px; }
.accred-ukcp { height: 42px; }
@media (max-width: 420px) {
  .accred ul { gap: 18px; }
  .accred-ncps { height: 34px; }
  .accred-bacp { height: 25px; }
  .accred-ukcp { height: 36px; }
}

/* === Colour schemes === */
/* Picked from the demo bar. Each scheme only swaps the colour variables. */
:root[data-scheme="lavender-indigo"] {
  --navy: #2e2550; --navy-soft: rgba(46, 37, 80, 0.5); --mint: #e9e4f4; --aqua: #cbc1e8;
  --teal: #4b3d7a; --teal-bright: #7d66c0; --teal-blob: #a796d6; --cream: #f8f7fa; --sand: #f1ece4;
}
:root[data-scheme="blush-wine"] {
  --navy: #4a2230; --navy-soft: rgba(74, 34, 48, 0.5); --mint: #f7e6e1; --aqua: #f0c6bc;
  --teal: #8a3d4e; --teal-bright: #cf6455; --teal-blob: #eba596; --cream: #fbf7f4; --sand: #f3ebe1;
}
:root[data-scheme="mint-forest"] {
  --navy: #1f3d2b; --navy-soft: rgba(31, 61, 43, 0.5); --mint: #e4efdd; --aqua: #c1ddb0;
  --teal: #2f6a45; --teal-bright: #4f9b4a; --teal-blob: #8cc47c; --cream: #f8f8f2; --sand: #f1ece0;
}
/* === /Colour schemes === */
