/* ===== Lucy Gibson Therapy: Stylesheet ===== */

/* Jost, hosted on the site itself (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-300.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-600.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/jost-300-italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #F8F3EC;
  --cream-dark: #F0E8DC;
  --sage: #8B9A82;
  --sage-dark: #71805F;
  --terracotta: #C1795A;
  --terracotta-dark: #A6603F;
  --charcoal: #3B362F;
  --charcoal-soft: #5B5548;
  --border: #E2D6C3;
  --white: #FFFDFB;
  --sand: #E8DCCA;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Keep section titles clear of the sticky header when jumping to them.
   --header-h is set from the real header height in script.js. */
[id] { scroll-margin-top: calc(var(--header-h, 200px) - 42px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1.2em; }

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ===== Header ===== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

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

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

.logo-mark {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.logo-mark .logo-suffix {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--charcoal-soft);
}

.logo-tagline {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-top: 4px;
}

.header-logos {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 10px;
}

.header-logos img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(15%);
  transition: opacity 0.2s ease;
}

.header-logos img:hover { opacity: 1; }

/* Each logo with its registration number underneath, both left-aligned */
.header-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.header-logo figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--charcoal-soft);
  white-space: nowrap;
}

/* HCPC: the figure is only as wide as its logo, so the Tavistock logo sits close
   beside it and the HCPC number runs on underneath the Tavistock logo */
.header-logo--overhang figcaption { width: 0; overflow: visible; }
.header-logo--overhang + .header-logo { margin-left: 18px; }

/* Single-line version of the numbers, used only on phones (logos sit in a 2x2 block there) */
.header-reg {
  display: none;
  margin: 8px 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--charcoal-soft);
  white-space: nowrap;
}

/* Desktop: menu sits level with the "Psychodynamic Psychotherapy" line, not the middle of the banner */
@media (min-width: 861px) {
  .nav-wrap { align-items: flex-start; }
  nav { margin-top: 40px; }   /* menu sits level with the gap between the name and the tagline */
}

nav ul {
  list-style: none;
  display: flex;
  --nav-gap: 34px;
  gap: 8px var(--nav-gap);
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--charcoal);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav a:hover { color: var(--terracotta-dark); text-decoration: none; }

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  border: 1px solid var(--terracotta);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  text-decoration: none;
}

.menu-toggle { display: none; }

/* ===== Hero ===== */

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
  gap: 40px;
  padding: 50px 24px 72px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 18px;
  display: block;
}

.hero-text h1 {
  font-size: 3.3rem;
  line-height: 1.12;
  text-wrap: balance;
  font-weight: 300;
  margin-bottom: 14px;
}

.hero-text p.hero-subtitle {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.95rem;
  font-weight: 300;
  font-style: normal;
  color: var(--terracotta-dark);
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero-text p.lede {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin-bottom: 0.8em;
}

.hero-image {
  border-radius: 6px;
  overflow: hidden;
}

/* Hero photo */
.hero-image { border-radius: 8px; overflow: hidden; align-self: center; }

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.4;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.btn:hover {
  background: var(--terracotta-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ===== Sections ===== */

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 14px;
}

section { padding: 88px 0; }

.section-alt { background: var(--cream-dark); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
/* Working together: the longer intro is a centred block with left-aligned text */
.section-head--wide { max-width: none; }
.section-head--solo { margin-bottom: 0; }  /* nothing follows it in its section */
.section-head--wide p { text-align: justify; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 14px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-grid img { border-radius: 6px; }

.credentials-line {
  font-size: 0.95rem;
  color: var(--sage-dark);
  letter-spacing: 0.03em;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Therapy cards */

/* Therapy options: three straight sections, each with text on the left and its picture on the right */
.therapy-list { border-top: 1px solid var(--border); }

.therapy-item { border-bottom: 1px solid var(--border); padding: 40px 0 44px; }

.therapy-item-title {
  text-align: left;
  color: var(--terracotta-dark);
  margin: 0 0 14px;
}

.therapy-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.therapy-panel-text p { color: var(--charcoal-soft); max-width: 52ch; }

.therapy-panel-img { width: 100%; height: auto; max-width: 520px; justify-self: end; }
.therapy-panel-photo { border-radius: 8px; max-width: 440px; }

/* Underlined text link, used for "Read more" and the hero's "Find out more" */
.therapy-panel a.card-link,
.text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--terracotta-dark);
  border-bottom: 1px solid var(--terracotta);
}

.text-link { font-size: 1rem; margin-top: 12px; }
.text-link:hover, .therapy-panel a.card-link:hover { text-decoration: none; border-bottom-color: var(--terracotta-dark); }

/* Quote */

.quote-block {
  background: var(--sand);
  text-align: center;
  padding: 72px 0;
}

.quote-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.quote-block blockquote {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0 0 16px;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--sage-dark);
  letter-spacing: 0.05em;
}

/* Credentials strip */

.credentials-strip {
  background: var(--cream-dark);
  padding: 48px 0;
}

.credentials-strip .badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 130px;
  text-align: center;
}

.badge img { height: 72px; width: auto; max-width: 180px; object-fit: contain; }

.badge span {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
}

.credentials-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin-top: 28px;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item summary {
  cursor: pointer;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--terracotta);
  border-bottom: 1.5px solid var(--terracotta);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.faq-item p { margin-top: 16px; color: var(--charcoal-soft); }

.faq-list { margin: 4px 0 16px; padding-left: 1.2em; color: var(--charcoal-soft); }
.faq-list li { margin-bottom: 10px; }
.faq-list strong { font-weight: 500; color: var(--charcoal); }

/* Sessions */

.sessions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.sessions-grid h3 {
  color: var(--terracotta-dark);
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.sessions-grid h3:not(:first-child) { margin-top: 34px; }

.sessions-grid p { color: var(--charcoal-soft); }

.fee-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.fee-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.fee-list li span:first-child { color: var(--charcoal); }
.fee-list li span:last-child { color: var(--charcoal-soft); text-align: right; }

.map-wrap {
  margin-top: 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

.map-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.85rem; }
.map-credit { color: var(--charcoal-soft); font-size: 0.75rem; }
.map-credit a { color: inherit; }

/* Contact */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info h2 { margin-bottom: 20px; }

.contact-info p { color: var(--charcoal-soft); }
.contact-phone { white-space: nowrap; font-weight: 500; }

.contact-info .detail {
  margin-bottom: 22px;
}

.contact-info .detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  margin-bottom: 4px;
}

form label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}

