/* ==========================================================================
   Green Glove Heroes — site styles
   Design tokens carried over from the Elementor global kit.
   ========================================================================== */

/* --------------------------------------------------------------- Fonts -- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/roboto-600.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-700.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/roboto-800.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/roboto-900.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-500.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-700.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-800.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-900.woff2") format("woff2");
}

/* -------------------------------------------------------------- Tokens -- */
:root {
  --green: #00a800;
  --green-dark: #007b00;
  /* Forms use their own accent in the Elementor kit — the divider and the
     field focus ring are #21C063, not --green. */
  --green-accent: #21c063;
  --field-border: #c7c7c7;
  --field-ink: #0c5a23;
  --navy: #08485e;
  --ink: #1d1d1d;
  --gray: #54595f;
  --gray-muted: #777777;
  --gray-bg: #eeeeee;
  --white: #ffffff;
  --star: #f5a623;

  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans JP", "Roboto", system-ui, -apple-system, sans-serif;

  /* Content column is 1200px; the gutter sits outside it, matching Elementor. */
  --wrap: 1248px;
  --gutter: 24px;
  --radius: 0px;
  /* The form column on the live site measures 652px. */
  --form-w: 652px;
  --section-y: 48px;
  --shadow: 0 2px 12px rgb(0 0 0 / 8%);
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------- Reset -- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green);
}

/* Section headings: Roboto 800 at 35px with a 1em line-height, per the kit. */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 {
  font-size: 35px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- Helpers -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: 1400px;
}

/* Centred column for a standalone form (contact, quote, employment). */
.wrap--form {
  max-width: calc(var(--form-w) + (var(--gutter) * 2));
}

.section {
  padding-block: var(--section-y);
}

/* This band runs taller than the default rhythm. */
.guarantees {
  padding-block: 80px 47px;
}

.section--gray {
  background: var(--gray-bg);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

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

/* ------------------------------------------------------------- Eyebrow -- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: capitalize;
  color: var(--navy);
  margin: 0 0 0.5em;
}

.eyebrow .arrow {
  color: var(--green);
  font-weight: 600;
}

/* Green underline rule used under a number of headings */
.rule {
  border: 0;
  border-top: 1px solid #d8dde0;
  margin: 1.25em 0 1.5em;
  position: relative;
}

.rule::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  border-top: 4px solid var(--green);
}

/* ------------------------------------------------------------ Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.btn--primary {
  background: var(--green-dark);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green);
  color: var(--white);
}

/* Outlined button carries a 2px border, so the padding is 1px tighter. */
.btn--outline {
  border: 2px solid var(--navy);
  padding: 14px 29px;
  color: var(--navy);
  background: var(--white);
}

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

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--gray-bg);
  color: var(--navy);
}

/* The contact list and pitch are shared by the footer and the contact hero —
   both sit on navy, so the styling carries over unchanged. */
.page-hero--navy .footer__tagline,
.page-hero--navy .footer__pitch {
  color: var(--white);
}

.page-hero--navy .footer__tagline {
  margin-top: 1.5em;
}

.page-hero--navy .footer__contact {
  margin-bottom: 0;
}

/* The contact hero mirrors the footer: 50/50, copy left, links bottom-right. */
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  align-items: end;
}

@media (max-width: 767px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* The white link colour was scoped to .site-footer; on navy anywhere else the
   default dark green fails contrast badly. Applied to every link on the band,
   not just the contact list. */
.page-hero--navy a,
.page-hero--navy .linklike {
  color: var(--white);
}

.page-hero--navy a:hover,
.page-hero--navy .linklike:hover {
  color: var(--green);
}

/* A button that has to look like a link: the map opens a dialog, so it is a
   <button>, not an <a> — it goes nowhere. */
.linklike {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--green-dark);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

/* -------------------------------------------------------------- Topbar -- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gray-bg);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  line-height: 15px;
  text-transform: uppercase;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 35px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.topbar__links a {
  letter-spacing: 0.5px;
  line-height: 18px;
}

.topbar a:hover {
  color: var(--green-dark);
}

/* The guarantee badge is a raster image and runs larger than the line icons. */
.topbar__badge {
  width: 35px;
  height: 35px;
  flex: none;
}

/*
 * The two topbar glyphs are the brand's own artwork (lifted verbatim from the
 * WordPress build). Masking them lets the colour follow `currentColor`.
 */
.topbar__icon {
  flex: none;
  width: 19px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.topbar__icon--quote {
  height: 17px;
  --icon: url("../img/icons/free-quote.svg");
}

.topbar__icon--contact {
  height: 13px;
  --icon: url("../img/icons/contact.svg");
}

/* -------------------------------------------------------------- Header -- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 61px;
}

.site-header__logo img {
  width: 210px;
  height: 40px;
}

/* ----------------------------------------------------------------- Nav -- */
.nav {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--navy);
  font-size: 15px;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--green-dark);
}

