/* HBC Construction Projects: site styles.
   Mobile first: base styles are for phones, wider screens are added further down. */

:root {
  --green: #226B26;        /* deep green: buttons, accents, footer */
  --green-mid: #4E9C3C;    /* hover highlights (borders and underlines) */
  --green-light: #6DB54F;  /* small accents only */
  --green-dark: #1A531D;   /* button hover, darker so white text stays readable */
  --charcoal: #484848;     /* headings */
  --text: #4F4F4F;         /* body text */
  --white: #FEFEFE;        /* background */
  --soft: #F3F6F1;         /* light section background */
  --line: #DDE2DA;         /* borders */
  --ph: #D9DCD7;           /* photo placeholder grey */
  --radius: 6px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--green-mid); text-decoration-thickness: 2px; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 12px; outline-color: var(--charcoal); }

main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-mid); text-decoration: none; }

.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: #E6F1E2; border-color: var(--green-light); text-decoration: none; }

.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--green-dark); border-color: var(--green-light); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}
.brand { display: block; margin-right: auto; padding: 4px 0; }
.brand img { height: 56px; width: auto; }

.header-cta { padding: 10px 14px; font-size: .95rem; }

.site-nav { order: 3; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--green-mid); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
  display: none;
}
.nav-list.is-open { display: block; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-list li:last-child a { border-bottom: 0; }
.nav-list a:hover { color: var(--green); }

/* No JavaScript: show the menu as a simple row of links */
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .nav-list {
  display: flex;
  flex-wrap: wrap;
  position: static;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.no-js .nav-list a { padding: 0 10px; border: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--green);
  color: var(--white);
  border-bottom: 6px solid var(--green-light);
}
/* Optional photo background: see README "Hero photo" */
.hero.has-photo {
  background:
    linear-gradient(rgba(10, 30, 12, .72), rgba(10, 30, 12, .72)),
    url("../images/hero.jpg") center / cover no-repeat;
}
.hero-inner { padding: 56px 20px 64px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero-kicker {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-lead { font-size: 1.15rem; max-width: 40ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 10px;
  background: var(--green-light);
  border-radius: 2px;
}

/* Services cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 20px 8px;
}
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.work { margin: 0; }
.work-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ph);
  cursor: zoom-in;
}
.work-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font: inherit;
  font-weight: 700;
}
.work-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-btn.no-photo img { display: none; }
.work-btn.has-photo .work-ph { display: none; }
.work figcaption { font-size: .95rem; padding: 8px 2px 0; }

/* Reviews */
.reviews { margin-top: 40px; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.review {
  background: var(--white);
  border-left: 4px solid var(--green-light);
  border-radius: var(--radius);
  padding: 16px 18px 2px;
  font-style: italic;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}
.steps p { margin: 7px 0 0; color: var(--charcoal); font-weight: 600; }

/* Service areas */
.chips {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 10px 16px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-weight: 700;
}
.areas-note { font-weight: 600; color: var(--charcoal); }

/* ---------- Contact form ---------- */
.contact-wrap { max-width: 760px; }
.enquiry-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.form-key { font-size: .95rem; }
.field { margin: 0 0 18px; }
.field-row { display: grid; gap: 0 16px; }
.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
  font-weight: 700;
}
.req, .opt { font-weight: 400; font-size: .9rem; color: var(--text); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid #8A8F87;
  border-radius: var(--radius);
  font: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green-mid); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--green);
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.photos { border: 0; padding: 0; min-width: 0; }
.photos label { font-weight: 600; margin-top: 10px; }
.photos input[type="file"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border: 2px dashed #8A8F87;
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
}
.hint { margin-bottom: 4px; }
.form-error { margin-top: 10px; color: #A11A1A; font-weight: 700; }

/* Honeypot spam trap: hidden from people, bots fill it in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-call { margin-top: 20px; font-size: 1.15rem; font-weight: 700; color: var(--charcoal); }
.contact-call a { display: inline-block; padding: 10px 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: var(--white);
  padding: 40px 0 32px;
  border-top: 6px solid var(--green-light);
}
.site-footer a { color: var(--white); display: inline-block; padding: 10px 0; }
.site-footer a:hover { text-decoration-color: var(--green-light); }
.footer-inner { display: grid; gap: 24px; }
.footer-logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  width: 200px;
}
.footer-text p { margin: 0 0 6px; }
.footer-name { font-weight: 800; font-size: 1.1rem; }
.footer-copy { margin-top: 14px !important; font-size: .95rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(100% - 24px, 1000px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox-inner { position: relative; padding: 56px 12px 12px; }
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--charcoal);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--soft); }
.lightbox-figure { margin: 0; }
.lightbox-img { width: 100%; max-height: 70vh; object-fit: contain; background: #111; border-radius: 4px; }
.lightbox-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  background: var(--ph);
  color: var(--charcoal);
  font-weight: 700;
  border-radius: 4px;
}
.lightbox-ph[hidden], .lightbox-img[hidden] { display: none; }
.lightbox-caption { padding: 10px 2px 4px; color: var(--charcoal); font-weight: 600; }
.lightbox-nav { display: flex; justify-content: space-between; gap: 12px; }
.lightbox-nav .btn { border-color: var(--green); }

/* ---------- Simple pages (thanks, privacy, 404) ---------- */
.page { padding: 48px 0 64px; }
.page .container { max-width: 760px; }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.simple-header .header-inner { justify-content: space-between; }
.simple-header .brand { margin-right: 0; }

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .review-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .enquiry-form { padding: 28px; }
  .footer-inner { grid-template-columns: 220px 1fr; align-items: start; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .brand img { height: 68px; }
  .site-nav { order: 0; }
  .nav-toggle { display: none; }
  .nav-list,
  .no-js .nav-list {
    display: flex;
    position: static;
    padding: 0;
    gap: 4px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list a {
    min-height: 44px;
    padding: 0 12px;
    border-bottom: 3px solid transparent;
  }
  .nav-list li:last-child a { border-bottom: 3px solid transparent; }
  .nav-list a:hover { border-bottom-color: var(--green-mid); }
  .header-cta { margin-left: 12px; padding: 10px 18px; font-size: 1rem; }
  .hero-inner { padding: 96px 20px 104px; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; }
  .steps p { margin-top: 0; }
}

/* Small phones: keep the header tidy */
@media (max-width: 380px) {
  .brand img { height: 48px; }
  .header-cta { padding: 8px 10px; font-size: .9rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* =====================================================================
   Version 2 additions: richer home page and service pages
   ===================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-light { color: #CFE7C4; }

/* Hero: copy on the left, timber frame drawing on the right */
.hero { position: relative; overflow: hidden; }
.hero::before {
  /* faint blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 24px;
  padding-top: 52px;
  padding-bottom: 60px;
}
.hero-art {
  display: none;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  color: rgba(207, 231, 196, .55);
}
.hero-art .accent { color: var(--green-light); stroke: var(--green-light); stroke-width: 3; }
.hero-art .dim { stroke-width: 1.5; }
.hero-ticks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
}
.hero-ticks li { display: flex; align-items: center; gap: 8px; }
.hero-ticks li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123a14' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.6s ease forwards;
  }
  .hero-art path:nth-child(2) { animation-delay: .25s; }
  .hero-art path:nth-child(3) { animation-delay: .4s; }
  .hero-art path:nth-child(4) { animation-delay: .55s; }
  .hero-art path:nth-child(5) { animation-delay: .7s; }
  .hero-art path:nth-child(6) { animation-delay: .85s; }
  .hero-art path:nth-child(7) { animation-delay: 1.1s; }
  .hero-art path:nth-child(8) { animation-delay: 1.25s; }
  .hero-art path:nth-child(9) { animation-delay: 1.4s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Service cards link through to their own page. The whole card is clickable. */
.card { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--green); outline-offset: 3px; }
.card:hover { border-color: var(--green-mid); box-shadow: 0 10px 24px rgba(34, 107, 38, .12); }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 700;
  font-size: .95rem;
}
.card-more::after { content: "\2192"; transition: transform .15s; }
.card:hover .card-more::after { transform: translateX(4px); }

/* Why us strip */
.why { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-list {
  list-style: none;
  margin: 0;
  padding: 36px 0;
  display: grid;
  gap: 24px;
}
.why-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; }
.why-list svg {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 50%;
  background: var(--soft);
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-list h3 { margin: 4px 0 2px; font-size: 1.1rem; }
.why-list p { margin: 0; }

/* Builders band */
.builders {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px 0;
  border-left: 0;
}
.builders h2 { color: var(--white); margin-bottom: 8px; }
.builders p { max-width: 52ch; }
.builders-inner { display: grid; gap: 20px; align-items: center; }
.builders-actions { display: flex; flex-direction: column; gap: 12px; }
.builders :focus-visible { outline-color: var(--white); }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover h3 { color: var(--green); }
.faq details p { padding: 0 4px 8px; max-width: 70ch; }

/* Contact: info on the left, form on the right */
.contact-grid { display: grid; gap: 28px; align-items: start; }
.contact-steps { margin: 0 0 20px; padding-left: 1.3em; color: var(--charcoal); font-weight: 600; }
.contact-steps li { margin-bottom: 6px; }
.contact-side .contact-call { margin-top: 8px; }

/* Footer with columns */
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin: 0 0 6px; }
.footer-brand .footer-logo { margin-bottom: 16px; }
.footer-head {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

/* Sticky call and quote bar on phones */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(254, 254, 254, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
}
.mobile-bar .btn { min-height: 50px; }
.btn-outline-dark { background: var(--white); color: var(--green); border-color: var(--green); }
.btn-outline-dark:hover { background: #E6F1E2; text-decoration: none; }
body:has(.mobile-bar) { padding-bottom: 76px; }

/* Gentle fade in as you scroll (only when JavaScript is on and motion is allowed) */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Service pages ---------- */
.breadcrumbs { font-size: .92rem; margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .7; }
.breadcrumbs a { color: var(--white); display: inline-block; padding: 10px 0; }
.svc-hero .hero-grid { padding-top: 28px; padding-bottom: 52px; }
.svc-hero h1 { max-width: 22ch; font-size: clamp(1.9rem, 6vw, 3rem); }
.svc-layout { display: grid; gap: 32px; align-items: start; }
.svc-body h2 { font-size: clamp(1.35rem, 4vw, 1.7rem); margin-top: 1.4em; }
.svc-body h2:first-child { margin-top: 0; }
.tick-list { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 32px; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fefefe' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.svc-aside {
  background: var(--soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.svc-aside h2 { font-size: 1.25rem; }
.svc-aside .btn { width: 100%; margin-bottom: 10px; }
.svc-aside ul { margin: 0 0 4px; padding-left: 1.1em; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}
.related a::after { content: "\2192"; color: var(--green); }
.related a:hover { border-color: var(--green-mid); color: var(--green); }

@media (min-width: 640px) {
  .why-list { grid-template-columns: repeat(3, 1fr); }
  .builders-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; padding-top: 88px; padding-bottom: 96px; }
  .hero-art { display: block; }
  .builders-inner { grid-template-columns: 1.4fr 1fr; }
  .builders-actions { justify-content: flex-end; }
  .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 48px; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .mobile-bar { display: none; }
  body:has(.mobile-bar) { padding-bottom: 0; }
  .svc-layout { grid-template-columns: 1.7fr 1fr; gap: 48px; }
  .svc-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .related { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Version 3: interactive touches ---------- */

/* Scroll progress line under the header */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* Rotating job word in the hero */
.hero-rotator { margin: -4px 0 14px; font-size: 1.3rem; font-weight: 700; color: #CFE7C4; }
.rot {
  display: inline-block;
  color: var(--white);
  border-bottom: 3px solid var(--green-light);
  transition: opacity .25s, transform .25s;
}
.rot.is-out { opacity: 0; transform: translateY(8px); }

/* Hero frame follows the pointer a little */
.hero-art { transition: transform .4s ease-out; will-change: transform; }

/* Moving strip of job types */
.ticker {
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  border-top: 3px solid var(--green-light);
}
.ticker-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  padding: 12px 0;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; padding-right: 14px; }
.ticker-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-light); }
.ticker.is-moving .ticker-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: ticker 40s linear infinite; }
.ticker.is-moving:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Service cards: glow follows the pointer and the card tilts slightly */
.card::before { border-radius: inherit; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 181, 79, .18), transparent 70%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card.is-tilting { transition: border-color .15s, box-shadow .15s, transform .08s; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-icon { transition: transform .25s; }

/* How it works: a line fills in as you scroll */
.steps { position: relative; }
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: 38px;
  top: 36px;
  bottom: 36px;
  width: 3px;
  background: var(--line);
  z-index: 0;
}
.steps::after {
  background: var(--green-light);
  transform-origin: 50% 0;
  transform: scaleY(var(--fill, 1));
}
.steps li { position: relative; z-index: 1; background: var(--white); }
.steps li::before { transition: background .3s, transform .3s; }
.steps li.is-done::before { background: var(--green-light); color: #123a14; transform: scale(1.08); }

/* Job type picker in the form */
.job-types { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.job-types legend { font-weight: 700; color: var(--charcoal); margin-bottom: 8px; padding: 0; }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 600;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.pick span::before {
  content: "+";
  font-weight: 800;
  color: var(--green);
}
.pick:hover span { border-color: var(--green-mid); }
.pick input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.pick input:checked + span::before { content: "\2713"; color: var(--white); }
.pick input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.pick:active span { transform: scale(.96); }

/* Buttons get a little lift */
.btn { transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* How it works line: hidden on the 2 column layout, runs across on wide screens */
@media (min-width: 640px) and (max-width: 959.98px) {
  .steps::before, .steps::after { display: none; }
}
@media (min-width: 960px) {
  .steps::before, .steps::after { top: 37px; bottom: auto; left: 40px; right: 40px; width: auto; height: 3px; }
  .steps::after { transform-origin: 0 50%; transform: scaleX(var(--fill, 1)); }
}
