/* ===========================================
   VISION WELLBEING — styles.css
   =========================================== */

/* ─── Google Fonts are loaded via <link> in HTML ─── */

/* ─────────────────────────────────────────
   1. CUSTOM PROPERTIES
   ───────────────────────────────────────── */
:root {
  /* Brand colours */
  --primary:        #2F4A4D; /* Deep blue-green slate */
  --secondary-bg:   #F4F1EC; /* Soft stone ivory */
  --accent-cta:     #B89C7A; /* Muted sandstone */
  --tertiary:       #7C8F7A; /* Muted sage */
  --dark:           #243236; /* Charcoal teal */
  --text-primary:   #2C2C2C; /* Warm charcoal */
  --text-secondary: #6B6B6B; /* Mid grey */
  --text-light:     #F4F1EC; /* Stone ivory for dark backgrounds */

  /* Extended palette */
  --sand-warm:        #F8F5F1; /* Warm sand — recognition block, CBT process bg */

  /* Derived */
  --accent-cta-hover: #a08868;
  --primary-hover:    #243a3d;

  /* Layout */
  --container-max:     1120px;
  --text-max:          680px;
  --container-padding: 24px;

  /* Spacing scale */
  --section-padding-mobile:  60px;
  --section-padding-desktop: 80px;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Nav */
  --nav-height: 70px;

  /* Transitions */
  --transition: 0.3s ease;
}


/* ─────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--secondary-bg);
}

/* Body when mobile nav is open — prevent scroll */
body.nav-open {
  overflow: hidden;
}

img,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ─── Desktop font size ─── */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
}


/* ─────────────────────────────────────────
   3. ACCESSIBILITY
   ───────────────────────────────────────── */

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background-color: var(--primary);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 6px 6px;
  z-index: 10000;
  transition: top var(--transition);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Visible focus indicators */
:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Remove default focus ring where :focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}


/* ─────────────────────────────────────────
   4. LAYOUT UTILITIES
   ───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}


/* ─────────────────────────────────────────
   5. TYPOGRAPHY
   ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary);
}

p {
  max-width: var(--text-max);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .eyebrow {
    font-size: 12px;
  }
}


/* ─────────────────────────────────────────
   6. BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  white-space: nowrap;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

/* Primary button — sandstone fill */
.btn--primary {
  background-color: var(--accent-cta);
  color: #ffffff;
  border-color: var(--accent-cta);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--accent-cta-hover);
  border-color: var(--accent-cta-hover);
}

/* Secondary button — primary outline */
.btn--secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--primary);
  color: var(--text-light);
}

/* CTA nav button (same as primary, slight sizing difference at desktop) */
.btn--nav-cta {
  background-color: var(--accent-cta);
  color: #ffffff;
  border-color: var(--accent-cta);
  padding: 10px 22px;
  font-size: 15px;
  min-height: 44px;
}

.btn--nav-cta:hover,
.btn--nav-cta:focus-visible {
  background-color: var(--accent-cta-hover);
  border-color: var(--accent-cta-hover);
}


/* ─────────────────────────────────────────
   7. NAVIGATION
   ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--secondary-bg);
  border-bottom: 1px solid rgba(47, 74, 77, 0.1);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(36, 50, 54, 0.09);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  height: var(--nav-height);
}

/* Logo / wordmark */
.nav__logo {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.025em;
  flex-shrink: 0;
  transition: opacity var(--transition);
  text-decoration: none;
}

.nav__logo:hover,
.nav__logo:focus-visible {
  opacity: 0.75;
}

/* Hamburger toggle button */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
  transition: background-color var(--transition);
  flex-shrink: 0;
}

.nav__hamburger:hover {
  background-color: rgba(47, 74, 77, 0.07);
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Animate hamburger → X when open */
.nav__hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav panel ── */
.nav__menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-bg);
  padding: 28px var(--container-padding) 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  z-index: 999;
  /* Hidden off-screen to the right */
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* Prevent focus trap bypass */
  visibility: hidden;
}

.nav__menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

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

