/* ============================================================
   Resinject — Resin Injection Underpinning landing page
   Brand tokens per Resinject Brand Guidelines v1.0 (2026).
   All brand colours/fonts live in :root — nowhere else.
   ============================================================ */

:root {
  /* Core blues */
  --navy:    #0A1B45;   /* Deep Navy (Ink) — PMS 282 C */
  --marine:  #24447C;   /* Marine Blue — PMS 654 C */
  --blue:    #2E6FC2;   /* Resinject Blue — PMS 285 C (primary action) */
  --blue-dk: #275EA4;   /* hover of Resinject Blue */
  --sky:     #4A9FD4;   /* Sky Blue — PMS 279 C */
  --cyan:    #23A9C9;   /* Resin Cyan — PMS 313 C */

  /* Accent — sparing use only (the "resin") */
  --yellow:      #FFD200;  /* Hi-Vis Yellow — PMS 116 C */
  --yellow-dk:   #E8BF00;
  --yellow-text: #3a2f00;

  /* Neutrals */
  --white:    #ffffff;
  --concrete: #F4F6F8;
  --mist:     #E7ECF1;
  --slate:    #5A6B82;
  --text:     #33465f;

  /* Type */
  --font-heading: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 10px 30px rgba(10, 27, 69, .12);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 88px; }
.nowrap { white-space: nowrap; }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--sky); }

.section-lead {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: 1.06rem;
}

/* ---------- Buttons — call & quote get EQUAL visual weight ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn span small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .02em;
  opacity: .8;
  text-transform: none;
}

.btn-call {
  background: var(--yellow);
  color: var(--yellow-text);
  box-shadow: 0 6px 18px rgba(255, 210, 0, .3);
}
.btn-call:hover { background: var(--yellow-dk); }

.btn-quote {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(46, 111, 194, .35);
}
.btn-quote:hover { background: var(--blue-dk); }

.btn-quote-solid { background: var(--blue); color: var(--white); }
.btn-quote-solid:hover { background: var(--blue-dk); }

.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.cta-pair .btn { min-width: 240px; padding: 15px 26px; text-align: left; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.header-logo img { width: 148px; }
.header-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.header-nav a {
  color: rgba(255,255,255,.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
}
.header-nav a:hover { color: var(--yellow); }
.header-ctas { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--marine) 0%, var(--navy) 55%);
  color: var(--white);
  padding: 64px 0 72px;
  overflow: hidden;
}
/* Photo hero, opted into per variation via data-hero.
   The scrim is a legibility tool, not a tint, and it is deliberately no heavier
   than it has to be: the photo only earns its place if the visitor can actually
   recognise a cracked wall. Alphas were set by measuring the BRIGHTEST 1% of
   pixels under the copy (a cloud, not the regional average) and solving for
   WCAG AA body text at 4.5:1. At .64 that worst-case pixel gives 6.3:1, so the
   copy stays clear of AA while the brick and gauge tape read through.
   Text occupies the left ~55% on desktop, so the gradient only lightens past
   that point, where the form card covers the image anyway.
   The navy underneath is the fallback if the image request fails. */
/* The gradient is declared ONCE and the photo comes from --hero-photo, so adding
   a variant is a single line below instead of another copy of the stack. The
   :not([data-hero=""]) guard matters: the attribute is always present in the
   markup and empty means "gradient only". */
.hero[data-hero]:not([data-hero=""]) {
  background:
    linear-gradient(96deg,
      rgba(10, 27, 69, .80) 0%,
      rgba(10, 27, 69, .70) 30%,
      rgba(10, 27, 69, .64) 55%,
      rgba(10, 27, 69, .44) 78%,
      rgba(36, 68, 124, .34) 100%),
    var(--hero-photo) center 42% / cover no-repeat,
    var(--navy);
}
/* Contour rings are quiet over flat navy and just noise over a photograph. */
.hero[data-hero]:not([data-hero=""]) .hero-contours { display: none; }

/* One line per hero. All three measured at the .64 floor against their own
   brightest 1% of pixels: 6.6:1, 5.3:1 and 5.7:1, so the shared gradient above
   is safe for each and none needs its own tuning.
   Only brick and render are here on purpose: under a 60-70% navy scrim the
   concrete and interior-floor shots collapse into flat grey and read as texture
   rather than as a cracked building. */
