/* ============================================================
   Apollo Foam — PPC Landing Page
   Shared stylesheet. Byte-identical across the Ethafoam and
   Polyethylene builds, so a fix in one can be copied straight
   into the other.

   Base tokens come from the Figma file (Dev Mode); the type
   scale, surface rhythm and component styling are an uplift on
   the draft — see README "Decisions taken during the build".

   Typeface: Poppins — the Apollo Foam brand font.
   ============================================================ */

/* ---------------- Tokens ---------------- */
:root {
  /* Brand */
  --navy: #283585;          /* logo SVG navy — strip, headings, links */
  --navy-deep: #1b2560;     /* hover / depth */
  --navy-btn: #27327b;      /* button fill, per the Figma spec */
  --navy-soft: #eef0f8;     /* tints, chips, icon wells */

  /* Ink */
  --ink: #14181c;           /* headings */
  --body: #52585f;          /* body copy — the draft's #828282 is 3.5:1 on
                               white and fails WCAG AA at these sizes */
  --muted: #6e747c;

  /* Surfaces */
  --surface: #fff;
  --surface-alt: #f7f8fc;
  --hero-bg: #f2f4f8;
  --line: #e4e7f0;
  --field-border: #d3d8e4;

  /* Accent — used for ticks, trust icons and the success state, so it
     reads as a system rather than the draft's single stray green. */
  --green: #0b8a57;
  --green-soft: #e7f4ee;

  /* Type scale (fluid) */
  --fs-display: clamp(2.25rem, 1.35rem + 3.7vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.28rem + 2vw, 2.625rem);
  --fs-h3: clamp(1.25rem, 1.13rem + 0.5vw, 1.5rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Layout */
  --container: 1200px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .05), 0 2px 8px rgba(20, 24, 28, .04);
  --shadow-md: 0 4px 12px rgba(20, 24, 28, .07), 0 12px 32px rgba(20, 24, 28, .06);
  --shadow-lg: 0 8px 24px rgba(20, 24, 28, .09), 0 24px 60px rgba(27, 37, 96, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Honeycomb texture, drawn from the logo motif. Colour is baked in,
     so opacity is controlled by the layer that uses it. */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cg fill='none' stroke='%23283585' stroke-width='1.4'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16z'/%3E%3Cpath d='M0 50 26 65v30L0 110l-26-15V65z'/%3E%3Cpath d='M56 50 82 65v30l-26 15-26-15V65z'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is load-bearing — the width/height attributes on <img>
   map to presentational width/height, and an explicit height would
   beat the aspect-ratio rules below. */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, figure { margin: 0; }

a { color: inherit; }

button { font: inherit; }

::selection { background: var(--navy); color: #fff; }

/* Nicer rag on multi-line copy where the browser supports it. */
.sec-head__lede, .intro p, .cta-panel p, .col p, .process p, .pillar p { text-wrap: pretty; }

/* ---------------- Layout helpers ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--surface-alt); }
/* For a short section immediately above the closing CTA panel, which
   carries its own generous top margin. */
.section--tight { padding-bottom: clamp(24px, 3vw, 40px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Small navy rule above a section heading. A pure design device —
   it adds hierarchy without adding words to approved copy. */
.rule {
  display: block;              /* it's a <span> — without this the box is inline and sizeless */
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), #5a68c4);
  margin-bottom: 22px;
}
.rule--center { margin-inline: auto; }

/* ---------------- Headings ---------------- */
.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--navy);
}

/* ---------------- Buttons ---------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 28px;
  border: 2px solid var(--navy-btn);
  border-radius: var(--radius);
  /* Subtle vertical light gives the fill some material; hover swaps to
     the solid deep navy (gradients don't transition, the lift masks it). */
  background: linear-gradient(180deg, #303d95, var(--navy-btn));
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

/* Arrow nudges on hover. */
.btn svg { width: 18px; height: 18px; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  min-height: 48px;
  font-size: 1rem;
  padding-inline: 22px;
}
.btn--light:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--navy-deep); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--block { width: 100%; }
.btn--lg { min-height: 62px; font-size: 1.125rem; padding-inline: 36px; }

/* ---------------- Header ---------------- */
.topbar { background: #fff; }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 22px;
  flex-wrap: wrap;
}

.topbar__logo { display: inline-block; line-height: 0; }
.topbar__logo img { width: 228px; height: auto; }

.topbar__contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.topbar__link:hover { background: var(--navy-soft); color: var(--navy); }
.topbar__link svg { width: 22px; height: 22px; flex: none; color: var(--navy); }

/* ---------------- Navy strip ---------------- */
.strip {
  position: relative;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  padding: 13px 24px;
  overflow: hidden;
}
/* Slow sheen so the bar doesn't read as a flat block. */
.strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sheen 7s var(--ease) 1.5s infinite;
}
@keyframes sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* ---------------- Hero ---------------- */
/* Washed-back process photo behind the headline. Two decorative layers:
   ::before is the photo, ::after is a scrim that fades it out towards
   the form so the card always sits on clean ground.

   To swap the photo, change --hero-photo only. Two alternates ship in
   assets/: hero-wash-waterjet.jpg (soft blue, more abstract) and
   hero-wash-sheets.jpg (coloured foam sheets — fights the navy).
   NOTE: a url() inside a custom property resolves against the STYLESHEET,
   not the document, so any override must also start "../assets/". */
.hero {
  position: relative;
  background: var(--hero-bg);
  padding-block: clamp(48px, 6vw, 88px);
  overflow: hidden;
  --hero-photo: url("../assets/hero-wash-cnc.jpg");
  --hero-photo-opacity: .26;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: var(--hero-photo) center / cover no-repeat;
  opacity: var(--hero-photo-opacity);
  transform: scale(1.06);
  animation: heroDrift 24s var(--ease) both;
}
@keyframes heroDrift { from { transform: scale(1.12); } to { transform: scale(1.02); } }

.hero::after {
  background:
    linear-gradient(100deg, rgba(242, 244, 248, 0) 0%, rgba(242, 244, 248, .35) 42%, rgba(242, 244, 248, .92) 62%, var(--hero-bg) 78%),
    linear-gradient(to bottom, rgba(242, 244, 248, .55) 0%, rgba(242, 244, 248, 0) 30%, rgba(242, 244, 248, .65) 100%);
}

.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__lede {
  margin-top: 24px;
  max-width: 33ch;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: #333a42;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Secondary "or call" affordance next to the primary button. */
.hero__call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}
.hero__call strong { color: var(--navy); font-weight: 700; }
.hero__call svg { width: 18px; height: 18px; color: var(--navy); }
.hero__call:hover strong { text-decoration: underline; }

/* ---------------- Enquiry form ---------------- */
.form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Navy accent along the top makes the form read as THE object on the page. */
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1;
  background: linear-gradient(90deg, var(--navy), #5a68c4);
}

.form-card__head {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--surface-alt));
}