.nav__link {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(47, 74, 77, 0.1);
  min-height: 52px;
  transition: color var(--transition);
}

.nav__link:last-child {
  border-bottom: none;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--primary);
}

.nav__cta-wrapper {
  margin-top: 8px;
}

.nav__cta-wrapper .btn {
  width: 100%;
}

/* ── Desktop nav (≥ 1024px) ── */
@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }

  .nav__menu {
    /* Reset mobile-panel styles */
    position: static;
    transform: none;
    visibility: visible;
    background: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0;
    overflow: visible;
    bottom: auto;
    top: auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
  }

  .nav__link {
    padding: 8px 14px;
    font-size: 15px;
    border-bottom: none;
    border-radius: 4px;
    min-height: 44px;
    letter-spacing: 0.01em;
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    background-color: rgba(47, 74, 77, 0.07);
    color: var(--primary);
  }

  .nav__cta-wrapper {
    margin-top: 0;
    margin-left: 20px;
  }

  .nav__cta-wrapper .btn {
    width: auto;
  }
}


/* ─────────────────────────────────────────
   8. HERO SECTION
   ───────────────────────────────────────── */
.hero {
  padding-top: var(--section-padding-mobile);
  padding-bottom: var(--section-padding-mobile);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* ── Hero text column ── */
.hero__text {
  order: 1;
}

/* ── Hero image column ── */
.hero__image-col {
  order: 0; /* image first on mobile (visually) */
  display: flex;
  justify-content: center;
}

/* H1 */
.hero__heading {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
  max-width: 600px;
}

/* Subheadline */
.hero__subhead {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: var(--text-max);
}

/* CTA group */
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__ctas .btn {
  width: 100%;
  justify-content: center;
}

/* Trust signals */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.trust-item {
  white-space: nowrap;
}

.trust-sep {
  color: var(--tertiary);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* Portrait */
.hero__portrait-wrap {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(124, 143, 122, 0.3);
  background-color: var(--secondary-bg);
  position: relative;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Image placeholder fallback */
.hero__portrait-placeholder {
  display: none; /* shown by JS if image fails */
  width: 100%;
  height: 100%;
  background-color: var(--secondary-bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--tertiary);
  border-radius: 4px;
}

.hero__portrait-placeholder span {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

/* ── Tablet+ (≥ 768px) ── */
@media (min-width: 768px) {
  .hero {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
  }

  .hero__container {
    grid-template-columns: 3fr 2fr;
    gap: 60px;
  }

  .hero__text {
    order: 0;
  }

  .hero__image-col {
    order: 1;
    justify-content: flex-start;
  }

  .hero__heading {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .hero__subhead {
    font-size: 19px;
    margin-bottom: 40px;
  }

  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__ctas .btn {
    width: auto;
  }

  .hero__trust {
    font-size: 14px;
  }

  .hero__portrait-wrap {
    max-width: 100%;
    height: 480px;
    aspect-ratio: unset;
  }
}

/* ── Desktop (≥ 1024px) ── */
@media (min-width: 1024px) {
  .hero__heading {
    font-size: 48px;
  }

  .hero__subhead {
    font-size: 20px;
  }

  .hero__portrait-wrap {
    height: 520px;
  }
}


/* ─────────────────────────────────────────
   9. TEXT LINK UTILITY
   ───────────────────────────────────────── */
.text-link {
  color: var(--accent-cta);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
  font-weight: 500;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: currentColor;
}

.text-link--accent {
  color: var(--accent-cta);
}

.text-link--light {
  color: var(--text-light);
  opacity: 0.85;
}

.text-link--light:hover,
.text-link--light:focus-visible {
  opacity: 1;
}

.text-link--tertiary {
  color: var(--tertiary);
}

.text-link--tertiary:hover,
.text-link--tertiary:focus-visible {
  color: var(--tertiary);
  text-decoration-color: currentColor;
}


/* ─────────────────────────────────────────
   10. RECOGNITION BLOCK
   ───────────────────────────────────────── */
.recognition-block {
  background-color: var(--sand-warm);
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(47, 74, 77, 0.1);
}

.recognition-block .container {
  max-width: var(--text-max);
  text-align: center;
}

.recognition-block h2 {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--primary);
  margin-bottom: 2rem;
}

.recognition-statements {
  margin-bottom: 2.5rem;
}

.recognition-statement {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: none;
}

.recognition-statement:last-child {
  margin-bottom: 0;
}

.closing-statement {
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--primary);
  max-width: none;
  border-top: 1px solid rgba(47, 74, 77, 0.15);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .recognition-block {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}


/* ─────────────────────────────────────────
   11. HOW THERAPY WORKS
   ───────────────────────────────────────── */
.how-it-works {
  background-color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.how-it-works .eyebrow {
  margin-bottom: 12px;
}

.how-it-works h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--primary);
  margin-bottom: 3rem;
  max-width: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.step {
  position: relative;
  padding-left: 0;
}

.step__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent-cta);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.7;
}

.step__heading {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.step__description {
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  max-width: none;
}

@media (min-width: 768px) {
  .how-it-works {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .step__description {
    font-size: 17px;
  }
}


/* ─────────────────────────────────────────
   12. SPECIALISMS PREVIEW
   ───────────────────────────────────────── */
.specialisms-preview {
  background-color: var(--secondary-bg);
  padding-top: 60px;
  padding-bottom: 60px;
}

.specialisms-preview h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--primary);
  margin-bottom: 2.5rem;
  max-width: none;
}

.specialisms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.specialism-card {
  background-color: #ffffff;
  border-left: 4px solid var(--primary);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.specialism-card:hover {
  box-shadow: 0 4px 20px rgba(47, 74, 77, 0.1);
  transform: translateY(-2px);
}

.specialism-card__heading {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.specialism-card p {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
  max-width: none;
}

.specialisms-footer-text {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: none;
}

.specialisms-footer-text .text-link {
  font-size: 15px;
  margin-left: 4px;
}

@media (min-width: 768px) {
  .specialisms-preview {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .specialisms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ─────────────────────────────────────────
   13. HOW CBT WORKS (PHASES)
   ───────────────────────────────────────── */
.cbt-process {
  background-color: var(--sand-warm);
  padding-top: 60px;
  padding-bottom: 60px;
}

.cbt-process h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--primary);
  margin-bottom: 3rem;
  max-width: none;
}

.cbt-phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
}

.cbt-phase {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(47, 74, 77, 0.1);
  position: relative;
}

.cbt-phase:last-child {
  border-bottom: none;
}

.cbt-phase__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
}

.cbt-phase__content {
  flex: 1;
}

.cbt-phase__heading {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cbt-phase__content p {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
  max-width: none;
  margin-bottom: 0;
}

.cbt-process__closing {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
  max-width: none;
  padding: 1.5rem;
  background-color: var(--secondary-bg);
  border-radius: 6px;
  border-left: 3px solid var(--tertiary);
}

@media (min-width: 768px) {
  .cbt-process {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cbt-phases {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .cbt-phase {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: none;
    border-top: 3px solid var(--accent-cta);
    background-color: var(--secondary-bg);
    border-radius: 0 0 6px 6px;
  }

  .cbt-phase__number {
    margin-bottom: 0.75rem;
    margin-top: 0;
  }

  .cbt-phase__heading {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .cbt-process__closing {
    font-size: 17px;
  }
}


/* ─────────────────────────────────────────
   14. ABOUT PREVIEW
   ───────────────────────────────────────── */
.about-preview {
  background-color: var(--secondary-bg);
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(47, 74, 77, 0.1);
}

.about-preview__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-preview__image-col {
  display: flex;
  justify-content: center;
}

.about-preview__portrait-wrap {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(124, 143, 122, 0.3);
  background-color: var(--secondary-bg);
  position: relative;
}

/* CSS placeholder shown behind image — visible if portrait image is unavailable */
.about-preview__portrait-wrap::after {
  content: 'Jack Wells\A CBT Therapist';
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
  z-index: 0;
  background-color: var(--secondary-bg);
  border: 1px solid rgba(47, 74, 77, 0.15);
  border-radius: 4px;
}

.about-preview__portrait {
  position: relative;
  z-index: 1;
}

.about-preview__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-preview__text-col .eyebrow {
  margin-bottom: 12px;
}

.about-preview__text-col h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--primary);
  margin-bottom: 1.25rem;
  max-width: none;
}

.about-preview__text-col p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: none;
}

.about-preview__trust-signals {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-preview__trust-signals li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.about-preview__trust-signals li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--tertiary);
}

@media (min-width: 768px) {
  .about-preview {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .about-preview__inner {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }

  .about-preview__portrait-wrap {
    max-width: 100%;
    height: 440px;
    aspect-ratio: unset;
  }
}

@media (min-width: 1024px) {
  .about-preview__portrait-wrap {
    height: 480px;
  }
}


/* ─────────────────────────────────────────
   15. CTA BLOCK (SECTION 7)
   ───────────────────────────────────────── */
.cta-block {
  background-color: var(--dark);
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.cta-block .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-block h2 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 0;
}

.cta-block__fee {
  font-size: 18px;
  color: var(--text-light);
  opacity: 0.85;
  max-width: none;
  margin-bottom: 0;
}

.cta-block__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.cta-block__buttons .btn {
  width: 100%;
  justify-content: center;
}

/* Sandstone filled button for dark bg */
.btn--cta-primary {
  background-color: var(--accent-cta);
  color: #ffffff;
  border-color: var(--accent-cta);
}

.btn--cta-primary:hover,
.btn--cta-primary:focus-visible {
  background-color: var(--accent-cta-hover);
  border-color: var(--accent-cta-hover);
}

/* Ivory outline button for dark bg */
.btn--cta-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn--cta-outline:hover,
.btn--cta-outline:focus-visible {
  background-color: rgba(244, 241, 236, 0.12);
}

.cta-block__location {
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.6;
  max-width: none;
  margin-bottom: 0;
}

.cta-block__waitlist {
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.7;
  max-width: none;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .cta-block {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cta-block__buttons {
    flex-direction: row;
    max-width: none;
    width: auto;
  }

  .cta-block__buttons .btn {
    width: auto;
    min-width: 200px;
  }
}


/* ─────────────────────────────────────────
   16. FOOTER
   ───────────────────────────────────────── */
.site-footer {
  background-color: var(--dark);
  padding-top: 48px;
  padding-bottom: 0;
  color: var(--text-light);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 241, 236, 0.12);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-light);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.footer-col p {
  font-size: 14px;
  color: rgba(244, 241, 236, 0.7);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  max-width: none;
}

.footer-col .babcp-status {
  font-size: 13px;
  color: rgba(244, 241, 236, 0.5);
  margin-top: 0.5rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.5);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 15px;
  color: rgba(244, 241, 236, 0.8);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text-light);
}

.footer-email {
  color: var(--accent-cta) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.footer-email:hover,
.footer-email:focus-visible {
  text-decoration-color: currentColor;
}

.crisis-disclaimer {
  padding: 1.25rem 1.5rem;
  background-color: rgba(244, 241, 236, 0.06);
  border-left: 3px solid var(--tertiary);
  border-radius: 0 4px 4px 0;
  margin: 2rem 0;
}

.crisis-disclaimer p {
  font-size: 13px;
  color: rgba(244, 241, 236, 0.75);
  line-height: 1.6;
  max-width: none;
  margin-bottom: 0;
}

.crisis-disclaimer strong {
  color: var(--text-light);
  font-weight: 500;
}

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(244, 241, 236, 0.08);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(244, 241, 236, 0.4);
  max-width: none;
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(244, 241, 236, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--text-light);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 2fr;
    gap: 3rem;
  }
}