/* Mobile burger — three bars that fold into an X when the menu is open. */
.nav__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
  transition: color var(--transition);
}

.nav__burger:hover,
.nav__burger:focus-visible {
  color: var(--green);
}

.nav__burger:active {
  color: var(--green-dark);
}

.nav__burger-box {
  position: relative;
  display: block;
  width: 28px;
  height: 20px;
}

.nav__burger-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: top var(--transition), transform var(--transition),
    opacity 0.15s ease;
}

.nav__burger-bar:nth-child(1) {
  top: 0;
}

.nav__burger-bar:nth-child(2) {
  top: 8.5px;
}

.nav__burger-bar:nth-child(3) {
  top: 17px;
}

/* Open: outer bars meet in the middle and cross, middle bar fades out. */
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(1) {
  top: 8.5px;
  transform: rotate(45deg);
}

.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(3) {
  top: 8.5px;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav__burger-bar {
    transition: none;
  }
}

/* --------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 600px;
}

/* The Elementor column carries a 14px inset inside the 1200px container. */
.hero__body {
  max-width: 582px;
  padding-left: 14px;
}

.hero__body .eyebrow {
  margin-bottom: 0;
}

/* The visual headline. Body face, not the heading face. */
.hero__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 26px;
}

/*
 * Two columns sized to their content, filled top-down then across.
 * Scoped past `.checklist`, which zeroes the padding later in this file.
 */
.hero .hero__benefits {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 1px 132px;
  list-style: none;
  margin: 0 0 9px;
  padding: 0 0 0 20px;
}

/* Declared after `.checklist li` below would lose on source order, so scope it. */
.hero .hero__benefits li {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  text-transform: capitalize;
  margin: 0;
  padding-bottom: 1px;
}

.hero__kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/*
 * Right-hand photo. Elementor masks this with its `parallelogram-right`
 * shape (assets/mask-shapes/parallelogram-right.svg):
 *   viewBox 0 0 100 100 — path M25,0 L100,0 L75,100 L0,100
 * which is the polygon below.
 */
.hero__media {
  width: 600px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: end;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------- Check list -- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 20px;
  height: 20px;
  background: var(--green);
  -webkit-mask: var(--check-icon) 0 50% / 20px 20px no-repeat;
  mask: var(--check-icon) 0 50% / 20px 20px no-repeat;
}

.checklist--bold li {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: capitalize;
  color: var(--ink);
  margin-bottom: 1px;
}

/*
 * Font Awesome `fa-check` — the exact glyph the WordPress build renders
 * (svg.e-font-icon-svg.e-fas-check, viewBox 0 0 512 512).
 */
