/* Elm Therapy – site styles
   Colours, type and spacing follow the approved design mockup. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F6F4EE;
  --header: #F0F0EE;
  --sage: #E8ECE2;
  --accent: #2E4F3E;
  --accent-deep: #1B3326;
  --forest: #223B2E;
  --ink: #1E2621;
  --ink-soft: #26302A;
  --text-2: #2F3A33;
  --muted: #56625A;
  --line: #C9CCBF;
  --circle: #DDE5D8;
  --circle-on-sage: #D3DDCD;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --gutter: 56px;
  --sec: 80px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 32px; border-radius: 999px;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: rgba(46, 79, 62, 0.06); }
.btn-on-photo { background: rgba(246, 244, 238, 0.6); }
.btn-small { min-height: 0; padding: 11px 24px; background: var(--accent); color: #fff; }
.btn-small:hover, .btn-small[aria-current="page"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header); }
.header-bar { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 34px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.brand-tagline { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; line-height: 1.2; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; white-space: nowrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a:not(.btn)[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.burger {
  display: none; width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.burger[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.burger[aria-expanded="true"] .l2 { opacity: 0; }
.burger[aria-expanded="true"] .l1 { transform: translate(0, 5px) rotate(45deg); transform-origin: 12px 7px; }
.burger[aria-expanded="true"] .l3 { transform: translate(0, -5px) rotate(-45deg); transform-origin: 12px 17px; }
.mobile-menu { border-top: 1px solid #DCDDDA; padding-top: 16px; padding-bottom: 32px; display: flex; flex-direction: column; font-family: var(--serif); font-size: 28px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid #E3E2D9; }
.mobile-menu > a[aria-current="page"] { color: var(--accent); }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 24px; font-family: var(--sans); font-size: 16px; }
.mobile-actions .btn { min-height: 52px; padding: 0 12px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--sage); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(246, 244, 238, 0.5); }
.hero-inner { position: relative; z-index: 1; max-width: 920px; width: 100%; padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
.hero h1 { font-size: 64px; line-height: 1.08; letter-spacing: -0.015em; }
.hero-rule { position: relative; top: -6px; width: 56px; height: 1px; background: var(--accent); }
.hero-creds { position: relative; top: -12px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 19px; line-height: 1.45; color: var(--ink-soft); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 8px; }

/* ---------- Sections ---------- */
.sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.bg-sage { background: var(--sage); }
.bg-white { background: #fff; border-top: 1px solid #E3E2D9; }
.space-tight-bottom { padding-bottom: 56px; }
.space-tight-top { padding-top: 60px; }
.space-compact { padding-top: 72px; padding-bottom: 80px; }
.content { display: flex; flex-direction: column; gap: 22px; }
.content > h1, .content > h2 { font-size: 46px; margin-bottom: 6px; }
.content > h3 { font-size: 27px; font-weight: 400; color: var(--accent); }
.content .lead { font-family: var(--serif); font-size: 25px; line-height: 1.45; font-weight: 300; color: var(--ink-soft); text-wrap: pretty; }
.content .eyebrow, .eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: -6px; }
.content .big-title { font-size: 76px; line-height: 1.02; letter-spacing: -0.02em; }
.content > p:has(> .btn:only-child) { margin-top: 8px; }