/* ─────────────────────────────────────────
   17a. ABOUT HERO & PAGE SECTIONS
   ───────────────────────────────────────── */

/* About hero section — image left, text right */
.about-hero {
  background-color: var(--secondary-bg);
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(47, 74, 77, 0.1);
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Portrait container — same placeholder system as homepage about-preview */
.about-hero-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(124, 143, 122, 0.3);
  background-color: var(--secondary-bg);
  position: relative;
  margin-inline: auto;
}

.about-hero-image::after {
  content: 'Jack Wells\A CBT Therapist\A Edinburgh';
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
  z-index: 0;
  background-color: var(--secondary-bg);
  border: 1px solid rgba(47, 74, 77, 0.15);
  border-radius: 4px;
}

.about-hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-hero__text h1 {
  font-size: clamp(30px, 5vw, 44px);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-hero__text p {
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 17px;
}

.about-hero__text p:last-child {
  margin-bottom: 0;
}

/* Generic page section — used for content sections 2–4 */
.page-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-section--stone {
  background-color: var(--secondary-bg);
}

.page-section--white {
  background-color: #ffffff;
}

.page-section .section-title,
.page-section h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--primary);
  margin-bottom: 1.5rem;
  max-width: none;
}

.page-section p {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: var(--text-max);
}