.form-card__head h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}

.form-card__note {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* Reassurance chip. See README — a response-time promise sits here,
   commented out in the HTML until Apollo Foam confirm the wording. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #0a6b45;
  font-size: 0.8125rem;
  font-weight: 600;
}
.chip svg { width: 15px; height: 15px; }

.form-card__body { padding: 24px 28px 28px; display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #a8aebb; }

.field input:hover,
.field textarea:hover { border-color: #b9c1d4; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(40, 53, 133, .13);
}

.field .error-msg {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #c0261f;
}
.field.has-error input,
.field.has-error textarea { border-color: #c0261f; }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(192, 38, 31, .12); }
.field.has-error .error-msg { display: block; }

/* Consent row — added to the Figma design, not in it. */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.consent label { color: var(--muted); }
.consent a { color: var(--navy); font-weight: 500; }
.consent .error-msg { grid-column: 1 / -1; display: none; font-size: 0.8125rem; font-weight: 500; color: #c0261f; }
.consent.has-error .error-msg { display: block; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
.form-foot svg { width: 14px; height: 14px; color: var(--green); }

/* ---------------- Trust bar (new) ---------------- */
/* Every figure here is verifiable from apollofoam.com. Apollo Foam
   publish no accreditations, so none are claimed — see README. */
.trustbar {
  position: relative;
  background: linear-gradient(115deg, var(--navy) 0%, #313fa0 55%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: clamp(32px, 4vw, 46px);
  overflow: hidden;
}
.trustbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex);
  background-size: 56px 98px;
  filter: brightness(0) invert(1);
  opacity: .07;
}

.trustbar__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trust {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 4px;
}
.trust + .trust { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 24px; }

.trust__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
}
.trust__icon svg { width: 23px; height: 23px; color: #fff; }

.trust__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.trust__label {
  display: block;
  margin-top: 3px;
  font-size: 0.875rem;
  line-height: 1.35;
  text-wrap: balance;
  color: rgba(255, 255, 255, .82);
}

/* ---------------- Why work with us ---------------- */
.why { background: var(--surface); padding-block: clamp(56px, 7vw, 90px); }

.why h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfd6e8;
}

.stat__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border-radius: 50%;
}
.stat__icon svg { width: 24px; height: 24px; color: var(--green); }

.stat__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ---------------- Intro ---------------- */
.intro { text-align: center; }

/* em, not ch — it scales with the fluid heading size and keeps this
   62-character heading to two lines instead of four. */
.intro h2 { max-width: 21em; margin-inline: auto; text-wrap: balance; }

.intro p {
  margin-top: 20px;
  margin-inline: auto;
  max-width: 68ch;
  font-size: var(--fs-lede);
  line-height: 1.6;
}
.intro p + p { font-size: var(--fs-body); color: var(--muted); max-width: 78ch; }

/* ---------------- Split feature rows ---------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.split--flip .split__media { order: -1; }

.split__copy p {
  margin-top: 20px;
  font-size: var(--fs-body);
  max-width: 46ch;
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.split__media:hover img { transform: scale(1.04); }

/* Hairline keyline keeps photo edges crisp against the light surfaces. */
.split__media img,
.col img {
  outline: 1px solid rgba(20, 24, 28, .08);
  outline-offset: -1px;
}

/* ---------------- Feature columns ---------------- */
.cols { display: grid; gap: 32px; margin-top: 52px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.col {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.col:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd6e8; }

.col h3 { text-align: left; }

.col img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 18px;
  order: -1;
  margin-bottom: 20px;
  margin-top: 0;
}

.col p { margin-top: 14px; font-size: var(--fs-sm); flex: 1; }

/* ---------------- Closing CTA (new) ---------------- */
.cta-panel {
  position: relative;
  margin-block: clamp(56px, 7vw, 96px);
  padding: clamp(40px, 5vw, 68px) clamp(28px, 4vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, var(--navy) 0%, #313fa0 55%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex);
  background-size: 56px 98px;
  filter: brightness(0) invert(1);
  opacity: .08;
}

.cta-panel > * { position: relative; }

.cta-panel h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

.cta-panel p {
  margin-top: 16px;
  margin-inline: auto;
  max-width: 56ch;
  color: rgba(255, 255, 255, .8);
}

.cta-panel__actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-panel__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
}
.cta-panel__phone svg { width: 22px; height: 22px; }
.cta-panel__phone:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  padding-block: 44px 36px;
  text-align: center;
}