.hero[data-hero="wall-crack"] { --hero-photo: url('/assets/images/hero-wall-crack.jpg'); }
.hero[data-hero="crackgauge"] { --hero-photo: url('/assets/images/hero-crackgauge.jpg'); }
.hero[data-hero="brickwall"]  { --hero-photo: url('/assets/images/hero-brickwall.jpg'); }

.hero-contours {
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 520px;
  height: 520px;
  opacity: .1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas:
    "copy form"
    "trust form";
  gap: 24px 56px;
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-inner > .hero-trust { grid-area: trust; margin-top: 0; align-self: start; }
.hero h1 { color: var(--white); }
.accent-underline {
  color: var(--yellow);
  white-space: nowrap;
}
.hero-lead {
  margin-top: 18px;
  max-width: 540px;
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
}
/* Opening question, set per variation (leadQ in VARIATIONS). Shown at every
   breakpoint, so a variation's leadShort must not repeat it. Hidden while empty
   so the default page, whose H1 already asks a question, is unaffected. */
.lead-q { display: block; margin-bottom: 14px; }
.lead-q:empty { display: none; }
/* mobile-only variants — toggled in the ≤640px block */
.lead-short { display: none; }
.hero-trust .m-only { display: none; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: .92rem;
  color: rgba(255,255,255,.75);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-trust li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

/* Google rating pill */
.google-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 9px 18px 9px 10px;
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  font-size: .95rem;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.google-pill:hover { transform: translateY(-2px); }
.g-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #e8eaed;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  background: conic-gradient(from -45deg, #ea4335 0 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg 360deg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-color: #dadce0;
}
.stars { color: #fbbc05; letter-spacing: 2px; font-size: 1rem; }
.google-pill-text strong { font-weight: 800; }
.pill-row { display: inline-flex; align-items: center; gap: 10px; }
.pill-short { display: none; }
.cta-pair .google-pill { margin-top: 4px; }

/* ============================================================
   THE LIFT — hold-to-inject before/after reveal
   --lift goes 0 → 1; AFTER image is revealed bottom-up behind
   a rising hi-vis resin line, echoing the real injection lift.
   ============================================================ */
/* Registered so --lift can transition — the fill animates on the
   browser's timeline (no JS ticker to throttle). Unsupported browsers
   degrade to an instant before/after toggle. */
@property --lift {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
.lift { --lift: 0; }
.lift-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 10, 30, .45);
  aspect-ratio: 4 / 3;
  background: var(--marine);
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.lift-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.lift-before { filter: saturate(.92); }
.lift-reveal {
  position: absolute;
  inset: 0;
  clip-path: inset(calc((1 - var(--lift)) * 100%) 0 0 0);
}

/* rising resin line */
.lift-edge {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--lift) * 100%);
  height: 12px;
  transform: translateY(50%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 210, 0, .8));
}
.lift.is-active .lift-edge, .lift.is-draining .lift-edge { opacity: 1; }
.lift-edge svg { width: 100%; height: 100%; }
.lift-edge path { fill: var(--yellow); }

/* bubbles that ride up with the fill */
.lift-bubbles { position: absolute; inset: 0; pointer-events: none; }
.lift-bubbles i {
  position: absolute;
  bottom: calc(var(--lift) * 100%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
}
.lift.is-active .lift-bubbles i { animation: bubble 1.1s infinite; }
.lift-bubbles i:nth-child(1) { left: 14%; animation-delay: 0s; }
.lift-bubbles i:nth-child(2) { left: 33%; animation-delay: .25s; width: 4px; height: 4px; }
.lift-bubbles i:nth-child(3) { left: 52%; animation-delay: .5s; }
.lift-bubbles i:nth-child(4) { left: 70%; animation-delay: .15s; width: 4px; height: 4px; }
.lift-bubbles i:nth-child(5) { left: 86%; animation-delay: .4s; }
@keyframes bubble {
  0%   { transform: translateY(0); opacity: .9; }
  100% { transform: translateY(-46px); opacity: 0; }
}

/* injection ports along the bottom edge */
.lift-ports {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
}
.lift-ports i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid rgba(10, 27, 69, .55);
  opacity: .55;
}
.lift.is-active .lift-ports i { animation: portPulse .7s infinite alternate; }
.lift-ports i:nth-child(2) { animation-delay: .2s; }
.lift-ports i:nth-child(3) { animation-delay: .4s; }
@keyframes portPulse {
  from { transform: scale(1); opacity: .55; }
  to   { transform: scale(1.5); opacity: 1; box-shadow: 0 0 12px var(--yellow); }
}