.page-section p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .about-hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .about-hero__inner {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
  }

  .about-hero-image {
    max-width: 100%;
    height: 480px;
    aspect-ratio: unset;
    margin-inline: 0;
  }

  .page-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (min-width: 1024px) {
  .about-hero-image {
    height: 520px;
  }
}


/* ─────────────────────────────────────────
   17. PAGE HEADER (STUB PAGES)
   ───────────────────────────────────────── */
.page-header {
  background-color: var(--secondary-bg);
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(47, 74, 77, 0.1);
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  color: var(--primary);
  margin-bottom: 1rem;
  max-width: 680px;
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.page-content {
  background-color: #ffffff;
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-content p {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.page-content .btn {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .page-header {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}


/* ─────────────────────────────────────────
   18. FEES PAGE
   ───────────────────────────────────────── */

/* Prominent fee display in page header */
.fees-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Q&A list */
.fees-qa {
  margin-top: 1rem;
}

.fees-qa__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(47, 74, 77, 0.12);
}

.fees-qa__item:first-child {
  padding-top: 0;
}

.fees-qa__item:last-child {
  border-bottom: none;
}

.fees-qa__question {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 17px;
  line-height: 1.5;
}

.fees-qa__answer {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: var(--text-max);
}

/* Waitlist form */
.waitlist-form {
  margin-top: 1.5rem;
  max-width: 500px;
}

.waitlist-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1.5px solid rgba(47, 74, 77, 0.25);
  border-radius: 4px;
  min-height: 48px;
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.waitlist-form__input::placeholder {
  color: var(--text-secondary);
}

.waitlist-form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 74, 77, 0.12);
}

.waitlist-form__submit {
  align-self: flex-start;
}

.waitlist-form__note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

@media (min-width: 560px) {
  .waitlist-form__field {
    flex-direction: row;
    align-items: stretch;
  }

  .waitlist-form__input {
    flex: 1;
  }

  .waitlist-form__submit {
    align-self: auto;
    white-space: nowrap;
  }
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ─────────────────────────────────────────
   19. SPECIALISMS PAGE
   ───────────────────────────────────────── */

/* Anchor navigation bar */
.anchor-nav {
  background: var(--secondary-bg);
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.anchor-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.anchor-nav__link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.anchor-nav__link:hover {
  color: var(--accent-cta);
}

@media (max-width: 768px) {
  .anchor-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Page sections */
.page-section {
  padding-top: var(--section-padding-mobile);
  padding-bottom: var(--section-padding-mobile);
}

.page-section--white {
  background-color: #ffffff;
}

.page-section--stone {
  background-color: var(--secondary-bg);
}

.page-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--primary);
  margin-bottom: 1.25rem;
  max-width: var(--text-max);
}

.page-section p {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: var(--text-max);
}

.page-section p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .page-section {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
  }
}

/* "I also work with" section */
.also-work-with {
  background: var(--secondary-bg);
  padding-top: var(--section-padding-mobile);
  padding-bottom: var(--section-padding-mobile);
}

.also-work-with h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.also-work-with > .container > p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: var(--text-max);
}

