@charset "utf-8";

/*
  SafeGrit theme layer, Option B: Hi-vis blue
  ============================================
  Loaded after style.css (block structure). Flat, hard-edged and photographic:
  Archivo in heavy uppercase, deep navy, and one electric hi-vis blue used
  the way a road crew uses hi-vis yellow - sparingly, for the things you must
  not miss (buttons, the stats bar, rules, the edge of a card). One diagonal
  cut under every hero. No rounded corners anywhere.

  Two blues: --hv on dark backgrounds, --link on white (darker, for contrast).
  Text on --hv is always navy, never white.
*/

:root {
  --ink: #071a30;
  --body-text: #34455b;
  --dark: #04101f;
  --night: #0a2342;
  --hv: #14a6ff;             /* hi-vis blue: fills and accents on dark */
  --hv-bright: #5cc3ff;      /* hover / small text on dark */
  --link: #0a67c2;           /* blue text and rules on white */
  --grey-light: #e8eef5;
  --grey-band: #e8eef5;
  --border: #d0dae6;

  /* style.css token names */
  --orange: var(--hv);
  --orange-dark: var(--link);
  --radius: 4px;   /* subtle rounding on buttons, cards, images and panels; full-bleed bands stay square */
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --row-max: 1240px;
  --space: 100px;
  --space-sm: 48px;
  --diag: 64px;
  --gutter: max(25px, calc((100% - var(--row-max)) / 2 + 25px));
}

body { font-size: 17px; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; word-spacing: .06em; }
h1 { font-size: clamp(44px, 7vw, 100px); line-height: .92; }
h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: .98; }
h3 { font-size: 24px; line-height: 1.05; }
h4 { font-size: 17px; }
h1 em,
h1 i { font-style: normal; color: var(--hv); }

/* ---------- eyebrow ---------- */
.eyebrow,
p.cms-editor-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
/* eyebrow: text only, no bar or icon */
p.cms-editor-eyebrow::before { content: none; }

.cms-align-center p[class*="cms-editor-eyebrow"] { text-align: center; }
.cms-align-right p[class*="cms-editor-eyebrow"] { text-align: right; }