:root {
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------- Client logos --- */
/* Band is 120px tall: an 80px carousel with 40px of air beneath it. */
.logos {
  max-width: 1140px;
  margin-inline: auto;
  overflow: hidden;
  padding-bottom: 40px;
}

.logos__track {
  display: flex;
  align-items: center;
  gap: 17px;
  height: 80px;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}

.logos__track img {
  width: 173px;
  height: 75px;
  object-fit: contain;
  flex: none;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* ---------------------------------------------------------- Guarantees -- */
.guarantees__grid {
  display: grid;
  grid-template-columns: 260px 622px;
  column-gap: 60px;
  justify-content: center;
  align-items: start;
}

.guarantees__title {
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
  color: var(--green);
  margin: 0;
}

.guarantees__only {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
  color: var(--navy);
  margin: 0 0 0.75em;
}

/* --------------------------------------------------------------- Stats -- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 80px;
  font-weight: 900;
  line-height: 120px;
  letter-spacing: -4px;
  color: var(--green-dark);
  margin: 0;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.7px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.6em 0 0;
}

/* --------------------------------------------------------- Testimonial -- */
.testimonial {
  background: var(--green-dark);
  color: var(--white);
  padding-block: 48px;
}

.testimonial__inner {
  max-width: 666px;
  margin-inline: auto;
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
}

.testimonial blockquote p {
  margin-bottom: 14px;
}

.testimonial blockquote p:last-child {
  margin-bottom: 0;
}

.testimonial__cite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-style: normal;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------- Split media -- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  height: 100%;
  min-height: 420px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body {
  padding: clamp(32px, 5vw, 72px);
  max-width: 700px;
}

.split__title {
  color: var(--green);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

/* Accordion */
.accordion {
  border-top: 1px solid #d5d8dc;
}

.accordion__item {
  border-bottom: 1px solid #d5d8dc;
}

/* The heading only exists for semantics; the button owns the spacing. */
.accordion__item h3 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 11px 4px;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 33px;
  color: var(--green);
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:hover {
  color: var(--green);
}

.accordion__icon {
  flex: none;
  width: 16px;
  height: 16px;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  border-top: 2px solid var(--green);
  transition: transform var(--transition);
}

.accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(0deg);
}

.accordion__panel {
  display: none;
  padding: 0 4px 20px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}

.accordion__panel[data-open] {
  display: block;
}

/* The FAQs page uses navy triggers rather than green. */
.accordion--light .accordion__trigger {
  color: var(--navy);
}

.accordion--light .accordion__trigger:hover {
  color: var(--green-dark);
}

/* ----------------------------------------------------------- Guarantee -- */
.guarantee__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.guarantee__title {
  color: var(--green);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

/* --------------------------------------------------------------- Forms -- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  /* 22px content + 8px padding + 1px border, top and bottom = 40px tall. */
  line-height: 22px;
  padding: 8px 16px;
  border: 1px solid var(--field-border);
  /* The Elementor kit adds `box-shadow: inset 0 0 10px rgba(0,0,0,.1)` here.
     Deliberately dropped — everything else about the field is matched. */
  border-radius: 5px;
  background: var(--white);
  color: var(--field-ink);
  transition: border-color var(--transition);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

/* ----------------------------------------------------------- Form rule -- */
/*
 * Elementor's divider widget, carried over. The whole thing is 2px tall: a
 * hairline the width of the form, tinted 11% green, with a 50px solid rule
 * centred on it. Measured off the export — band 652x2, rule 50x2 #21C063.
 *
 *   <div class="form-rule"><span></span></div>
 *
 * matches
 *
 *   .elementor-widget-container > .elementor-divider > .elementor-divider-separator
 */
.form-rule {
  display: flex;
  justify-content: center;
  max-width: var(--form-w);
  height: 2px;
  margin: 0 auto 40px;
  background: rgb(33 192 99 / 11%);
}

.form-rule span {
  display: block;
  width: 50px;
  border-top: 2px solid var(--green-accent);
}

/* ---------------------------------------------------------- Form fields -- */
.field--full {
  grid-column: 1 / -1;
}

.field label .req {
  color: #c02626;
  margin-left: 2px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-accent);
  outline: 2px solid var(--green-accent);
  outline-offset: -2px;
  background: var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-muted);
  opacity: 1;
}

/* Server-side per-field errors from the `fields` object. */
.field__error {
  display: none;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #c02626;
  margin: 6px 0 0;
}

.field.is-invalid .field__error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c02626;
  background: #fff6f6;
}

/* Acknowledgement checkbox — posts the literal string the schema expects. */
.field--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.field--check input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--green-dark);
}

.field--check label {
  margin: 0;
  font-weight: 400;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
}