.also-work-with ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.also-work-with li {
  color: var(--text-primary);
  position: relative;
  padding-left: 1.5rem;
  font-size: 17px;
  line-height: 1.6;
}

.also-work-with li::before {
  content: "✓";
  color: var(--tertiary);
  position: absolute;
  left: 0;
}

@media (min-width: 768px) {
  .also-work-with {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
  }
}

/* ─────────────────────────────────────────
   MOBILE ANCHOR NAV (specialisms)
   ───────────────────────────────────────── */
@media (max-width: 768px) {
    .anchor-nav {
        position: relative;
    }

    .anchor-nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        border: 1px solid var(--tertiary);
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(47, 74, 77, 0.1);
        z-index: 100;
        flex-direction: column;
        padding: 1rem;
    }

    .anchor-nav__list.is-open {
        display: flex;
    }

    .anchor-nav__toggle {
        display: block;
        background: var(--primary);
        color: white;
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9rem;
        width: 100%;
        text-align: left;
    }

    .anchor-nav__toggle::after {
        content: '▾';
        float: right;
        transition: transform 0.2s ease;
    }

    .anchor-nav__toggle.is-open::after {
        transform: rotate(180deg);
    }
}

@media (min-width: 769px) {
    .anchor-nav__toggle {
        display: none;
    }
}

