/* ==========================================================
   ACB Construction — Funnel styles
   Mobile-first (390px). Vanilla CSS, no frameworks.

   BRAND: ACB navy (#000433) + white, Montserrat — taken from acbconstruction.co.uk.
   ========================================================== */

:root {
  --ink: #000433;          /* ACB brand navy: dark sections, headings */
  --ink-2: #0b1046;        /* secondary navy */
  --text: #1c1e3d;         /* body text on light */
  --paper: #f4f5f8;        /* cool off-white sections */
  --white: #ffffff;
  --stone: #c5c8d9;        /* lines, muted text on navy */
  --muted: #55586e;        /* muted text on light */
  --accent: #000433;       /* buttons: brand navy */
  --accent-dark: #00022b;  /* navy darkened ~10% (hover) */
  --hi: #9aa1d6;           /* highlight on navy (rules, numbers) */
  --ph: #1c1e3d;           /* image placeholder base */

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 24px;
  --section-y: 60px;
  --max: 1160px;
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --section-y: 100px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font-family: var(--font-head); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; }
@media (min-width: 900px) { h2 { font-size: 40px; } }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid #6f7bd8; outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.lead { margin-top: 12px; font-size: 1.05em; color: var(--muted); max-width: 640px; }
.section--dark .lead { color: var(--stone); }

/* ---------- Buttons ---------- */
.btn {
  display: block;
  width: 100%;
  padding: 18px 28px;
  border: 0;
  border-radius: 4px;
  font: 700 17px/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--white); border: 1px solid var(--accent); }
/* On photos and navy sections: navy button with a thin white outline (as on the main site) */
.hero .btn--primary, .final .btn--primary, .sticky-cta .btn--primary, .section--dark .btn--primary { border-color: rgba(255,255,255,.75); }
.btn--primary:hover { background: var(--accent-dark); }
@media (min-width: 640px) {
  .btn { display: inline-block; width: auto; }
}

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background-color: var(--ph);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px);
  color: rgba(255,255,255,.7);
}
.ph__label {
  max-width: 34ch;
  padding: 0 24px;
  font: 600 12px/1.5 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.slot { font-style: italic; opacity: .8; }
.slot-inline { background: rgba(154,161,214,.25); padding: 0 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
@media (min-width: 900px) { .hero { min-height: 94vh; } }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  min-height: 0;
  object-fit: cover;
}
.hero__img .ph__label { position: absolute; top: 16px; right: 16px; padding: 0; max-width: 26ch; text-align: right; font-size: 10px; opacity: .5; }
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0,4,51,.55);
}
.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  width: 100%;
}
.brand-mark {
  font: 600 15px/1 var(--font-head);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  max-width: 34ch;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.015em;
}
@media (min-width: 900px) { .hero h1 { font-size: 56px; } }
.hero__sub {
  margin-top: 18px;
  max-width: 560px;
  color: #e6e8f2;
}
.hero .btn { margin-top: 28px; }
.friction { margin-top: 12px; font-size: 14px; color: var(--stone); }
.hero__call { margin-top: 10px; font-size: 15px; }
.hero__call a, .form-call a, .help a { font-weight: 700; text-underline-offset: 3px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  padding: 16px var(--gutter);
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--white);
}
.trust-strip li { padding: 0 14px; position: relative; }
.trust-strip li + li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 4px; height: 4px; margin-top: -2px;
  background: var(--hi);
  border-radius: 50%;
}
.trust-strip--bar { background: var(--ink-2); border-top: 0; padding: 20px var(--gutter); }

/* ---------- Form ---------- */
.form-section h2, .form-section .lead { text-align: center; margin-left: auto; margin-right: auto; }
.form-embed {
  margin-top: 32px;
  min-height: 745px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #dfe1ea;
  overflow: hidden;
}
.form-embed iframe { display: block; width: 100%; min-height: 745px; border: 0; }
.form-embed__placeholder {
  min-height: 745px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 2px, transparent 2px 22px);
}
.form-call { margin-top: 20px; text-align: center; color: var(--muted); }