/* File upload */
.field__file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.field__filename {
  font-size: 14px;
  color: var(--gray);
}

.field__filename.is-error {
  color: #c02626;
  font-weight: 700;
}

.field__hint {
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-muted);
  margin: 6px 0 0;
}

/* Section headings mirror the section breaks in the notification email. */
.form__section {
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid #d5d8dc;
}

.form__section:first-of-type {
  margin-top: 24px;
}

.form__section h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  margin: 0;
}

/* Honeypot: off-screen wrapper, never display:none on the input itself. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/*
 * The form is a grid item on /contact-us/, so its min-width:auto resolves to
 * min-content — and Turnstile's widget has a hard 300px floor. On a 320px
 * screen that pushed the whole column past the viewport. min-width:0 lets the
 * track shrink; the widget itself drops to Turnstile's compact size below 300
 * (see initForms in site.js).
 */
.form {
  min-width: 0;
  max-width: var(--form-w);
  margin-inline: auto;
}

.form__turnstile {
  margin: 24px 0;
  max-width: 100%;
}

.form__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.form__btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* aria-live region for form-level success and failure. */
.form__status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 4px solid;
  font-size: 15px;
  line-height: 22px;
}

.form__status.is-error {
  display: block;
  border-color: #c02626;
  background: #fff1f1;
  color: #8a1616;
}

.form__status.is-success {
  display: block;
  border-color: var(--green);
  background: #f1faf1;
  color: #14571a;
}

.form__status.is-sending {
  display: block;
  border-color: var(--gray-muted);
  background: var(--gray-bg);
  color: var(--gray);
}

/* ------------------------------------------------- Form on a navy panel -- */
.form--onnavy label,
.form--onnavy .field--check label {
  color: var(--white);
}

.form--onnavy .field__hint {
  color: rgb(255 255 255 / 70%);
}

.form--onnavy .form__section {
  border-top-color: rgb(255 255 255 / 25%);
}

.form--onnavy .field__error {
  color: #ffc4c4;
}

.form--onnavy .field.is-invalid input,
.form--onnavy .field.is-invalid select,
.form--onnavy .field.is-invalid textarea {
  border-color: #ffc4c4;
}

@media (max-width: 640px) {
  .field-row,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- Footer -- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--section-y) 0;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--green);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.6fr 1fr;
  gap: 40px 64px;
  align-items: start;
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 1em;
}

.footer__sitemap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.footer__sitemap li {
  margin-bottom: 8px;
}

.footer__logo {
  width: 270px;
  margin-bottom: 12px;
}

.footer__tagline {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin: 0 0 1.75em;
}

.footer__pitch {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.5em;
  max-width: 26em;
}

.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

.footer__bottom {
  margin-top: var(--section-y);
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer__copy {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__legal li {
  margin: 0;
}

@media (max-width: 600px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------- Page hero --- */
.page-hero {
  padding-block: clamp(48px, 6vw, 88px) 0;
}

.page-hero__title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

/* Navy banner used on the form pages (free quote, employment, contact). */
.page-hero--navy {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 110px);
}

.page-hero--navy .page-hero__title {
  color: var(--white);
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
}

.page-hero--navy .eyebrow {
  color: var(--white);
  font-size: 1rem;
}

/* Centred display title, used for the blog index. */
.page-hero--center {
  text-align: center;
  padding-block: clamp(48px, 6vw, 96px);
}

.page-hero__display {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin: 0;
}

/* --------------------------------------------------------- FAQs page ---- */
.faq__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.faq__toc {
  position: sticky;
  top: 55px;
}

.faq__toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75em;
}

.faq__toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.faq__toc li {
  margin-bottom: 0.5em;
}

.faq__toc a {
  color: var(--navy);
}

.faq__group {
  margin-bottom: 56px;
}

.faq__group h2 {
  color: var(--green);
  font-size: 1.5rem;
  scroll-margin-top: 55px;
}

/* -------------------------------------------------------- Blog listing -- */
.post-grid {
  display: grid;
  /* min() keeps the track from exceeding the viewport on narrow phones. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e7ea;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.post-card__title a {
  color: var(--green);
}

.post-card__title a:hover {
  color: var(--green-dark);
}

.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--gray);
  flex: 1;
}

.post-card__more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1.25em;
}

/* ------------------------------------------------------- Single post ---- */

/* Full-bleed featured image with the title laid over it. */
.post-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding-block: 64px;
  background: var(--navy) center / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}

.post-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(4 24 32 / 72%) 0%,
    rgb(4 24 32 / 45%) 55%,
    rgb(4 24 32 / 25%) 100%
  );
}