/* ─────────────────────────────────────────
   RESOURCES PAGE
   ───────────────────────────────────────── */
.resources-section {
  padding-top: var(--section-padding-mobile);
  padding-bottom: var(--section-padding-mobile);
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .resources-section {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
  }

  .resources-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.article-card {
  background: #ffffff;
  border: 1px solid rgba(47, 74, 77, 0.12);
  border-radius: 6px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-card:hover {
  box-shadow: 0 4px 20px rgba(47, 74, 77, 0.12);
  transform: translateY(-2px);
}

.article-card__body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card__meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-card__description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__link {
  display: inline-block;
  color: var(--accent-cta);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
  margin-top: auto;
}

.article-card__link:hover,
.article-card__link:focus {
  color: var(--accent-cta-hover);
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   ARTICLE PAGES
   ───────────────────────────────────────── */
.article-header {
  background: var(--primary);
  color: var(--text-light);
  padding: calc(var(--section-padding-mobile) + var(--nav-height)) 0 var(--section-padding-mobile);
}

.article-header .eyebrow {
  color: var(--accent-cta);
  margin-bottom: 1rem;
}

.article-header .eyebrow a {
  color: var(--accent-cta);
  text-decoration: none;
}

.article-header .eyebrow a:hover {
  text-decoration: underline;
}

.article-header h1 {
  color: var(--text-light);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(244, 241, 236, 0.75);
  flex-wrap: wrap;
}

.article-meta__author {
  font-style: italic;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--section-padding-mobile) 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--primary);
  margin-top: 2.25em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .article-header {
    padding-top: calc(var(--section-padding-desktop) + var(--nav-height));
    padding-bottom: var(--section-padding-desktop);
  }

  .article-body {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
  }
}

.article-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 48px;
  background: var(--sand-warm);
  border-radius: 6px;
  margin-bottom: var(--section-padding-mobile);
  border-left: 4px solid var(--accent-cta);
}

@media (min-width: 768px) {
  .article-cta {
    margin-bottom: var(--section-padding-desktop);
  }
}

.article-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────
   YOUNG PEOPLE PAGE
   ───────────────────────────────────────── */
.young-people-cards {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .young-people-cards {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.young-people-card {
  background: var(--secondary-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.young-people-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.young-people-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.practical-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.practical-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--tertiary);
  font-size: 1rem;
  line-height: 1.6;
}

.practical-list li:last-child {
  border-bottom: none;
}

.practical-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.75rem;
}
