:root {
  --orange: #dd5b1f;
  --orange-dark: #b94818;
  --gold: #e7ad22;
  --ink: #292724;
  --cream: #fbf3e7;
  --paper: #fcfaf5;
  --sage: #edf1e8;
  --sage-line: #dfe6d9;
  --line: #e8e0d5;
  --muted: #6c6862;
  --soft-shadow: 0 18px 55px rgba(54, 43, 31, 0.08);
}

html {
  background: var(--paper);
}

body {
  background: #fff;
  color: var(--ink);
}

header {
  min-height: 92px;
  padding-inline: clamp(24px, 5vw, 80px);
  border-color: rgba(79, 62, 43, 0.1);
  background: rgba(255, 253, 249, 0.94);
}

header nav {
  gap: clamp(18px, 2.2vw, 34px);
}

header nav a {
  position: relative;
  padding-block: 13px;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 7px;
  height: 1.5px;
  background: var(--orange);
  transition: right 180ms ease;
}

header nav a:hover::after,
header nav a:focus-visible::after {
  right: 0;
}

.button {
  border-radius: 8px;
  min-height: 48px;
  letter-spacing: 0;
  box-shadow: none;
}

.primary {
  background: var(--orange);
}

.button:hover {
  box-shadow: 0 12px 26px rgba(183, 72, 24, 0.18);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 19px;
  height: 1.5px;
  position: absolute;
  left: 12px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle::before {
  top: 14px;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle::after {
  top: 28px;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

main:has(> .hero) .hero {
  min-height: 640px;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  gap: clamp(40px, 5vw, 86px);
  padding: clamp(58px, 7vh, 92px) clamp(24px, 5vw, 80px) 72px;
  background:
    radial-gradient(circle at 10% 8%, rgba(231, 173, 34, 0.08), transparent 24%),
    #fff;
}

main:has(> .hero) .hero-copy {
  max-width: 680px;
}

main:has(> .hero) .hero h1 {
  max-width: 660px;
  margin: 18px 0 27px;
  font-size: clamp(58px, 5.8vw, 88px);
  line-height: 0.94 !important;
}

main:has(> .hero) .hero-copy > p {
  max-width: 560px;
  margin-block: 27px 31px;
  color: #514c46;
}

main:has(> .hero) .hero-visual {
  min-height: 548px;
  border-radius: 18px 18px 58px 18px;
  box-shadow: var(--soft-shadow);
}

main:has(> .hero) .hero-visual::after {
  background: linear-gradient(90deg, rgba(255,255,255,.08), transparent 40%);
}

main:has(> .hero) .hero-visual-note {
  left: 28px;
  bottom: 27px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 9px;
  box-shadow: 0 14px 36px rgba(43, 35, 28, 0.13);
}

main:has(> .hero) .pathways {
  padding-block: 78px 88px;
  background: var(--paper);
}

main:has(> .hero) .pathway-grid article {
  min-height: 280px;
  padding: 39px 42px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(56, 44, 32, 0.035);
}

main:has(> .hero) .pathway-grid h3 {
  font-size: 32px;
}

main:has(> .hero) .screening-invite {
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

main:has(> .hero) .services {
  padding-block: 96px 84px;
}

main:has(> .hero) .service-grid {
  gap: 20px;
  max-width: 1380px;
  margin-inline: auto;
}

main:has(> .hero) .service-grid article {
  min-height: 270px;
  padding: 30px 28px 28px;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(54, 43, 31, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

main:has(> .hero) .service-grid article:hover {
  transform: translateY(-4px);
  border-color: #dfc8ad;
  box-shadow: var(--soft-shadow);
}

main:has(> .hero) .service-mark {
  width: 54px;
  height: 54px;
  border: 1px solid #f2dfbd;
  background: #fff7e8;
  font-family: var(--font-display);
  font-size: 15px;
}

main:has(> .hero) .service-grid h3 {
  margin-top: 22px;
  font-size: 22px;
}

main:has(> .hero) .trust {
  max-width: 1320px;
  padding: 34px 60px;
  margin-bottom: 95px;
  border: 1px solid #eee2c9;
  background: #fffaf0;
}

main:has(> .hero) .organisation-invite {
  background: var(--ink);
}

main:has(> .hero) .team-section {
  padding-block: 94px 100px;
  background: var(--sage);
}

main:has(> .hero) .team-section .team-card-link:nth-child(n + 5) {
  display: none;
}

main:has(> .hero) .team-grid {
  max-width: 1220px;
  margin-inline: auto;
  gap: 20px;
}

main:has(> .hero) .team-grid article {
  border-color: var(--sage-line);
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(44, 55, 42, 0.055);
}

main:has(> .hero) .team-photo {
  height: 300px;
  background: linear-gradient(145deg, #f7efe3, #ebe2d5);
}

main:has(> .hero) .team-photo::after {
  display: none;
}

main:has(> .hero) .team-copy {
  text-align: left;
  padding: 22px 22px 25px;
}

main:has(> .hero) .team-copy h3 {
  font-size: 22px;
}

main:has(> .hero) .team-copy p {
  min-height: 0;
}

main:has(> .hero) .team-copy b {
  justify-content: flex-start;
}

main:has(> .hero) .process-section {
  position: relative;
  padding-block: 98px 108px;
  background:
    linear-gradient(90deg, rgba(252,250,245,.97), rgba(252,250,245,.91)),
    url('/individual-therapy-room.jpg') center/cover;
}

main:has(> .hero) .steps {
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

main:has(> .hero) .step-connector {
  display: none;
}

main:has(> .hero) .steps article {
  min-height: 250px;
  padding: 43px 30px 34px;
  border-radius: 13px;
  box-shadow: var(--soft-shadow);
}

main:has(> .hero) .step-number {
  width: 48px;
  height: 48px;
  margin: -68px auto 24px;
  background: var(--gold);
  box-shadow: 0 0 0 8px var(--paper);
  font-size: 21px;
}

main:has(> .hero) .home-insights {
  padding-block: 100px;
}

main:has(> .hero) .home-insight-grid {
  gap: 22px;
}

main:has(> .hero) .home-insight-grid > a {
  min-height: 310px;
  padding: 34px 30px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(54, 43, 31, 0.045);
}

main:has(> .hero) .home-insight-grid > a:nth-child(2) {
  background: #fbf6eb;
}

main:has(> .hero) .home-insight-grid > a:nth-child(3) {
  background: var(--sage);
  border-color: var(--sage-line);
}

main:has(> .hero) .home-insight-grid h3 {
  margin-top: 30px;
  font-size: 29px;
}

main:has(> .hero) .fee-strip {
  align-items: stretch;
  gap: 18px;
  max-width: 1240px;
  margin: 12px auto 88px;
  padding: 0;
  border: 0;
  background: transparent;
}

main:has(> .hero) .fee-strip > div {
  flex: 1;
  min-height: 185px;
  justify-content: center;
  align-items: center;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(54, 43, 31, 0.045);
}

main:has(> .hero) .fee-strip > div b {
  margin-block: 8px;
  color: var(--orange-dark);
  font-size: 36px;
}

main:has(> .hero) .fee-strip > i {
  display: none;
}

main:has(> .hero) .fee-strip > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  min-width: 180px;
  min-height: 54px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

main:has(> .hero) .cta {
  max-width: 1320px;
  min-height: 220px;
  margin: 0 auto 70px;
  padding: 48px 54px;
  border-radius: 18px;
  background: var(--orange);
}

main:has(> .hero) .cta h2 {
  font-size: clamp(38px, 4vw, 55px);
}

footer {
  grid-template-columns: 1.2fr 1.5fr 1fr 1fr 1.3fr;
  gap: 42px;
  padding: 52px clamp(24px, 5vw, 80px);
  background: var(--ink);
}

footer .footer-partners {
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 28px;
}

@media (max-width: 1100px) {
  header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .menu-toggle {
    display: grid;
    grid-column: 3;
  }

  header .header-button {
    grid-column: 2;
  }

  header nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    padding: 0 clamp(24px, 5vw, 80px);
    overflow: hidden;
    visibility: hidden;
    background: rgba(255,253,249,.99);
    border-bottom: 1px solid transparent;
    transition: max-height 220ms ease, padding 220ms ease, visibility 220ms;
  }

  header nav[data-open="true"] {
    max-height: 420px;
    padding-block: 16px 22px;
    visibility: visible;
    border-bottom-color: var(--line);
    box-shadow: 0 20px 35px rgba(41, 39, 36, .09);
  }

  header nav a {
    padding-block: 14px;
    border-bottom: 1px solid rgba(79,62,43,.08);
  }

  main:has(> .hero) .hero {
    grid-template-columns: 1fr;
  }

  main:has(> .hero) .hero-copy {
    max-width: 820px;
  }

  main:has(> .hero) .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  main:has(> .hero) .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    grid-template-columns: repeat(2, 1fr);
  }

  footer .footer-partners {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  header {
    min-height: 74px;
    padding-inline: 18px;
  }

  .logo {
    width: min(48vw, 205px);
  }

  .logo img {
    width: calc(100% - 30px);
  }

  .header-button {
    min-height: 42px;
    max-width: 126px;
    padding-inline: 12px;
    font-size: 11px;
  }

  header nav {
    padding-inline: 20px;
  }

  main:has(> .hero) .hero {
    min-height: 0;
    gap: 34px;
    padding: 50px 20px 56px;
  }

  main:has(> .hero) .hero h1 {
    max-width: 560px;
    font-size: clamp(48px, 13vw, 62px);
  }

  main:has(> .hero) .hero-actions .button {
    width: 100%;
  }

  main:has(> .hero) .hero-visual {
    min-height: 410px;
    border-radius: 16px 16px 44px 16px;
  }

  main:has(> .hero) .services,
  main:has(> .hero) .team-section,
  main:has(> .hero) .process-section,
  main:has(> .hero) .home-insights {
    padding-block: 70px;
  }

  main:has(> .hero) .service-grid,
  main:has(> .hero) .team-grid,
  main:has(> .hero) .steps,
  main:has(> .hero) .fee-strip {
    grid-template-columns: 1fr;
  }

  main:has(> .hero) .service-grid,
  main:has(> .hero) .team-grid {
    display: grid;
  }

  main:has(> .hero) .team-photo {
    height: 330px;
  }

  main:has(> .hero) .steps {
    gap: 46px;
  }

  main:has(> .hero) .fee-strip {
    align-items: stretch;
    margin: 12px 20px 70px;
  }

  main:has(> .hero) .fee-strip > a {
    text-align: center;
  }

  main:has(> .hero) .cta {
    min-height: 0;
    margin: 0 20px 55px;
    padding: 36px 28px;
  }

  main:has(> .hero) .cta-number {
    width: 52px;
    height: 52px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 24px calc(46px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .logo > span {
    display: none;
  }

  .header-button {
    max-width: 112px;
    font-size: 10.5px;
  }

  main:has(> .hero) .hero-visual {
    min-height: 340px;
  }
}

/* Second-pass mobile refinement: calmer type scale, denser rhythm and
   thumb-friendly controls across the homepage and interior service pages. */
@media (max-width: 700px) {
  :root {
    --mobile-gutter: 18px;
  }

  html {
    scroll-padding-top: 88px;
  }

  header {
    min-height: 70px;
    gap: 8px;
    padding: 9px var(--mobile-gutter);
  }

  .logo {
    width: min(42vw, 168px);
  }

  .logo img {
    width: 100%;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    align-self: center;
    box-sizing: border-box;
  }

  .menu-toggle::before {
    top: 13px;
  }

  .menu-toggle span {
    top: 20px;
  }

  .menu-toggle::after {
    top: 27px;
  }

  header nav {
    padding-inline: 18px;
  }

  header nav[data-open="true"] {
    gap: 0;
    padding-block: 8px 14px;
    background: #fffdf9;
  }

  header nav a {
    width: 100%;
    min-height: 46px;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1px solid rgba(79,62,43,.1);
    border-radius: 0;
    background: transparent;
    font-size: 13px;
  }

  header nav a:last-child {
    border-bottom: 0;
  }

  header nav a::after {
    display: none;
  }

  .header-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 104px;
    min-width: 104px;
    height: 42px;
    min-height: 42px;
    max-width: 104px;
    padding-inline: 12px;
    padding-block: 0;
    align-self: center;
    box-sizing: border-box;
    line-height: 1;
    font-size: 0;
  }

  .header-button::after {
    content: "Book now";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    text-align: center;
    transform: translateY(-0.5px);
    font-size: 11px;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 1.5;
  }

  main:has(> .hero) .hero {
    gap: 28px;
    padding: 38px var(--mobile-gutter) 48px;
  }

  main:has(> .hero) .hero h1,
  .therapy-hero h1,
  .child-hero h1,
  .info-hero h1,
  .organisation-hero h1,
  .professionals-hero h1,
  .profile-hero-copy h1,
  .reading-hero h1,
  .resource-hero h1,
  .quiz-hero h1 {
    font-size: clamp(40px, 11.2vw, 45px);
    line-height: .98 !important;
    letter-spacing: -.045em;
  }

  main:has(> .hero) .hero h1 {
    margin: 14px 0 22px;
  }

  main:has(> .hero) .hero-copy > p,
  .therapy-hero-copy > p,
  .child-hero-copy > p,
  .info-hero > p,
  .organisation-hero-copy > p,
  .professionals-hero > p,
  .profile-hero-copy > p,
  .reading-hero-copy > p,
  .resource-hero > p,
  .quiz-hero > p {
    font-size: 16.5px;
    line-height: 1.62;
  }

  .child-section-heading h2,
  .info-heading h2,
  .section-intro h2,
  .therapy-section-heading h2 {
    font-size: clamp(34px, 9.5vw, 39px);
    line-height: 1.02 !important;
  }

  .section-intro,
  .therapy-section-heading {
    margin-bottom: 30px;
  }

  main:has(> .hero) .hero-visual {
    aspect-ratio: 4 / 3;
    min-height: 0;
    border-radius: 14px 14px 38px 14px;
  }

  main:has(> .hero) .hero-visual-note {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 11px 13px;
  }

  main:has(> .hero) .pathways,
  main:has(> .hero) .services,
  main:has(> .hero) .team-section,
  main:has(> .hero) .process-section,
  main:has(> .hero) .home-insights {
    padding-block: 58px;
    padding-inline: var(--mobile-gutter);
  }

  main:has(> .hero) .pathway-grid,
  main:has(> .hero) .service-grid,
  main:has(> .hero) .team-grid,
  main:has(> .hero) .steps,
  main:has(> .hero) .home-insight-grid {
    width: 100%;
    margin-inline: 0;
  }

  main:has(> .hero) .trust,
  main:has(> .hero) .organisation-invite {
    width: auto;
    margin-left: var(--mobile-gutter);
    margin-right: var(--mobile-gutter);
  }

  main:has(> .hero) .pathway-grid article {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 27px 24px;
  }

  main:has(> .hero) .pathway-grid h3 {
    font-size: 27px;
  }

  main:has(> .hero) .pathway-grid p {
    margin-bottom: 18px;
  }

  main:has(> .hero) .pathway-grid a {
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
  }

  main:has(> .hero) .service-grid article {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 24px;
  }

  main:has(> .hero) .service-grid h3 {
    margin-top: 17px;
    font-size: 20px;
  }

  main:has(> .hero) .service-grid a {
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
  }

  main:has(> .hero) .team-photo,
  .therapy-team-grid article > div {
    height: 285px;
  }

  main:has(> .hero) .home-insight-grid > a {
    min-height: 250px;
    padding: 28px 24px;
  }

  main:has(> .hero) .home-insight-grid h3 {
    margin-top: 22px;
    font-size: 26px;
  }

  main:has(> .hero) .fee-strip {
    gap: 12px;
    width: auto;
    margin: 8px var(--mobile-gutter) 58px;
  }

  main:has(> .hero) .fee-strip > div {
    min-height: 145px;
    padding: 22px 18px;
  }

  main:has(> .hero) .fee-strip > div b {
    font-size: 32px;
  }

  main:has(> .hero) .cta {
    width: auto;
    margin: 0 var(--mobile-gutter) 48px;
    padding: 31px 24px;
    border-radius: 14px;
  }

  .therapy-hero,
  .child-hero,
  .info-hero,
  .organisation-hero,
  .professionals-hero,
  .profile-hero,
  .reading-hero,
  .resource-hero,
  .quiz-hero {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .therapy-hero {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .back-link {
    margin-bottom: 22px;
  }

  .therapy-actions,
  .hero-actions {
    gap: 10px;
  }

  .therapy-quick-facts {
    display: grid;
    gap: 0;
    margin-top: 26px;
    padding-top: 8px;
  }

  .therapy-quick-facts span {
    min-height: 42px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 10.5px;
    line-height: 1.35;
  }

  .therapy-quick-facts span:last-child {
    border-bottom: 0;
  }

  .therapy-hero-image,
  .child-hero-image {
    aspect-ratio: 4 / 3;
    min-height: 0;
    border-radius: 14px;
  }

  .therapy-approaches,
  .therapy-faq,
  .therapy-fees,
  .therapy-intro,
  .therapy-process,
  .therapy-team,
  .child-fees,
  .child-process,
  .child-services,
  .child-support,
  .child-team {
    padding: 54px var(--mobile-gutter) 58px;
  }

  .concern-grid,
  .therapy-step-grid,
  .approach-grid,
  .fee-cards {
    gap: 12px;
  }

  .concern-grid article,
  .therapy-step-grid article,
  .approach-grid article,
  .fee-cards article {
    min-height: 0;
    padding: 22px;
  }

  .first-session-panel {
    gap: 28px;
    width: auto;
    margin: 46px var(--mobile-gutter);
    padding: 30px 22px;
    border-radius: 15px;
  }

  .first-session-list > div {
    min-height: 0;
    padding: 16px;
  }

  .fee-cards strong {
    margin: 14px 0 10px;
    font-size: 34px;
  }

  .therapy-mobile-book {
    grid-template-columns: 1.35fr 1fr;
    gap: 7px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 28px rgba(54,43,31,.09);
    backdrop-filter: blur(12px);
  }

  .therapy-mobile-book a {
    min-height: 44px;
    font-size: 11.5px;
  }

  .therapy-page {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .screening-assurance {
    margin-left: var(--mobile-gutter);
    margin-right: var(--mobile-gutter);
  }

  .screening-path,
  .screening-invite,
  .featured-insight,
  .home-insights,
  .insight-library,
  .insights-support {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .screening-path {
    padding-top: 54px;
    padding-bottom: 56px;
  }

  .screening-card-grid > a {
    min-height: 0;
    padding: 24px;
  }

  .screening-guidance,
  .screening-privacy {
    margin-left: var(--mobile-gutter);
    margin-right: var(--mobile-gutter);
  }

  .professionals-directory,
  .care-network-section,
  .featured-insight,
  .insight-library,
  .resource-cta,
  .profile-credentials,
  .profile-story,
  .profile-services,
  .quiz-hero,
  .quiz-languages {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .professional-match,
  .profile-cta,
  .screening-guidance,
  .screening-privacy,
  .quiz-shell {
    width: auto;
    margin-left: var(--mobile-gutter);
    margin-right: var(--mobile-gutter);
  }

  .section-intro,
  .therapy-section-heading,
  .home-insights-head,
  .professional-directory-heading {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .professional-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .professional-card-photo {
    min-height: 280px;
  }

  footer {
    gap: 25px;
    padding: 38px var(--mobile-gutter) calc(38px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  header {
    grid-template-columns: minmax(0, 1fr) 88px 42px;
    padding-inline: var(--mobile-gutter);
  }

  .logo {
    width: 43vw;
  }

  .header-button {
    width: 88px;
    min-width: 88px;
    max-width: 91px;
    padding-inline: 9px;
    justify-self: stretch;
  }

  main:has(> .hero) .hero h1,
  .therapy-hero h1,
  .child-hero h1,
  .info-hero h1,
  .organisation-hero h1,
  .professionals-hero h1,
  .profile-hero-copy h1,
  .reading-hero h1,
  .resource-hero h1,
  .quiz-hero h1 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle,
  header nav,
  header nav a::after,
  main:has(> .hero) .service-grid article {
    transition: none;
  }
}