.post-header__title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  max-width: 14em;
}

.post-meta {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: rgb(255 255 255 / 80%);
  margin-top: 1em;
}

/* Body + sticky table of contents. */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: var(--section-y);
}

.post-toc {
  position: sticky;
  top: 55px;
  border-left: 1px solid #dfe3e6;
  padding-left: 24px;
}

.post-toc h2 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75em;
}

.post-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  line-height: 1.4;
}

.post-toc li {
  margin-bottom: 0.75em;
}

.post-toc a {
  color: var(--ink);
}

.post-toc a:hover {
  color: var(--green);
}

.prose {
  max-width: 780px;
}

.prose > h2:first-child,
.prose > p:first-child {
  margin-top: 0;
}

.prose h2 {
  color: var(--green);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-top: 1.75em;
  scroll-margin-top: 55px;
}

.prose h3 {
  color: var(--navy);
  margin-top: 1.5em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose figure {
  margin: 2.5em 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius);
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--gray-muted);
  text-align: center;
  margin-top: 0.75em;
}

.prose .callout {
  background: var(--gray-bg);
  border-left: 4px solid var(--green);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2em 0;
}

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 2.5em 0;
}

.flyer-grid img {
  width: 100%;
  border-radius: var(--radius);
}

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

/*
 * The angled mask only reads well beside the text, so from 1024px down the
 * photo becomes a straight-edged, full-bleed banner above the copy.
 * (The WordPress build simply hides it here.)
 */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 0 40px;
  }

  /* Reset the desktop-only fixed measurements. */
  .hero__body {
    max-width: none;
    padding-left: 0;
  }

  .hero__media {
    order: -1;
    width: auto;
    /* Bleed past the container gutter to the viewport edge. */
    max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    margin-bottom: 32px;
    aspect-ratio: auto;
    height: clamp(280px, 56vw, 420px);
    justify-self: stretch;
    clip-path: none;
  }

  /* Keeps both faces in frame from 4:3 through to a ~2.4:1 crop. */
  .hero__media img {
    object-position: center 20%;
  }

  /* .footer__grid is deliberately absent: it has its own breakpoints
     (3 col -> 2 col at 1024 -> 1 col at 600) further up the file, and this
     rule is later in source order so it would silently win. */
  .split,
  .guarantees__grid,
  .guarantee__grid,
  .faq__layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .guarantees__grid {
    row-gap: 32px;
  }

  .post-toc {
    position: static;
    order: -1;
    border-left: 0;
    border-bottom: 1px solid #dfe3e6;
    padding: 0 0 24px;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media {
    min-height: 280px;
  }

  .faq__toc {
    position: static;
  }
}

@media (max-width: 767px) {
  /* Section headings drop to 22px on phones, matching the Elementor kit. */
  h2,
  .guarantees__title,
  .split__title,
  .case__title {
    font-size: 22px;
  }

  .guarantee__title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .nav__burger {
    display: inline-flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 20;
  }

  .nav__list[data-open] {
    display: flex;
  }

  .nav__list > li > a {
    display: flex;
    width: 100%;
    padding: 14px var(--gutter);
  }

  .site-header__inner {
    position: relative;
    gap: 16px;
    justify-content: space-between;
  }

  .site-header__logo img {
    width: 170px;
    height: auto;
  }

  .topbar__inner {
    flex-direction: column;
    gap: 6px;
    height: auto;
    padding-block: 8px;
  }

  .topbar__links {
    gap: 20px;
  }

  /* Beats `.hero .hero__benefits`, which sets two content-sized columns. */
  .hero .hero__benefits {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 4px;
    padding-left: 10px;
  }

  .stats,
  .field-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 40px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  .site-header,
  .topbar,
  .site-footer,
  .logos {
    display: none;
  }
}