/* split: photo + text */
.layout-split .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 88px; align-items: center; }
.layout-split.media-right .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.media { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.arch-wrap { position: relative; width: 100%; max-width: 460px; }
.arch-wrap::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 999px; background: var(--circle); left: -4%; top: 6%; }
.media-right .arch-wrap::before { left: auto; right: -4%; }
.bg-sage .arch-wrap::before { background: var(--circle-on-sage); }
.arch { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 28px 28px; }
.arch.placeholder { background: var(--cream); border: 1.5px dashed #9AA698; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 24px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.arch.placeholder svg { color: var(--accent); }
.contact-lines { align-self: stretch; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.contact-lines a { display: flex; gap: 10px; align-items: center; min-height: 44px; text-decoration: none; }

/* aside: heading left, text right */
.layout-aside .content { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
.aside-head { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.aside-head h2 { font-size: 46px; }
.aside-body { display: flex; flex-direction: column; gap: 22px; }
.aside-body:has(> .cards), .aside-body:has(> ol.steps) { gap: 52px; }

/* quote */
.quote { margin: 0 auto; max-width: 900px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; color: var(--accent); }
.space-flush-bottom { padding-bottom: 0; }
.space-quote { padding-top: 104px; }
.space-quote .quote { border-top: 1px solid var(--line); padding-top: 64px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.38; font-weight: 300; color: var(--ink); text-wrap: balance; }
.quote blockquote strong { font-weight: 500; color: var(--accent); }
.quote figcaption { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* chip list (clinical experience) */
ul.chips { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
ul.chips li { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--cream); border-radius: 14px; }
ul.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }

/* qualifications list */
ul.quals { margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
ul.quals li { padding: 16px 0; border-top: 1px solid #C9CFC3; }
ul.quals li:last-child { border-bottom: 1px solid #C9CFC3; }

/* numbered steps (contact) */
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px 32px; }
ol.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--text-2); }
ol.steps li > strong:first-child { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: -4px; }
ol.steps li::before { content: counter(step); font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.content:has(> ol.steps) { gap: 52px; }
.content > ol.steps + .lead { max-width: 900px; }
.width-narrow .content { max-width: 760px; gap: 18px; }
.width-narrow .content > h3 { font-size: 24px; margin-top: 14px; color: var(--ink); }
[id] { scroll-margin-top: 100px; }

/* fee */
.fee { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: end; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 18px; }
.fee-amount { font-family: var(--serif); font-weight: 300; font-size: 160px; line-height: 0.9; color: var(--accent); letter-spacing: -0.03em; }
.fee-text-only { display: block; }
.fee-text-only .fee-text { max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.fee-text p { font-family: var(--serif); font-size: 27px; line-height: 1.45; font-weight: 300; text-wrap: pretty; }

/* location cards */
.content:has(> .cards) { gap: 52px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 28px; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 18px; }
.card img { width: 120px; height: 120px; flex-shrink: 0; border-radius: 18px; object-fit: cover; }
.card-body { padding: 0 12px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.card-body h3 { font-size: 30px; font-weight: 400; color: var(--ink); }

/* contact form */
.confidential { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.confidential svg { color: var(--accent); flex-shrink: 0; }
.enquiry { display: flex; flex-direction: column; gap: 18px; background: var(--sage); border-radius: 28px; padding: 32px; margin-top: 8px; }
.enquiry .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 14px; font-weight: 500; }
.enquiry input[type="text"], .enquiry input[type="email"], .enquiry textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.enquiry textarea { resize: vertical; }
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.check > span { display: flex; flex-direction: column; gap: 2px; }
.check-title { font-size: 15px; font-weight: 500; }
.check-note { font-size: 14px; color: #4E5A52; line-height: 1.5; }
.check-note:empty { display: none; }
.enquiry .btn { align-self: flex-start; padding: 0 34px; }
.hp { position: absolute; left: -9999px; }

/* plain text pages (privacy, thanks) */
.prose { max-width: 760px; }
.prose h2 { font-size: 32px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; }

/* jump banners (About page) */
.jumpbar { background: var(--accent); color: #fff; }
.jumpbar .wrap { padding-top: 44px; padding-bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.jump-label { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: #D9E3DA; }
.jump-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 6px; }
.jump-btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--cream); color: var(--forest); text-decoration: none; font-weight: 500; font-size: 18px; transition: background 0.2s; }
.jump-btn:hover { background: #fff; color: var(--accent-deep); }

/* aside: full-width block under the two columns (Research publications) */
.aside-below { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.pubs-intro { font-family: var(--serif); font-size: 24px; line-height: 1.35; font-weight: 400; color: var(--ink); }
ul.pubs { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; border-bottom: 1px solid #DEDDD3; }
ul.pubs li { padding: 16px 0; border-top: 1px solid #DEDDD3; }
ul.pubs strong { font-weight: 600; color: var(--ink); }

/* price boxes (Fees) */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-top: 18px; }
.price { background: #fff; border: 1px solid #DEDDD3; border-radius: 24px; padding: 32px 30px; display: flex; flex-direction: column; gap: 10px; }
.price h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.price-amount { font-family: var(--serif); font-size: 52px; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.price-unit { font-size: 15px; color: var(--muted); }
.price p { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.price-featured { background: var(--accent); border-color: var(--accent); color: #fff; }
.price-featured h3, .price-featured .price-unit { color: #D9E3DA; }
.price-featured .price-amount { color: #fff; }

/* terms rows (Fees) */
.term { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
.term + .term { border-top: 1px solid #C9CFC3; padding-top: 40px; }
.term h2 { font-size: 34px; }
.term-body { display: flex; flex-direction: column; gap: 16px; }
.content:has(> .term) { gap: 40px; }

/* contact: text left, form right */
.formside { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.formside-text { display: flex; flex-direction: column; gap: 22px; }
.formside-form .enquiry { margin-top: 0; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-buttons .btn { min-height: 52px; padding: 0 26px; }

/* privacy page */
.content .page-title { font-size: 56px; line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 4px; }
.width-narrow .content ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.width-narrow .content ul ul { margin-top: 6px; list-style-type: circle; }
.width-narrow .content ul ul ul { list-style-type: square; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #E9EDE6; font-size: 15px; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-name { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: #fff; }
.footer-tagline, .site-footer .label { color: #B9C5BC; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.site-footer .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-contact a { color: #fff; text-decoration: none; display: flex; gap: 10px; align-items: center; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-base a { color: #E9EDE6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { background: #fff; border-radius: 12px; padding: 12px 16px; }
.badge img { height: 30px; width: auto; }
a.badge { display: inline-flex; transition: box-shadow 0.2s; }
a.badge:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); text-decoration: none; }
a.badge { padding: 7px 9px; }
a.badge img { height: 40px; }
a.badge-wide { padding: 12px 16px; }
a.badge-wide img { height: 30px; }
.badge img.badge-tall { height: 40px; } /* UKCP/PSA logo has small print that needs the extra height */
.badge-break { flex-basis: 100%; height: 0; } /* UKCP on its own row above HCPC and BPS */
a.badge-hcpc { padding: 8px 10px; }
a.badge-hcpc img { height: 64px; } /* HCPC given more weight than BPS */
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: #B9C5BC; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; --sec: 52px; }
  .brand-tagline { white-space: normal; max-width: 220px; }
  .hero { min-height: 540px; }
  .hero h1 { font-size: 40px; }
  .hero-creds { font-size: 16.5px; }
  .layout-split .wrap, .layout-split.media-right .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .media-right .media { order: -1; }
  .hide-on-phone { display: none; }
  .layout-aside .content { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .aside-head h2 { font-size: 34px; }
  .aside-head .btn { order: 9; }
  .content > h1, .content > h2 { font-size: 34px; }
  .content .big-title { font-size: 48px; }
  .space-tight-bottom { padding-bottom: 40px; }
  .space-tight-top { padding-top: 40px; }
  .space-compact { padding-top: 36px; padding-bottom: 44px; }
  .space-quote { padding-top: 48px; }
  .space-quote .quote { padding-top: 48px; }
  .quote blockquote { font-size: 26px; }
  .fee { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fee-amount { font-size: 104px; }
  .fee-text p { font-size: 22px; }
  .enquiry { padding: 24px 18px; border-radius: 24px; }
  .enquiry .btn { align-self: stretch; }
  .formside, .term { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .term h2 { font-size: 28px; }
  .content .page-title { font-size: 36px; }
  .price-amount { font-size: 44px; }
  .content .lead { font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .burger path { transition: transform 0.2s, opacity 0.2s; }
}
