/* ---------- Fonts (bundled in /fonts — nothing is loaded from Google) ---------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-latin-ext-opsz-normal.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-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-latin-opsz-normal.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: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/public-sans-latin-ext-wght-normal.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: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/public-sans-latin-wght-normal.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-ext-400-normal.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-ext-500-normal.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.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;
}

/* ============================================
   Beyond Performance — Sports & Health Clinical Psychology
   Design tokens
   ============================================ */

:root {
  /* Color */
  --ink: #26301F;
  --forest: #3E5433;
  --forest-dark: #2B3626;
  --sand: #F1E9D8;
  --sand-alt: #E6D9BC;
  --cream: #FBF8F1;
  --ochre: #BD8330;
  --ochre-dark: #7F5416;
  --ochre-light: #CC933F;   /* gold button: dark-green text on it passes AA */
  --ochre-lighter: #D9A653; /* gold button hover */
  --rust: #9C4A2E;
  --line: rgba(38, 48, 31, 0.14);
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1180px;
  --radius: 4px;
  --shadow-soft: 0 12px 32px -18px rgba(43, 54, 38, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Type scale ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { color: var(--ink); }
p.lead { font-size: 1.2rem; opacity: 0.85; max-width: 46em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--ochre-dark);
  display: inline-block;
}

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

.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--sand); }

.btn-ochre {
  background: var(--ochre-light);
  color: var(--forest-dark);
}
.btn-ochre:hover { background: var(--ochre-lighter); transform: translateY(-1px); }

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 233, 216, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-dark);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ochre-dark);
  font-weight: 400;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1.5px;
  background: var(--ochre);
  transition: width 0.22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--forest-dark); font-weight: 600; }

.nav-cta { display: none; }
@media (min-width: 760px) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand);
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

/* ---------- Arc motif (signature element) ---------- */
/* A rising-falling line — the shared shape of a performance curve
   and a therapeutic journey. Recurs as hero flourish, section divider,
   and underline accents. */

.arc-divider {
  width: 100%;
  height: 60px;
  display: block;
  margin: 6px 0;
}
.arc-divider path {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 1.4;
  opacity: 0.55;
}

.arc-draw path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s ease forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .arc-draw path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

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

.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
/* Stop long content (e.g. the form on the Contact page) forcing the single mobile column wider than the screen */
.hero-grid > * { min-width: 0; }

.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sand-alt), var(--forest) 140%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

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

section { padding: 88px 0; }
.section-alt { background: var(--sand-alt); }
.section-forest {
  background: var(--forest-dark);
  color: var(--sand);
}
.section-forest h2, .section-forest h3, .section-forest .eyebrow { color: var(--sand); }
.section-forest .eyebrow::before { background: var(--ochre); }

.section-head { max-width: 640px; margin-bottom: 52px; }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card .icon-mark {
  width: 38px; height: 38px;
  margin-bottom: 20px;
  color: var(--ochre-dark);
}
.card h3 { margin-bottom: 12px; }
.card p { opacity: 0.85; font-size: 0.98rem; }

/* ---------- Process steps (real sequence — numbering justified) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step { counter-increment: step; position: relative; padding-top: 42px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ochre-dark);
  position: absolute; top: 0; left: 0;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; opacity: 0.8; }

/* ---------- Quote band ---------- */

.quote-band { text-align: center; padding: 100px 0; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  max-width: 780px;
  margin: 0 auto 20px;
  color: var(--forest-dark);
}
.quote-band cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  font-style: normal;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--forest-dark);
  color: var(--sand);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--sand); margin-bottom: 14px; }
.cta-band p { color: var(--sand); opacity: 0.8; margin-bottom: 30px; }

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

