/* =========================================================
   Jenny Brady Coaching — site.css
   ---------------------------------------------------------
   0. Fonts (self-hosted)
   1. Tokens
   2. Base / reset
   3. Layout
   4. Typography
   5. Components (buttons, nav, hero, cards, testimonial, cta)
   6. Sections
   7. Utility
   8. Accessibility + responsive
   ========================================================= */

/* ---------- 0. Fonts ---------- */
/* DM Sans — one variable-style file covers 400/500/600 via the font-weight
   range on a single @font-face block. Latin subset only (U+0000–00FF plus
   the standard Latin punctuation / symbol range). */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-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: "DM Serif Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-serif-text-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;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour */
  --ink: #182121;
  --ink-soft: #3a4444;
  --ink-muted: #6b7575;
  --paper: #ffffff;
  --wash-1: #edf6ef;      /* palest sage-green tint of --accent */
  --wash-2: #dbecde;      /* mid sage-green tint */
  --wash-3: #bce0c2;      /* stronger sage-green tint */
  --accent: #3cad50;      /* sage green */
  --accent-dark: #2a8a3b;
  --cta: #ff5000;         /* primary CTA orange */
  --cta-dark: #e04600;    /* CTA hover */
  --border: #e3e6db;

  /* Type */
  --font-display: "DM Serif Text", "Georgia", "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-xxl: clamp(2.25rem, 4.2vw + 1rem, 4.25rem);
  --fs-xl: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
  --fs-l: clamp(1.35rem, 1.1vw + 1rem, 1.7rem);
  --fs-m: 1.125rem;
  --fs-s: 0.95rem;
  --fs-xs: 0.82rem;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* Layout */
  --container: 1080px;
  --container-narrow: 760px;
  --container-wide: 1240px;
  --pad-x: clamp(1.1rem, 4vw, 2rem);
  --pad-y: clamp(3.25rem, 7vw, 6.5rem);
  --radius: 0.65rem;
  --radius-lg: 1.1rem;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(24, 33, 33, 0.04), 0 2px 8px rgba(24, 33, 33, 0.05);
  --shadow-2: 0 4px 16px rgba(24, 33, 33, 0.08);
  --shadow-3: 0 10px 28px rgba(24, 33, 33, 0.16), 0 2px 6px rgba(24, 33, 33, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 240ms;
}

/* ---------- 2. Base / reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease);
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
ul,
ol {
  padding-left: 1.25rem;
}
li + li {
  margin-top: 0.35rem;
}
strong {
  font-weight: 600;
}
.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;
}
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 1000;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container-narrow {
  max-width: var(--container-narrow);
}
.container-wide {
  max-width: var(--container-wide);
}
section {
  padding-block: var(--pad-y);
}
.section-wash {
  background: var(--wash-1);
}
.section-wash-2 {
  background: var(--wash-2);
}
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink a {
  color: var(--wash-3);
}
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 4. Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: var(--fs-xxl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-l);
}
h4 {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
p {
  margin: 0 0 1em;
  max-width: 62ch;
}
p.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 58ch;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}
blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.3vw + 1rem, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- 5. Components ---------- */

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--cta);
  color: var(--paper);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header / primary nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.site-logo img {
  height: 56px;
  width: auto;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-main li {
  margin: 0;
  position: relative;
}
.nav-main a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.62rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 6px;
}
.nav-main a:hover {
  background: var(--wash-1);
  color: var(--accent-dark);
}
.nav-main a[aria-current="page"] {
  color: var(--accent-dark);
}
.nav-main .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 0.5rem;
  min-width: 240px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  z-index: 60;
}
.nav-main .submenu li {
  width: 100%;
}
.nav-main .has-children:hover .submenu,
.nav-main .has-children:focus-within .submenu {
  display: flex;
}
.nav-main .submenu a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  border-radius: 6px;
  text-align: left;
  white-space: nowrap;
}
.nav-caret {
  display: inline-block;
  font-size: 1.4em;
  line-height: 1;
  margin-left: 0.35em;
  transform: translateY(calc(0.05em - 1px));
  color: var(--ink-muted);
}
.nav-main a:hover .nav-caret {
  color: var(--accent-dark);
}
.nav-main .btn-nav {
  margin-left: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--cta);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600;
}
.nav-main .btn-nav:hover {
  background: var(--accent);
  color: var(--paper);
}