/* ==========================================================================
   Case studies (/results/) — page + index
   ========================================================================== */

/* ------------------------------------------------- Review flag (staging) -- */
/*
 * Marks a figure that still needs client sign-off. Deliberately loud so it
 * cannot ship by accident — grep for "review-flag" to find every instance.
 */
.review-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  margin-left: 0.3em;
  border-radius: 50%;
  background: #b54708;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.62em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: super;
  cursor: help;
}

.review-note {
  display: block;
  max-width: 780px;
  margin: 32px auto 0;
  padding: 16px 20px;
  border-left: 4px solid #b54708;
  background: #fff7ed;
  color: #7a3208;
  font-size: 14px;
  line-height: 21px;
}

.review-note strong {
  font-family: var(--font-head);
  font-weight: 800;
}

/* ------------------------------------------------------ Case study hero -- */
.cs-hero {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(48px, 6vw, 80px);
}

.cs-hero__label {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
  color: var(--white);
  margin: 0 0 1em;
}

.cs-hero__title {
  color: var(--white);
  font-size: 35px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  max-width: 20em;
}

.cs-hero__meta {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green);
  margin: 1.25em 0 0;
}

/* ----------------------------------------------------- Case study stats -- */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.cs-stat__value {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--green-dark);
  margin: 0;
}

.cs-stat__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.5em 0 0;
}

/* -------------------------------------------------- Opportunity + split -- */
.cs-lede {
  max-width: 900px;
}

.cs-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.cs-col__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  margin: 0 0 1em;
}

.cs-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-col li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.85em;
  font-size: 16px;
  line-height: 24px;
}

.cs-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ----------------------------------------------------- Financial impact -- */
.cs-table-wrap {
  overflow-x: auto;
}

.cs-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 16px;
}

.cs-table-wrap caption {
  position: sticky;
  left: 0;
}

.cs-table caption {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  text-align: left;
  margin-bottom: 1em;
}

.cs-table th,
.cs-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #d5d8dc;
}

.cs-table thead th {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom-width: 2px;
}

.cs-table tbody th {
  font-family: var(--font-body);
  font-weight: 400;
}

.cs-table td + td,
.cs-table th + th {
  text-align: right;
}

.cs-table tbody tr:last-child th,
.cs-table tbody tr:last-child td {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  border-bottom: 0;
}

/* --------------------------------------------------- Operational results -- */
.cs-results {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.cs-callouts {
  display: grid;
  gap: 32px;
  text-align: center;
}

.cs-callout__value {
  font-family: var(--font-body);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--green-dark);
  margin: 0;
}

.cs-callout__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.6em 0 0;
}

/*
 * The shared checklist is styled for the homepage guarantees (single-line,
 * title-case). Case study results are sentence-case prose that wraps, so the
 * transform is dropped and the tick aligns to the first line, not the middle.
 */
.cs-results .checklist--bold li {
  text-transform: none;
  font-weight: 400;
  margin-bottom: 0.85em;
}

.cs-results .checklist--bold li::before {
  top: 12px;
}

.cs-note {
  font-size: 12px;
  line-height: 18px;
  color: var(--gray-muted);
  margin: 32px 0 0;
}

/* --------------------------------------------------------- Tagline band -- */
.cs-tagline {
  background: var(--green-dark);
  color: var(--white);
  padding-block: 40px;
  text-align: center;
}

.cs-tagline p {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.cs-tagline .cs-tagline__sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  margin-top: 0.75em;
  opacity: 0.9;
}

/* ------------------------------------------------------- Results index --- */
/* ------------------------------------------------------------- CTA band -- */
.cs-cta {
  background: var(--gray-bg);
  padding-block: var(--section-y);
  text-align: center;
}

.cs-cta__title {
  color: var(--green);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5em;
}

.cs-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 1.5em;
}