/* tags */
.lift-tag {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lift-tag-before { left: 14px; background: rgba(10, 27, 69, .78); color: var(--white); }
.lift-tag-after {
  right: 14px;
  background: var(--yellow);
  color: var(--yellow-text);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
}
.lift.is-done .lift-tag-after { opacity: 1; transform: none; }
.lift.is-done .lift-tag-before { opacity: 0; }

/* completion flash */
.lift-done {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  padding-bottom: 22px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s .1s, transform .35s .1s;
  pointer-events: none;
}
.lift-done span {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.lift.is-done .lift-done { opacity: 1; transform: none; }

/* controls */
.lift-ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.lift-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--yellow-text);
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 210, 0, .35);
  transition: transform .12s, background .2s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.lift-btn::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--navy);
  animation: portPulse 1.4s infinite alternate;
}
.lift-btn:hover { background: var(--yellow-dk); }
.lift.is-active .lift-btn { transform: scale(.96); }
.lift-gauge {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(90, 107, 130, .25);
  overflow: hidden;
}
.lift-gauge i {
  display: block;
  height: 100%;
  width: calc(var(--lift) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dk));
}
.lift-pct {
  flex: none;
  min-width: 44px;
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero-form {
  grid-area: form;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  scroll-margin-top: 88px;
}
.hero-form .quote-form { padding: 28px 26px; }

/* ---------- Proof strip ----------
   One static before/after directly under the hero, for traffic that arrives
   cold and will not scroll five sections to find the interactive gallery.
   Hidden unless the page's variation opted in (see `proof` in VARIATIONS). */
.proof-strip[data-proof="off"] { display: none; }
.proof-strip {
  padding: 48px 0 52px;
  background: var(--concrete);
}
.proof-title {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  text-align: center;
  margin-bottom: 24px;
}
.proof-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.proof-shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* aspect-ratio rather than intrinsic height: the pair must stay the same shape
   even if a swapped-in image is cropped slightly differently. */
.proof-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.proof-shot figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
}
.proof-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.proof-tag-before { background: rgba(10, 27, 69, .88); color: var(--white); }
.proof-tag-after { background: var(--yellow); color: var(--navy); }
.proof-caption {
  margin-top: 18px;
  text-align: center;
  font-size: .96rem;
  color: var(--slate);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--blue);
  color: var(--white);
  padding: 26px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.stat span { font-size: .9rem; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-dark {
  background:
    radial-gradient(110% 100% at 10% 0%, var(--marine) 0%, var(--navy) 60%);
  color: rgba(255,255,255,.88);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-tint { background: var(--concrete); }
.section-cta { margin-top: 44px; }

/* ---------- Problems ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .18s, box-shadow .18s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.problem-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.problem-icon img { width: 30px; height: 30px; }
.problem-card h3 { margin-bottom: 8px; }
.problem-card p { font-size: .96rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--yellow-text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .96rem; }

.how-photo {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
}
.how-photo img { width: 100%; max-height: 440px; object-fit: cover; }
.how-photo figcaption {
  padding: 12px 4px 0;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Results gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 44px;
  margin-top: 48px;
  align-items: start;
}
.gallery-side-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.thumb {
  border: 2px solid var(--mist);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: var(--font-body);
  transition: border-color .15s, transform .15s;
}
.thumb:hover { transform: translateY(-2px); }
.thumb.is-active { border-color: var(--blue); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb span {
  display: block;
  padding: 9px 12px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
}
.thumb.is-active span { color: var(--blue); }
.gallery-note {
  margin-top: 20px;
  font-size: .88rem;
  color: var(--slate);
}

/* ---------- Reviews ---------- */
.reviews-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.rating-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 40px;
  text-align: center;
}
.g-mark-lg { width: 38px; height: 38px; font-size: 1.4rem; margin: 0 auto 6px; }
.rating-score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: var(--navy);
  line-height: 1;
}
.stars-lg { font-size: 1.4rem; }
.rating-count { font-size: .88rem; color: var(--slate); margin-top: 4px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 4px 16px rgba(10, 27, 69, .07);
  display: flex;
  flex-direction: column;
}
.review-card p {
  margin-top: 14px;
  font-size: .97rem;
  flex: 1;
}
.review-card strong { color: var(--navy); }
.review-card footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--mist);
}
.review-card cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}
.review-card footer span { font-size: .82rem; color: var(--slate); }