@media (max-width: 1280px) {
  .nav-main {
    gap: 0.6rem;
  }
  .nav-main ul {
    gap: 0.6rem;
  }
  .nav-main a {
    padding: 0.5rem 0.4rem;
    font-size: 0.86rem;
  }
  .nav-main .submenu a {
    font-size: 0.86rem;
    padding: 0.6rem 0.85rem;
  }
  .nav-main .btn-nav {
    margin-left: 0.4rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
  }
  .site-logo img {
    height: 50px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem 0.25rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover {
  color: var(--accent-dark);
}

@media (max-width: 950px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--pad-x) 1.5rem;
    box-shadow: var(--shadow-2);
  }
  .nav-main.is-open {
    display: block;
  }
  .nav-main ul {
    flex-direction: column;
    gap: 0.1rem;
    align-items: stretch;
  }
  .nav-main .submenu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 0.75rem;
  }
  .nav-main .btn-nav {
    margin: 0.75rem 0 0;
    text-align: center;
  }
}

/* Hero */
.hero {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.hero h1 {
  margin-bottom: 1.25rem;
}
.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 380px;
  width: 100%;
  margin-inline-start: auto;
}
.hero__image--large {
  max-width: 400px;
}
.hero__image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero__image {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Cards (audience / service tiles) */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.75rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--ink-soft);
  flex: 1;
}
.card__more {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.card-image {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  padding: 1rem;
}
.card-image img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 200px;
  object-fit: contain;
  transition: transform 500ms var(--ease);
}
.card:hover .card-image img {
  transform: scale(1.04);
}
/* Illustration cards ('Ways we can work together') — square art
   letterboxed into a slightly-landscape band on a paper ground. */
.card-image--illustration {
  aspect-ratio: 4 / 3;
  padding: 1rem 0;
}
.card-image--illustration img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* Testimonial */
.testimonial {
  background: var(--wash-1);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.testimonial__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}
.testimonial__author {
  font-weight: 600;
  margin: 0;
}
.testimonial__role {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0;
}
@media (max-width: 560px) {
  .testimonial {
    grid-template-columns: 1fr;
  }
  .testimonial__avatar {
    width: 72px;
    height: 72px;
  }
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-form label {
  display: block;
}
.contact-form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 138, 102, 0.2);
}
.contact-form textarea {
  resize: vertical;
  min-height: 7em;
}
.contact-form .cf-turnstile {
  margin: 0.25rem 0;
}

/* Video testimonials */
.video-testimonials__grid {
  display: grid;
  gap: 2rem;
  max-width: 1100px;
  margin-inline: auto;
}
/* Auto layout based on count (used when vtPerRow isn't set). */
.video-testimonials__grid--1 {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.video-testimonials__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
}
.video-testimonials__grid--3,
.video-testimonials__grid--4,
.video-testimonials__grid--5,
.video-testimonials__grid--6,
.video-testimonials__grid--7 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Explicit per-row override classes (set via vtPerRow on the include). */
.video-testimonials__grid--cols-1 {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.video-testimonials__grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
}
.video-testimonials__grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .video-testimonials__grid--3,
  .video-testimonials__grid--4,
  .video-testimonials__grid--5,
  .video-testimonials__grid--6,
  .video-testimonials__grid--7,
  .video-testimonials__grid--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .video-testimonials__grid,
  .video-testimonials__grid--2,
  .video-testimonials__grid--3,
  .video-testimonials__grid--4,
  .video-testimonials__grid--5,
  .video-testimonials__grid--6,
  .video-testimonials__grid--7,
  .video-testimonials__grid--cols-2,
  .video-testimonials__grid--cols-3 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}
.video-testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.video-testimonial__player {
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-2);
}
.video-testimonial__player--portrait {
  aspect-ratio: 9 / 16;
  /* 27/64 = (3/4) * (9/16): match height of landscape 4/3 players in same row. */
  width: 42.1875%;
  max-width: none;
  margin-inline: auto;
}
.video-testimonial__player--portrait video {
  object-fit: contain;
  background: var(--ink);
}
.video-testimonial__player video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}
.video-testimonial__player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-testimonial__caption {
  text-align: center;
  margin-top: 1rem;
}
.video-testimonial__name {
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.video-testimonial__role {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Logo strip — CSS Grid with auto-fit minmax() gives an evenly
   distributed last row instead of orphaning a single logo. */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  column-gap: 2rem;
  row-gap: 2.5rem;
  align-items: center;
  justify-items: center;
  opacity: 0.75;
  filter: grayscale(1);
  margin-top: 3.4rem;
}
/* Text-style stand-in for clients whose logo we don't have yet. */
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1.1rem;
  border: 1px dashed var(--ink-muted);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
}
.logo-strip img {
  max-height: 44px;
  width: auto;
}
/* Per-logo size tuning — keyed off alt text because the image pipeline
   rewrites src to a hashed path, so src-suffix selectors don't match. */