/* ---------- Problem ---------- */
.pains {
  margin-top: 40px;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.pain { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.pain h3 { font-size: 19px; margin-bottom: 6px; }
.pain p { color: var(--stone); max-width: 52ch; }
@media (min-width: 900px) {
  .pains { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .pain { padding: 32px 0; }
}

/* ---------- Mechanism ---------- */
.mechanism { position: relative; background: var(--ink); color: var(--white); }
.mechanism__img { width: 100%; height: 56vh; min-height: 400px; object-fit: cover; }
.mechanism__panel {
  background: var(--ink-2);
  padding: var(--section-y) var(--gutter);
}
.mech-points { margin-top: 32px; display: grid; gap: 24px; counter-reset: mech; }
.mech-points li {
  padding-left: 20px;
  border-left: 3px solid var(--hi);
}
.mech-points h3 { margin-bottom: 4px; }
.mech-points p { color: var(--stone); }
.mechanism .lead { color: var(--stone); }
@media (min-width: 900px) {
  .mechanism { min-height: 720px; }
  .mechanism__img { position: absolute; inset: 0; height: 100%; }
  .mechanism__panel {
    position: relative;
    width: 520px;
    margin-left: auto;
    min-height: 720px;
    padding: 80px 56px;
    background: rgba(0,4,51,.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ---------- How it works ---------- */
.steps {
  margin: 40px 0;
  display: grid;
  gap: 32px;
}
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step__num {
  display: block;
  font: 700 14px/1 var(--font-body);
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; font-size: 20px; }
.step p { color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: 1.15fr 1fr 1fr; gap: 48px; }
}

/* ---------- Split (What you get) ---------- */
.split { display: grid; background: var(--white); }
.split__img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.split__body { padding: var(--section-y) var(--gutter); }
.ticks { margin: 28px 0 36px; display: grid; gap: 16px; max-width: 640px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 640px; }
  .split__body { padding: 96px 64px; align-self: center; }
}

/* ---------- Proof ---------- */
.proof { background: var(--ink); color: var(--white); padding-top: var(--section-y); }
.proof__head { margin-bottom: 40px; }
.proof .lead { color: var(--stone); }
.gallery { display: grid; gap: 2px; }
.gallery__item { position: relative; margin: 0; }
.gallery__item .ph, .gallery__item img { width: 100%; height: 420px; min-height: 400px; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: 14px;
  font-weight: 600;
}
.quote-overlay {
  position: absolute; inset: auto 0 0 0;
  margin: 0;
  padding: 28px 24px;
  background: rgba(0,4,51,.86);
}
.quote-overlay p { font: italic 500 20px/1.45 var(--font-head); }
.quote-overlay cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--stone); }
@media (min-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item .ph, .gallery__item img { height: 50vw; max-height: 620px; }
}
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  padding-top: 48px;
  padding-bottom: var(--section-y);
}
.figures li { border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; }
.figures strong { display: block; font: 700 30px/1.1 var(--font-head); }
.figures span { font-size: 14px; color: var(--stone); }
.figures .slot strong { font-size: 22px; }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, 1fr); } .figures strong { font-size: 40px; } }
.proof--tight .proof__head { margin-bottom: 32px; }
.proof--tight .gallery { padding-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; border-top: 1px solid #dcdee8; }
.faq__item { border-bottom: 1px solid #dcdee8; }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: 0;
  font: 700 17px/1.4 var(--font-body);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq__q::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.faq__q[aria-expanded="true"]::after { content: "\2212"; }
.faq__a { padding: 0 0 22px; color: var(--muted); max-width: 640px; }

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.final__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final__img .ph__label { position: absolute; bottom: 24px; opacity: .55; }
.final__overlay { position: absolute; inset: 0; background: rgba(0,4,51,.55); }
.final__inner { position: relative; padding: var(--section-y) var(--gutter); max-width: 720px; width: 100%; }
.final .lead { color: #e6e8f2; margin: 12px auto 28px; }
@media (min-width: 900px) { .final { min-height: 75vh; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--stone); padding: 48px 0 56px; font-size: 14px; }
.footer__inner { display: grid; gap: 10px; }
.footer__name { color: var(--white); font: 600 16px/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.footer__links a { margin-right: 20px; }
.footer__copy { margin-top: 8px; opacity: .75; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0,4,51,.97);
  transform: translateY(110%);
  transition: transform .2s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; padding: 15px 16px; }
.sticky-cta__call {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.sticky-cta__call:hover { background: #e6e6e6; }
@media (min-width: 900px) {
  .sticky-cta { justify-content: center; padding: 12px; }
  .sticky-cta .btn { flex: 0 0 auto; }
}
body.has-sticky { padding-bottom: 76px; }

/* ---------- Thank-you ---------- */
.thanks-hero { padding-top: 56px; }
.thanks-hero h1 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (min-width: 900px) { .thanks-hero h1 { font-size: 48px; } }
.next-steps { margin: 36px 0 28px; display: grid; gap: 20px; }
.next-steps li {
  padding: 22px 22px 22px 20px;
  border-left: 3px solid var(--hi);
  background: var(--ink-2);
}
.next-steps p { color: #e6e8f2; }
.reinforce { font-weight: 700; }
.help { margin-top: 14px; color: var(--stone); }

/* ---------- Legal ---------- */
.legal h1 { font-family: var(--font-head); font-size: 34px; margin-bottom: 16px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p { margin-bottom: 12px; max-width: 640px; }
.legal__back { margin-bottom: 24px; }
.legal__note { padding: 12px 16px; background: #e6e8f2; font-size: 15px; }

/* Mobile tidy-ups */
@media (max-width: 639px) {
  .hero__img .ph__label { display: none; }
  .trust-strip li + li::before { display: none; }
  .trust-strip { flex-direction: column; align-items: center; gap: 4px; }
}
.next-steps .step__num { color: var(--hi); }
