/* =============================================================================
   TORO STRUCTURAL CONTRACTORS — Global stylesheet
   -----------------------------------------------------------------------------
   Contents
   01. Design tokens (palette sampled directly from the logo)
   02. Reset & base elements
   03. Typography scale
   04. Layout helpers
   05. Signature: steel frame overlay + piece marks
   06. Buttons
   07. Site header & navigation
   08. Hero
   09. Section headers
   10. Cards (service / product / project)
   11. Spec strip & counters
   12. Process sequence
   13. Certifications & clients
   14. Contact: form, details, map placeholder
   15. Footer
   16. Motion & scroll reveal
   17. Responsive breakpoints
   ============================================================================ */


/* 01. DESIGN TOKENS ========================================================= */
/* Hex values below were sampled from the supplied logo artwork:
   #062C51 horns/wordmark · #375269 mid-tone facets · #748490 bridge steel
   #F2F4F5 paper white. --hivis is the one colour NOT in the logo: a single
   safety-yellow accent, borrowed from crane booms and hi-vis PPE, used
   sparingly so the navy/steel identity stays dominant.                        */

:root {
  /* Colour */
  --ink:        #041c33;   /* deepest navy — dark section backgrounds        */
  --ink-800:    #072744;   /* raised surfaces on dark                        */
  --navy:       #062c51;   /* primary brand navy (logo)                      */
  --slate:      #375269;   /* mid navy-grey (logo facets)                    */
  --steel:      #748490;   /* structural grey (logo bridgework)              */
  --steel-200:  #c9d1d6;   /* light steel — hairlines on pale surfaces       */
  --mill:       #f2f4f5;   /* mill white — page background                   */
  --white:      #ffffff;
  --hivis:      #f6b33d;   /* safety yellow accent                           */
  --hivis-deep: #d9911c;

  /* Semantic */
  --bg:            var(--mill);
  --text:          var(--navy);
  --text-muted:    #5b6b78;
  --text-on-dark:  #dfe6eb;
  --rule:          rgba(116, 132, 144, .28);
  --rule-dark:     rgba(196, 214, 228, .18);

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Haettenschweiler", sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Spacing / rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --maxw: 1240px;

  /* Effects */
  --shadow: 0 18px 40px -24px rgba(4, 28, 51, .55);
  --shadow-lg: 0 30px 70px -30px rgba(4, 28, 51, .7);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* The clipped top-right corner used on cards — a nod to a coped beam end. */
  --cope: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}


/* 02. RESET & BASE ========================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  /* Faint setting-out grid, like chalk lines on a shop floor. */
  background-image:
    linear-gradient(to right,  var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
  background-attachment: fixed;
}
body::before {
  /* Softens the grid so it never competes with content. */
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(var(--mill), var(--mill));
  opacity: .88;
  z-index: -1;
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--hivis); color: var(--ink); }

/* Visible, unambiguous keyboard focus everywhere. */
:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--hivis);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }


/* 03. TYPOGRAPHY ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1; }
h4 { font-size: 1.15rem; line-height: 1.05; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}
.dark .lede, .hero .lede { color: var(--text-on-dark); }

/* Small monospace label — used for eyebrows, piece marks and data. */
.mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
}
.mark--hivis { color: var(--hivis-deep); }
.dark .mark { color: var(--hivis); }

.muted { color: var(--text-muted); }
.dark .muted { color: var(--text-on-dark); opacity: .78; }


/* 04. LAYOUT ================================================================ */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Dark panels: the deep navy of the logo horns. */
.dark {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}


/* 05. SIGNATURE — STEEL FRAME OVERLAY ======================================= */
/* Every dark panel is framed by a drawn steel bay: two column lines, a beam
   line and a cross brace, with bolt nodes at the connections. It is the one
   decorative device on the site, and it repeats at three scales: full-bleed
   behind the hero, half-height behind dark sections, and 40px inside cards.  */

.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .5;
}
.frame line,
.frame polyline,
.frame path { stroke: var(--steel); stroke-width: 1; fill: none; }
.frame .brace { stroke: var(--hivis); stroke-opacity: .55; }
.frame .node  { fill: var(--hivis); }
.frame .plate { fill: var(--steel); fill-opacity: .07; stroke: none; }

/* Diagonal hatch — the shorthand engineers use for a section cut. */
.hatch {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(116, 132, 144, .16) 0 1px,
    transparent 1px 9px
  );
}

/* Brushed-metal band, used behind the spec strip. */
.brushed {
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .05) 0 2px,
      rgba(0, 0, 0, .05) 2px 4px),
    linear-gradient(180deg, var(--ink-800), var(--ink));
}


/* 06. BUTTONS =============================================================== */

.btn {
  --btn-bg: var(--hivis);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--hivis-deep); border-color: var(--hivis-deep); }
.btn:active { transform: translateY(0); }

/* Arrow reads as a load path: it extends on hover. */
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.dark .btn--ghost { --btn-fg: var(--white); border-color: rgba(223, 230, 235, .55); }
.dark .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--sm { padding: .6rem 1.05rem; font-size: 1rem; }

