/* ============================================================
   Fraser Valley Contracting
   Palette and type mirror the approved brand: Kadence palette,
   Poppins headings, Open Sans body.
   ============================================================ */

:root {
  --orange: #ff7f00;
  --orange-lt: #ff9226;
  --orange-soft: rgba(255, 127, 0, 0.1);
  --ink: #242d2d;
  --ink-2: #3a4646;
  --muted: #5f5f5f;
  --line: #e8e8e8;
  --line-2: #c5c5c5;
  --bg: #f7f7f7;
  --white: #ffffff;

  --f-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 14px rgba(36, 45, 45, 0.07);
  --shadow-lg: 0 14px 44px rgba(36, 45, 45, 0.14);
  --sec-y: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.68;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--ink);
  line-height: 1.14;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { max-width: 68ch; }

.eyebrow {
  display: block;
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}
.eyebrow-light { color: var(--orange-lt); }

/* intro paragraph under a section heading: same size and colour as the body text below it */
.lead { font-size: inherit; color: inherit; }
.center { text-align: center; }
.mx { margin-inline: auto; }
.sub-center { max-width: 62ch; margin: 0.9rem auto 0; color: var(--muted); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.wrap-wide { width: 100%; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.narrow { max-width: 780px; }
.sec { padding-block: var(--sec-y); }
.sec-grey { background: var(--bg); }
.sec-dark { background: var(--ink); color: #c9d2d1; }
.sec-dark h2, .sec-dark h3 { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: #ec7500; border-color: #ec7500; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #121a1a; border-color: #121a1a; }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btns-center { justify-content: center; }

.textlink {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.18s ease, gap 0.18s ease;
}
.textlink:hover { color: var(--orange); gap: 0.65rem; }


/* ---------- nav ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 108px;
  padding-block: 0.4rem;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 92px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding-block: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.18s;
}
.nav-links > li > a:hover, .nav-links > li:focus-within > a { color: var(--orange); }
.caret { width: 9px; height: 9px; fill: currentColor; opacity: 0.6; }

.submenu {
  position: absolute;
  top: 100%;
  left: -0.9rem;
  min-width: 265px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-links > li:hover .submenu,
.nav-links > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: background 0.14s, color 0.14s;
}
.submenu a:hover { background: var(--orange-soft); color: var(--orange); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav-phone:hover { color: var(--orange); }
.nav-btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 26, 26, 0.95) 0%, rgba(20, 26, 26, 0.88) 42%, rgba(20, 26, 26, 0.55) 72%, rgba(20, 26, 26, 0.35) 100%);
}
.hero-inner { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.hero-inner > * { max-width: 680px; }
.hero h1 { color: #fff; }
.hero-sub { color: #cfd7d6; font-size: 1.12rem; margin-top: 1rem; max-width: 52ch; }

.ticks { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 2rem; color: #e6ecea; font-size: 1rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.72rem;
  background-position: center;
  background-repeat: no-repeat;
}

.trust {
  margin-top: 1.9rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
}
.trust span {
  font-size: 0.86rem;
  color: #e6ecea;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.trust svg { width: 15px; height: 15px; fill: var(--orange); flex: none; }

/* ---------- breadcrumb ---------- */
.crumbs { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-block: 0.8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--line-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- card grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.8rem;
  align-items: stretch;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.prose p a:not(.btn), .faq-a a { color: #c4520a; text-decoration: underline; text-underline-offset: 2px; }
.prose p a:not(.btn):hover, .faq-a a:hover { color: var(--orange); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-2); }
.card-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card-body { padding: 1.4rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
.card-body h3 { font-size: 1.18rem; }
.card-body p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.card-body .textlink { margin-top: 0.3rem; font-size: 0.93rem; }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* photo stretches to the height of the text beside it */
.split { align-items: stretch; }
.split-body { align-self: center; }
.split-media { position: relative; min-height: 320px; }
.split-media img { position: absolute; inset: 0; border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }

/* stats sitting inside a text column: compact, numbers on one line */
.split .stats { margin-top: 1.8rem; }
.split .stat { padding: 1.15rem 0.75rem; }
.split .stat b {
  white-space: nowrap; font-size: clamp(1.5rem, 2vw, 2rem); white-space: nowrap; }
.split .stat span { margin-top: 0.35rem; font-size: 0.8rem; }
.split-body h2 { margin-bottom: 1.05rem; }
.split-body p + p { margin-top: 1rem; }
.prose h2 { margin-bottom: 1rem; margin-top: 2.4rem; }
.prose h3 { margin-bottom: 0.7rem; margin-top: 1.9rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; display: grid; gap: 0.6rem; }
.prose li { padding-left: 1.5rem; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; background: var(--orange); border-radius: 50%; }

.checks { margin-top: 1.7rem; display: grid; gap: 0.9rem; }
.checks li { position: relative; padding-left: 1.95rem; font-size: 0.99rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--orange);
  clip-path: polygon(14% 44%, 0 58%, 42% 100%, 100% 22%, 86% 8%, 42% 72%);
}
.checks b { color: var(--ink); font-weight: 700; }
.closer { margin-top: 1.5rem; font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3rem; }
.step { padding: 0 2rem; text-align: center; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step-ico {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
}
.step-ico svg { width: 25px; height: 25px; stroke: var(--orange); fill: none; stroke-width: 1.9; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin-inline: auto; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}
.stat { padding: 2rem 1.5rem; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.stat span { display: block; margin-top: 0.5rem; font-size: 0.86rem; color: #aab4b3; letter-spacing: 0.04em; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 2.5rem; }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.gallery a:hover img { transform: scale(1.02); filter: brightness(1.06); }
.gallery-wide { grid-column: span 2; }
.gallery-wide img { aspect-ratio: 2 / 1; }

/* ---------- cta band ---------- */
.cta-band { background: var(--orange); color: #241400; text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #1f1300; }
.cta-band p { color: #3d2607; margin: 1rem auto 0; max-width: 56ch; }
.cta-phone {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 3.6rem);
  color: #1f1300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cta-phone:hover { text-decoration: underline; }

/* ---------- locations strip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.8rem; }
.chips-center { justify-content: center; }
.chip {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: #fff;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- faq ---------- */
.faq { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.07rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 1.55rem;
  width: 13px;
  height: 13px;
  border-right: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.8rem; }
.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.faq-a { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }

/* ---------- form ---------- */
.formwrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.formwrap iframe { width: 100%; min-height: 680px; border: 0; display: block; }
.mapwrap { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 16 / 7; background: #eef0ef; }
.mapwrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-list { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-list svg { width: 19px; height: 19px; stroke: var(--orange); fill: none; stroke-width: 1.9; flex: none; margin-top: 0.25rem; }
.contact-list b { display: block; font-family: var(--f-head); color: var(--ink); font-size: 0.95rem; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 0.97rem; }
.contact-list a:hover { color: var(--orange); }

/* ---------- prefooter ---------- */
.prefooter { position: relative; isolation: isolate; color: #fff; text-align: center; }
.prefooter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.prefooter::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 26, 26, 0.84); }
.prefooter .wrap { padding-block: clamp(3.2rem, 6vw, 5rem); }
.prefooter h2 { color: #fff; }
.prefooter p { color: #cfd7d6; margin: 0.9rem auto 0; max-width: 54ch; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #9aa5a4; padding-top: 3.8rem; font-size: 0.93rem; }
/* stops the footer stretching on very wide monitors; below 1500px it fills as before */
.footer-wrap { max-width: 1500px; margin-inline: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 340px) repeat(4, auto);
  justify-content: space-between;
  gap: 2.6rem clamp(1.5rem, 3vw, 3.5rem);
  padding-bottom: 2.8rem;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(4, auto); }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: 60ch; }
}
.fbrand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.2rem; line-height: 1.05; }
.fbrand img { width: 60px; height: auto; flex: none; }
.fbrand span { display: grid; gap: 0.18rem; }
.fbrand b {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.55rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.fbrand i {
  font-style: normal;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer h4 {
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer ul { display: grid; gap: 0.62rem; }
.footer a { color: #9aa5a4; transition: color 0.16s; }
.footer a:hover { color: var(--orange); }
.footer-about p { max-width: 38ch; line-height: 1.7; }
.footer-contact li { display: grid; gap: 0.1rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  transition: background 0.16s, border-color 0.16s;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #788382;
}
.footer-creds { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }

/* ---------- mobile call bar ---------- */
.mobilebar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  /* mobile menu, opened by the hamburger */
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem 1.25rem 1.4rem;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 145px);
    overflow-y: auto;
  }
  .nav-links.is-open > li { border-bottom: 1px solid var(--line); }
  .nav-links.is-open > li > a { display: flex; padding-block: 0.95rem; font-size: 1rem; }
  .nav-links.is-open .caret { display: none; }
  .nav-links.is-open .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.7rem 0.75rem;
    margin-top: -0.35rem;
  }
  .nav-links.is-open .submenu a { padding: 0.45rem 0.6rem; }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(1) { transform: translateY(5px) rotate(45deg); transform-origin: 12px 7px; }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); transform-origin: 12px 17px; }
  .nav-phone { font-size: 1rem; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media { min-height: 0; }
  .split-media img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .mapwrap { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .step { border-left: 0; padding: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  /* the sticky bottom bar already carries this action */
  .nav-btn { display: none; }
  .nav-inner { min-height: 80px; gap: 0.75rem; }
  .brand img { height: 68px; }
  .nav-phone { font-size: 1.05rem; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .stat:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btns .btn { flex: 1 1 100%; }
  .gallery-wide { grid-column: span 2; }

  .mobilebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 70;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
  }
  .mobilebar a {
    padding: 1rem 0.6rem;
    text-align: center;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.92rem;
  }
  .mb-call { background: var(--orange); color: #fff; }
  .mb-quote { background: var(--ink); color: #fff; }
  body { padding-bottom: 56px; }
}

/* ---------- a11y ---------- */
.skip {
  position: absolute;
  left: -9999px;
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 1.2rem;
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip:focus { left: 1rem; top: 1rem; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- reviews ---------- */
.review { background: #fff; }
.review .card-body { gap: 0.9rem; }
.stars { display: flex; gap: 0.15rem; }
.stars svg { width: 17px; height: 17px; fill: var(--orange); }
.review blockquote { font-size: 0.97rem; color: var(--ink-2); line-height: 1.72; flex: 1; }
.review figcaption { display: grid; gap: 0.15rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.review figcaption b { font-family: var(--f-head); font-size: 1rem; color: var(--ink); }
.review figcaption span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; }

/* ---------- technical detail section ---------- */
.tech { background: var(--bg); border-top: 1px solid var(--line); }
.tech > .wrap > .lead { margin-top: 1.1rem; }
.tech-acc { margin-top: 2.4rem; border-top: 1px solid var(--line-2); }
.tech-acc details { border-bottom: 1px solid var(--line-2); background: #fff; }
.tech-acc summary { padding-inline: 1.2rem; }
.tech-acc .faq-a { padding: 0 1.2rem 1.5rem; color: var(--ink-2); }
.tech-acc .faq-a > * + * { margin-top: 1rem; }
.tech-acc .faq-a p { max-width: none; }
.tech-acc .faq-a h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.tech-acc .faq-a h3:first-child { margin-top: 0; }
.tech-acc .faq-a ul { display: grid; gap: 0.75rem; }
.tech-acc .faq-a li { position: relative; padding-left: 1.5rem; }
.tech-acc .faq-a li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--orange);
  border-radius: 50%;
}
.tech-acc .faq-a b, .tech-acc .faq-a strong { color: var(--ink); font-weight: 700; }

/* contact details: the icon is the bullet */
.contact-list li { padding-left: 0; }
.contact-list li::before { content: none; }
.nowrap { white-space: nowrap; }

/* ---------- blog posts ---------- */
.post-body { font-size: 1.04rem; }
.post-body > :first-child { margin-top: 0; }
.post-body p, .post-body ul, .post-body ol, .post-body .table-wrap, .post-body details, .post-body hr { margin-top: 1rem; }
.post-body h4 { margin-top: 1.6rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.post-body h5 { margin-top: 1.3rem; font-size: 1rem; }
.post-body a:not(.btn) { color: var(--orange-dark, #c4520a); text-decoration: underline; text-underline-offset: 2px; }
.post-body ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; list-style: decimal; }
.post-body ol li { padding-left: 0.2rem; }
.post-body ol li::before { content: none; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.post-body img { border-radius: var(--radius); margin-top: 1.2rem; width: 100%; height: auto; }
.post-body .btns { margin-top: 1.4rem; }
.post-body details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.post-body summary { cursor: pointer; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.post-body th { background: var(--grey, #f4f5f5); }
.post-meta { color: #cfd7d6; margin-top: 1rem; font-size: 0.98rem; }
.post-date { display: block; font-size: 0.82rem; color: var(--muted); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
