/* ==========================================================================
   Alison Tallentire | Dyscalculia Services
   Plain CSS, no build step. Colours and type sizes are set once in :root.
   ========================================================================== */

/* Atkinson Hyperlegible Next (SIL Open Font License, see assets/fonts/OFL.txt).
   Chosen for clearly distinguished letters and numerals. This copy is modified
   so that zero is drawn without its slash; nothing else is changed. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/atkinson-hyperlegible-next-plainzero-latin-wght.woff2") format("woff2");
}

:root {
  /* Colour */
  --emerald: #134b46;
  --emerald-deep: #0e3b37;
  --teal: #298075;          /* rules, ticks and other non-text detail */
  --teal-text: #1f6b62;     /* links and small text on light backgrounds (AA) */
  --sage: #e6ede7;
  --paper: #f9f7f1;
  --ink: #26332f;
  --ink-soft: #4a5a55;
  --line: #cbd6cf;
  --on-dark: #f9f7f1;
  --on-dark-soft: #c9e4da;

  /* Type */
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 1rem;                                   /* 16px */
  --text-base: 1.125rem;                             /* 18px body */
  --text-md: 1.3125rem;                              /* 21px */
  --text-lg: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --text-xl: clamp(2rem, 1.55rem + 1.8vw, 2.875rem); /* h2 */
  --text-display: clamp(2.375rem, 1.65rem + 3.3vw, 4rem); /* h1 */

  /* Space and layout */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --measure: 38rem;
  --radius: 6px;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--emerald);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
}

h3 { font-size: var(--text-md); }

p, ul, ol, dl, dd, figure { margin: 0; }

p, li { text-wrap: pretty; }

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--teal-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--emerald); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Vertical rhythm for stacked text */
.flow > * + * { margin-top: 1em; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink);
}

.small { font-size: var(--text-sm); color: var(--ink-soft); }

.minor-heading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.list {
  padding-left: 0;
  list-style: none;
}

.list > li {
  position: relative;
  padding-left: 1.5rem;
}

.list > li + li { margin-top: 0.5em; }

/* A short horizontal tick, echoing the number line used in "How assessment works" */
.list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.75rem;
  height: 2px;
  background: var(--teal);
}

.link-list { padding: 0; list-style: none; }
.link-list li + li { margin-top: 0.4em; }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--emerald);
  color: var(--on-dark);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus { top: 1rem; outline-color: var(--emerald-deep); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--emerald);
  border-radius: var(--radius);
  background: var(--emerald);
  color: var(--on-dark);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: var(--on-dark);
}

.button--secondary {
  background: transparent;
  color: var(--emerald);
}

.button--secondary:hover {
  background: var(--sage);
  color: var(--emerald-deep);
  border-color: var(--emerald-deep);
}

.button--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--text-sm);
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.625rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--emerald);
  text-decoration: none;
  line-height: 1.1;
}

