/* Therapy for the Mind: site styling.
   Fonts are hosted on this site (see the fonts folder); nothing is loaded from Google. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/newsreader-v26-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/newsreader-v26-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/newsreader-v26-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/newsreader-v26-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/hanken-grotesk-v12-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/hanken-grotesk-v12-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/hanken-grotesk-v12-latin-600.woff2") format("woff2"); }

/* ---------- Colours and fonts (change these to restyle the whole site) ---------- */
:root {
  --deep: #102a2a;        /* header, hero, reviews, footer */
  --loch: #1d4448;        /* "How I work" band, rules */
  --paper: #f7f9f8;       /* page background */
  --mist: #ecf1f0;        /* alternate section background */
  --ink: #1a2a2b;         /* body text */
  --ink-soft: #4a5c5d;    /* labels and notes */
  --line: #c9d6d5;        /* thin dividers on light backgrounds */
  --accent: #c9a66b;      /* brass: buttons and rules on dark backgrounds */
  --heather: #7b5a8c;     /* focus outlines, required asterisks */
  --on-dark: #eef3f2;
  --on-dark-soft: #d5e2e0;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--loch); }
p { margin: 0 0 1.1em; max-width: 40em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--heather); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--accent); }

.wrap { width: min(1240px, 100% - 3rem); margin-inline: auto; }
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.alt { background: var(--mist); }
.dark { background: var(--deep); color: var(--on-dark); }
.dark p { color: var(--on-dark-soft); }
.band { background: var(--loch); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 0.5em; }
h3 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 0.5em; }

