/* ==========================================================================
   Bisson Brothers Ltd — "drawing set" design system
   Palette + type drawn from the company van livery: silver-grey base,
   slate ink, navy brand accent (the signwriting blue).
   Type: PT Serif bold for the wordmark (the van's signwriting serif);
   Archivo for everything else (the van's "BUILDING CONTRACTORS" lettering).
   ========================================================================== */

:root {
  --paper: #f4f6f8;        /* cool off-white / pale silver */
  --stone: #e7ebef;        /* light silver-grey section fill */
  --stone-deep: #d7dde4;
  --line: #d3dae1;
  --ink: #1e2530;          /* cool slate charcoal (van shadows) */
  --ink-soft: #454e5b;
  --muted: #565f6c;
  /* Brand accent — the navy of the Bisson Brothers logo & van signage. */
  --accent: #2a4a8a;       /* brand navy — the logo/signwriting blue on the van */
  --accent-deep: #1d3568;  /* deeper navy for text/buttons (AA on light) */
  --accent-soft: #8ea8d9;  /* the lighter blue of "BUILDING CONTRACTORS" on the van */
  --silver: #c4ccd4;       /* brushed-silver accent (van body) */
  --steel: #8a94a1;
  --paper-dark: #191f29;   /* deep slate for dark bands */
  --line-dark: #2c3542;

  /* Wordmark — the squared, round-cornered lettering of "Bisson Bros. Ltd."
     on the van (a Eurostile-family face). Used ONLY for the logo title. */
  --wordmark: "Orbitron", "Eurostile", "Michroma", "Trebuchet MS", sans-serif;
  /* Everything else uses the grotesque sans, echoing the van's
     "BUILDING CONTRACTORS" lettering. */
  --sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(25, 31, 41, 0.4);
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  --header-h: 76px;
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.section-sub {
  max-width: 56ch;
  color: var(--ink-soft);
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn-solid {
  background: var(--accent-deep);
  color: #fff;
}

.btn-solid:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(25, 31, 41, 0.55);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 1.25rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(25, 31, 41, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-mark svg {
  height: 46px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--wordmark);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.brand-text small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  gap: 1.9rem;
}

/* mobile-only CTA rows inside the menu */
.nav-cta {
  display: none;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

.header-phone:hover {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--stone) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: end;
  gap: 2rem;
  padding-top: clamp(2.75rem, 5.5vw, 4.5rem);
}

.hero-copy {
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero-sub {
  max-width: 50ch;
  margin-top: 1.3rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-drawing {
  color: var(--ink);
  align-self: end;
}

.hero-drawing svg {
  width: 100%;
  height: auto;
}

.draw-accent {
  stroke: var(--accent);
  color: var(--accent);
}

.draw-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  fill: var(--muted);
  stroke: none;
}

/* hero stat strip */
.hero-stats {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.75rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line-dark);
}

.stat strong {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  color: var(--accent-soft);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa4b2;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
}

.section-stone {
  background: var(--stone);
}

.section-dark {
  background: var(--paper-dark);
  color: var(--paper);
}

.section-dark .kicker {
  color: var(--accent-soft);
}

.section-dark .section-sub {
  color: #9aa4b2;
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.9rem;
  translate: 0 0;
  transition: translate 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.8rem;
  right: 1.8rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

/* `translate` (not `transform`) — see the .step:hover note above. */
.service-card:hover {
  translate: 0 -5px;
  border-color: var(--stone-deep);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--stone);
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--ink);
  color: var(--accent-soft);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card p {
  margin-top: 0.6rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- why bisson (dark band) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}

.why-num {
  display: block;
  font-family: var(--sans);
  font-size: clamp(3rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-soft);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.why-num-text {
  letter-spacing: 0.04em;
}

.why-card h3 {
  color: var(--paper);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.why-card p {
  font-size: 1.02rem;
  color: #9aa4b2;
}

/* ---------- projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--stone);
  cursor: default;
}

.project-art {
  color: var(--ink);
  padding: 1.4rem 1.4rem 0;
  transition: transform 0.5s var(--ease);
}

.art-accent {
  stroke: var(--accent);
}

.project:hover .project-art {
  transform: scale(1.035) translateY(-4px);
}

.project figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(25, 31, 41, 0.045));
  border-top: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.project figcaption strong {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
}

.project figcaption span {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.project:hover figcaption {
  background: var(--ink);
  border-top-color: var(--ink);
}

.project:hover figcaption strong {
  color: var(--paper);
}

.project:hover figcaption span {
  color: var(--accent-soft);
}

/* ---------- testimonials ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.quote {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.9rem 1.9rem;
}

.quote::before {
  content: "“";
  position: absolute;
  top: 0.4rem;
  left: 1.5rem;
  font-family: var(--sans);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
}

.quote p {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.quote footer {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- process ---------- */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.4rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.6rem 1.1rem 1.2rem;
  margin: 0 -1.1rem;
  border-top: 2px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  cursor: default;
  translate: 0 0;
  transition: background 0.3s var(--ease), translate 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

/* the accent rule sweeps the full width on hover */
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

/* NB: uses `translate`, not `transform` — the scroll-reveal rule
   (html.js .reveal.is-visible) sets `transform: none` at a higher
   specificity and would otherwise cancel the lift. */
.step:hover,
.step:focus-within {
  background: #fff;
  translate: 0 -4px;
  box-shadow: var(--shadow);
}

.step:hover::before,
.step:focus-within::before {
  width: 100%;
}

.step:hover .step-num,
.step:focus-within .step-num {
  color: var(--accent);
  transform: translateY(-2px);
}

.step-num {
  display: block;
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 0.9rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.78rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(51, 84, 156, 0.18);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #b3261e;
}

.field-error {
  min-height: 1em;
  font-size: 0.8rem;
  font-weight: 500;
  color: #b3261e;
}

.form-status {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-deep);
  min-height: 1.4em;
}

.form-status.is-success {
  color: #2e6b3f;
}

/* contact info */
.contact-info dl {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.info-row:first-child {
  padding-top: 0;
}

.info-row dt {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}

.info-row dd {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
}

.info-row dd a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.info-row dd a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.info-note {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper-dark);
  color: #9aa4b2;
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2.5rem;
  padding-bottom: 2.8rem;
}

.footer-brand .brand-text strong {
  color: var(--paper);
}

.footer-brand .brand-text small {
  color: #8b95a2;
}

.footer-brand > p {
  margin-top: 1.2rem;
  max-width: 38ch;
  font-size: 0.95rem;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.1rem;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.84rem;
  color: #8b95a2;
}

/* ---------- reveal-on-scroll ----------
   Hidden state only applies once JS has tagged <html class="js">,
   so content stays visible without JavaScript. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.3s; }

/* stagger cards within grids */
.services-grid .reveal:nth-child(2),
.projects-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2),
.quotes-grid .reveal:nth-child(2),
.process-steps .reveal:nth-child(2) { transition-delay: 0.1s; }

.services-grid .reveal:nth-child(3),
.projects-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3),
.quotes-grid .reveal:nth-child(3),
.process-steps .reveal:nth-child(3) { transition-delay: 0.2s; }

.services-grid .reveal:nth-child(4),
.projects-grid .reveal:nth-child(4),
.why-grid .reveal:nth-child(4),
.process-steps .reveal:nth-child(4) { transition-delay: 0.3s; }

.services-grid .reveal:nth-child(5),
.projects-grid .reveal:nth-child(5) { transition-delay: 0.15s; }

.services-grid .reveal:nth-child(6),
.projects-grid .reveal:nth-child(6) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .services-grid,
  .projects-grid,
  .quotes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* only three stats — keep them on one row at tablet rather than orphaning one */
  .hero-stats-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem 1rem;
  }

  .hero-stats-inner .stat span {
    font-size: 0.8rem;
  }

  .site-nav ul {
    gap: 1.3rem;
  }
}

@media (max-width: 860px) {
  .header-phone span {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(25, 31, 41, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
      visibility 0.3s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--stone);
  }

  .site-nav li:last-child a {
    border-bottom: none;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-drawing {
    margin-top: 2.5rem;
    max-width: 620px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 1rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark svg {
    height: 36px;
    width: auto;
  }

  .brand-text strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
  }

  /* the header CTA + phone move into the menu so the wordmark has room */
  .header-actions .btn-sm {
    display: none;
  }

  .nav-cta {
    display: block;
  }

  .nav-cta a {
    font-weight: 600;
    color: var(--accent-deep);
  }

  .brand-text small {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-phone {
    display: none;
  }

  .btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .services-grid,
  .projects-grid,
  .quotes-grid,
  .why-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-stats-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .hero-stats-inner .stat span {
    font-size: 0.82rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field-row .field {
    margin-bottom: 0;
  }

  .field-row + .field {
    margin-top: 1.1rem;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-legal {
    flex-direction: column;
  }

  .btn {
    padding: 0.8rem 1.4rem;
  }

  .hero-ctas .btn {
    flex: 1 1 auto;
  }
}