/* ---------- buttons ---------- */
.btn,
.cms-editor-buttons a {
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cms-editor-buttons a:first-child { background: var(--hv); border-color: var(--hv); color: var(--ink); }
.cms-editor-buttons a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

p.cms-editor-dark-button,
.cms-editor-dark-buttons a {
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 16px 28px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.cms-editor-dark-buttons a:hover { background: var(--hv); border-color: var(--hv); color: var(--ink); }

/* ---------- header: solid navy, hi-vis edge ---------- */
.site-header:not(.site-header--transparent) { background: var(--ink); border-bottom: 5px solid var(--hv); }
.site-header.is-stuck { background: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.site-header { padding-top: 16px; padding-bottom: 16px; }
.site-header .logo img { height: 46px; width: auto; max-width: none; }
.site-nav ul { justify-content: flex-start; gap: 28px; }
.site-nav a[href="#"] { cursor: default; }
.site-nav :is(a, button) { white-space: nowrap; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav :is(a, button):hover, .site-nav :is(a, button)[aria-current="page"] { border-bottom-color: var(--hv); color: #fff; }
@media (min-width: 901px) {
  .site-nav .dropdown { background: var(--ink); border: 0; border-top: 5px solid var(--hv); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(0,0,0,.35); padding: 6px 0; }
  .site-nav .dropdown a { color: #fff !important; border-bottom: 0; padding: 14px 22px; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .site-nav .dropdown a:hover { background: var(--hv); color: var(--ink) !important; }
}
.header-extra { background: var(--hv); color: var(--ink); font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 14px 22px; white-space: nowrap; transition: background .15s ease; }
.header-extra:hover { background: #fff; color: var(--ink); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--grey-light); }

/* ---------- hero: full-bleed photo, heavy type, diagonal cut ---------- */
.page-hero {
  position: relative;
  z-index: 2;
  min-height: 560px;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%);
  background-color: var(--night);
}
.page-hero::before { background: linear-gradient(90deg, rgba(4,16,31,.94) 0%, rgba(7,26,48,.78) 48%, rgba(7,26,48,.15) 100%); }
.page-hero .row { padding-top: 90px; padding-bottom: calc(90px + var(--diag)); padding-left: 25px; padding-right: 25px; }
.page-hero .cms-editor-eyebrow { color: #fff; opacity: 1; }
.page-hero h1 { max-width: 12ch; margin-bottom: 24px; }
.page-hero p { color: #dbe6f2; font-size: 20px; max-width: 600px; }
.page-hero p[class*="cms-editor-eyebrow"] { font-size: 13px; max-width: none; }
.page-hero .cms-editor-buttons { margin-top: 32px; }
.page-hero .cms-editor-buttons a { color: #fff; border-color: #fff; margin: 0 12px 12px 0; }
.page-hero .cms-editor-buttons a:first-child { background: var(--hv); border-color: var(--hv); color: var(--ink); }
.page-hero .cms-editor-buttons a:first-child:hover { background: #fff; border-color: #fff; color: var(--ink); }
.page-hero .cms-editor-buttons a:not(:first-child):hover { background: #fff; color: var(--ink); }
.page-hero--home { min-height: 700px; }
.page-hero--home .row { padding-top: 100px; padding-bottom: calc(100px + var(--diag)); padding-left: 25px; padding-right: 25px; }

/* ---------- stats band and trust strip: a plain bar anywhere; tucked under the cut straight after a hero ---------- */
.stats-band,
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0 0 var(--space);
  padding: 32px var(--gutter) 34px;
  background: var(--hv);
  border: 0;
  position: relative;
  z-index: 1;
}
.page-hero + .stats-band,
.page-hero + .trust-strip,
.page-hero + .cms_fixed > .stats-band,
.page-hero + .cms_fixed > .trust-strip {
  margin-top: calc(var(--diag) * -1);
  padding-top: calc(var(--diag) + 32px);
}
.stats-band > div,
.trust-strip > div { padding: 0 26px; border-left: 3px solid var(--ink); }
.stats-band > div:first-child,
.trust-strip > div:first-child { padding-left: 0; border-left: 0; }
.stats-band > div > *,
.trust-strip > div > * { margin: 0; }
.stats-band > div > p { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); max-width: 24ch; }
.trust-strip > div > p:not(:first-child) { font-size: 13px; font-weight: 600; color: var(--ink); }
/* The big figure / bold heading is a paragraph style ("Stat figure", "Trust heading") picked in the editor,
   not the first paragraph. The rules end in p.cms-editor-<name>, so the editor mirrors them on its canvas. */
.stats-band > div > p.cms-editor-stat { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); line-height: 1; margin-bottom: 8px; white-space: nowrap; max-width: none; }
.trust-strip > div > p.cms-editor-trust-title { font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.trust-strip .stars { color: var(--ink); }

/* ---------- intro ---------- */
.section-intro h2 { max-width: 16ch; }
.section-intro.cms-align-center h2 { margin-left: auto; margin-right: auto; }
.section-intro p { font-size: 19px; max-width: 760px; }
.section-intro.cms-align-center p { margin-left: auto; margin-right: auto; }
.section-intro p[class*="cms-editor-eyebrow"] { font-size: 13px; max-width: none; }

/* ---------- service cards: dark, hard-edged, hi-vis base ---------- */
.services-grid--2 { grid-template-columns: repeat(2, 1fr); }
.services-grid { gap: 24px; }
.services-grid > div { background: var(--ink); border-radius: var(--radius); padding-bottom: 0; border-bottom: 8px solid var(--hv); transition: transform .2s ease; }
.services-grid > div:hover { transform: translateY(-4px); }
.services-grid img { height: 300px; }
.services-grid > div:hover img { transform: none; }
.services-grid .e_caption { padding: 28px 30px 30px; }
.services-grid h3 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.services-grid .e_caption p { color: #c3d0df; font-size: 16px; }
.services-grid .e_caption p.cms-editor-accent { margin-top: 18px; color: var(--hv-bright); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13.5px; }

/* ---------- split row ---------- */
.split-row { background: var(--grey-light); border-radius: 0; }
/* Lists in the text-and-image block: alternate row colours instead of ticks */
.split-row-text ul,
.split-row-text ol { list-style: none; margin: 0 0 30px; padding: 0; border-radius: var(--radius); overflow: hidden; }
.split-row-text ul:last-child,
.split-row-text ol:last-child { margin-bottom: 0; }
.split-row-text li { padding: 14px 20px; margin: 0; background: #fff; }
.split-row-text li:nth-child(even) { background: transparent; }
.split-row-text li::before { content: none; }
.why .split-row-text li p { margin: 0; }

/* ---------- process steps ---------- */
.process-steps { background: var(--ink); }
.process-steps h2 { color: #fff; }
.process-steps .cms-editor-eyebrow { color: #fff; }
.process-steps p { color: #c3d0df; }
.process-steps ol li > div > strong,
.process-steps ol li strong { text-transform: uppercase; letter-spacing: .02em; }

/* ---------- values grid ---------- */
.value-card { background: var(--grey-light); border: 0; border-top: 6px solid var(--hv); border-radius: var(--radius); padding: 26px 26px 28px; }
.value-card h4 { text-transform: uppercase; font-size: 18px; color: var(--ink); }

/* ---------- portfolio ---------- */
.portfolio-grid .e_images > div > a { border-radius: var(--radius); }
.portfolio-grid .e_caption h4 { color: #fff; text-transform: uppercase; }

/* ---------- reviews ---------- */
.review-tile { background: var(--grey-light); border: 0; border-left: 6px solid var(--hv); border-radius: var(--radius); box-shadow: none; }
.review-tile h4 { text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.stars { color: var(--link); }
.reviews-strip-rating .stars { color: var(--link); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--grey-light); border-radius: var(--radius); border: 0; border-left: 6px solid var(--hv); margin-bottom: 12px; }
.faq-item h3 { font-size: 18px; letter-spacing: 0; }

/* ---------- case study ---------- */
.case-study-aside .case-study-stats,
.case-study-stats { background: var(--ink); color: #fff; border-radius: var(--radius); border-top: 8px solid var(--hv); padding: 22px 26px 8px; display: block; }
.case-study-stats > div { display: block; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.case-study-stats > div:last-child { border-bottom: 0; }
.case-study-stats > div > p:first-child { color: var(--hv-bright); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.case-study-stats > div > p:last-child { color: #fff; font-weight: 600; margin: 0; }
.case-study-cta { background: var(--grey-light); border-radius: var(--radius); padding: 24px 26px; }

/* ---------- galleries, images ---------- */
.gallery-grid img { border-radius: var(--radius); }

/* ---------- related cards ---------- */
.project-card a { background: #fff; border: 1px solid var(--border); border-bottom: 6px solid var(--hv); border-radius: var(--radius); overflow: hidden; height: 100%; display: block; transition: transform .2s ease; }
.project-card a:hover { transform: translateY(-4px); }
.project-card-media { border-radius: 0; margin-bottom: 0; aspect-ratio: 16 / 10; }
.project-card a:hover img { transform: none; }
.project-card h3, .project-card p { padding-left: 22px; padding-right: 22px; }
.project-card h3 { padding-top: 20px; font-size: 20px; }
.project-card p { padding-bottom: 24px; font-size: 15px; }

/* ---------- compare table ---------- */
.compare-table table { border-collapse: collapse; border: 0; }
.compare-table th { background: var(--ink); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.compare-table tbody tr:nth-child(even) td { background: var(--grey-light); }

/* ---------- article: single column, no contents nav ---------- */
.article-post { width: 100%; }
.article-head { max-width: 960px; margin: 0 auto; padding: 70px 25px 34px; }
.article-head h1 { font-size: clamp(38px, 5.6vw, 76px); margin-bottom: 24px; }
.article-head h1 + p { font-size: 22px; line-height: 1.5; color: var(--ink); margin-bottom: 26px; max-width: 760px; }
.article-head p.cms-editor-meta {
  display: block;
  margin: 0;
  padding-top: 16px;
  border-top: 6px solid var(--hv);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--body-text);
}
.article-copy { max-width: 760px; margin: 0 auto; padding: 0 25px; font-size: 19px; line-height: 1.75; }
.article-copy > p:first-of-type { font-size: 21px; color: var(--ink); }
.article-copy blockquote { background: var(--ink); border: 0; border-top: 8px solid var(--hv); border-radius: var(--radius); color: #dbe6f2; font-size: 17px; padding: 26px 30px; }
.article-copy blockquote > :first-child { color: var(--hv-bright); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 700; }
.article-copy blockquote li::marker { color: var(--hv); }
.article-copy h2 { font-size: clamp(28px, 3.2vw, 40px); margin-top: 56px; }
.article-end { max-width: 760px; margin: 64px auto var(--space); padding: 34px 36px; background: var(--grey-light); border-left: 8px solid var(--hv); }
.article-end h3 { margin-bottom: 10px; font-size: 26px; }
.article-end .cms-editor-buttons { margin: 20px 0 0; }
.article-end .cms-editor-buttons a { margin: 0 10px 10px 0; }

/* ---------- CTA band ---------- */
.cta-band { border-bottom: 8px solid var(--hv); background-color: var(--night); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6f2; }
.cta-band .cms-editor-buttons a:not(:first-child) { color: #fff; border-color: #fff; }
.cta-band .cms-editor-buttons a:not(:first-child):hover { background: #fff; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #b3c3d6; border-top: 0; margin-top: 0; }
.site-footer .logo img { height: 40px; width: auto; }
.footer-brand p { color: #93a8c0; font-size: 15px; max-width: 280px; }
.footer-nav-col h4 { color: #fff; font-size: 14px; letter-spacing: .1em; }
.footer-nav-col a { color: #b3c3d6; opacity: 1; }
.footer-nav-col a:hover { color: var(--hv-bright); }
.footer-contact .phone,
.footer-contact .phone a { color: var(--hv); font-weight: 800; font-size: 24px; opacity: 1; }
.footer-contact a { color: #fff; opacity: .9; }
.footer-contact .footer-meta { color: #93a8c0; opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: #93a8c0; }
.footer-bottom a { color: #fff; opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; margin-left: auto; }
.footer-links a, .footer-links button { color: #fff; opacity: .8; }
.footer-links button { background: none; border: 0; padding: 0; margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit; cursor: pointer; }

/* ---------- mobile call bar ---------- */
.mobile-cta-bar a:first-child { background: var(--ink); color: #fff; }
.mobile-cta-bar a:last-child { background: var(--hv); color: var(--ink); }

mark.todo { background: none; color: inherit; padding: 0; border-radius: 0; }  /* neutral for now. To reinstate: background: #bfe3ff; color: var(--ink); padding: 0 4px; */

/* ---------- responsive ---------- */
@media (min-width: 901px) and (max-width: 1240px) {
  .site-nav ul { gap: 18px; }
  .header-extra { display: none; }
}
@media (max-width: 900px) {
  :root { --diag: 36px; }
  .page-hero, .page-hero--home { min-height: 0; }
  .page-hero .row, .page-hero--home .row { padding-top: 60px; padding-bottom: calc(60px + var(--diag)); }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .stats-band > div:nth-child(odd) { border-left: 0; padding-left: 0; }

  /* Trust Strip: horizontal scroll instead of the stats band's 2-column grid.
     flex-basis 74% (with the 16px gap) shows about 1.33 cards by default, so
     the sliver of the next card hints there's more to scroll. Snaps one card
     at a time; the left rule/padding per item is unchanged from desktop. */
  .trust-strip {
    display: flex;
    grid-template-columns: unset;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 25px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    overflow-anchor: none;
  }
  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-strip > div { flex: 0 0 74%; scroll-snap-align: start; }
  /* style.css still carries its own stock mobile rule for the old 2-column grid
     (.trust-strip > div:nth-child(2n+1) { border-left: none }), which outranks
     the plain ".trust-strip > div" border-left above on specificity. Restate it
     at matching specificity so every card but the first keeps its divider. */
  .trust-strip > div:not(:first-child) { border-left: 3px solid var(--ink); padding-left: 26px; }
  .services-grid--2 { grid-template-columns: 1fr; }
  .header-extra { display: none; }
  .article-head { padding-top: 44px; }
  .article-copy { font-size: 17px; }
  .article-copy > p:first-of-type { font-size: 18px; }
}

/* step numbers sit on navy, so they take the bright blue */
.process-steps li::before { color: var(--hv); font-weight: 800; }
.nav-toggle span { background: #fff; height: 3px; }
@media (max-width: 900px) { .site-header .site-nav { border-top: 5px solid var(--hv); } .site-header .site-nav :is(a, button) { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; } }

/* ---------- Reviews strip (home): scroller of quote tiles, ported from the UKLM theme layer ---------- */

.reviews-strip {
  background: var(--grey-light);
  color: var(--body-text);
  padding: 80px 0;
  overflow: hidden;
}
.reviews-strip-head {
  width: 100%;
  max-width: var(--row-max);
  margin: 0 auto 40px;
  padding: 0 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}
.reviews-strip-head .cms-editor-eyebrow { color: var(--link); }
.reviews-strip-head h2 { color: var(--ink); margin-bottom: 0; }
.reviews-strip-rating { text-align: right; }
.reviews-strip-rating .stars { display: block; color: var(--hv); font-size: 20px; letter-spacing: 2px; margin-bottom: 4px; }
.reviews-strip-rating p { margin: 0; font-size: 14px; color: var(--body-text); }
.reviews-strip-rating a { color: var(--link); font-weight: 600; }
.reviews-strip-wrap { position: relative; }
.reviews-strip-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overflow-anchor: none;
  width: 100%;
  padding: 0 max(25px, calc((100% - var(--row-max)) / 2 + 25px));
}
.reviews-strip-track::-webkit-scrollbar { display: none; }
.review-tile {
  flex: 1 0 340px;
  max-width: 420px;
  scroll-snap-align: start;
  background: var(--white);
  border-top: 3px solid var(--hv);
  padding: 28px 26px;
}
.review-tile .stars { display: block; color: var(--hv); margin-bottom: 14px; letter-spacing: 1px; }
.review-tile p { color: var(--body-text); font-size: 15px; margin-bottom: 16px; }
.review-tile h4 { color: var(--ink); font-size: 15px; font-weight: 600; margin: 0; }
.review-tile:first-child { margin-left: 24px; }
.review-tile:last-child { margin-right: 24px; }
.reviews-strip .portfolio-arrow { background: var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.reviews-strip .portfolio-arrow--prev { left: 0; }
.reviews-strip .portfolio-arrow--next { right: 0; }
@media (max-width: 900px) {
  .reviews-strip-head { grid-template-columns: minmax(0, 1fr); }
  .reviews-strip-rating { text-align: left; }
  .review-tile { flex-basis: 82%; }
  .reviews-strip .portfolio-arrow { display: flex; }
}

/* ---------- Process steps, split: intro column + numbered list ---------- */
.process-steps--split .row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 70px; align-items: start; }
.process-steps--split .process-steps-intro p:last-child { margin-bottom: 0; }
.process-steps--split .process-steps-list ol,
.process-steps--split .process-steps-list ul { display: block; margin: 0; padding: 0; list-style: none; }
.process-steps--split .process-steps-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.2); margin: 0; }
.process-steps--split .process-steps-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.process-steps--split .process-steps-list li::before { margin-bottom: 0; font-size: 30px; }
.process-steps--split .process-steps-list li strong { font-size: 19px; margin-bottom: 4px; }
@media (max-width: 900px) { .process-steps--split .row { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* E look for the strip */
.reviews-strip { background: var(--grey-light); }
.review-tile { background: #fff; border-top: 0; border-left: 6px solid var(--hv); max-width: 440px; }
.review-tile .stars { color: var(--link); }
.reviews-strip .portfolio-arrow { border-radius: var(--radius); }

/* ==========================================================================
   Reading measure: no text block runs full width by default
   ========================================================================== */

:root { --measure: 62rem; }   /* generous: the real rule is that text stays inside the content area */

.e_editor > :is(p, ul, ol, blockquote, h1, h2, h3) { max-width: var(--measure); }
.compare-table .e_editor > :is(p, h2) { max-width: var(--measure); }

/* centred and right-aligned blocks keep their measure centred or right */
.cms-align-center .e_editor > :is(p, ul, ol, blockquote, h1, h2, h3),
.reviews-strip-head .e_editor > * { margin-left: auto; margin-right: auto; }
.reviews-strip-head .e_editor > * { margin-left: 0; }
.cms-align-right .e_editor > :is(p, ul, ol, blockquote, h1, h2, h3) { margin-left: auto; }

/* the Width toggle's "wide" setting opts a block out of the cap */
.wide .e_editor > :is(p, ul, ol, blockquote, h1, h2, h3) { max-width: none; }

/* a text block never stretches past the content area */
.section-intro .e_editor { max-width: none; }
.section-intro.cms-align-center .e_editor { margin-left: auto; margin-right: auto; }
.reviews-strip-rating { max-width: 20rem; }


/* ==========================================================================
   Round 6
   ========================================================================== */

/* 1. "All case studies" (and any other solid button in a light band): navy text on the blue */
.portfolio-intro .cms-editor-buttons a,
.portfolio-intro > div:last-child a { color: var(--ink); font-weight: 700; font-size: 14px; }
.portfolio-intro .cms-editor-buttons a:hover { color: #fff; }

/* 2. Scroller arrows: square, hi-vis, navy arrow */
.portfolio-arrow { width: 52px; height: 52px; border-radius: var(--radius); background: var(--hv); box-shadow: none; }
.portfolio-arrow:hover { background: var(--ink); }
.portfolio-arrow .arrow-shape { border-top-width: 8px; border-bottom-width: 8px; }
.portfolio-arrow--prev .arrow-shape { border-right: 12px solid var(--ink); }
.portfolio-arrow--next .arrow-shape { border-left: 12px solid var(--ink); }
.portfolio-arrow:hover.portfolio-arrow--prev .arrow-shape { border-right-color: var(--hv); }
.portfolio-arrow:hover.portfolio-arrow--next .arrow-shape { border-left-color: var(--hv); }

/* Related Cards, scroller variation: swipe on small screens, arrows on large */
.cms_related { position: relative; }
.project-cards--scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overflow-anchor: none;
}
.project-cards--scroll::-webkit-scrollbar { display: none; }
.project-cards--scroll .project-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.related-scroller-wrap .portfolio-arrow { top: 36%; }
@media (max-width: 900px) {
  .project-cards--scroll { gap: 16px; margin-right: -25px; padding-right: 25px; }
  .project-cards--scroll .project-card { flex-basis: 78%; }
}

/* 3. Reviews: infinite carousel, big middle quote, smaller faded neighbours */
.reviews-strip { padding: 80px 0 90px; }
.reviews-strip-track.is-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  overflow: visible;
  scroll-snap-type: none;
  padding: 24px 0;
  touch-action: pan-y;
  cursor: grab;
  outline-offset: 6px;
}
.is-carousel > .review-tile {
  grid-area: 1 / 1;
  width: min(520px, 76vw);
  max-width: none;
  flex: none;
  margin: 0;
  padding: 36px 34px 32px;
  transition: transform .55s cubic-bezier(.22, .8, .25, 1), opacity .55s ease, box-shadow .55s ease;
  will-change: transform;
  user-select: none;
}
.is-carousel > .review-tile p { font-size: 19px; line-height: 1.5; color: var(--ink); }
.is-carousel > .review-tile h4 { font-size: 14px; }
.is-carousel > .review-tile[data-pos="0"]  { transform: none; opacity: 1; z-index: 3; box-shadow: 0 24px 50px rgba(7,26,48,.18); }
.is-carousel > .review-tile[data-pos="-1"] { transform: translateX(-104%) scale(.8); opacity: .55; z-index: 2; cursor: pointer; }
.is-carousel > .review-tile[data-pos="1"]  { transform: translateX(104%) scale(.8); opacity: .55; z-index: 2; cursor: pointer; }
.is-carousel > .review-tile[data-pos="far"] { transform: scale(.6); opacity: 0; z-index: 1; pointer-events: none; }
.reviews-strip .portfolio-arrow { top: calc(50% + 28px); }
.reviews-strip .portfolio-arrow--prev { left: max(10px, calc((100% - var(--row-max)) / 2)); }
.reviews-strip .portfolio-arrow--next { right: max(10px, calc((100% - var(--row-max)) / 2)); }
@media (max-width: 900px) {
  .is-carousel > .review-tile { width: 72vw; padding: 26px 22px; }
  .is-carousel > .review-tile p { font-size: 16px; }
  .is-carousel > .review-tile[data-pos="-1"] { transform: translateX(-98%) scale(.82); }
  .is-carousel > .review-tile[data-pos="1"]  { transform: translateX(98%) scale(.82); }
  .reviews-strip .portfolio-arrow { display: flex; top: auto; bottom: 14px; width: 44px; height: 44px; transform: none; }
  .reviews-strip .portfolio-arrow--prev { left: calc(50% - 56px); }
  .reviews-strip .portfolio-arrow--next { right: calc(50% - 56px); }
  .reviews-strip { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { .is-carousel > .review-tile { transition: opacity .2s ease; } }

/* the ported reviews rules out-rank the generic arrow style, so restate it for the strip */
.reviews-strip .portfolio-arrow,
.related-scroller-wrap .portfolio-arrow { background: var(--hv); box-shadow: none; border-radius: var(--radius); }
.reviews-strip .portfolio-arrow:hover,
.related-scroller-wrap .portfolio-arrow:hover { background: var(--ink); }

/* Process steps: keep the text inside the content area (the 25px gutter lives on .row) */
.process-steps { padding-left: 0; padding-right: 0; }
.process-steps .row { padding: 0 25px; }

/* cards are links, so set their text colours explicitly */
.project-card a { color: var(--ink); }
.project-card p { color: var(--body-text); }
.project-card h3 { color: var(--ink); }
@media (max-width: 900px) {
  .reviews-strip-track.is-carousel { padding-bottom: 84px; }
  .reviews-strip .portfolio-arrow { bottom: 20px; }
}

/* ==========================================================================
   Button groups: always a gap between buttons, wrapping cleanly when narrow.
   ========================================================================== */
.page p.cms-editor-buttons,
.page p.cms-editor-dark-buttons { display: block; text-align: left; }
.page p.cms-editor-buttons > a,
.page p.cms-editor-dark-buttons > a { display: inline-block; margin: 0 16px 12px 0; vertical-align: middle; }
.cms-align-center p[class*="cms-editor-buttons"],
.cms-align-center p[class*="cms-editor-dark-buttons"] { text-align: center; }
.cms-align-center p[class*="cms-editor-buttons"] > a,
.cms-align-center p[class*="cms-editor-dark-buttons"] > a { margin: 0 8px 12px; }
.cms-align-right p[class*="cms-editor-buttons"],
.cms-align-right p[class*="cms-editor-dark-buttons"] { text-align: right; }
.cms-align-right p[class*="cms-editor-buttons"] > a,
.cms-align-right p[class*="cms-editor-dark-buttons"] > a { margin: 0 0 12px 16px; }

/* Top-level nav links are all the same kind of box, so every label sits on the
   same line (the items with a dropdown used to sit lower than the rest). */
.site-nav > ul > li > :is(a, button) { display: inline-flex; align-items: center; gap: 6px; }

/* FAQ: boxed items need their own padding (the base block assumes a bare ruled list) */
.faq-list .faq-item,
.faq-list .faq-item:first-child,
.faq-list .faq-item:last-child { padding: 24px 28px 24px 26px; margin-bottom: 12px; }
.faq-list .faq-item:last-child { margin-bottom: 0; }
.faq-item > :first-child { padding-right: 36px; }
.faq-item > :first-child + * { margin-top: 16px; }
.faq-item p { font-size: 16px; line-height: 1.6; }
.faq-list.is-accordion .faq-item > :not(:first-child) { padding-right: 36px; }
@media (max-width: 900px) {
  .faq-list .faq-item,
  .faq-list .faq-item:first-child,
  .faq-list .faq-item:last-child { padding: 20px 18px 20px 20px; }
}

/* ==========================================================================
   Process Steps, "bullets" variation: a frost icon for each item instead of a
   number, and no rules between items (e.g. the "What you get" block).
   ========================================================================== */
.process-steps--split.process-steps--bullets .process-steps-list li {
  display: block;
  position: relative;
  padding: 14px 0 14px 50px;
  border: 0;
}
.process-steps--split.process-steps--bullets .process-steps-list li:last-child { border: 0; }
.process-steps--split.process-steps--bullets .process-steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  background-color: var(--hv);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4 7l16 10M4 17L20 7M9 4.5l3 2.5 3-2.5M9 19.5l3-2.5 3 2.5M3.5 10.5l3.5-.5.5-3.5M20.5 13.5L17 14l-.5 3.5M3.5 13.5l3.5.5.5 3.5M20.5 10.5L17 10l-.5-3.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4 7l16 10M4 17L20 7M9 4.5l3 2.5 3-2.5M9 19.5l3-2.5 3 2.5M3.5 10.5l3.5-.5.5-3.5M20.5 13.5L17 14l-.5 3.5M3.5 13.5l3.5.5.5 3.5M20.5 10.5L17 10l-.5-3.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 900px) {
  .process-steps--split.process-steps--bullets .process-steps-list li { padding-left: 40px; }
  .process-steps--split.process-steps--bullets .process-steps-list li::before { width: 28px; height: 28px; top: 17px; }
}

/* Gallery images open in the lightbox (FsLightbox) rather than zooming in place:
   no hover-scale, a pointer cursor and the magnifier hint on hover. */
.gallery-grid > div:hover img,
.image-cards a.zoom:hover img,
.image-strip a.zoom:hover img { transform: none; }
a.zoom { cursor: pointer; }

/* Eyebrows: blue text with a snowflake in the same blue (dark blue on light, hi-vis on navy and photos) */
.page p.cms-editor-eyebrow { color: var(--link); }
.page .page-hero p.cms-editor-eyebrow,
.page .process-steps p.cms-editor-eyebrow,
.page .cta-band p.cms-editor-eyebrow { color: var(--hv); }

/* ==========================================================================
   Mobile menu (hamburger): the panel is white, so text must stay dark on hover
   and for the current page; tighter top level, roomier submenu.
   ========================================================================== */
@media (max-width: 900px) {
  .site-nav ul { gap: 0; padding: 0px; }

  /* top level: compact rows */
  .site-header .site-nav > ul > li > :is(a, button) {
    padding: 20px;
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
  }
  .site-header .site-nav > ul > li > :is(a, button):hover,
  .site-header .site-nav > ul > li > :is(a, button):focus-visible {
    background: var(--grey-light);
    color: var(--ink);
    border-bottom-color: var(--border);
  }
  /* disable temporarily 
  .site-header .site-nav :is(a, button)[aria-current="page"] {
    color: var(--link);
    box-shadow: inset 4px 0 0 var(--hv);
    background: transparent;
    border-bottom-color: var(--border);
  } */

  /* submenu: more room, clear hover */
  .site-nav .dropdown { background: var(--grey-light); border: 0; box-shadow: none; padding: 0; }
  .site-header .site-nav .dropdown a {
    padding: 18px 12px 18px 32px;
    font-size: 13px;
    color: var(--ink) !important;
    background: transparent;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }
  .site-header .site-nav .dropdown a:hover,
  .site-header .site-nav .dropdown a:focus-visible {
    background: var(--hv);
    color: var(--ink) !important;
    border-bottom-color: var(--border);
  }
  .site-header .site-nav .dropdown a[aria-current="page"] { color: var(--link) !important; box-shadow: inset 4px 0 0 var(--hv); }
  .site-nav li.has-dropdown.is-open .dropdown { max-height: 500px; }
}

/* Testimonials stay inside the content area on desktop: the carousel is the width of the
   content column and the tile size scales with it (centre = 35% of the column, max 420px;
   side quotes at 80% scale one tile-width away), so the side quotes always sit fully inside. */
@media (min-width: 901px) {
  .reviews-strip-wrap { width: calc(100% - 50px); max-width: calc(var(--row-max) - 50px); margin: 0 auto; container-type: inline-size; }
  .is-carousel > .review-tile { width: min(420px, 35cqw); padding: 32px 30px 28px; }
  .is-carousel > .review-tile p { font-size: 18px; }
  .is-carousel > .review-tile[data-pos="-1"] { transform: translateX(-100%) scale(.8); }
  .is-carousel > .review-tile[data-pos="1"]  { transform: translateX(100%) scale(.8); }
  .reviews-strip .portfolio-arrow--prev { left: -20px; }
  .reviews-strip .portfolio-arrow--next { right: -20px; }
}

/* Recent Work header: the "All case studies" button sits below the heading, not beside it */
.portfolio-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 36px; }
.portfolio-intro > div:last-child { justify-self: start; }
.portfolio-intro > div:last-child p { margin: 0; }

/* ==========================================================================
   Form block (contact): intro beside the form builder's form
   ========================================================================== */
.form-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 60px;
  width: 100%;
  max-width: var(--row-max);
  margin: var(--space) auto;
  padding: 0 25px;
  align-items: start;
}
.form-block-intro > :last-child { margin-bottom: 0; }
.form-block .cms_form { background: var(--grey-light); border-radius: var(--radius); padding: 34px 34px 30px; }

.cmsf {
  --cmsf-accent: var(--hv);
  --cmsf-line: #b9c7d8;
  --cmsf-radius: var(--radius);
}
.cmsf-field { margin-bottom: 18px; }
.cmsf-label { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cmsf input:focus-visible,
.cmsf select:focus-visible,
.cmsf textarea:focus-visible { outline: 3px solid var(--hv); outline-offset: 0; border-color: var(--ink); }
.cmsf-privacy a { color: var(--link); }
.cmsf-btn {
  background: var(--hv);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 28px;
  transition: background .15s ease, color .15s ease;
}
.cmsf-btn:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .form-block { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .form-block .cms_form { padding: 24px 20px 22px; }
}

/* ==========================================================================
   Responsive fixes found by the all-blocks page
   ========================================================================== */

/* Header: the call-to-action button crowds the menu until the viewport is wide enough
   (it overflowed the page at 1280px), so it only shows from 1321px up. */
@media (min-width: 1241px) and (max-width: 1320px) {
  .header-extra { display: none; }
  .site-nav ul { gap: 22px; }
}

/* Buttons wrap on small screens instead of forcing the page wider (they are nowrap by default). */
@media (max-width: 600px) {
  .cms-editor-buttons a,
  .cms-editor-dark-buttons a,
  p.cms-editor-dark-button { white-space: normal; text-align: left; }
}

/* Grid columns may shrink below their content, so nothing inside can stretch the page. */
.split-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-row > * { min-width: 0; }
@media (max-width: 900px) {
  .split-row { grid-template-columns: minmax(0, 1fr); }
}

/* Stats band on phones: let long figures wrap and tighten the columns. */
@media (max-width: 600px) {
  .stats-band > div { padding: 0 14px; }
  .stats-band > div > p.cms-editor-stat { white-space: normal; font-size: clamp(24px, 8vw, 32px); }
}

/* Image Cards swipe row: the base CSS pulls the track 25px off-screen (it assumes the block
   carries its own margin), so the first card sat flush against the screen edge. Keep the
   track at the page edge with the 25px gutter as padding, so the first card lines up with the copy. */
@media (max-width: 900px) {
  .image-cards { margin-left: 0; margin-right: 0; }
}

/* ==========================================================================
   Article: one column. The head, then a repeatable list of sections
   (.article-sections > .article-section). Each section opens with an optional
   full-width image (a one-image .e_images, zoomable; hidden on the public page
   while empty, see "empty image regions" in style.css) followed by its copy in
   the narrow reading column, so editors can add, duplicate, reorder and delete
   sections and choose per section whether it has a picture.
   ========================================================================== */
.article-section { margin-bottom: 56px; }

.article-section-media {
  position: relative;
  max-width: var(--row-max);
  margin: 0 auto 40px;
  padding: 0 25px;
}
.article-section-media a { display: block; position: relative; }
.article-section-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); display: block; }
/* zoom hint, as on the gallery */
.article-section-media a.zoom::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a30' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transition: opacity .2s ease;
}
.article-section-media a.zoom:hover::after,
.article-section-media a.zoom:focus-visible::after { opacity: 1; }

.article-section-text > h2:first-child { margin-top: 0; }

/* only the article's intro paragraph (first section) is set larger; the rest is body size */
.article-section-text.article-copy > p:first-of-type { font-size: inherit; color: inherit; }
.article-sections > .article-section:first-child > .article-section-text.article-copy > p:first-of-type { font-size: 21px; color: var(--ink); }

@media (max-width: 900px) {
  .article-section { margin-bottom: 44px; }
  .article-section-media { margin-bottom: 28px; }
  .article-section-media img { aspect-ratio: 16 / 9; }
  .article-sections > .article-section:first-child > .article-section-text.article-copy > p:first-of-type { font-size: 18px; }
}


/* ==========================================================================
   Comparison table: only the table scrolls sideways (the heading and intro stay put),
   and the first column stays in view while it does. It never scrolls vertically.
   js/main.js wraps the table in .table-scroll on the public site.
   ========================================================================== */
.compare-table.is-enhanced .e_editor { overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

.table-scroll {
  position: relative;
  margin-top: 30px;
  overflow-x: auto;                  /* sideways only: the box is never a vertical scroll container, */
  overflow-y: hidden;                /* so vertical swipes on the table always belong to the page */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;    /* a sideways swipe at the table's ends does not drag the page or trigger back-swipe */
  border-radius: var(--radius);
}
.table-scroll:focus-visible { outline: 3px solid var(--hv); outline-offset: 2px; }
.table-scroll table { margin-top: 0; border: 0; border-collapse: separate; border-spacing: 0; min-width: 640px; }

.table-scroll th,
.table-scroll td { background: #fff; border-bottom: 1px solid var(--border); }
.table-scroll tbody tr:nth-child(even) td { background: var(--grey-light); }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

/* header row: no vertical scroll box any more (it trapped page scrolling), so it scrolls with the page */
.table-scroll thead th { background: var(--ink); color: #fff; }
/* sticky first column (row labels) */
.table-scroll tbody td:first-child,
.table-scroll thead th:first-child { position: sticky; left: 0; z-index: 1; }
.table-scroll thead th:first-child { z-index: 3; background: var(--ink); }
.table-scroll tbody td:first-child { font-weight: 700; color: var(--ink); box-shadow: 1px 0 0 var(--border); }

/* edge hints: a soft shadow on the side with more to scroll to */
.table-scroll.has-more-right { box-shadow: inset -14px 0 14px -14px rgba(7,26,48,.45); }

@media (max-width: 600px) {
  .table-scroll th, .table-scroll td { padding: 14px 14px; font-size: 14px; }
  .table-scroll tbody td:first-child, .table-scroll thead th:first-child { min-width: 9rem; max-width: 9.5rem; }
}

/* Comparison table on phone and tablet: the scroll area runs the full screen width and the table
   sits inside it with a 25px gutter either side. It starts lined up with the copy, scrolls left until
   its edge meets the screen edge, then the first column sticks there (left: 0). At the far end the
   right-hand gutter shows the table has finished. (Flex container so the table's margins count as
   scrollable space in every browser.) */
@media (max-width: 900px) {
  .table-scroll {
    display: flex;
    align-items: flex-start;
    margin-left: -25px;
    margin-right: -25px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .table-scroll table {
    flex: 0 0 auto;
    width: max(640px, calc(100% - 50px));
    min-width: 0;
    margin: 0 25px;
  }
  .table-scroll.has-more-right { box-shadow: none; }
}


/* ==========================================================================
   Alignment (composer toggle: cms-align-left / -center / -right; no class = left)
   Blocks with the toggle: Section Intro and CTA Band. A block that starts centred ships
   with cms-align-center in its markup; the toggle then overrides it.
   ========================================================================== */
.cta-band { text-align: left; }                      /* no class = left (the base CSS centred it) */
.cta-band .row { max-width: var(--row-max); }
.cta-band .e_editor > * { max-width: 40rem; }
.cta-band.cms-align-center { text-align: center; }
.cta-band.cms-align-right { text-align: right; }
.cta-band.cms-align-center .e_editor > * { margin-left: auto; margin-right: auto; }
.cta-band.cms-align-right .e_editor > * { margin-left: auto; margin-right: 0; }

/* ==========================================================================
   Colour ways (composer toggle: cycles none -> first -> second -> none; applies
   cms-colour-<name> to the block's top-level element). "No class" is each block's
   normal look; the names offered per block are set in SQL (cbColourClasses):
     Split Row ............ dark, blue, white     (normal: pale blue-grey)
     Process Steps ........ light, blue            (normal: navy)
     Values Grid .......... dark, blue             (normal: pale cards)
     Callout Strip ........ dark, blue             (normal: pale)
     Stats Band ........... dark, light            (normal: hi-vis blue)
     Reviews .............. dark, white            (normal: pale blue-grey)
     Service Cards ........ light, blue            (normal: navy cards)
     Image Cards .......... dark, blue             (normal: pale cards)
     FAQ .................. dark, white            (normal: pale items)
   Every combination keeps text at 4.5:1 or better (checked with a script).
   ========================================================================== */

/* ---- Split Row ---- */
.split-row.cms-colour-dark { background: var(--night); }
.split-row.cms-colour-dark h2,
.split-row.cms-colour-dark strong { color: #fff; }
.split-row.cms-colour-dark p,
.split-row.cms-colour-dark li { color: #c3d0df; }
.split-row.cms-colour-dark .cms-editor-eyebrow { color: var(--hv); }
.split-row.cms-colour-dark .split-row-text li { background: rgba(255,255,255,.09); }
.split-row.cms-colour-dark .split-row-text li:nth-child(even) { background: transparent; }
.split-row.cms-colour-dark .cms-editor-buttons a:not(:first-child) { color: #fff; border-color: #fff; }
.split-row.cms-colour-dark .cms-editor-buttons a:not(:first-child):hover { background: #fff; color: var(--ink); }
.split-row.cms-colour-dark .cms-editor-buttons a:first-child:hover { background: #fff; border-color: #fff; color: var(--ink); }

.split-row.cms-colour-blue { background: var(--hv); }
.split-row.cms-colour-blue h2,
.split-row.cms-colour-blue strong,
.split-row.cms-colour-blue p,
.split-row.cms-colour-blue li { color: var(--ink); }
.split-row.cms-colour-blue .cms-editor-eyebrow { color: var(--ink); }
.split-row.cms-colour-blue .split-row-text li { background: rgba(255,255,255,.7); }
.split-row.cms-colour-blue .split-row-text li:nth-child(even) { background: transparent; }
.split-row.cms-colour-blue .cms-editor-buttons a:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.split-row.cms-colour-blue .cms-editor-buttons a:first-child:hover { background: #fff; border-color: #fff; color: var(--ink); }
.split-row.cms-colour-blue .cms-editor-buttons a:not(:first-child) { color: var(--ink); border-color: var(--ink); }
.split-row.cms-colour-blue .cms-editor-buttons a:not(:first-child):hover { background: var(--ink); color: #fff; }

.split-row.cms-colour-white { background: #fff; }
.split-row.cms-colour-white .split-row-text li { background: var(--grey-light); }
.split-row.cms-colour-white .split-row-text li:nth-child(even) { background: transparent; }

/* ---- Process Steps (normal: navy) ---- */
.process-steps.cms-colour-light { background: var(--grey-light); }
.process-steps.cms-colour-light h2,
.process-steps.cms-colour-light li strong { color: var(--ink); }
.process-steps.cms-colour-light p,
.process-steps.cms-colour-light li { color: var(--body-text); }
.page .process-steps.cms-colour-light p.cms-editor-eyebrow { color: var(--link); }
.process-steps.cms-colour-light li::before { color: var(--link); }
.process-steps--bullets.cms-colour-light .process-steps-list li::before { background-color: var(--link); color: inherit; }
.process-steps.cms-colour-light .process-steps-list li,
.process-steps.cms-colour-light .process-steps-list li:last-child { border-color: rgba(7,26,48,.16); }

.process-steps.cms-colour-blue { background: var(--hv); }
.process-steps.cms-colour-blue h2,
.process-steps.cms-colour-blue li strong,
.process-steps.cms-colour-blue p,
.process-steps.cms-colour-blue li { color: var(--ink); }
.page .process-steps.cms-colour-blue p.cms-editor-eyebrow { color: var(--ink); }
.process-steps.cms-colour-blue li::before { color: var(--ink); }
.process-steps--bullets.cms-colour-blue .process-steps-list li::before { background-color: var(--ink); color: inherit; }
.process-steps.cms-colour-blue .process-steps-list li,
.process-steps.cms-colour-blue .process-steps-list li:last-child { border-color: rgba(7,26,48,.28); }
.process-steps--bullets.cms-colour-light .process-steps-list li,
.process-steps--bullets.cms-colour-blue .process-steps-list li { border-color: transparent; }

/* ---- Values Grid (normal: pale cards) ---- */
.values-grid.cms-colour-dark .value-card { background: var(--night); }
.values-grid.cms-colour-dark .value-card h4 { color: #fff; }
.values-grid.cms-colour-dark .value-card p { color: #c3d0df; }
.values-grid.cms-colour-blue .value-card { background: var(--hv); border-top-color: var(--ink); }
.values-grid.cms-colour-blue .value-card h4,
.values-grid.cms-colour-blue .value-card p { color: var(--ink); }

/* ---- Callout Strip (normal: pale) ---- */
.callout-strip.cms-colour-dark .callout-strip-inner { background: var(--night); border-left-color: var(--hv); }
.callout-strip.cms-colour-dark h3 { color: #fff; }
.callout-strip.cms-colour-dark p { color: #c3d0df; }
.callout-strip.cms-colour-dark .cms-editor-dark-buttons a { background: var(--hv); border-color: var(--hv); color: var(--ink); }
.callout-strip.cms-colour-dark .cms-editor-dark-buttons a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.callout-strip.cms-colour-blue .callout-strip-inner { background: var(--hv); border-left-color: var(--ink); }
.callout-strip.cms-colour-blue h3,
.callout-strip.cms-colour-blue p { color: var(--ink); }

/* ---- Stats Band (normal: hi-vis blue) ---- */
.stats-band.cms-colour-dark { background: var(--night); }
.stats-band.cms-colour-dark > div { border-left-color: var(--hv); }
.stats-band.cms-colour-dark > div > p { color: #c3d0df; }
.stats-band.cms-colour-dark > div > p[class*="cms-editor-stat"] { color: var(--hv); }
.stats-band.cms-colour-light { background: var(--grey-light); }
.stats-band.cms-colour-light > div { border-left-color: var(--hv); }
.stats-band.cms-colour-light > div > p[class*="cms-editor-stat"] { color: var(--link); }

/* ---- Reviews (normal: pale blue-grey band, white quote cards) ---- */
.reviews-strip.cms-colour-dark { background: var(--night); }
.reviews-strip.cms-colour-dark .reviews-strip-head h2 { color: #fff; }
.reviews-strip.cms-colour-dark .reviews-strip-head .cms-editor-eyebrow { color: var(--hv); }
.reviews-strip.cms-colour-dark .reviews-strip-rating p { color: #c3d0df; }
.reviews-strip.cms-colour-dark .reviews-strip-rating a { color: var(--hv-bright); }
.reviews-strip.cms-colour-white { background: #fff; }
.reviews-strip.cms-colour-white .review-tile { background: var(--grey-light); }

/* ---- Service Cards (normal: navy cards) ---- */
.services-grid.cms-colour-light > div { background: var(--grey-light); }
.services-grid.cms-colour-light h3 { color: var(--ink); }
.services-grid.cms-colour-light .e_caption p { color: var(--body-text); }
.services-grid.cms-colour-light .e_caption p.cms-editor-accent { color: var(--link); }
.services-grid.cms-colour-blue > div { background: var(--hv); border-bottom-color: var(--ink); }
.services-grid.cms-colour-blue h3,
.services-grid.cms-colour-blue .e_caption p,
.services-grid.cms-colour-blue .e_caption p.cms-editor-accent { color: var(--ink); }

/* ---- Image Cards (normal: pale cards) ---- */
.image-cards.cms-colour-dark > div { background: var(--night); }
.image-cards.cms-colour-dark h3 { color: #fff; }
.image-cards.cms-colour-dark p { color: #c3d0df; }
.image-cards.cms-colour-blue > div { background: var(--hv); }
.image-cards.cms-colour-blue h3,
.image-cards.cms-colour-blue p { color: var(--ink); }

/* ---- FAQ (normal: pale items) ---- */
.faq.cms-colour-dark .faq-item { background: var(--night); }
.faq.cms-colour-dark .faq-item > :first-child { color: #fff; }
.faq.cms-colour-dark .faq-item p { color: #c3d0df; }
.faq.cms-colour-dark .faq-list.is-accordion .faq-item > :first-child::after { background-color: var(--hv); }
.faq.cms-colour-white .faq-item { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--hv); }

/* The base CSS falls back to /uploads/hero.jpg behind the hero and CTA band; this site has no such file
   (it would 404). Each band's own image is inline (e_bg), which still wins over this. */
.page-hero,
.cta-band { background-image: none; }


/* ==========================================================================
   Inspection CTA (fixed block): "Want us to look at your site?" enquiry card.
   Same wording on every page that uses it (edited once in the Block Manager, or in place by
   a client user), so it is styled on its own rather than as part of the article. It lines up
   with the copy column (left edge of the content area), not the page centre.
   ========================================================================== */
.cta-card {
  margin: 64px max(25px, calc((100% - var(--row-max)) / 2 + 25px)) var(--space);
  padding: 34px 36px;
  background: var(--grey-light);
  border-left: 8px solid var(--hv);
  border-radius: var(--radius);
}
.cta-card.e_editor > :is(p, ul, ol, blockquote, h1, h2, h3) { max-width: none; }
.cta-card h3 { margin-bottom: 10px; font-size: 26px; }
.cta-card > :last-child { margin-bottom: 0; }
.cta-card .cms-editor-buttons { margin-top: 20px; }
@media (max-width: 900px) {
  .cta-card { margin-left: 25px; margin-right: 25px; padding: 26px 22px; }
}

/* ==========================================================================
   Reviews strip in the CMS editor (cms.js adds body.edit_mode): every tile laid
   out in a grid instead of a sideways scroller, so all of them can be seen,
   edited and reordered. Covers the shared (fixed) block and page-owned copies;
   the arrows have nothing to scroll, so they go.
   ========================================================================== */
.edit_mode .reviews-strip-wrap { width: 100%; max-width: var(--row-max); margin: 0 auto; }
.edit_mode .reviews-strip-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  padding: 0 25px;
  overflow: visible;
  scroll-snap-type: none;
}
.edit_mode .reviews-strip-track > .review-tile { max-width: none; min-width: 0; margin: 0; }
.edit_mode .reviews-strip .portfolio-arrow { display: none; }