/* ---------- Industries + credentials ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.industry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.industry-card img {
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  width: 100%;
  transition: transform .3s;
}
.industry-card:hover img { transform: scale(1.04); }
.industry-card h3 {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 14px;
  color: var(--white);
  font-size: 1.02rem;
  background: linear-gradient(transparent, rgba(10, 27, 69, .88));
}
.cred-band {
  margin-top: 44px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: radial-gradient(120% 150% at 90% -10%, var(--marine) 0%, var(--navy) 62%);
  color: rgba(255,255,255,.82);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 48px;
  align-items: center;
}
.cred-head { grid-column: 1 / -1; }
.cred-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}
.cred-sub { font-size: .92rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.cred-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(4, 10, 30, .3);
}
.badge-chip img {
  display: block;
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: 100%;
}
.cred-list { font-size: .93rem; }
.cred-list li { display: flex; align-items: baseline; gap: 9px; margin-bottom: 7px; }
.cred-list li:last-child { margin-bottom: 0; }
.cred-list li::before { content: "✓"; color: var(--yellow); font-weight: 700; flex: none; }

/* ---------- Quote section ---------- */
.quote-section { position: relative; overflow: hidden; }
.quote-contours { left: auto; bottom: auto; right: -60px; top: -60px; }
.quote-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: center;
}
.quote-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 16px 26px;
  background: var(--yellow);
  color: var(--yellow-text);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  box-shadow: 0 6px 18px rgba(255, 210, 0, .3);
  transition: transform .15s, background .2s;
}
.quote-phone:hover { transform: translateY(-2px); background: var(--yellow-dk); }
.quote-phone svg { width: 30px; height: 30px; fill: currentColor; }
.quote-phone small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .8rem;
}
.quote-trust { margin-top: 26px; }

.quote-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: 0 24px 60px rgba(4, 10, 30, .4);
  color: var(--text);
}
.quote-form h3 { font-size: 1.6rem; margin-bottom: 6px; color: var(--navy); }
/* hi-vis marker under the key words — the brand's one point of emphasis */
.hl-marker {
  background: linear-gradient(transparent 58%, rgba(255, 210, 0, .55) 58%);
  padding: 0 2px;
}

/* Two-step quote form */

/* Honeypot. Moved off-canvas rather than display:none, because some bots skip
   fields they can tell are hidden. Never focusable, never announced. */
.qf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.qf-sub {
  font-size: .92rem;
  color: var(--slate);
  margin-bottom: 18px;
}
.chip-group {
  border: 0;
  margin-bottom: 16px;
}
.chip-group legend {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.chip-group legend span { font-weight: 400; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--concrete);
  border: 1.5px solid var(--mist);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chips span:hover { border-color: var(--sky); }
.chips input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.chips input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.qf-or {
  margin-top: 12px;
  text-align: center;
  font-size: .9rem;
  color: var(--slate);
}
.qf-or a { font-weight: 700; color: var(--blue); }
.qf-or a:hover { text-decoration: underline; }
.qf-thanks {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .95rem;
  color: #1e7a41;
  background: #e7f6ec;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  outline: none;
}
/* the personalised line is always exactly one line, whatever the
   name length — keeps step 2's height constant (no card resize) */
.qf-thanks-name {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* photo attach (step 2) — hidden input, styled label */
/* The file-picker styles that lived here were removed with the photo upload on
   2026-07-26. Full pattern (markup, CSS, JS) preserved in
   modules/photo-upload.md for the next client that needs it. */

/* Single-step form (2026-07-25: the two-step handover was retired for
   Resinject). Six fields have to fit without the card dominating the fold,
   so the rhythm is tighter than the old step 1 and the whole form is
   locked while sending. */
.qf-fields.is-sending {
  opacity: .6;
  pointer-events: none;
}

/* Submit button doubles as the loader: the label swaps for a spinner so the
   button never changes size and nothing below it shifts. */
.quote-form button[type="submit"] {
  position: relative;
  min-height: 52px;
}
.btn-spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: qf-spin .6s linear infinite;
}
.is-sending .btn-label { display: none; }
.is-sending .btn-spinner { display: block; }
@keyframes qf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 1.6s; }
}

