/*
  Glenn Bowering Therapy – site styles

  Built from design-reference/. Values match the approved design; the
  inline styles from the design tool have been moved into classes here.
  Tokens are listed in CLAUDE.md ("Design tokens").
*/

/* ---------- Fonts (self-hosted, SIL Open Font License; see assets/fonts/) ---------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin-ext.woff2') format('woff2-variations'), url('fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/atkinson-hyperlegible-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/atkinson-hyperlegible-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin.woff2') format('woff2-variations'), url('fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/atkinson-hyperlegible-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/atkinson-hyperlegible-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --ground: #F7F5F0;
  --band: #EDF0EA;
  --sand: #E8E1D4;
  --ink: #22302A;
  --muted: #4A5852;
  --accent: #3F5E50;
  --rule: #B9C4BC;
  --hairline: #DDE3DE;
  --input-border: #7D8A83;
  --contour-stroke: #9DB0A3;
  --contour-fill: #C9D5CC;
  --white: #FFFFFF;
  --placeholder: #9A3B2A; /* Unfilled content only. Must not appear in production. */

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;

  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

/* No global box-sizing reset: the design's max-widths are content widths. */

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
}

body.page-privacy { line-height: 1.7; }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--accent); }

input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */

.serif { font-family: var(--font-serif); }

.title-section {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.15;
}

.title-card {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
}

.eyebrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.lead { font-size: 20px; }
.muted { color: var(--muted); }
.small { font-size: 16px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  box-sizing: border-box;
}
.btn:hover { color: var(--white); }

.btn--header {
  font-size: 16px;
  padding: 12px 24px;
  min-height: 48px;
}

.btn--main {
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 30px;
  min-height: 56px;
  cursor: pointer;
}

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

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  text-decoration: none;
  padding: 8px 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}

.site-nav__link {
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
}

/* ---------- Layout ---------- */

.band { background: var(--band); }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 128px var(--gutter);
  display: flex;
  flex-direction: column;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 38em;
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px 56px;
}

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

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px var(--gutter) 144px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 32em;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 8px;
}

.link-arrow {
  font-size: 18px;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art svg {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}

@media (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}

/* ---------- Who I work with ---------- */

.section--who { gap: 72px; }

.point {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}

/* ---------- How I work ---------- */

.section--how { gap: 112px; }

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px 96px;
  align-items: start;
}

.portrait {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 340px;
}

.portrait img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--sand);
  border-radius: var(--radius-lg);
  display: block;
}

.portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
}

.portrait__name { font-weight: 700; color: var(--ink); }
.portrait__creds { color: var(--muted); }

.about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 36em;
}

.steps-block {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.steps-block__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.2;
}

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

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step__number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
}

.step__title {
  font-size: 20px;
  font-weight: 700;
}

/* ---------- Fees ---------- */

.section--fees { gap: 64px; }

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px 80px;
  align-items: start;
}

.facts {
  display: flex;
  flex-direction: column;
}

.facts__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 4px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.facts__row:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 700; }
.facts dd { grid-column: span 2; }

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.fee-table th {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1.5px solid var(--ink);
  font-weight: 700;
}
.fee-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.fee-table th:last-child { padding: 12px 0; }
.fee-table td:last-child { padding: 14px 0; }
.fee-table tbody tr:last-child td { border-bottom: 0; }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 16px;
  color: var(--muted);
}

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

.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 128px var(--gutter) 144px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 56px 96px;
  align-items: start;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 30em;
}

.direct {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}
.direct a { color: var(--ink); font-weight: 700; }
.direct a:hover { color: var(--accent); }

.crisis-note {
  background: var(--band);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 16px;
  color: var(--ink);
}

.contact-form { gap: 22px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 17px;
}

.field__hint {
  font-weight: 400;
  color: var(--muted);
}

.input {
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  padding: 13px 16px;
  min-height: 52px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background: var(--white);
  box-sizing: border-box;
}

textarea.input {
  min-height: 0;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox input {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox label {
  font-size: 16px;
  color: var(--muted);
}

.contact-form .btn--main { align-self: flex-start; }

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

.site-footer { border-top: 1px solid var(--hairline); }

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  font-size: 16px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Privacy notice ---------- */

.notice {
  max-width: 46rem;
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 32px) 128px;
  overflow-wrap: break-word; /* The email address is 1px too wide at 320px in the design. */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.notice__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.notice__lead { font-size: 21px; }

.summary {
  background: var(--band);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0 8px;
}

.toc h2 {
  font-size: 18px;
  font-weight: 700;
}

.toc ol {
  padding-left: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 6px 32px;
  font-size: 17px;
}

.notice h2.notice__h2 {
  margin-top: 56px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.2;
}

.notice__h3 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
}
.notice__h3--first { margin-top: 8px; }
.notice__h3--spaced { margin-top: 24px; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.data-table th {
  text-align: left;
  padding: 14px 20px 14px 0;
  border-bottom: 1.5px solid var(--ink);
}
.data-table th:first-child { width: 45%; }
.data-table td {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.data-table th:last-child,
.data-table td:last-child { padding: 14px 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.rights {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ico-box {
  background: var(--band);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.updated {
  font-size: 16px;
  color: var(--muted);
}

/* Unfilled content. The pre-launch check fails if this class is present. */
.placeholder {
  color: var(--placeholder);
  font-weight: 700;
}

/* ---------- Visually hidden (honeypot, screen-reader text) ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.portrait picture { display: block; }

/* ---------- Contact form messages ----------
   Hidden until shown. Without JavaScript the server redirects to /#sent (etc.)
   and :target shows the message. With JavaScript, contact.js adds .is-shown. */

.form-message {
  display: none;
  background: var(--band);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 17px;
}
.form-message:target,
.form-message.is-shown { display: block; }
.form-message:focus { outline: none; }
.form-message:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.contact-form .btn--main[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* Keep the form's spacing identical to the design until a message is showing. */
.form-messages:not(:has(.form-message:target, .form-message.is-shown)) { display: none; }

/* ---------- Cookie consent ----------
   Sits at the top of the page in normal flow, so it never covers content
   at narrow widths or high zoom. Shown by consent.js only. Both choices
   look the same, as the ICO expects. */

.consent[hidden] { display: none; }

.consent {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.consent__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
}

.consent__inner p { max-width: 46em; }

.consent__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
}
.consent__title:focus { outline: none; }
.consent__title:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-top: 4px;
}

.btn--consent {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  min-height: 48px;
  cursor: pointer;
}

.footer-button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.footer-button[hidden] { display: none; }
.footer-button:hover { color: var(--accent); }

/* enquiries@glennboweringtherapy.co.uk is wider than a 320px column: let it wrap. */
.direct a,
.form-message,
.contact-card { overflow-wrap: anywhere; }