.brand:hover { color: var(--emerald); }

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-descriptor {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--teal-text);
  letter-spacing: 0.01em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a:not(.button) {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:not(.button):hover {
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.nav-toggle { display: none; }

/* Without JavaScript, small screens show the links as a wrapped row
   beneath the name. With JavaScript, they collapse behind a Menu button. */
@media (max-width: 57.99em) {
  .no-js .site-nav { width: 100%; padding-bottom: 0.25rem; }
  .no-js .nav-list { gap: 0 1.1rem; font-size: var(--text-sm); }
  .no-js .nav-cta .button {
    min-height: 0;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: inherit;
    font-weight: 500;
  }
  .no-js { scroll-padding-top: 8rem; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 2px solid var(--emerald);
    border-radius: var(--radius);
    background: transparent;
    color: var(--emerald);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
  }

  .nav-toggle-icon {
    position: relative;
    display: inline-block;
    width: 1.1rem;
    height: 0.8rem;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .nav-toggle-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }

  .nav-toggle-icon::before { top: 0; }
  .nav-toggle-icon span { top: calc(50% - 1px); }
  .nav-toggle-icon::after { bottom: 0; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: calc(50% - 1px); transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { bottom: calc(50% - 1px); transform: rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgba(19, 75, 70, 0.25);
  }

  .js .site-nav.is-open { display: block; }

  .js .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 75rem;
    margin-inline: auto;
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .js .nav-list li + li { border-top: 1px solid var(--line); }
  .js .nav-list a:not(.button) { display: block; padding-block: 0.85rem; font-size: var(--text-md); }
  .js .nav-list .nav-cta { border-top: 0; padding-top: 1rem; }
  .js .nav-list .nav-cta .button { width: 100%; min-height: 3rem; font-size: var(--text-base); }
}

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

.hero {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(1rem, 3vw, 2.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "lede"
    "actions"
    "portrait"
    "intro"
    "creds";
  row-gap: 1.5rem;
}

.hero-title {
  grid-area: title;
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  max-width: 12ch;
}

.hero-lede {
  grid-area: lede;
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-portrait {
  grid-area: portrait;
  position: relative;
  margin-top: 0.75rem;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius);
  background: var(--sage);
}

.hero-portrait figcaption {
  padding-top: 0.6rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--emerald);
}

.hero-intro {
  grid-area: intro;
  max-width: var(--measure);
}

.hero-intro > * + * { margin-top: 0.75em; }

.hero-related { color: var(--ink-soft); }

@media (max-width: 29.99em) {
  .hero-actions .button { width: 100%; }
}

/* Key credentials and memberships, directly under the introduction */
.credentials-band {
  grid-area: creds;
  display: grid;
  gap: 1.75rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.key-creds {
  display: grid;
  gap: 1.1rem;
  align-items: baseline;
}

.key-cred dt {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
  color: var(--emerald);
}

.key-cred--lead dt {
  font-size: var(--text-lg);
}

.key-cred dd {
  margin-top: 0.2rem;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink-soft);
}

.memberships-label {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.member-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1.5rem, 3vw, 2.5rem);
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

/* Heights are set per logo so the three marks carry similar visual weight */
.member-logos img {
  width: auto;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.35s ease;
}

.member-logos .logo-patoss { height: 2.9rem; }
.member-logos .logo-bda { height: 3.25rem; }
.member-logos .logo-guild { height: 4.1rem; }

.member-logos li:hover img {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .member-logos img { transition: none; }
}

@media (min-width: 48em) {
  .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas:
      "title   portrait"
      "lede    portrait"
      "intro   portrait"
      "actions portrait"
      "creds   creds";
    column-gap: clamp(2rem, 4.5vw, 4.5rem);
    row-gap: 1.75rem;
  }

  .hero-actions { align-self: start; padding-top: 0.25rem; }

  .hero-portrait { align-self: start; margin-top: 0; }

  .hero-portrait img {
    aspect-ratio: 3 / 4;
    object-position: 50% 0;
  }

  /* A block of deep emerald behind the portrait, picking up the colour of the blouse.
     The caption sits on it. */
  .hero-portrait::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 12% -999rem 0 18%;
    background: var(--emerald);
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .hero-portrait figcaption {
    padding: 0.9rem 0 1rem calc(18% + 1.25rem);
    color: var(--on-dark);
  }

  .hero { position: relative; overflow: hidden; isolation: isolate; }

  .credentials-band {
    margin-top: 1.75rem;
  }
}

@media (min-width: 60em) {
  .credentials-band {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    column-gap: clamp(2rem, 4.5vw, 4.5rem);
    align-items: start;
  }

  .key-creds {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 2rem;
  }

  .memberships {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--line);
  }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

.section--sage { background: var(--sage); }

.section--rule .container > :first-child {
  border-top: 1px solid var(--line);
  padding-top: var(--section);
}
.section--rule { padding-top: 0; }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-intro {
  max-width: var(--measure);
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 60em) {
  .section-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
  }
  .section-head .section-intro { padding-bottom: 0.3rem; }
}

/* Heading on the left, content on the right */
.split {
  display: grid;
  gap: 1.5rem 0;
}

@media (min-width: 60em) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .split-heading { align-self: start; }
}

.split-body { max-width: 44rem; }

/* ---------- Understanding dyscalculia ---------- */

.understanding .split-heading { max-width: 10ch; }

.aside {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--sage);
  border-radius: var(--radius);
}