/* 12px not 16: six fields have to fit the hero card without pushing the
   submit button below the fold. */
.field { margin-bottom: 12px; }
.field-row .field { margin-bottom: 0; }
.field-row { margin-bottom: 12px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: .98rem;
  color: var(--navy);
  padding: 11px 14px;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--concrete);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field.is-error input, .field.is-error textarea { border-color: #d64545; }
.form-note {
  margin-top: 14px;
  font-size: .84rem;
  color: var(--slate);
  text-align: center;
}
.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
}
.form-msg.is-ok { display: block; background: #e7f6ec; color: #1e7a41; }
.form-msg.is-err { display: block; background: #fcf3f3; color: #b23b3b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
  font-size: .93rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 12px;
}
.footer-col li { margin-bottom: 6px; }
.footer-col a:hover { color: var(--yellow); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Mobile sticky dual CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 27, 69, .96);
  backdrop-filter: blur(6px);
}
.sticky-cta .btn { flex: 1; padding: 13px 10px; font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "form" "trust";
  }
  .hero-form { justify-self: stretch; max-width: 560px; }
  .header-nav { display: none; }
  .problem-grid, .steps, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery .lift-lg { max-width: 560px; }
  .quote-inner { grid-template-columns: 1fr; gap: 44px; }
  .reviews-head { grid-template-columns: 1fr; }
  .rating-card { justify-self: start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  /* Copy spans the full width here and the trust list sits below the form, so
     the scrim stays even rather than lightening to one side. Never below .64:
     that is the measured floor for AA against the brightest pixel in frame.
     The gradient is restated because `background` overwrites the whole layer
     stack; only --hero-photo changes per variant, to the half-width source.
     Worth the swap: 81% of this traffic is mobile, and the desktop hero is
     ~230KB of pixels a phone cannot show. */
  .hero[data-hero]:not([data-hero=""]) {
    background:
      linear-gradient(170deg,
        rgba(10, 27, 69, .72) 0%,
        rgba(10, 27, 69, .64) 45%,
        rgba(10, 27, 69, .80) 100%),
      var(--hero-photo) center 38% / cover no-repeat,
      var(--navy);
  }
  .hero[data-hero="wall-crack"] { --hero-photo: url('/assets/images/hero-wall-crack-sm.jpg'); }
  .hero[data-hero="crackgauge"] { --hero-photo: url('/assets/images/hero-crackgauge-sm.jpg'); }
  .hero[data-hero="brickwall"]  { --hero-photo: url('/assets/images/hero-brickwall-sm.jpg'); }
  /* Stays two-up: a before/after that needs scrolling between the two halves
     is not a comparison any more. Tighter gap buys back the width. */
  .proof-strip { padding: 36px 0 40px; }
  .proof-pair { gap: 10px; }
  .proof-title { margin-bottom: 18px; }
  .proof-tag { padding: 4px 9px; font-size: .7rem; }
  .proof-shot figcaption { top: 8px; left: 8px; }
  .proof-caption { margin-top: 14px; font-size: .9rem; }
  /* keep the hero form near the fold: call button stays, the quote
     button is redundant with the form card directly beneath it */
  .hero { padding: 40px 0 56px; }
  .hero .cta-pair { margin-top: 20px; }
  .hero .cta-pair .btn-quote { display: none; }
  .hero-lead { margin-top: 12px; }
  /* declutter the first screen: short lead, one-line eyebrow
     (service area moves into the trust list), compact review pill */
  .lead-full { display: none; }
  .lead-short { display: inline; }
  .eyebrow-area { display: none; }
  .hero-trust .m-only { display: flex; }
  /* call CTA + compact review pill share one row above the fold */
  .hero .cta-pair { flex-wrap: nowrap; gap: 10px; align-items: stretch; }
  /* call button hugs its content; the review pill takes the leftover */
  .hero .cta-pair .btn-call { flex: 0 1 auto; min-width: 0; padding: 12px 12px; }
  .hero .cta-pair .google-pill {
    margin-top: 0;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: .78rem;
  }
  .hero .cta-pair .google-pill .pill-row { gap: 6px; }
  .hero .cta-pair .google-pill .g-mark {
    width: 20px; height: 20px;
    font-size: .8rem;
    border-width: 1.5px;
  }
  .hero .cta-pair .google-pill .stars { font-size: .78rem; letter-spacing: 1px; }
  .hero .cta-pair .google-pill .pill-long { display: none; }
  .hero .cta-pair .google-pill .pill-short { display: inline; }
  /* compress the quote form so step 1 fits a phone viewport:
     smaller chips (2 rows), tighter fields and card padding */
  .quote-form, .hero-form .quote-form { padding: 22px 20px; }
  .quote-form h3 { font-size: 1.4rem; text-align: center; }
  .qf-sub { font-size: .88rem; margin-bottom: 14px; text-align: center; }
  .chip-group { margin-bottom: 12px; }
  .chip-group legend { margin-bottom: 6px; }
  .chips { gap: 6px; }
  .chips span { padding: 7px 10px; font-size: .78rem; }
  .field { margin-bottom: 12px; }
  .field label { margin-bottom: 4px; font-size: .85rem; }
  .field input, .field textarea { padding: 10px 12px; }
  .qf-or { margin-top: 8px; font-size: .85rem; }
  .qf-thanks { padding: 10px 14px; font-size: .9rem; }
  .qf-step2 textarea { height: 58px; }
  .form-note { margin-top: 8px; font-size: .78rem; }
  /* credentials panel stacks; badge chips keep their aspect ratio */
  .cred-band { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
  .badge-chip { padding: 10px 12px; }
  .badge-chip img { max-height: 38px; }
  .header-ctas .btn-quote { display: none; }
  .header-ctas .btn-call { font-size: .9rem; padding: 9px 13px; }
  .problem-grid, .steps, .review-grid, .industry-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cta-pair .btn { flex: 1 1 100%; min-width: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 74px; }
  .quote-phone { font-size: 1.25rem; }
}

/* ---------- Reduced motion: plain before/after toggle ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift-reveal { transition: none; }
  .lift-bubbles, .lift-edge { display: none; }
  .btn, .problem-card, .industry-card img, .qf-step { transition: none; }
}

/* ============================================================
   WordPress plugin context only (dormant on the standalone site).
   The plugin wraps the page in .resinject-landing-root; when that
   sits inside a boxed page-builder container (Elementor caps width
   ~1140px and centres it), this breaks the page out to full-bleed
   so the dark sections span edge to edge. Fixed-position children
   (sticky CTA) are unaffected — no transform on this ancestor.
   ============================================================ */
.resinject-landing-root {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: clip;
}
/* Resinject's site-wide floating Google-review badge collides with our
   own review pill + sticky CTA; hide it on the landing page (this
   stylesheet only loads where our shortcode is present). */
.rpi-badge-cnt { display: none !important; }

/* Re-assert our layout against the host theme (plugin context only):
   the theme's generic .container caps width ~1920px and its heading
   styles mute bare h3s. Scoped under the plugin root so the standalone
   site is untouched. */
.resinject-landing-root .container {
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.resinject-landing-root .problem-card h3 { color: var(--navy) !important; }
/* Elementor's default column padding leaves white strips above/below the
   full-bleed page; zero it only on the wrap that holds our root. */
.elementor-widget-wrap:has(.resinject-landing-root) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Small helper line under a field. Used for the "have photos?" note; .is-warn
   is kept for any future inline field warning. */
.qf-hint {
  margin: 6px 0 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--slate);
}
.qf-hint.is-warn {
  color: #b23b3b;
  font-weight: 600;
}
/* The photo note sits directly above the submit button, so it needs breathing
   room below it that a generic hint under a field does not. */
.qf-photo-note {
  margin: 12px 0 18px;
}