form .field { margin-bottom: 20px; }

form input, form select, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: 'Jost', sans-serif;
  font-size: 0.98rem;
  background: var(--white);
  color: var(--charcoal);
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--sage);
}

form textarea { min-height: 120px; resize: vertical; }

form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B5548' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.req { color: var(--terracotta-dark); }

.req-note {
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  margin: -6px 0 12px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin-top: 10px;
}

/* honeypot spam trap: kept out of sight and out of the tab order */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#form-status {
  margin-top: 16px;
  font-size: 0.9rem;
}

#form-status.success { color: var(--sage-dark); }

/* green tick and "Sent" shown beside the Send button for 5 seconds */
.send-row { display: flex; align-items: center; gap: 14px; }
.form-sent {
  display: inline-flex; align-items: center; gap: 7px;
  color: #3f8a4a; font-size: 0.95rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.form-sent.show { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
#form-status.error { color: var(--terracotta-dark); }

/* Footer */

footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 48px 0 28px;
}

footer .footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

footer a { color: var(--cream); }

footer .footer-contact { font-size: 0.9rem; line-height: 1.71rem; }

/* left column uses the same line spacing so its three lines sit level with the contact details */
footer .footer-id { font-size: 0.85rem; color: #C7C0B3; line-height: 1.71rem; }
footer .footer-id .footer-name { line-height: 1.71rem; color: var(--cream); }

footer .footer-name {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

footer .footer-meta {
  font-size: 0.85rem;
  color: #C7C0B3;
  margin-top: 24px;
  text-align: center;
  border-top: 1px solid #55503f;
  padding-top: 20px;
}

/* Therapy page */

.page-hero {
  text-align: center;
  padding: 72px 0 64px;
}

.page-hero h1 { font-size: 3.4rem; margin-bottom: 18px; }

.page-hero .lede {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.jump-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.jump-links a {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.jump-links a:hover {
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
}

.detail-body {
  max-width: 720px;
  margin: 0 auto;
}

.detail-body .btn {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
}

.section-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-nav a { color: var(--charcoal-soft); }
.section-nav a:hover { color: var(--terracotta-dark); text-decoration: none; }
.section-nav span { color: var(--sage); }

/* Privacy notice and other long-form text */
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; color: var(--terracotta-dark); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--charcoal-soft); }
.legal ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.legal li { margin-bottom: 6px; }
.legal-updated { font-size: 0.85rem; color: var(--sage-dark); }
.legal a[href^="tel"] { white-space: nowrap; }
.legal .legal-home { margin-top: 32px; }
footer .footer-meta a { color: #C7C0B3; text-decoration: underline; margin-left: 6px; }

/* ===== Responsive ===== */

@media (max-width: 860px) and (min-width: 601px) {
  .hero-image { max-width: 440px; }
}

@media (max-width: 1020px) and (min-width: 861px) {
  .hero-text h1 { font-size: 2.8rem; }
  /* Logos with numbers underneath take more room: tighten so the menu still fits on one line */
  .header-logos { gap: 12px; }
  .header-logos img { height: 34px; max-width: 110px; }
  .header-logo figcaption { font-size: 0.66rem; }
  nav ul { --nav-gap: 13px; }
  nav a { font-size: 0.85rem; }
  nav { margin-left: 20px; }
  .nav-cta { padding: 7px 16px; }
  .brand { flex-shrink: 0; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-image { order: -1; }  /* phones and tablets: Lucy's photo above the title */
  .about-grid { grid-template-columns: 1fr; }
  .therapy-panel { grid-template-columns: 1fr; gap: 20px; }
  .therapy-panel-img { justify-self: center; max-width: 420px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .sessions-grid { grid-template-columns: 1fr; gap: 24px; }
  .fee-list li { flex-direction: column; gap: 2px; }
  .fee-list li span:last-child { text-align: left; }
  .page-hero h1 { font-size: 2.4rem; }
  /* Phone/tablet: keep the menu in the banner, on its own row under the name */
  .nav-wrap { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 10px; }
  .logo-mark { font-size: 1.6rem; }
  .logo-mark .logo-suffix { font-size: 1.05rem; }
  .logo-tagline { font-size: 0.7rem; letter-spacing: 0.2em; }
  .header-logos { margin-top: 8px; }
  .header-reg { white-space: normal; font-size: 0.7rem; margin: 6px 0 0; }
  .header-logo figcaption { font-size: 0.66rem; }
  nav { border-top: 1px solid var(--border); padding-top: 10px; }
  nav ul { flex-wrap: wrap; justify-content: flex-start; align-items: center; --nav-gap: 30px; }
  nav li:last-child { margin-left: auto; }
  nav a { font-size: 0.88rem; }
  .nav-cta { padding: 5px 14px; font-size: 0.85rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-text h1 { font-size: 2.6rem; }
  .hero-text p.hero-subtitle { font-size: 1.25rem; }
  .credentials-strip .badges { gap: 28px; }
  .header-logos { gap: 14px; }
  .header-logos img { height: 32px; max-width: 108px; }
}

@media (max-width: 600px) {
  /* phones: the menu runs over two rows, with Contact me at the right of the second */
  nav ul { justify-content: flex-start; --nav-gap: 18px; flex-wrap: wrap; }
  nav li:last-child { margin-left: auto; }
  nav a { font-size: 0.86rem; letter-spacing: 0; }
  .nav-cta { padding: 5px 12px; font-size: 0.84rem; }
}

/* Phone: name + tagline on the left, the four logos in a 2x2 block on the right */
@media (max-width: 600px) {
  .brand {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name logos" "tag tag" "reg reg";
    column-gap: 12px;
    align-items: center;
  }
  .logo-mark { grid-area: name; line-height: 1.15; }
  .logo-mark .logo-suffix { display: block; margin-top: 2px; }
  .logo-tagline { grid-area: tag; margin-top: 8px; line-height: 1.5; white-space: nowrap; font-size: 0.68rem; letter-spacing: 0.18em; }
  .header-logos {
    grid-area: logos;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 6px 10px;
    margin-top: 0;
    justify-items: center;
    align-items: center;
  }
  .header-logos img { height: 26px; max-width: 62px; }
  .header-logo figcaption { display: none; }
  .header-logo--overhang + .header-logo { margin-left: 0; }
  /* phones: swap HCPC and Tavistock in the 2x2 block (BACP, BAAT / Tavistock, HCPC) */
  .header-logos .header-logo:nth-child(3) { order: 4; }
  .header-logos .header-logo:nth-child(4) { order: 3; }
  /* right-hand column (BAAT above HCPC): line up their left edges */
  .header-logos .header-logo:nth-child(2),
  .header-logos .header-logo:nth-child(3) { justify-self: start; }
  .section-head--wide p { text-align: left; }  /* justified text gaps too much on narrow screens */
  .header-reg { display: block; grid-area: reg; margin-top: 4px; }
}
@media (max-width: 360px) {
  .logo-mark { font-size: 1.35rem; }
  .logo-tagline { font-size: 0.6rem; letter-spacing: 0.14em; }
  .header-reg { font-size: 0.56rem; letter-spacing: 0; }
  nav ul { --nav-gap: 14px; }
  nav a { font-size: 0.8rem; letter-spacing: 0; }
  .nav-cta { padding: 4px 10px; font-size: 0.78rem; }
  .header-logos img { height: 22px; max-width: 54px; }
}

/* Smaller laptops: the menu is too long to sit beside the name, so it gets its own row
   underneath (same arrangement as tablets) */
@media (min-width: 861px) and (max-width: 1240px) {
  .nav-wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  nav { margin-top: 0; margin-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
  nav ul { flex-wrap: wrap; align-items: center; --nav-gap: 32px; }
  nav a { font-size: 0.92rem; }
  nav li:last-child { margin-left: auto; }
}

/* Small dot between menu items (not next to the Contact me button) */
nav li { position: relative; }
nav li:not(:last-child):not(:nth-last-child(2))::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--nav-gap) / -2);
  width: 3px;
  height: 3px;
  margin: -1px -1.5px 0 0;
  border-radius: 50%;
  background: var(--sage-dark);
  opacity: 0.7;
}
nav li.row-end::after { display: none; }

/* a section head with only its small label (no heading) sits closer to the text */
.section-head--label { margin-bottom: 28px; }
.section-head--label .eyebrow { margin-bottom: 0; }

/* thin rule separating Fees from the map credit above it */
.sessions-grid h3.sessions-divider { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 30px; }