.footer__call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
  color: var(--body);
  text-decoration: none;
}
.footer__call svg { width: 19px; height: 19px; color: var(--navy); }
.footer__call strong { font-size: 1.375rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.footer__call:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.footer__meta {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  text-align: left;
}

.footer__addr { display: flex; align-items: flex-start; gap: 10px; max-width: 520px; }
.footer__addr svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--navy); }

.footer__meta a { color: var(--navy); font-weight: 500; text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }

.footer__legal {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--navy); text-decoration: underline; }

/* ---------------- Sticky mobile bar (new) ---------------- */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(20, 24, 28, .10);
  transform: translateY(110%);
  transition: transform .32s var(--ease);
}
.stickybar.is-visible { transform: none; }
.stickybar .btn { flex: 1; min-height: 50px; font-size: 1rem; padding-inline: 12px; }
.stickybar .btn--outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.stickybar .btn--outline:hover { background: var(--navy-soft); }

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Hero content animates in on load rather than on scroll. */
.hero .anim {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn .75s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* ---------------- Thank-you page ---------------- */
/* Same washed photo treatment as the landing hero, so the conversion
   page feels like part of the same design rather than a bare template. */
.ty {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--hero-bg);
  padding-block: clamp(64px, 8vw, 104px);
  overflow: hidden;
}

.ty::before,
.ty::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ty::before {
  background: url("../assets/hero-wash-cnc.jpg") center / cover no-repeat;
  opacity: .14;
}

.ty::after {
  background: linear-gradient(to bottom, rgba(242, 244, 248, .6) 0%, rgba(242, 244, 248, 0) 35%, rgba(242, 244, 248, .8) 100%);
}