/* ------------------------------------------------- Case study responsive -- */
@media (max-width: 1024px) {
  .cs-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .cs-cols,
  .cs-results {
    grid-template-columns: 1fr;
  }

  .cs-cols > *,
  .cs-results > * {
    min-width: 0;
  }

  .cs-callouts {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  }
}

@media (max-width: 767px) {
  .cs-hero__title,
  .cs-cta__title {
    font-size: 22px;
  }

  .cs-tagline p {
    font-size: 18px;
  }

  .cs-table th,
  .cs-table td {
    padding: 12px 10px;
  }
}

/* ==========================================================================
   Results — case study rows + homepage featured band
   ========================================================================== */

/* ------------------------------------------------------- Result rows ---- */
.result-rows {
  display: grid;
  gap: 32px;
}

/*
 * Constrained card: 8rem of white space either side, 4rem of air top and
 * bottom, 3rem inset to the text. The side margin collapses as the viewport
 * narrows so the card never gets squeezed.
 */
.result-row {
  background: var(--navy);
  color: var(--white);
  margin-inline: 8rem;
  padding: 4rem 3rem;
}

.result-row__inner {
  max-width: 46em;
}

.result-row__meta {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.25em;
}

/* Lead reads plain; the payoff carries the number and the weight. */
.result-row__title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
  margin: 0 0 0.7em;
}

.result-row__title strong {
  font-weight: 800;
  color: var(--green);
}

.result-row__summary {
  font-size: 15px;
  line-height: 23px;
  color: rgb(255 255 255 / 85%);
  max-width: 58ch;
  margin: 0 0 1.75em;
}

.result-row__more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.result-row__more a:hover {
  color: var(--green);
}

.result-row__more a::after {
  content: "\2192";
  font-size: 1.2em;
  transition: transform var(--transition);
}

.result-row__more a:hover::after {
  transform: translateX(4px);
}

/* Homepage: same idea, smaller and tighter. */
.result-row--compact {
  margin-inline: 4rem;
  padding: 2.5rem 2.5rem;
}

.result-row--compact .result-row__title {
  font-size: clamp(1.2rem, 1.9vw, 25px);
  margin-bottom: 0.6em;
}

.result-row--compact .result-row__meta {
  margin-bottom: 0.9em;
}

/* ------------------------------------------- Homepage featured results -- */
/* Tracks the compact box inset so the head starts and ends with the boxes. */
.featured-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4rem 32px;
}

.featured-results__title {
  color: var(--green);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.featured-results__all {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .result-row {
    margin-inline: 3rem;
  }

  .result-row--compact,
  .featured-results__head {
    margin-inline: 2rem;
  }
}

@media (max-width: 767px) {
  .featured-results__title {
    font-size: 22px;
  }

  .result-row__title {
    font-size: 20px;
  }

  /* No room for the inset on a phone. */
  .result-row,
  .result-row--compact {
    margin-inline: 0;
    padding: 2rem 1.5rem;
  }

  .featured-results__head {
    margin-inline: 0;
  }
}

/* ---------------------------------------------- Paired testimonials ----- */
/* Two quotes in one green band, rather than two bands stacking. */
.testimonial__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1060px;
  margin-inline: auto;
}

.testimonial__pair figure {
  margin: 0;
}