.logo-strip img[alt="The Royal Society"]       { max-height: 78px; }
.logo-strip img[alt="University of Manchester"] { max-height: 66px; }
.logo-strip img[alt="University of Sheffield"]  { max-height: 64px; }
.logo-strip img[alt="Newcastle University"]    { max-height: 55px; }
.logo-strip img[alt="Northumbria University"]  { max-height: 55px; }
.logo-strip img[alt="Durham University"]       { max-height: 55px; }
.logo-strip img[alt="University of Cambridge"] { max-height: 37px; }
.logo-strip img[alt="Nifty Fox Creative"]      { max-height: 37px; }
.logo-strip img[alt="Prosper"]                 { max-height: 31px; }
.logo-strip img[alt="Lancaster University"]   { max-height: 52px; }

/* Plan steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  background: var(--paper);
  border: 1px solid var(--wash-3);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
}
@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* CTA block (reused at bottom of every page) */
.cta-block {
  background: var(--wash-2);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin-block: var(--pad-y);
}
.cta-block h2 {
  margin-bottom: 0.75rem;
}
.cta-block p {
  max-width: 48ch;
  margin-inline: auto;
  color: var(--ink-soft);
}
.cta-block .btn {
  margin-top: 1.5rem;
}
.aside {
  display: block;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--ink-muted);
}

/* Familiar list (problem-naming bullets) — calm two-column list */
.familiar {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: grid;
  gap: 1.1rem 2.75rem;
}
@media (min-width: 640px) {
  .familiar {
    grid-template-columns: 1fr 1fr;
  }
}
.familiar li {
  position: relative;
  margin: 0;
  padding-left: 1.6rem;
  color: var(--ink);
  line-height: var(--lh-body);
}
.familiar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--wash-2);
  padding-block: 3.5rem 2rem;
}
.site-footer h4 {
  color: var(--paper);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer__logo {
  height: 52px;
  width: auto;
  margin-bottom: 1.1rem;
}
.site-footer a {
  color: var(--wash-2);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.site-footer .btn-primary,
.site-footer .btn-primary:hover {
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  border-color: transparent;
}
.site-footer .btn-primary:hover {
  background: var(--accent-dark);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin: 0 0 0.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer__brand p {
  max-width: 42ch;
  color: var(--wash-2);
  margin-bottom: 1.25rem;
}
.site-footer__col a {
  display: inline-block;
  padding-block: 0.05rem;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding: 0;
  margin: 0;
}
.site-footer__legal li {
  margin: 0;
}
@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--ink-muted);
}
.breadcrumb a:hover {
  color: var(--accent-dark);
}

/* Blog */
.blog-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.blog-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}
.blog-item h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.blog-item h2 a {
  text-decoration: none;
}
.blog-item h2 a:hover {
  text-decoration: underline;
}
.blog-item time {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 2.5rem;
}
.prose h3 {
  margin-top: 2rem;
}

/* ---------- 7. Utility ---------- */
.text-center { text-align: center; }
.who-supervision-link {
  margin-inline: auto;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-inline: auto; }