.ty .container { position: relative; z-index: 1; }
.ty h1 {
  font-size: clamp(1.875rem, 1.3rem + 2.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
}
.ty p {
  margin-top: 20px;
  margin-inline: auto;
  max-width: 52ch;
  font-size: var(--fs-lede);
}
.ty p a { color: var(--navy); font-weight: 600; }
.ty .btn { margin-top: 34px; }
.ty__tick {
  width: 80px;
  height: 80px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  animation: pop .5s var(--ease) both;
}
.ty__tick svg { width: 42px; height: 42px; color: var(--green); }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ---------------- Section header (layout system) ---------------- */
.sec-head { margin-bottom: 44px; max-width: 62ch; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .rule { margin-inline: auto; }

.sec-head h2 { max-width: 22em; }
.sec-head--center h2 { margin-inline: auto; text-wrap: balance; }

.sec-head__lede {
  margin-top: 18px;
  font-size: var(--fs-lede);
  line-height: 1.6;
}
.sec-head--center .sec-head__lede { margin-inline: auto; max-width: 60ch; }

/* ---------------- Pillars (why work with us) ---------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd6e8; }

.pillar__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border-radius: 50%;
}
.pillar__icon svg { width: 24px; height: 24px; color: var(--green); }

.pillar h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
.pillar p { margin-top: 8px; font-size: var(--fs-sm); }

/* ---------------- Comparison (cross-linked vs non) ---------------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.compare__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.compare__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* The grade this page is actually about gets the emphasis. */
.compare__card--lead {
  background: linear-gradient(150deg, var(--navy) 0%, #313fa0 100%);
  border-color: transparent;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.compare__card--lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex);
  background-size: 56px 98px;
  filter: brightness(0) invert(1);
  opacity: .08;
}
.compare__card--lead > * { position: relative; }

.compare__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--navy-soft);
  color: var(--navy);
  margin-bottom: 16px;
}
.compare__card--lead .compare__tag { background: rgba(255, 255, 255, .18); color: #fff; }

.compare__card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--navy);
}
.compare__card--lead h3 { color: #fff; }

.compare__list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }

.compare__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.compare__list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--green); flex: none; }
.compare__card--lead .compare__list li { color: rgba(255, 255, 255, .88); }
.compare__card--lead .compare__list svg { color: #7fe3b4; }

/* ---------------- Process grid ---------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Seven items in a three-column grid leaves one orphan on the last row.
   Drop it into the middle column rather than letting it hang left. */
.process-grid > .process:last-child:nth-child(3n + 1) { grid-column: 2; }

.process {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.process:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd6e8; }

.process__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--navy-soft);
  margin-bottom: 18px;
}
.process__icon svg { width: 22px; height: 22px; color: var(--navy); }

.process h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
.process p { margin-top: 9px; font-size: var(--fs-sm); }

/* ---------------- Market chips ---------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin: 0;              /* last thing in its section — the CTA panel below brings its own margin */
  padding: 0;
}

