/* =========================================================
   Block Restoration Limited — Funnel styles
   Brand palette from blockrestoration.co.uk:
   brand orange (#ea6a20) + deep navy (#123a4b) on white/light-grey.
   Mobile-first. Vanilla CSS only.
   ========================================================= */

:root {
  --ink:        #123a4b;   /* Block Restoration deep navy — dark sections + headings */
  --charcoal:   #0f3341;   /* slightly deeper navy for contrast panels */
  --cream:      #f5f6f7;   /* near-white background */
  --cream-2:    #e9ecee;   /* light-grey section background */
  --brick:      #ea6a20;   /* Block Restoration brand orange — accent / buttons */
  --brick-dark: #cf5a15;   /* hover (~10% darker) */
  --line:       #dce0e3;
  --muted:      #5b6670;
  --white:      #ffffff;
  --gold:       #f2b01e;   /* Google review stars / subtle accents */

  --wrap: 1120px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(26,24,21,0.12);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 60px 0; }
.narrow { max-width: 640px; }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brick);
  margin: 0 0 16px;
}
.section-head { max-width: 720px; margin: 0 auto 40px; }
.section-head.left { margin-left: 0; }
h2 { font-size: 28px; }
.subline { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  background: var(--brick);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 17px 30px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
  width: 100%;
  text-align: center;
}
.btn:hover { background: var(--brick-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.friction { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.hero .friction { color: rgba(255,255,255,.85); }

/* ---------- Image placeholders / real image slots ---------- */
/* Styled to clearly read as a photo slot, never a flat block.
   Swap the background-image with a real photo URL when supplied. */
.img {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-color: #123a4b;
  background-image:
    linear-gradient(rgba(26,24,21,.30), rgba(26,24,21,.30)),
    repeating-linear-gradient(0deg,  #3a352d 0 38px, #322d26 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(0,0,0,.28) 78px 82px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.img .img-label {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.28);
  padding: 5px 9px; border-radius: 3px;
  font-weight: 600;
}
.img .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(transparent, rgba(15,13,11,.82));
  color: #fff; font-size: 15px; font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  padding: 90px 0;
  color: var(--white);
  background-color: #123a4b;
  background-image:
    linear-gradient(rgba(20,18,15,.62), rgba(20,18,15,.72)),
    repeating-linear-gradient(0deg,  #3a352d 0 44px, #322d26 44px 47px),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(0,0,0,.30) 92px 97px);
  background-size: cover;
  background-position: center;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.hero .eyebrow { color: #f4a45c; }

/* Real photo heroes (swap url() to change the hero image) */
.hero--brick {
  background-image:
    linear-gradient(rgba(18,17,16,.58), rgba(18,17,16,.72)),
    url("images/project-5.jpg");
}
.hero--redec {
  background-image:
    linear-gradient(rgba(18,17,16,.55), rgba(18,17,16,.70)),
    url("images/project-7.jpg");
}
.ty-hero--photo {
  background-image:
    linear-gradient(rgba(18,17,16,.80), rgba(18,17,16,.86)),
    url("images/project-6.jpg");
  background-size: cover; background-position: center;
}
.hero h1 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,.92);
  max-width: 620px; margin: 0 auto 26px;
}
.hero .cta-row { max-width: 420px; margin: 0 auto; }
.index-choices { display: flex; flex-direction: column; gap: 14px; max-width: 480px; margin: 8px auto 0; }
@media (min-width: 700px) {
  .index-choices { flex-direction: row; max-width: 640px; }
  .index-choices .btn { flex: 1; }
}
.hero .img-label { color: rgba(255,255,255,.4); }

/* Trust strip inside hero */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 28px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.9);
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }

/* ---------- Social proof strip ---------- */
.proof-strip { background: var(--ink); color: #fff; padding: 34px 0; }
.proof-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px; text-align: center;
}
.proof-grid .num { font-size: 30px; font-weight: 800; color: #fff; }
.proof-grid .lbl { font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.proof-quote {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 28px; padding-top: 24px;
  text-align: center; max-width: 720px; margin-left: auto; margin-right: auto;
  font-size: 18px; font-style: italic; color: rgba(255,255,255,.92);
}
.proof-quote cite { display: block; font-style: normal; font-size: 13.5px; color: var(--gold); margin-top: 10px; letter-spacing: .04em; }

/* ---------- Problem section ---------- */
.problem { background: var(--charcoal); color: #fff; }
.problem h2 { color: #fff; }
.problem .subline { color: rgba(255,255,255,.7); }
.pain-grid {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  margin-top: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.pain {
  background: var(--charcoal);
  padding: 26px 24px;
}
.pain h3 { font-size: 16.5px; color: #fff; margin-bottom: 6px; }
.pain p { margin: 0; color: rgba(255,255,255,.72); font-size: 15.5px; }

/* ---------- Mechanism ---------- */
.mech .mech-media { display: grid; grid-template-columns: 1fr; gap: 2px; margin-bottom: 36px; }
.mech .img { min-height: 300px; }
.mech-points { display: grid; grid-template-columns: 1fr; gap: 22px; }
.mech-point { border-left: 3px solid var(--brick); padding: 4px 0 4px 18px; }
.mech-point h3 { font-size: 18px; margin-bottom: 4px; }
.mech-point p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- How it works ---------- */
.how { background: var(--cream-2); }
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brick); color: #fff; font-weight: 800; font-size: 17px;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- What you get ---------- */
.get-list { list-style: none; padding: 0; margin: 32px 0 0; max-width: 720px; }
.get-list li {
  position: relative; padding: 16px 0 16px 38px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.get-list li:last-child { border-bottom: none; }
.get-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--brick); border-bottom: 2.5px solid var(--brick);
  transform: rotate(-45deg);
}

/* ---------- Proof gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 4px; }
.gallery .img { min-height: 300px; }
.gallery .img.tall { min-height: 300px; }
.testi-over {
  display: flex; align-items: flex-end;
  min-height: 340px;
}
.testi-over .t-inner {
  background: linear-gradient(transparent, rgba(15,13,11,.9));
  width: 100%; padding: 40px 24px 24px; color: #fff;
}
.testi-over blockquote { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.testi-over cite { font-style: normal; font-size: 13.5px; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 34px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 40px 22px 0; font-size: 17.5px; font-weight: 700; color: var(--ink);
  cursor: pointer; position: relative; font-family: inherit;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--brick); transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { margin: 0; padding: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 640px; }

/* ---------- Form section ---------- */
.form-sec { background: var(--ink); color: #fff; }
.form-sec h2 { color: #fff; }
.form-sec .subline { color: rgba(255,255,255,.75); }
.form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 12px;
  max-width: 720px; margin: 34px auto 0;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 820px;            /* reserve space so layout never shifts / collapses */
}
/* Fallback shown behind the iframe while it loads (or if it fails). */
.form-loading {
  position: absolute; inset: 12px; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--muted); border-radius: 6px;
}
.form-loading strong { color: var(--ink); font-size: 18px; display: block; margin-bottom: 8px; }
.form-loading a { color: var(--brick); font-weight: 700; }
.form-card iframe {
  position: relative; z-index: 1;
  width: 100%; min-height: 820px; height: 820px;
  border: none; border-radius: 6px; display: block; background: #fff;
}
.form-fallback {
  padding: 40px 24px; text-align: center; color: var(--ink);
  border: 2px dashed var(--line); border-radius: 6px;
}
.form-alt { text-align: center; margin-top: 22px; color: rgba(255,255,255,.85); font-size: 15.5px; }
.form-alt a { color: #fff; font-weight: 700; }

/* ---------- Final CTA ---------- */
.final { background: var(--brick); color: #fff; text-align: center; }
.final h2 { color: #fff; font-size: 30px; }
.final p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 26px; }
.final .btn { background: var(--ink); max-width: 420px; margin: 0 auto; }
.final .btn:hover { background: #000; }
.final .friction { color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0 40px; }
footer .f-brand { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
footer .f-tag { color: var(--brick); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 0; }
footer .f-desc { max-width: 420px; margin: 10px 0 20px; font-size: 14.5px; }
footer .f-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
footer .f-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14.5px; }
footer .f-links a:hover { color: #fff; text-decoration: underline; }
footer .f-copy { font-size: 13px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
footer .f-phone { color: #fff; font-weight: 700; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(26,24,21,.97);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px;
  transform: translateY(120%); transition: transform .25s ease;
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { padding: 14px 16px; font-size: 16px; }
.sticky-cta .btn-call {
  background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff;
  flex: 0 0 54px; width: 54px; padding: 14px 0;
}
.sticky-cta .btn-call:hover { background: rgba(255,255,255,.12); }

/* ---------- Simple text pages (privacy / terms / thank-you body) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.page h1 { font-size: 32px; }
.page h2 { font-size: 22px; margin-top: 34px; }
.page p, .page li { color: var(--ink); font-size: 16.5px; }
.page a { color: var(--brick); }
.back-link { display: inline-block; margin-top: 40px; font-weight: 700; color: var(--brick); text-decoration: none; }

/* ---------- Thank-you ---------- */
.ty-hero { background: var(--ink); color: #fff; text-align: center; padding: 90px 0 70px; }
.ty-hero .check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--brick);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.ty-hero .check span { display: block; width: 26px; height: 15px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg); margin-top: -6px; }
.ty-hero h1 { color: #fff; font-size: 34px; max-width: 720px; margin: 0 auto 14px; }
.ty-hero .subline { color: rgba(255,255,255,.8); font-size: 18px; }
.ty-steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; }
.ty-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; gap: 18px; align-items: flex-start;
}
.ty-step .n {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brick); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ty-step h3 { font-size: 18px; margin-bottom: 6px; }
.ty-step p { margin: 0; color: var(--muted); font-size: 16px; }
.reinforce {
  background: var(--cream-2); border-left: 4px solid var(--brick);
  padding: 22px 24px; margin-top: 28px; font-size: 17px; font-weight: 600;
}
.help-line { margin-top: 18px; color: var(--muted); font-size: 15.5px; }
.help-line a { color: var(--brick); font-weight: 700; }

/* =========================================================
   Desktop / tablet
   ========================================================= */
@media (min-width: 700px) {
  body { font-size: 18px; }
  section { padding: 100px 0; }
  h2 { font-size: 38px; }
  .hero { min-height: 92vh; }
  .hero h1 { font-size: 56px; }
  .hero p.lead { font-size: 20px; }
  .final h2 { font-size: 40px; }

  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .mech .mech-media { grid-template-columns: repeat(2, 1fr); }
  .mech-points { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .ty-steps { grid-template-columns: repeat(2, 1fr); }

  .btn { width: auto; }
  .hero .cta-row .btn { width: 100%; }
  .final .btn, .form-alt .btn { width: auto; }

  .ty-hero h1 { font-size: 44px; }

  /* Hide sticky bar on desktop — CTAs are always visible */
  .sticky-cta { display: none; }
}

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .wide { grid-column: span 2; }
  .gallery .testi-over { grid-column: span 2; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   UNIFIED RESTORATION LANDING PAGE (Meta) — added for one-page merge
   ============================================================ */
/* Unified hero image (represents brick restoration + redecorating) */
.hero--restore {
  background-image:
    linear-gradient(rgba(18,17,16,.58), rgba(18,17,16,.72)),
    url("images/project-9.jpg");
}
/* Two-service grid so brickwork and decorating visitors both see themselves */
.services { background: var(--sand, #f6f1e7); }
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc {
  background: var(--white, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 28px 26px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.svc h3 { margin-bottom: 8px; }
.svc p { margin-bottom: 12px; }
.svc ul { margin: 0; padding-left: 18px; }
.svc li { margin-bottom: 6px; color: #4a453e; }