/* Inline text link with a hi-vis underline that grows on hover. */
.link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--hivis), var(--hivis));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s var(--ease);
}
.link:hover { background-size: 100% 2px; }
.dark .link { color: var(--white); }


/* 07. HEADER & NAVIGATION =================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
  transition: box-shadow .25s var(--ease), padding .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .85rem;
  transition: padding .25s var(--ease);
}
.site-header.is-stuck .site-header__inner { padding-block: .5rem; }

/* Brand lockup — cropped bull mark + live-text wordmark, set horizontally so
   it stays legible in a 60px bar. Both shrink together when the header sticks. */
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}
.brand__mark {
  height: 46px;
  width: auto;
  transition: height .25s var(--ease);
}
.site-header.is-stuck .brand__mark { height: 38px; }

.brand__type { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--white);
  transition: font-size .25s var(--ease);
}
.site-header.is-stuck .brand__name { font-size: 1.45rem; }
.brand__sub {
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }

.nav__link {
  position: relative;
  padding: .4rem 0;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--hivis);
  transition: width .22s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--white); }

.nav__cta { margin-left: .5rem; }

/* Phone number in the header — the most-used control on a trades site. */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--hivis);
}

/* Dimmer behind the mobile drawer — inert until the drawer breakpoint. */
.nav-scrim { display: none; }

/* Hamburger: three plates that fold into an X. */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule-dark);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* 08. HERO ================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}
.hero::after {
  /* Vignette so the drawn frame fades out behind the type. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 40%, transparent 30%, rgba(4, 28, 51, .82) 100%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }

.hero__logo {
  width: clamp(190px, 26vw, 300px);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
  margin-bottom: .35em;
}
/* One word of the headline carries the accent. */
.hero h1 em { font-style: normal; color: var(--hivis); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Page banner used on interior pages. */
.pagehead {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.pagehead > .wrap { position: relative; z-index: 2; }
.pagehead h1 { color: var(--white); font-size: clamp(2.75rem, 7vw, 5rem); margin-bottom: .3em; }

.crumbs {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.25rem;
}
.crumbs a:hover { color: var(--hivis); }
.crumbs span { opacity: .55; padding-inline: .4rem; }


/* 09. SECTION HEADERS ======================================================= */
/* The eyebrow carries a piece mark (C-01, B-02 …). On real shop drawings every
   member gets a mark, so the labels here identify sections the same way.      */

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
}
.dark .sec-head { border-bottom-color: var(--rule-dark); }
.sec-head__text { max-width: 66ch; }
.sec-head h2 { margin-bottom: .2em; }
.sec-head .mark { margin-bottom: .9rem; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }


/* 10. CARDS ================================================================= */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--steel-200);
  clip-path: var(--cope);              /* coped corner */
  transition: transform .28s var(--ease), border-color .28s var(--ease),
              box-shadow .28s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--slate);
  box-shadow: var(--shadow);
}
.card__mark {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--steel);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .96rem; }
.card__foot { margin-top: auto; padding-top: 1.35rem; }

/* Icon tile — square plate with a hi-vis bolt in the corner. */
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--mill);
  border: 1px solid var(--steel-200);
  color: var(--navy);
}
.card__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.card--dark {
  background: var(--ink-800);
  border-color: rgba(196, 214, 228, .16);
  color: var(--text-on-dark);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--text-on-dark); opacity: .8; }
.card--dark .card__icon { background: rgba(255, 255, 255, .05); border-color: rgba(196, 214, 228, .2); color: var(--hivis); }

/* Product row — a spec-sheet line rather than another box. */
.spec-list { border-top: 1px solid var(--rule); }
.spec-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.spec-row:hover { background: rgba(255, 255, 255, .6); padding-left: .75rem; }
.spec-row__mark { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--hivis-deep); }
.spec-row h3 { margin-bottom: .3rem; }
.spec-row p { color: var(--text-muted); font-size: .95rem; max-width: 65ch; }
.spec-row__gauge {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--steel);
  white-space: nowrap;
}


/* 11. SPEC STRIP & COUNTERS ================================================= */

.specstrip {
  border-block: 1px solid var(--rule-dark);
  color: var(--text-on-dark);
}
.specstrip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.specstrip__cell {
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--rule-dark);
}
.specstrip__cell:first-child { border-left: 0; }
.specstrip__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: .9;
  color: var(--white);
  display: block;
}
.specstrip__value .unit { color: var(--hivis); }
.specstrip__label {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}


/* 12. PROCESS SEQUENCE ====================================================== */
/* Numbered because the work genuinely is sequential: you cannot erect before
   you detail. The numbers carry information, so they stay.                    */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--rule-dark);
}
.step:last-child { border-bottom: 1px solid var(--rule-dark); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: .8;
  color: var(--steel);                 /* fallback if text-stroke is unsupported */
  transition: color .3s var(--ease), -webkit-text-stroke-color .3s var(--ease);
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .step::before { color: transparent; -webkit-text-stroke: 1.5px var(--steel-200); }
}
.step:hover::before { color: var(--hivis); -webkit-text-stroke-color: var(--hivis); }
.step h3 { color: var(--white); margin-bottom: .4rem; }
.step p { color: var(--text-on-dark); opacity: .78; max-width: 68ch; }