.chips li {
  list-style: none;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chips li:hover { transform: translateY(-2px); border-color: var(--navy); color: var(--navy); }

.chips--onalt li { background: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid .hero__form { max-width: 560px; }
  .hero__lede { max-width: 52ch; }
  /* Stacked layout — fade the photo downwards instead of sideways, so it
     sits behind the headline and clears out before the form card. */
  .hero { --hero-photo-opacity: .20; }
  .hero::before { background-position: 50% 30%; }
  .hero::after {
    background: linear-gradient(to bottom, rgba(242, 244, 248, .30) 0%, rgba(242, 244, 248, .80) 45%, var(--hero-bg) 68%);
  }
  .trustbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .trust + .trust { border-left: 0; padding-left: 4px; }
  .trust:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 24px; }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar__inner { justify-content: center; text-align: center; padding-block: 18px; }
  .split { grid-template-columns: 1fr; }
  .split__media, .split--flip .split__media { order: -1; }
  .split__copy p { max-width: none; }
  .cols--2, .cols--3 { grid-template-columns: 1fr; gap: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; gap: 18px; }
  .compare__card { padding: 26px; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .sec-head { margin-bottom: 32px; }
  .footer__meta { gap: 24px; }
  /* Sticky call/enquire bar — mobile only, and it needs page clearance. */
  .stickybar { display: flex; }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .why__grid { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: 1fr; gap: 18px; }
  .trust:nth-child(even) { border-left: 0; padding-left: 4px; }
  .topbar__logo img { width: 196px; }
  .topbar__contact { flex-direction: column; gap: 4px; }
  .hero__actions { gap: 16px; }
  .hero__actions .btn { width: 100%; }
  .form-card__head, .form-card__body { padding-inline: 20px; }
  .footer__legal { gap: 14px; flex-direction: column; }
  .cta-panel__actions { flex-direction: column; gap: 20px; }
  .cta-panel__actions .btn { width: 100%; }
}

/* ============================================================
   Navy hero masthead — PRODUCTION (chosen over the light hero,
   20 Aug 2026; it started life as a /navy.html comparison
   variant). body.hero-navy flips the masthead to full-bleed navy
   (photo blended soft-light, honeycomb texture on top) and
   lightens the trust bar so two navy slabs don't stack.
   ============================================================ */
body.hero-navy .hero {
  background: linear-gradient(115deg, var(--navy) 0%, #313fa0 55%, var(--navy-deep) 100%);
}

body.hero-navy .hero::before {
  opacity: .28;
  mix-blend-mode: soft-light;
}

body.hero-navy .hero::after {
  background: none;
  background-image: var(--hex);
  background-size: 56px 98px;
  filter: brightness(0) invert(1);
  opacity: .06;
}

body.hero-navy .hero h1 { color: #fff; }
body.hero-navy .hero__lede { color: rgba(255, 255, 255, .88); }
body.hero-navy .hero__call { color: rgba(255, 255, 255, .8); }
body.hero-navy .hero__call strong,
body.hero-navy .hero__call svg { color: #fff; }

/* The navy button vanishes on navy: primary hero CTA flips to white. */
body.hero-navy .hero__actions .btn {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}
body.hero-navy .hero__actions .btn:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--navy-deep);
}

body.hero-navy .strip { border-bottom: 1px solid rgba(255, 255, 255, .16); }

/* Deeper drop so the white card reads as floating on the navy. */
body.hero-navy .form-card {
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(8, 12, 40, .35), 0 36px 90px rgba(8, 12, 40, .38);
}

/* Trust bar flips light so the masthead stays one confident navy block. */
body.hero-navy .trustbar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
body.hero-navy .trustbar::before { filter: none; opacity: .05; }
body.hero-navy .trust + .trust,
body.hero-navy .trust:nth-child(even) { border-color: var(--line); }
body.hero-navy .trust__icon { background: #fff; border-color: var(--line); }
body.hero-navy .trust__icon svg { color: var(--navy); }
body.hero-navy .trust__label { color: var(--muted); }

/* ============================================================
   Reduced motion — kill movement, never content.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero .anim { opacity: 1; transform: none; animation: none; }
  .hero::before { animation: none; transform: none; }
  .strip::after { display: none; }
}

/* ============================================================
   Ninja Forms — styled to match .form-card / .field so the
   shared "Contact Form - PPC Landing Page" (form id 4) sits
   inside the enquiry card without looking like a default embed.
   ============================================================ */
.form-card__body--nf { padding-top: 24px; }

.form-card__body--nf .nf-form-fields-required { display: none; }

.form-card__body--nf .nf-field-container {
  margin: 0 0 18px;
}
.form-card__body--nf .nf-field-container:last-child { margin-bottom: 0; }

.form-card__body--nf .nf-field-label label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}
.form-card__body--nf .ninja-forms-req-symbol { color: #c0261f; margin-left: 2px; }

.form-card__body--nf .nf-field-element input.ninja-forms-field,
.form-card__body--nf .nf-field-element textarea.ninja-forms-field {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-card__body--nf .nf-field-element textarea.ninja-forms-field { min-height: 104px; resize: vertical; }

.form-card__body--nf .nf-field-element input.ninja-forms-field::placeholder,
.form-card__body--nf .nf-field-element textarea.ninja-forms-field::placeholder { color: #a8aebb; }

.form-card__body--nf .nf-field-element input.ninja-forms-field:hover,
.form-card__body--nf .nf-field-element textarea.ninja-forms-field:hover { border-color: #b9c1d4; }

.form-card__body--nf .nf-field-element input.ninja-forms-field:focus,
.form-card__body--nf .nf-field-element textarea.ninja-forms-field:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(40, 53, 133, .13);
}

.form-card__body--nf .nf-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #c0261f;
}

/* Consent checkbox — label renders before the input in NF's markup,
   so flex order puts the box back on the left to match the design. */
.form-card__body--nf .checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.form-card__body--nf .checkbox-container .nf-field-label {
  order: 2;
  margin-bottom: 0;
}
.form-card__body--nf .checkbox-container .nf-field-label label {
  margin-bottom: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}
.form-card__body--nf .checkbox-container .nf-field-label a { color: var(--navy); font-weight: 500; }
.form-card__body--nf .checkbox-container .nf-field-element {
  order: 1;
  margin-top: 3px;
}
.form-card__body--nf .checkbox-container input.ninja-forms-field {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
}

.form-card__body--nf .submit-container .field-wrap { display: block; }
.form-card__body--nf .submit-container .nf-field-element {
  display: block;
  margin-top: 4px;
}
.form-card__body--nf .submit-container input.ninja-forms-field {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--navy-btn);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #303d95, var(--navy-btn));
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
/* No transform/box-shadow on hover here: this button sits inside Ninja
   Forms' own flex layout, and a hover-triggered translateY shifted its
   hit-box enough to cause a hover/unhover flicker loop. Colour-only. */
.form-card__body--nf .submit-container input.ninja-forms-field:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}