.site-footer {
  background: var(--forest-dark);
  color: var(--sand);
  padding: 56px 0 30px;
  border-top: 1px solid rgba(251,248,241,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-grid a, .footer-grid p { opacity: 0.75; font-size: 0.92rem; }
.footer-grid p { color: inherit; } /* the global p colour was dark-on-dark here */
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { opacity: 1; color: var(--ochre); }
.footer-bottom {
  border-top: 1px solid rgba(251,248,241,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.65;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 64px 0 50px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p.lead { margin-top: 18px; }

/* ---------- Forms ---------- */

.form-wrap {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}
@media (max-width: 560px) { .form-wrap { padding: 28px 22px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
/* Let the Service dropdown shrink to the screen instead of widening the page to fit its longest option */
.form-row > .field { min-width: 0; }
.field select { max-width: 100%; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest-dark);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ochre);
  outline-offset: 1px;
  border-color: var(--ochre);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.8rem; opacity: 0.6; }

.form-title { font-size: 1.6rem; margin-bottom: 24px; }

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: rgba(62, 84, 51, 0.12); color: var(--forest-dark); border: 1px solid rgba(62,84,51,0.3); }
.form-status.error { background: rgba(156, 74, 46, 0.1); color: var(--rust); border: 1px solid rgba(156,74,46,0.3); }

/* ---------- Info cards (contact page) ---------- */

.info-list { display: flex; flex-direction: column; gap: 26px; }
.info-item { display: flex; gap: 16px; }
.info-item > div { min-width: 0; overflow-wrap: anywhere; } /* long email addresses wrap instead of overflowing */
.info-item .mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ochre-dark);
  width: 20px;
  flex-shrink: 0;
  padding-top: 3px;
}
.info-item h4 { margin-bottom: 4px; }
.info-item p { opacity: 0.8; font-size: 0.95rem; }

/* ---------- Practitioner profiles ---------- */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; gap: 0; } }

.profile-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
@media (max-width: 800px) { .profile-block { grid-template-columns: 1fr; } }

/* Inside the two-column team layout, each practitioner's photo sits above
   their text so both columns stay legible at half page width. */
.team-grid .profile-block { grid-template-columns: 1fr; }
.team-grid .profile-block .profile-photo { aspect-ratio: 4/5; max-width: 420px; }
.team-grid .profile-block:not(:first-child) { margin-top: 48px; }
@media (min-width: 901px) { .team-grid .profile-block:not(:first-child) { margin-top: 0; } }

/* Side-by-side layout (desktop): both practitioner columns share the same row
   tracks, so the name, role, qualifications box and each section heading
   (Clinical Experience, Sporting Background, Therapeutic Approach, Research)
   start on the same line, however long the text above them runs.
   Rows: photo, name, role, qualifications, then up to four sections. */
@media (min-width: 901px) {
  .team-grid { row-gap: 0; }
  .team-grid .profile-block {
    grid-row: span 8;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-items: start;
  }
  .team-grid .profile-main { display: contents; }
  .team-grid .profile-photo { margin-bottom: 48px; }
}

.profile-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sand), var(--forest) 140%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: fit-content;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ochre-dark);
  margin-top: 4px;
  margin-bottom: 20px;
}

.profile-quals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 0.92rem;
}
.profile-quals li { position: relative; padding-left: 18px; }
.profile-quals li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ochre);
}

.profile-section { margin-bottom: 30px; }
.profile-section:last-child { margin-bottom: 0; }
.profile-section h4 { margin-bottom: 10px; }
.profile-section p { color: rgba(38, 48, 31, 0.85); font-size: 0.98rem; margin-bottom: 12px; }
.profile-section p a { color: var(--ochre-dark); text-decoration: underline; text-underline-offset: 2px; }
.profile-section p a:hover { color: var(--forest-dark); }
.profile-section p:last-child { margin-bottom: 0; }

.profile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.profile-list li { position: relative; padding-left: 18px; opacity: 0.85; }
.profile-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ochre);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ---------- Home hero list ---------- */

.hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 34px;
  font-size: 1rem;
}
.hero-list li { position: relative; padding-left: 18px; opacity: 0.85; }
.hero-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ochre);
}