.aside-title {
  font-size: var(--text-lg);
  margin-bottom: 1.25rem;
  max-width: 24ch;
}

.aside-cols {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52em) {
  .aside-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

/* ---------- Services ---------- */

.service-title--large {
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  letter-spacing: -0.01em;
}

.service-for {
  color: var(--teal-text);
  font-weight: 700;
}

.service-primary {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 4px solid var(--emerald);
}

.service-primary-intro .service-for { margin-top: 0.35em; }

.service-primary-detail {
  display: grid;
  gap: 2rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 700;
}

@media (min-width: 60em) {
  .service-primary {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .service-primary-detail {
    padding-left: clamp(2rem, 4vw, 3rem);
    border-left: 1px solid var(--line);
  }
}

.service-secondary {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.service {
  padding-top: 1.5rem;
  border-top: 1px solid var(--teal);
}

.service .minor-heading { margin-top: 1.5em; }

@media (min-width: 52em) {
  .service-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
  }
}

/* ---------- Process: a number line ---------- */

.steps {
  --tick: var(--teal);
  --num-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem);
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step-number {
  display: block;
  font-size: var(--num-size);
  font-weight: 700;
  line-height: 1;
  color: var(--emerald);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
}

.step-title {
  font-size: var(--text-md);
  margin-bottom: 0.5rem;
}

.step p { max-width: 34ch; }

/* Small screens: a vertical number line down the left */
@media (max-width: 51.99em) {
  .steps { gap: 0; }

  .step {
    padding: 0 0 2.5rem 4.75rem;
  }

  .step:last-child { padding-bottom: 0; }

  .step-number {
    position: absolute;
    left: 0;
    top: -0.05em;
    width: 2.6rem;
    font-size: 2.5rem;
    text-align: right;
  }

  /* the line */
  .step::before {
    content: "";
    position: absolute;
    left: 3.35rem;
    top: 0.2rem;
    bottom: -0.2rem;
    width: 2px;
    background: var(--tick);
  }

  .step:last-child::before { bottom: auto; height: 2.5rem; }

  /* the major tick at each whole number */
  .step::after {
    content: "";
    position: absolute;
    left: 2.85rem;
    top: 1.05rem;
    width: 1.1rem;
    height: 2px;
    background: var(--tick);
  }

  .step-title { padding-top: 0.45rem; }
}

/* Wider screens: a horizontal number line with tenths marked between steps */
@media (min-width: 52em) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step {
    padding-right: clamp(1rem, 2.5vw, 2.5rem);
  }

  .step-number { margin-bottom: 1.75rem; }

  .step::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--num-size) + 0.35rem);
    height: 1.25rem;
    background:
      /* main line */
      linear-gradient(var(--tick), var(--tick)) 0 50% / 100% 2px no-repeat,
      /* whole-number tick */
      linear-gradient(var(--tick), var(--tick)) 0 0 / 2px 100% no-repeat,
      /* tenths */
      repeating-linear-gradient(to right,
        transparent 0 calc(10% - 1px),
        rgba(41, 128, 117, 0.55) calc(10% - 1px) 10%) 0 50% / 100% 0.55rem no-repeat;
  }

  /* arrowhead: the line carries on */
  .step:last-child::after {
    content: "";
    position: absolute;
    right: 0.1rem;
    top: calc(var(--num-size) + 0.35rem + 0.625rem - 0.4rem);
    width: 0.8rem;
    height: 0.8rem;
    border-top: 2px solid var(--tick);
    border-right: 2px solid var(--tick);
    transform: rotate(45deg);
  }

  .step:last-child::before { right: 0; }
}