.m-0 { margin: 0; }
.items-start { align-items: start; }
.nospam { display: none; }
.honeypot { position: absolute; left: -9999px; }
.is-disabled { opacity: 0.6; pointer-events: none; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

/* Section heading blocks, action rows + small components.
   These replace what used to be per-element inline styles. */
.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.6rem);
}
.section-head p {
  margin-inline: auto;
}
.actions {
  margin-top: 1.75rem;
  max-width: none;
}
.actions--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.note {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.familiar-note {
  margin: 2.5rem auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
}
.blocks-gap {
  margin-top: clamp(4.25rem, 7vw, 6.5rem);
}
.aside-card {
  background: var(--wash-1);
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.aside-card h2 {
  margin-top: 0;
}
.aside-card h3 {
  font-size: 1.1rem;
}
.post-head {
  margin-bottom: 2rem;
}
.post-meta {
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Pull-quote testimonial ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  line-height: 1.3;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.pull-quote p {
  margin: 0;
}
.pull-quote__attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Written testimonial ---------- */
.written-testimonial__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.written-testimonial__body {
  font-size: 1rem;
  line-height: 1.7;
}
.written-testimonial__body p + p {
  margin-top: 0.75rem;
}

/* ---------- Thank-you page ---------- */
.thank-you-page {
  max-width: 36rem;
  margin: 2rem auto;
  padding: 0 1rem;
}
.thank-you-page img {
  display: block;
  margin-inline: auto;
}
.thank-you-page h1 {
  margin-top: 1.5rem;
}
.thank-you-portrait {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* ---------- 8. Responsive + print + motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 9. Home hero + closing image ---------- */

/* Full-bleed photo hero with the intro overlaid */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* The hero photo is wide enough (~1.64:1) to run a taller hero
     without the image upscaling. */
  min-height: clamp(620px, 82vh, 820px);
  padding-block: clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
  background: var(--paper);
}
.home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Very faint top + bottom darkening only — keeps the photo's colour
     intact and just stops the brightest pixels from clipping. */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0.12) 100%
  );
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
}
.home-hero__inner h1 {
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw + 1rem, 3.25rem);
  max-width: 42ch;
  margin: 0.4rem 0 1.3rem;
}
/* Pages using the shorter hero heading carry it ~10% larger. */
.home-hero--short-heading .home-hero__inner h1 {
  font-size: clamp(2.1rem, 4.4vw + 1.1rem, 3.6rem);
}
.home-hero__inner .lead {
  color: var(--ink);
  font-size: clamp(1rem, 1vw + 0.75rem, 1.3rem);
  margin: 1.2rem;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.85),
    0 0 5px rgba(255, 255, 255, 0.95);
}
.home-hero__actions {
  margin: 1.6rem 0 0;
}

/* Light hero — white copy over a darker/livelier photo, with a
   readability scrim. */
.home-hero--light .home-hero__inner,
.home-hero--light .home-hero__inner h1,
.home-hero--light .home-hero__inner .lead {
  color: #fff;
}
.home-hero--light .home-hero__inner h1 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 0, 0, 0.35);
}
.home-hero--light .home-hero__inner .lead {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 0, 0, 0.4);
}
.home-hero--light::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.22) 32%,
    rgba(0, 0, 0, 0.22) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
/* The photo hero runs its image without the dark gradient scrim. */
.home-hero--photo::after { background: none; }

/* Focal crop for the hero photo. */
.home-hero--photo .home-hero__media { object-position: center 55%; }
/* Lift the hero copy clear of the dune grass onto the sky. */
.home-hero--photo .home-hero__inner { transform: translateY(-60px); }

/* Photo hero button: solid white with green text;
   green border and a stronger shadow on hover. */
.home-hero--photo .home-hero__actions .btn-primary {
  background: #fff;
  color: var(--accent-dark);
}
.home-hero--photo .home-hero__actions .btn-primary:hover {
  background: #fff;
  color: var(--accent-dark);
  border-color: var(--accent);
  box-shadow: var(--shadow-3);
}

/* Text-and-image split (service intro) — text left, image right */
.media-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
/* Image-left variant: image column first and narrower, text to the right */
.media-split--image-left {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}
.media-split--image-left .media-split__image {
  margin-inline-start: 0;
  margin-inline-end: auto;
}
.media-split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  margin-inline-start: auto;
}
.media-split__image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 820px) {
  .media-split {
    grid-template-columns: 1fr;
  }
  .media-split__image {
    max-width: 380px;
    margin-inline: auto;
  }
}

/* Calm closing image above the final CTA */
.closing-band {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 48vh, 560px);
}
.closing-image {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 50%;
  will-change: transform;
}

/* ---------- 10. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Logo strip ("experience") section */
.logos__intro {
  max-width: 54ch;
  margin: 0 auto 2.25rem;
  color: var(--ink-soft);
}
.logos__caption {
  /* Override generic p { max-width: 62ch } so the block itself centres
     under the strip, not just the text within it. */
  max-width: 62ch;
  margin: 1.75rem auto 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}
