/* ==========================================================
   Site styles
   Colors and fonts live in :root below — change them there.
   ========================================================== */

:root {
  --plaster: #eef0ee;      /* page background */
  --white: #ffffff;
  --asphalt: #1e2326;      /* main text, dark sections */
  --concrete: #6b7177;     /* secondary text */
  --rule: #c9cdcf;         /* lines and borders */
  --red: #8b1a1a;          /* deep red: buttons, links, accents */
  --red-dark: #6a1212;
  --red-light: #e2685f;    /* red for use on dark backgrounds */
  --oxblood: #2b0c0c;      /* near-black red: dark sections, footer */
  --on-red: #f6dcd9;       /* soft text on red */
  --banner: #f5c518;       /* preview banner only */
  --lumber: #d9b98a;       /* photo placeholders */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--plaster);
  color: var(--asphalt);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

img { max-width: 100%; display: block; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font);
  font-variation-settings: "wdth" 72;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }

p { margin: 0 0 1em; max-width: 38em; }

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--concrete);
  max-width: 32em;
}

/* ---------- Preview banner (delete when site goes live) ---------- */

.preview-banner {
  background: var(--banner);
  color: var(--asphalt);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  font-variation-settings: "wdth" 72;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--asphalt);
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.brand:hover { color: var(--asphalt); }

.nav { display: flex; gap: 1.25rem; }

.nav a {
  color: var(--asphalt);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rule); color: var(--asphalt); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

.header-call { white-space: nowrap; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  color: var(--asphalt);
  cursor: pointer;
}

@media (max-width: 52rem) {
  .menu-toggle { display: block; }
  .site-header .header-call { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); box-shadow: inset 4px 0 0 var(--red); padding-left: 0.75rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-outline { background: transparent; color: var(--asphalt); border-color: var(--asphalt); }
.btn-outline:hover { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }

.btn-small { padding: 0.55rem 1rem; font-size: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Tape-measure strip (the signature element) ---------- */

.tape {
  position: relative;
  background-color: var(--red);
  background-image:
    repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 96px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 1.5px, transparent 1.5px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 12px);
  background-size: 100% 22px, 100% 14px, 100% 8px;
  background-repeat: repeat-x;
  background-position: 0 0;
  border-top: 2px solid var(--red-dark);
  border-bottom: 2px solid var(--red-dark);
}

.tape .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding-top: 1.9rem;
  padding-bottom: 0.9rem;
}

.tape-mark {
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
}

/* ---------- Hero ---------- */

.hero { padding: 3.5rem 0 3rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 52rem) {
  .hero { padding-top: 2.25rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Photo placeholders ---------- */
/* Replace each <div class="photo"> with <img src="images/your-photo.jpg" alt="..."> */

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--lumber);
  background-image: repeating-linear-gradient(
    100deg,
    rgba(120, 80, 30, 0.08) 0 3px,
    transparent 3px 19px
  );
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo span {
  background: rgba(30, 35, 38, 0.82);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.35rem 0.65rem;
  margin: 0.75rem;
  border-radius: 3px;
}
.photo.tall { aspect-ratio: 4 / 5; }

.photo-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section.tight { padding: 3rem 0; }
.section.white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.dark { background: var(--asphalt); color: var(--plaster); }
.section.dark .lede { color: #b8bec3; }

.section-head { margin-bottom: 2.5rem; }

.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---------- Services list ---------- */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  border-top: 2px solid var(--asphalt);
}
.service-list li {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.service-list h3 { margin-bottom: 0.35rem; }
.service-list p { color: var(--concrete); margin: 0; }

/* Full service detail rows (services page) */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.service-row:last-child { border-bottom: 0; }
.service-row ul { padding-left: 1.2rem; margin: 0; }
.service-row li { margin-bottom: 0.35rem; }
@media (max-width: 52rem) { .service-row { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- How it works (real sequence, so numbered) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--red-light); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-variation-settings: "wdth" 72;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--red-light);
}
.steps h3 { color: var(--white); }

/* ---------- Project gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem 1.25rem;
}
.gallery figure { margin: 0; }
.gallery figcaption { padding-top: 0.6rem; }
.gallery figcaption strong { display: block; font-size: 1.125rem; }
.gallery figcaption span { color: var(--concrete); font-size: 0.95rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-bar button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--asphalt);
  cursor: pointer;
}
.filter-bar button[aria-pressed="true"] { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.5rem;
}
.reviews blockquote { margin: 0; }
.reviews blockquote p {
  font-size: 1.1875rem;
  line-height: 1.5;
  border-left: 4px solid var(--red);
  padding-left: 1rem;
}
.reviews cite { display: block; font-style: normal; font-weight: 600; padding-left: 1.25rem; }
.reviews cite span { display: block; font-weight: 400; color: var(--concrete); }

/* ---------- Two-column text + aside ---------- */

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--asphalt); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts li span:first-child { color: var(--concrete); }
.facts li span:last-child { font-weight: 600; text-align: right; }