.note {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.note-title { font-size: var(--text-lg); }

@media (min-width: 60em) {
  .note {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .note-body { max-width: 44rem; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-areas: "heading" "bio" "creds";
  gap: 1.5rem 0;
}

.about-heading { grid-area: heading; }
.about-bio { grid-area: bio; max-width: 44rem; }

.credentials {
  grid-area: creds;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--sage);
  border-radius: var(--radius);
}

.cred-groups {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 40em) and (max-width: 59.99em) {
  .cred-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}

@media (min-width: 60em) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "heading bio"
      "creds   creds";
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .about-heading { max-width: 8ch; }
  .credentials {
    margin-top: 2.5rem;
    padding: 1.75rem 2rem 2rem;
  }
  .cred-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

/* Long right-hand columns: keep the section heading in view on wide screens */
@media (min-width: 60em) and (min-height: 40em) {
  .fees .split-heading,
  .faqs .split-heading {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

.cred-group dt {
  margin-bottom: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--teal-text);
}

.cred-group dd { line-height: 1.45; }
.cred-group dd + dd { margin-top: 0.35rem; }

/* ---------- Assessment options and fees ---------- */

.fees .split-heading > * + * { margin-top: 1rem; }

.option-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--emerald);
}

.option {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.option-name {
  font-size: var(--text-md);
  margin-bottom: 0.35rem;
}

.option p { max-width: 38rem; }

.option a { font-weight: 700; }

.fee-panel {
  margin-top: 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 4px solid var(--emerald);
}

.fee-panel-title { font-size: var(--text-lg); }

.fee-panel .button { margin-top: 0.25rem; }

.other-services {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 38rem;
}

.other-services .minor-heading { font-size: var(--text-sm); }

/* ---------- FAQs ---------- */

.faq-list {
  border-top: 2px solid var(--emerald);
}

.faq {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 0;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.35;
  color: var(--emerald);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

/* plus / minus marker */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 1.15rem;
  width: 1.1rem;
  height: 2px;
  margin-top: 0.8rem;
  background: var(--teal);
  transition: transform 0.2s ease;
}

.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }

.faq summary:hover { color: var(--emerald-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.faq summary:focus-visible { outline-offset: 4px; }

.faq-answer {
  padding: 0 0 1.5rem;
  max-width: 40rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::before,
  .faq summary::after { transition: none; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--emerald);
  color: var(--on-dark);
}

.contact h2,
.contact h3 { color: var(--on-dark); }

.contact a { color: var(--on-dark); }
.contact a:hover { color: #fff; }
.contact :focus-visible { outline-color: var(--on-dark); }
.contact .list > li::before { background: var(--on-dark-soft); }

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-main h2 { max-width: 14ch; }

.contact-lede {
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.contact-methods {
  display: grid;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.contact-method dt {
  font-size: var(--text-sm);
  color: var(--on-dark-soft);
}

.contact-method dd {
  margin-top: 0.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-email { font-size: clamp(1.5rem, 1.05rem + 2.1vw, 2.5rem); }
.contact-phone {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  font-variant-numeric: lining-nums tabular-nums;
}

.contact-method a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.contact-method a:hover { text-decoration-thickness: 3px; }

.contact-small,
.contact-detail p { color: var(--on-dark-soft); }

.contact-small { font-size: var(--text-sm); }

.contact-detail {
  display: grid;
  gap: 2rem;
  align-content: start;
}

.contact .minor-heading { color: var(--on-dark); }

@media (min-width: 60em) {
  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 6vw, 6rem);
  }
  .contact-detail {
    padding-left: clamp(2rem, 4vw, 3rem);
    border-left: 1px solid rgba(201, 228, 218, 0.35);
  }
}

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

.site-footer {
  padding-block: 2.5rem;
  background: var(--emerald-deep);
  color: var(--on-dark-soft);
  font-size: var(--text-sm);
}

.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--on-dark); }

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand .brand-name { color: var(--on-dark); font-size: 1.125rem; }
.footer-brand .brand-descriptor { color: var(--on-dark-soft); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 60em) {
  .footer-grid {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 3rem;
  }
  .footer-links { justify-content: flex-end; }
  .footer-legal {
    grid-column: 1 / -1;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201, 228, 218, 0.25);
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .skip-link, .hero-actions, .hero-portrait::before { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .hero { padding-block: 1.5rem; }
  .section--sage, .contact, .site-footer, .aside, .service-primary, .fee-panel, .credentials { background: none; color: #000; }
  .contact h2, .contact h3, .contact a, .contact-small, .contact-detail p, .contact-method dt, .site-footer a { color: #000; }
  .member-logos img { filter: none; }
  details.faq > .faq-answer { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

.footer-legal { display: grid; gap: 0.35rem; }

@media (min-width: 40em) {
  .footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
}