@media (max-width: 900px) {
  .testimonial__pair {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------- Results hero --- */
/*
 * White top like the FAQs page: green title, dark body copy. Text is held to
 * half the container on desktop, with the same 14px left inset the homepage
 * hero uses.
 */
.results-hero {
  padding-block: clamp(48px, 6vw, 88px);
}

.results-hero__body {
  max-width: 50%;
  padding-left: 14px;
}

.results-hero__body .eyebrow {
  color: var(--navy);
}

.results-hero__body p {
  color: var(--ink);
}

@media (max-width: 1024px) {
  .results-hero__body {
    max-width: none;
    padding-left: 0;
  }
}


/* -------------------------------------------------------------- Modal --- */
/*
 * Native <dialog>: showModal() gives focus trapping, Esc-to-close and the
 * top layer for free — no library, no scroll-lock hack.
 */
.modal {
  /* The map is portrait (1539x1732), so at any sensible width it is taller than
     a laptop viewport. Cap the dialog and let the image letterbox inside it. */
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 48px rgb(0 0 0 / 30%);
}

.modal[open] {
  display: flex;
  flex-direction: column;
}

.modal::backdrop {
  background: rgb(8 72 94 / 70%);
}

.modal__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e5e7;
}

.modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.modal__close {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font-size: 30px;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.modal__close:hover {
  background: var(--gray-bg);
  color: var(--ink);
}

.modal img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* -------------------------------------------------------------- Legal --- */
/* Long-form prose: a single measured column, not the site's wide grid. */
.legal {
  max-width: 768px;
}

.legal__updated {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 2em;
}

.legal h2 {
  font-size: 26px;
  color: var(--green);
  margin: 1.8em 0 0.6em;
}

.legal h3 {
  font-size: 18px;
  margin: 1.4em 0 0.5em;
}

.legal p,
.legal li {
  color: var(--gray);
}

.legal li {
  margin-bottom: 0.5em;
}

.legal strong {
  color: var(--ink);
}


/* ==========================================================================
   Motion
   --------------------------------------------------------------------------
   FOUC rule: nothing here hides anything on its own. `.reveal` is only ever
   applied by site.js, and only to elements it has decided to animate. If the
   JS never runs — no IntersectionObserver, a parse error, scripts blocked —
   the page renders fully visible. Never add `.reveal` in the HTML.

   Everything is wrapped in `prefers-reduced-motion: no-preference`, so the
   reduced-motion path is the *absence* of these rules rather than an override
   fighting them. site.js checks the same query and skips adding the classes.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* ------------------------------------------------------ Scroll reveal -- */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* --------------------------------------------------- Hero entrance ----- */
  /*
   * The hero is above the fold, so it cannot use the reveal path: a deferred
   * script runs after first paint, and adding a hidden class then makes the
   * hero blink (measured: painted at 33ms, hidden, faded back). Worse than no
   * animation.
   *
   * So the start state is keyed to `.motion`, which a ~5-line inline script in
   * <head> sets *before* first paint. The no-JS guarantee holds: no script, no
   * `.motion`, nothing hidden. That script also removes `.motion` after 1.5s if
   * site.js never reports in, so a failed JS load shows the hero rather than
   * leaving a blank band forever.
   */
  .motion .hero__body > *,
  .motion .page-hero .wrap > *,
  .motion .cs-hero .wrap > * {
    opacity: 0;
    transform: translateY(26px);
  }

  .motion .hero-in > *,
  .motion .hero-in.wrap > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .motion .hero-in > *:nth-child(1) { transition-delay: 0.05s; }
  .motion .hero-in > *:nth-child(2) { transition-delay: 0.14s; }
  .motion .hero-in > *:nth-child(3) { transition-delay: 0.23s; }
  .motion .hero-in > *:nth-child(4) { transition-delay: 0.32s; }
  .motion .hero-in > *:nth-child(5) { transition-delay: 0.41s; }
  .motion .hero-in > *:nth-child(6) { transition-delay: 0.50s; }

  /* ------------------------------------------------ Hover: cards lift ---- */
  .result-row,
  .post-card,
  .cs-callouts > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .result-row:hover,
  .post-card:hover,
  .cs-callouts > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgb(8 72 94 / 18%);
  }

  /* --------------------------------------------- Hover: logos + marks ---- */
  /*
   * No hover effect on the client logo strip and no zoom on any image — the
   * strip just keeps sliding, untouched by the cursor, and photographs stay
   * still. Deliberate, per the client. Do not reintroduce.
   *
   * The header/footer logo dim below is opacity only: nothing moves.
   */
  .site-header__logo img,
  .footer__logo {
    transition: opacity 0.3s ease;
  }

  .site-header__logo:hover img,
  .footer__logo:hover {
    opacity: 0.75;
  }

  /* Buttons already transition colour; add a touch of lift. */
  .btn {
    transition: background var(--transition), color var(--transition),
      border-color var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgb(0 0 0 / 16%);
  }

  .btn:active {
    transform: none;
  }
}