/* 13. CERTIFICATIONS & CLIENTS ============================================== */

.certs { display: flex; flex-wrap: wrap; gap: .75rem; }
.cert {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  border: 1px solid var(--steel-200);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.cert::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--hivis);
  flex-shrink: 0;
}
.dark .cert { background: rgba(255, 255, 255, .04); border-color: rgba(196, 214, 228, .18); color: var(--text-on-dark); }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.logo-row li {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--steel);
  opacity: .75;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.logo-row li:hover { opacity: 1; color: var(--navy); }

/* Pull-quote */
.quote {
  border-left: 3px solid var(--hivis);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  max-width: 70ch;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--white);
}
.quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}


/* 14. CONTACT =============================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
label .req { color: var(--hivis-deep); }

input, select, textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: 0;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--hivis);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #b4451f;
  box-shadow: inset 0 -2px 0 #b4451f;
}

.error {
  min-height: 1rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: #b4451f;
}

.form-status {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--hivis);
  background: rgba(246, 179, 61, .12);
  font-size: .95rem;
}
.form-status[hidden] { display: none; }

/* Contact details block */
.details { display: grid; gap: 1.75rem; }
.detail__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .35rem;
}
.detail__value { font-size: 1.05rem; line-height: 1.5; }
.detail__value a:hover { color: var(--hivis-deep); }

/* Map panel. Holds either an embedded map iframe (which fills the box) or the
   static site-plan placeholder below it. */
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border: 1px solid var(--steel-200);
  clip-path: var(--cope);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.25) contrast(1.05);   /* keeps the map from fighting the palette */
}
.map__note {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  max-width: 34ch;
  line-height: 1.8;
}
.map__pin {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  background: var(--hivis);
  margin: 0 auto 1rem;
  transform: rotate(45deg);
  box-shadow: 0 0 0 8px rgba(246, 179, 61, .18);
}


/* 15. FOOTER ================================================================ */

.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer > .wrap { position: relative; z-index: 2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer img.footer-logo { width: 170px; margin-bottom: 1.25rem; }
.footer-head {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hivis);
  margin-bottom: 1.1rem;
}
.footer-list { display: grid; gap: .6rem; font-size: .95rem; }
.footer-list a { color: var(--text-on-dark); opacity: .82; transition: opacity .18s var(--ease), color .18s var(--ease); }
.footer-list a:hover { opacity: 1; color: var(--hivis); }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Back-to-top: a small column with a hi-vis cap plate. */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(196, 214, 228, .25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }

/* CTA band that closes every page */
.cta-band { background: var(--navy); position: relative; overflow: hidden; }
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-band h2 { color: var(--white); margin-bottom: .25em; max-width: 18ch; }
.cta-band p { color: var(--text-on-dark); opacity: .85; max-width: 46ch; }


/* 16. MOTION & SCROLL REVEAL ================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Hero frame draws itself in on load. */
.frame--draw line,
.frame--draw polyline {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s var(--ease) forwards;
}
.frame--draw .node { opacity: 0; animation: pop .4s var(--ease) 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop  { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .frame--draw line, .frame--draw polyline { stroke-dashoffset: 0; }
  .frame--draw .node { opacity: 1; }
}


/* 17. RESPONSIVE ============================================================ */

/* The header carries six links, a phone number and a button. Below 1180px the
   phone is the first thing to go — it is repeated in the footer and on the
   contact page, and the quote button is the more important control. */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .nav { gap: 1.1rem; }
  .nav__link { font-size: .78rem; letter-spacing: .1em; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .specstrip__grid { grid-template-columns: repeat(2, 1fr); }
  .specstrip__cell:nth-child(3) { border-left: 0; }
  .specstrip__cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule-dark); }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .header-phone { display: none; }

  /* Off-canvas navigation drawer */
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;          /* stays above the drawer so the X is always tappable */
  }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 6.5rem 2rem 2rem;
    background: var(--ink-800);
    border-left: 1px solid var(--rule-dark);
    transform: translateX(100%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link {
    width: 100%;
    padding: 1.1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule-dark);
  }
  /* Tap-to-call is the most valuable control on a phone, so the number comes
     back as a full-width row inside the drawer. */
  .nav .header-phone {
    display: flex;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1.05rem;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--rule-dark);
  }
  .nav .header-phone::before {
    content: "Call the shop";
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--steel);
    margin-right: auto;
    align-self: center;
  }

  .nav__cta { margin: 1.75rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }

  /* Dimmer behind the drawer */
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(4, 28, 51, .6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .specstrip__grid { grid-template-columns: 1fr; }
  .specstrip__cell { border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .footer-grid { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .spec-row { grid-template-columns: 1fr; gap: .5rem; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .field--row { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  body { background-size: 64px 64px; }
}