/* ---------- CTA band ---------- */

.cta-band { padding: 4rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { margin: 0; max-width: 16em; }

/* ---------- Quote form ---------- */

.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 40rem) { .form .row { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--concrete); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--asphalt);
  background: var(--white);
  border: 1.5px solid #9aa0a5;
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.25); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 1rem 1.1rem; border-radius: 4px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e3f1e6; border: 1px solid #7fb98b; }
.form-status.err { background: #fbe9e7; border: 1px solid #d9877c; }

.contact-card { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 1.75rem; }
.contact-card h3 { margin-bottom: 1rem; }
.contact-card p { margin-bottom: 0.75rem; }
.contact-card .big { font-variation-settings: "wdth" 80; font-size: 1.6rem; font-weight: 800; }

/* ---------- Footer ---------- */

.site-footer { background: var(--asphalt); color: #b8bec3; padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--plaster); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 0.8fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--plaster); display: inline-block; margin-bottom: 0.75rem; }
.site-footer h3 { font-size: 1.125rem; color: var(--plaster); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-base { border-top: 1px solid #3a4146; padding-top: 1.25rem; }


/* ---------- Before / after slider ---------- */

.ba-wrap { margin: 0; }
.ba-wrap figcaption { padding-top: 0.6rem; font-size: 1.125rem; }
.ba-feature { margin-bottom: 2.5rem; max-width: 52rem; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; margin: 1rem 0 0; }

.ba { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; touch-action: pan-y; }
.ba > .photo, .ba > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.ba-before { background-color: #a9a49b; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-after span { margin-left: auto; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
  border-radius: 50%; background: var(--red); border: 3px solid #fff;
  background-image: linear-gradient(90deg, transparent 38%, #fff 38% 44%, transparent 44% 56%, #fff 56% 62%, transparent 62%);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 3px;
  background: rgba(30,35,38,.82); color: #fff; font-size: 0.875rem; font-weight: 600; pointer-events: none;
}
.ba-tag-l { left: 0.75rem; }
.ba-tag-r { right: 0.75rem; background: var(--red); }

/* ---------- Service area ---------- */

.towns { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.towns li { background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 0.35rem 0.9rem; font-weight: 600; }
.map {
  aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden;
  background: var(--white); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: var(--concrete);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map.live { padding: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 48rem; border-top: 2px solid var(--asphalt); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-variation-settings: "wdth" 80; font-weight: 700; font-size: 1.25rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.6rem; color: var(--red); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.25rem; color: #3d4448; }

/* ---------- Quote form extras ---------- */

.field-group { border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.25rem 1.25rem; margin: 0; background: var(--white); }
.field-group legend { font-weight: 600; padding: 0 0.35rem; }
.field-group .hint { margin: 0.75rem 0 0; }
.field input[type=file] { padding: 0.6rem; background: var(--white); }
.photo-previews { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-previews li { width: 4.5rem; height: 4.5rem; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Floating call button (phones only) ---------- */

.float-call { display: none; }
@media (max-width: 52rem) {
  .float-call {
    position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 20;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
    padding: 0.85rem 1.15rem; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(139, 26, 26, 0.35);
  }
  .float-call:hover { color: #fff; background: var(--red-dark); }
  .site-footer { padding-bottom: 6rem; }
}

/* ---------- More red ---------- */

.site-header { border-bottom: 4px solid var(--red); }

.hero, .page-head { background: var(--red); color: #fff; border-bottom: 0; }
.hero .lede, .page-head .lede { color: var(--on-red); }
.hero .btn, .page-head .btn { background: #fff; border-color: #fff; color: var(--red); }
.hero .btn:hover, .page-head .btn:hover { background: var(--on-red); border-color: var(--on-red); color: var(--red-dark); }
.hero .btn-outline, .page-head .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.hero .btn-outline:hover, .page-head .btn-outline:hover { background: #fff; color: var(--red); }
.hero :focus-visible, .page-head :focus-visible { outline-color: #fff; }
.hero .photo { box-shadow: 0 0 0 6px rgba(255,255,255,.12); }

/* Tape strip flips to white with red ticks so it pops under the red hero */
.tape {
  background-color: #fff;
  background-image:
    repeating-linear-gradient(90deg, var(--red) 0 2px, transparent 2px 96px),
    repeating-linear-gradient(90deg, var(--red) 0 1.5px, transparent 1.5px 48px),
    repeating-linear-gradient(90deg, rgba(139,26,26,.6) 0 1px, transparent 1px 12px);
  border-top: 0;
  border-bottom: 4px solid var(--red);
}
.tape-mark { color: var(--red); }

.section.dark, .site-footer { background: var(--oxblood); }
.section.dark .lede { color: #d9b3ae; }
.site-footer { color: #d9b3ae; border-top: 6px solid var(--red); }
.footer-base { border-top-color: #4a1d1d; }

.cta-band { background: var(--red); color: #fff; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--on-red); border-color: var(--on-red); color: var(--red-dark); }
.cta-band .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--red); }
.cta-band :focus-visible { outline-color: #fff; }

h2 { color: var(--red-dark); }
.section.dark h2, .cta-band h2 { color: #fff; }
.service-list, .facts, .faq { border-top-color: var(--red); }
.service-list h3, .gallery figcaption strong { color: var(--red-dark); }
.filter-bar button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.towns li { border-color: var(--red); color: var(--red-dark); }

/* ---------- Three service divisions ---------- */

.divisions-tree {
  height: 2.5rem; margin: 0 auto; width: calc(100% * 2 / 3);
  border: 2px solid var(--red); border-bottom: 0; border-radius: 2px 2px 0 0;
  position: relative;
}
.divisions-tree::before {
  content: ""; position: absolute; left: 50%; top: -1.25rem; height: calc(100% + 1.25rem);
  border-left: 2px solid var(--red); margin-left: -1px;
}
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.division {
  background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--red);
  border-radius: 4px; padding: 1.5rem 1.5rem 1.75rem;
}
.division-num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  background: var(--red); color: #fff; border-radius: 5px; font-weight: 800; margin-bottom: 1rem;
}
.division h3 { font-size: 1.6rem; padding-bottom: 0.85rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.division h3 a { color: var(--red-dark); text-decoration: none; }
.division h3 a:hover { text-decoration: underline; }
.division ul { list-style: none; margin: 0; padding: 0; }
.division li { position: relative; padding-left: 1.1rem; margin-bottom: 0.55rem; }
.division li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

@media (max-width: 52rem) {
  .divisions-tree { display: none; }
  .divisions { grid-template-columns: 1fr; }
}

.division-detail { scroll-margin-top: 5rem; }
.offer-list { margin: 0; border-top: 2px solid var(--red); }
.offer-list div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.offer-list dt { font-variation-settings: "wdth" 80; font-weight: 800; font-size: 1.3rem; color: var(--asphalt); }
.offer-list dd { margin: 0.2rem 0 0; color: var(--concrete); }
.footer-base p { margin: 0 0 0.4rem; max-width: none; }
.footer-base .fine { font-size: 0.8125rem; opacity: 0.8; }

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