/* Small spaced-out capitals used above headings */
.label { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.25rem; }
.dark .label { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 1.1rem 2.1rem; border-radius: 2px; border: 1px solid var(--accent); background: var(--accent); color: var(--deep); cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn:hover { background: transparent; color: var(--accent); }
.btn.dark-btn { background: var(--deep); border-color: var(--deep); color: var(--on-dark); }
.btn.dark-btn:hover { background: transparent; color: var(--deep); }
button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--deep); color: var(--on-dark); border-bottom: 1px solid rgba(238, 243, 242, 0.16); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; min-height: 5.25rem; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--on-dark); text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; background: var(--on-dark); border-radius: 50%; padding: 5px; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.brand small { display: block; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: #b9cdca; }
nav ul { list-style: none; display: flex; align-items: center; gap: 2.1rem; margin: 0; padding: 0; }
nav a { color: var(--on-dark); text-decoration: none; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.75rem 0; border-bottom: 1px solid transparent; }
nav a:hover { border-bottom-color: var(--accent); }
nav a.nav-cta { background: var(--accent); color: var(--deep); font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 2px; border: 0; }
.menu-btn { display: none; background: none; border: 1px solid rgba(238, 243, 242, 0.4); border-radius: 2px; padding: 0.6rem 1rem; font: inherit; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid:has(.hero-img[style*="none"]) { grid-template-columns: 1fr; }
.eyebrow { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.75rem; max-width: none; }
.eyebrow::before { content: ""; flex: 0 0 3rem; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(3.25rem, 8vw, 6.5rem); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 0.3em; }
.hero p.lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.45; max-width: 34em; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.text-link { color: var(--on-dark); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; text-underline-offset: 6px; padding: 0.9rem 0; }
.hero-img { justify-self: end; width: 100%; max-width: 520px; border: 1px solid rgba(201, 166, 107, 0.45); padding: 14px; }
.hero-img img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.cred-strip { border-top: 1px solid rgba(238, 243, 242, 0.16); }
.cred-strip ul { list-style: none; margin: 0 auto; padding: 1.9rem 0; display: flex; flex-wrap: wrap; gap: 1.25rem 3.5rem; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: #c9d8d6; }
.cred-strip li { flex: 1 1 260px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.photos { display: flex; flex-direction: column; gap: 0.8rem; }
.portrait { aspect-ratio: 4 / 5; background: #dfe8e6; overflow: hidden; border-radius: 175px 175px 0 0; } /* arched top; remove border-radius for square corners */
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.thumbs button { padding: 0; border: 1px solid transparent; background: #dfe8e6; cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; opacity: 0.75; transition: opacity 0.2s; }
.thumbs button:hover, .thumbs button[aria-pressed="true"] { opacity: 1; }
.thumbs button[aria-pressed="true"] { border-color: var(--loch); outline: 1px solid var(--loch); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.caption { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0.4rem 0 0; }
.pullquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.35; color: var(--loch); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); padding: 2rem 0; margin: 2rem 0; max-width: 26em; }

/* ---------- Services ---------- */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: end; }
.services-head h2 { margin-bottom: 0; }
.service-icons { list-style: none; margin: 3.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.service-icons li { display: flex; align-items: center; gap: 1.1rem; }
.service-icons img { width: 84px; height: 72px; object-fit: contain; }
.service-icons span { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.therapies { list-style: none; counter-reset: therapy; margin: 3.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2.5rem, 6vw, 5.5rem); border-top: 1px solid var(--loch); }
.therapies li { counter-increment: therapy; display: flex; gap: 1.75rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid #c3d0ce; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.625rem); line-height: 1.25; }
.therapies li::before { content: counter(therapy, decimal-leading-zero); font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; font-size: 0.9375rem; }
.issues li { border: 1px solid #9fb3b1; background: var(--paper); padding: 0.45rem 1.1rem; border-radius: 2px; }

/* ---------- How I work ---------- */
.how-intro { max-width: 47.5rem; }
.how-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; margin-top: 4rem; }
.how-cols > div { border-top: 1px solid var(--accent); padding-top: 1.75rem; }
.how-cols p { font-size: 1rem; }
.how-cols p:last-child { margin-bottom: 0; }

/* ---------- Qualifications ---------- */
.quals-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: 3.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.quals-grid h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.08; }
.badges { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.badges img { height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.accred-list { margin: 0; border-top: 1px solid var(--loch); }
.accred-list > div { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.accred-list dt { flex: 0 0 200px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.35rem; }
.accred-list dd { flex: 1 1 300px; margin: 0; }

/* ---------- Reviews ----------
   All reviews live in one list. The one with class "featured" is shown large at the top. */
.reviews { columns: 3 300px; column-gap: 3.5rem; margin-top: 1rem; }
.review { margin: 0 0 2.75rem; break-inside: avoid; border-top: 1px solid rgba(238, 243, 242, 0.25); padding-top: 1.5rem; }
.review blockquote { margin: 0; }
.review .headline { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--on-dark); margin: 0 0 0.75rem; max-width: none; }
.review .body { font-size: 1rem; margin: 0 0 0.8em; max-width: none; }
.review .body:last-child { margin-bottom: 0; }
.review.featured { column-span: all; border-top: 0; padding-top: 0; margin-bottom: 4rem; max-width: 61rem; }
.review.featured .headline { font-style: italic; font-size: clamp(1.75rem, 3.6vw, 2.875rem); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 1.75rem; }
.review.featured .body { font-size: 1.0625rem; max-width: 44em; }

/* ---------- FAQs ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(260px, 0.7fr) 1.3fr; gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.faq-grid h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.08; }
.faq-list { border-top: 1px solid var(--loch); }
details { border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.625rem); line-height: 1.25; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--ink-soft); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 1rem 0 0; max-width: 42em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: 3.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact-grid h2 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); line-height: 1; letter-spacing: -0.02em; }
form { display: grid; gap: 1.4rem; }
#contact-form { background: var(--paper); padding: clamp(1.5rem, 4vw, 3rem); }
label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.3rem; }
input, textarea { width: 100%; font: inherit; padding: 0.8rem 0; border: 0; border-bottom: 1px solid #6f8785; border-radius: 0; background: transparent; color: var(--ink); }
input:focus-visible, textarea:focus-visible { outline: 0; border-bottom: 2px solid var(--heather); }
textarea { min-height: 130px; resize: vertical; }
form .btn { justify-self: start; }
.req { color: var(--heather); font-weight: 600; }
.note { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }
.form-error { color: #8f2d2d; font-weight: 500; margin: 0; }
.thanks { background: var(--paper); border-top: 2px solid var(--accent); padding: clamp(1.5rem, 4vw, 3rem); }
.thanks p { margin-bottom: 0; }
.hp { position: absolute; left: -9999px; }
.ts:empty { display: none; }

/* ---------- Privacy ---------- */
.privacy h2 { font-size: 1.75rem; }
.privacy-text { columns: 2; column-gap: clamp(2.5rem, 6vw, 5.5rem); margin-top: 1.5rem; }
.privacy-text p { max-width: none; break-inside: avoid; font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { background: var(--deep); color: #c9d8d6; padding: 3.5rem 0; font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
footer p { margin: 0.3rem 0; max-width: none; }
footer a { color: var(--on-dark); }
.footer-name { font-family: var(--serif); font-size: 1.625rem; color: var(--on-dark); }

/* ---------- Floating Message button and panel ---------- */
.msg-btn { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 0.6rem; background: var(--accent); color: var(--deep); text-decoration: none; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.95rem 1.4rem; border-radius: 2px; box-shadow: 0 6px 20px rgba(16, 42, 42, 0.35); transition: background 0.2s, transform 0.2s, opacity 0.2s; }
.msg-btn:hover { background: #d8b987; }
.msg-btn.is-away { opacity: 0; pointer-events: none; transform: translateY(8px); }
.msg-panel { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem)); z-index: 40; width: min(390px, calc(100vw - 2.5rem)); max-height: calc(100dvh - 7.5rem); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--accent); box-shadow: 0 16px 48px rgba(16, 42, 42, 0.3); padding: 1.4rem 1.4rem 1.5rem; opacity: 0; transform: translateY(12px); transition: opacity 0.2s, transform 0.2s; }
.msg-panel.is-open { opacity: 1; transform: none; }
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.msg-head h2 { font-size: 1.5rem; letter-spacing: 0; margin: 0; }
.msg-close { background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 0.1rem 0.5rem; }
.msg-close:hover { color: var(--ink); }
.msg-panel form { gap: 1rem; }
.msg-panel textarea { min-height: 96px; }
.msg-panel .thanks { padding: 1.25rem 0 0; }

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .menu-btn { display: block; }
  nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); border-bottom: 1px solid rgba(238, 243, 242, 0.16); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.5rem 1.25rem; }
  nav a { display: block; padding: 0.9rem 0; }
  nav a.nav-cta { text-align: center; margin-top: 0.75rem; }
}
@media (max-width: 820px) {
  .hero-grid, .about-grid, .services-head, .how-cols, .quals-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-img { justify-self: center; max-width: 340px; }
  .photos { max-width: 420px; margin-inline: auto; width: 100%; }
  .therapies { grid-template-columns: 1fr; }
  .privacy-text { columns: 1; }
  .badges { justify-content: center; }
  .service-icons { justify-content: center; }
  .accred-list dt { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .brand small { display: none; }
  .brand-name { font-size: 1.25rem; }
  .msg-panel { right: 0.75rem; left: 0.75rem; width: auto; bottom: max(4.75rem, calc(env(safe-area-inset-bottom) + 4rem)); max-height: calc(100dvh - 6.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print { .msg-btn, .msg-panel { display: none !important; } }