.step-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--ochre-dark);
  transition: color 0.2s ease, transform 0.2s ease;
}
.step-link:hover { color: var(--forest-dark); transform: translateY(-2px); }

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

.services-list { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 820px; }
.service-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ochre-dark);
  opacity: 1 !important;
  margin-bottom: 6px;
}
.services-note { margin-top: 36px; font-size: 1.05rem; opacity: 0.85; }

.service-details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.service-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ochre-dark);
}
.service-details summary:hover { color: var(--forest-dark); }
.service-details-body { margin-top: 16px; }
.service-details-body p { margin-bottom: 12px; }

/* Portrait photos keep faces in frame when cropped */
.profile-photo img { object-position: center 30%; }


/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -72px; z-index: 100;
  background: var(--forest-dark); color: var(--cream);
  padding: 10px 16px; border-radius: var(--radius); font-size: 0.9rem;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ochre-dark);
  outline-offset: 3px;
}
.site-footer :focus-visible, .cta-band :focus-visible, .section-forest :focus-visible { outline-color: var(--sand); }

/* ---------- Services page, desktop only: all four services in a 2 x 2 grid ---------- */
/* Font sizes are the site's normal ones; only spacing and layout are tightened so the grid fits on one screen where possible. */
@media (min-width: 901px) {
  .page-hero--compact { padding: 26px 0 20px; }
  .services-section { padding: 26px 0 30px; }
  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 20px;
  }
  /* icon sits beside the title instead of above it, to save height */
  .services-list .card {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 14px;
    align-content: start;
    padding: 22px 26px 18px;
  }
  .services-list .card > .icon-mark { grid-column: 1; grid-row: 1; width: 30px; height: 30px; margin: 0; align-self: center; }
  .services-list .card > h3 { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
  .services-list .card > :not(.icon-mark):not(h3) { grid-column: 1 / -1; }
  .services-list .card > h3 + p { margin-top: 12px; }
  .services-list .card p[style] { margin-bottom: 10px !important; }
  .services-list .service-details { margin-top: 12px; padding-top: 10px; }
  .services-note { margin-top: 22px; }
  /* Opening a card's hidden information makes that card expand to fill the whole grid,
     covering the other three. Clicking the arrow again (or pressing Esc) brings the four back. */
  .services-list .card { scroll-margin-top: 100px; }
  .services-list .card:has(details[open]) {
    grid-column: 1 / -1;
    animation: card-expand 0.28s ease-out;
  }
  .services-list:has(details[open]) .card:not(:has(details[open])) { display: none; }
  .services-list .card:has(details[open]) .service-details-body { max-width: 46em; }
}
@keyframes card-expand {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .services-list .card:has(details[open]) { animation: none; }
}

/* Long email addresses in the footer wrap instead of overflowing on very narrow phones */
.footer-grid > div { min-width: 0; }
.footer-grid a { overflow-wrap: anywhere; }

/* FAQs page placeholder */
.coming-soon { margin-top: 40px; }

/* Home page "Our approach": the two paragraphs stack in a single column */
.intro-text { display: flex; flex-direction: column; gap: 24px; }

/* Hidden spam-trap field on the contact form (bots fill it in, people never see it) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Short privacy note under the contact form's message box */
.form-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(38, 48, 31, 0.85);
  margin: -6px 0 24px;
}
.form-note strong { color: var(--forest-dark); font-weight: 600; }
.form-note a { color: var(--ochre-dark); text-decoration: underline; text-underline-offset: 2px; }

/* "Back to all services" buttons: added by script.js to each expandable Services card; shown on desktop only,
   and only while that card is expanded. */
.service-back { display: none; align-items: center; gap: 10px; }
.service-back svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (min-width: 901px) {
  .services-list .card:has(details[open]) > .service-back--top {
    display: inline-flex;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 18px;
  }
  .services-list .card:has(details[open]) > .icon-mark,
  .services-list .card:has(details[open]) > h3 { grid-row: 2; }
  .services-list .service-details-body .service-back--bottom { display: inline-flex; margin-top: 28px; }
}
