:root {
  --color-instrument-black: #101315;
  --color-diesel-blue: #2f9dce;   /* label/eyebrow/link-cta text color, verified against Figma */
  --color-brand-blue: #3682ae;    /* section-03 tint background -- logo-exact site blue, kept distinct from the button system's own gradient hex below */
  --color-ice-blue: #c7efff;
  --color-worktruck-white: #f8fafb;
  --color-steel-gray: #6f7b82;
  --color-deep-blue: #173a4f;
  /* FONT: Darrel's call this round -- skip Built Titling entirely (concept/internal-only,
     licensing moot for now). Using Oswald as the display face, since that's what Codex's own
     fallback chain resolves to with no Built Titling @font-face loaded -- i.e. exactly what
     Darrel reviewed and called 95% accurate. */
  --font-display: "Oswald", system-ui, sans-serif;
  --font-condensed: "Oswald", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --page-max: 1689px;
  --gutter: clamp(24px, 5.92vw, 100px);
  --section-title: clamp(48px, 4.26vw, 72px);
  --card-title: clamp(34px, 2.84vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0c1012;
  color: var(--color-instrument-black);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

p, h1, h2, h3 {
  margin: 0;
}

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

.page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.logo {
  display: block;
  width: 128px;
  height: auto;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  /* v8.1: R-064's crop used the full portrait "7 - Crane.JPG" with background-position
     top-biased, which at wide desktop aspect only ever showed the boom against sky -- the
     truck itself never rendered (Rob's direct feedback: "boom arm, doesn't read mechanical
     shop/heavy duty"). Re-cropped from the "2 - KERN" source (Drive: "05 - Assets/Client
     Supplied/2.JPG", already cleared of the excavator's readable decal/branding in the R-064
     pass) to a truck-centered frame: open tool drawers, coil spring + hook rigging, wheels,
     Mazdock's own service truck, Fraser Valley treeline behind. Vignette is for text contrast. */
  background-image:
    linear-gradient(90deg, rgba(9,10,12,0.9) 0%, rgba(9,10,12,0.74) 32%, rgba(9,10,12,0.32) 62%, rgba(9,10,12,0.12) 100%),
    url("assets/hero-bg.jpg");
  background-position: center 55%;
  background-size: cover;
}

/* light header scrim so the nav reads clean over open sky/treeline */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(7,8,10,0.7) 0%, rgba(7,8,10,0.4) 55%, rgba(7,8,10,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.sticky-call-bar {
  display: none;
}

.site-header {
  min-height: 141px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px var(--gutter);
  position: relative;
  z-index: 2;
}

.logo-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 42px);
  font-family: var(--font-condensed);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.92);
}

.nav a:not(.nav-cta):hover {
  color: #d9f4ff;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-chevron {
  width: 12px;
  height: 8px;
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}

.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 12px;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #101315;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 20;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.nav-dropdown a:hover {
  background: rgba(217, 244, 255, 0.1);
  color: #d9f4ff;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  font-family: var(--font-condensed);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-cta {
  gap: 16px;
  padding: 8px 8px 8px 24px;
  background: linear-gradient(90deg, #3782ad 0%, #245a80 100%);
  color: #fff;
}

.arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d8f4ff;
  flex: 0 0 auto;
}

.arrow svg { width: 24px; height: 24px; }

/* icon-only hover animation on the primary CTA arrow, per Darrel's reference gif
   (DM trace 14ca6b10) -- the arrow glyph nudges up-right on a loop while hovered,
   the button text stays put. */
@keyframes arrow-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}

.nav-cta:hover .arrow svg,
.button-primary:hover .arrow svg {
  animation: arrow-nudge 0.8s ease-in-out infinite;
}

.hero-content {
  width: 100%;
  padding: 100px 100px 120px;
  position: relative;
  z-index: 1;
}

/* H1-pretitle SEO pattern (v8, sitewide): the true <h1> is the small keyword-bearing label
   just above the big visual headline, which is now an <h2 class="hero-headline"> -- carries
   the same look the old .kicker-then-h1 pair had, just semantically correct (one real H1 per
   page, and it actually contains the target keyword, per the site's own SEO rules). */
.hero .hero-headline {
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(48px, 4.7vw, 80px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pretitle {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7cc3e8;
  margin: 0 0 14px;
}

.hl {
  color: #3782ad;
}

.hero p {
  width: min(100%, 640px);
  margin-top: 26px;
  font-size: 18px;
  line-height: 34px;
  font-weight: 400;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.button {
  padding: 0 28px;
}

/* PRIMARY BUTTON DESIGN SYSTEM (per Darrel, DM trace 7e89fd0e) -- .nav-cta above is the source
   of truth, .button-primary reuses it verbatim so every solid CTA site-wide shares one spec.
   Gradient hex is Darrel's own design call for this button system specifically (his authority
   on this one gradient) -- NOT logo-substituted to the site's #3682ae this time. Flagged to him
   once: it differs slightly from the logo-exact blue used everywhere else on the site. Comes
   after the generic .button rule above so its gap/padding/background actually win the cascade. */
.button-primary {
  gap: 16px;
  padding: 8px 8px 8px 24px;
  background: linear-gradient(90deg, #3782ad 0%, #245a80 100%);
  color: #fff;
}

/* per Darrel (DM trace 29bfc208): the button system's background must NOT change on hover --
   the gradient stays exactly as-is. No hover rule here on purpose. */

.button-light {
  background: #d8f4ff;
  color: var(--color-instrument-black);
}

/* torn paper edge -- Darrel's actual bottom-edge.png asset (1689x233, staged since the first
   drop) rendered as-is. Per his correction (DM trace 76cfaa7f): the real PNG, not a derived
   mask/traced shape. The asset itself is the finished graphic (opaque white paper texture with
   a torn top edge, transparent above it) -- no CSS technique needed, just place it. */
.torn-edge {
  width: 100%;
  height: 120px;
  margin-top: auto;
  background-image: url("assets/bottom-edge.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: bottom;
}

.section-title-wrap {
  min-height: 240px;
  display: flex;
  align-items: center;
  padding: 80px var(--gutter) 80px;
  background: #fff;
}

.section-title-wrap h2 {
  max-width: 900px;
  color: var(--color-deep-blue);
  font-family: var(--font-display);
  font-size: var(--section-title);
  line-height: 1.12;
  font-weight: 700;
  text-transform: uppercase;
}

/* per Darrel, DM trace ec6343da */
#proof-title { max-width: 960px; }

.proof-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 64px);
  padding: 0 var(--gutter) 48px;
}

.proof-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-blue);
}

.proof-stat span {
  color: #3d5059;
  font-size: 15px;
  font-weight: 500;
}

.proof-card {
  min-height: 451px;
  display: flex;
  align-items: flex-start;
  gap: clamp(48px, 5.2vw, 88px);
  padding: 100px var(--gutter);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  position: relative;
}

.proof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.proof-card-light {
  color: var(--color-deep-blue);
  background-color: var(--color-ice-blue);
  background-image: url("assets/section-01-bg.jpg");
}

.proof-card-dark {
  color: #fff;
  background-color: var(--color-deep-blue);
  background-image: url("assets/section-02-bg.jpg");
}

.proof-card-blue {
  color: #fff;
  background-color: var(--color-brand-blue);
  background-image: url("assets/section-03-bg.jpg");
}

.proof-number {
  flex: 0 0 auto;
  min-width: 240px;
  font-family: var(--font-condensed);
  font-size: clamp(120px, 12.32vw, 208px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.01em;
  position: relative;
}

.proof-copy {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.proof-copy h3 {
  font-family: var(--font-display);
  font-size: var(--card-title);
  line-height: 1.16;
  font-weight: 700;
  text-transform: uppercase;
}

.proof-copy p {
  font-size: 18px;
  line-height: 34px;
  font-weight: 500;
}

.proof-copy a,
.service-row a {
  color: var(--color-diesel-blue);
  font-family: var(--font-condensed);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.proof-copy a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 10px 22px;
}

.proof-card-blue .proof-copy a { color: #fff; }

.services {
  min-height: 1040px;
  padding: 112px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 70px;
  background: var(--color-worktruck-white);
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
}

.split-heading h2 {
  width: min(100%, 800px);
  font-family: var(--font-display);
  font-size: var(--section-title);
  line-height: 1.12;
  font-weight: 700;
  text-transform: uppercase;
}

.split-heading p {
  width: min(100%, 470px);
  color: #33454e;
  font-size: 18px;
  line-height: 34px;
  font-weight: 500;
}

.service-list {
  border-top: 2px solid #d8e1e6;
  border-bottom: 2px solid #d8e1e6;
}

.service-row {
  min-height: 124px;
  display: grid;
  grid-template-columns: 92px 420px minmax(320px, 620px) 210px;
  align-items: center;
  gap: 36px;
  padding: 30px 0;
  border-bottom: 1px solid #d8e1e6;
}

.service-row:last-child { border-bottom: 0; }

.service-index {
  color: var(--color-diesel-blue);
  font-family: var(--font-condensed);
  font-size: 30px;
  line-height: 34px;
  font-weight: 300;
}

/* icon test, first service row only (CVIP) per Darrel, DM trace 67b4dd20 --
   holds a place for the numbers-to-icons swap while he checks the icon style
   before it rolls out to the rest of the list */
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
}

.service-row h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-row p {
  color: #3d5059;
  font-size: 17px;
  line-height: 30px;
  font-weight: 500;
}

.hours {
  min-height: 860px;
  padding: 100px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 64px;
  color: #fff;
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(6, 7, 9, 0.94) 0%, rgba(6, 7, 9, 0.9) 55%, rgba(6, 7, 9, 0.86) 100%),
    url("assets/hours-bg.jpg");
  background-position: center;
  background-size: cover;
}

.hours > * {
  position: relative;
  z-index: 1;
}

.split-heading-dark {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.split-heading-dark p {
  color: #dce8ee;
  width: min(100%, 560px);
}

.availability {
  min-height: 80px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px;
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 19, 21, 0.38);
}

.availability .button {
  min-height: 64px;
  padding: 0 32px;
  font-size: 22px;
}

.availability-status {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-condensed);
  font-size: 24px;
  line-height: 30px;
  text-transform: uppercase;
}

.availability-status span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--color-brand-blue);
}


.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.hours-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 36px;
  border-top: 4px solid var(--color-brand-blue);
}

.hours-card .eyebrow {
  color: var(--color-brand-blue);
}

.hours-card h3 {
  font-family: var(--font-display);
  font-size: var(--card-title);
  line-height: 1.12;
  font-weight: 700;
  text-transform: uppercase;
}

.hours-card p:not(.eyebrow) {
  color: #dce8ee;
  font-size: 17px;
  line-height: 30px;
  font-weight: 500;
}

.eyebrow {
  color: var(--color-diesel-blue);
  font-family: var(--font-condensed);
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact {
  min-height: 780px;
  padding: 96px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  color: #fff;
  background: var(--color-instrument-black);
}

.contact-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 100px;
}

.contact-heading {
  width: min(100%, 790px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-heading .logo-link { margin-bottom: 4px; }

.contact-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(52px, 4.3vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
}

.quote-panel {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 0 0 auto;
  padding: 42px;
  background: var(--color-ice-blue);
  color: var(--color-instrument-black);
}

.quote-panel h3 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  text-transform: uppercase;
}

.quote-panel p:not(.eyebrow) {
  color: #243942;
  font-size: 17px;
  line-height: 30px;
  font-weight: 600;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-facts {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.footer-facts > div {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-facts .eyebrow { font-size: 16px; line-height: 22px; }
.footer-facts p:not(.eyebrow) { font-size: 16px; line-height: 28px; font-weight: 600; }

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
}

.footer-list a:hover { color: #d9f4ff; }

.footer-list-plain li { color: inherit; }

.footer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

/* R-060/revision (4th pass, per Sheila's precise ask: "adjust the margins between
   the columns so there's no empty space on the right", NOT button position, NOT
   column width): the address/services/credentials columns (kept at their full
   280px width, untouched) plus the two full-size on-brand CTA buttons don't fit on
   one line at 1101-1550px. Root cause of the earlier misses: R-061 shrank column
   WIDTH while still using justify-content:space-between (which spreads any leftover
   space open as one visible gap -- narrower columns just made the gap bigger).
   Real fix: make .footer-facts a flex-grow child with space-between internally, so
   the MARGINS BETWEEN the columns themselves stretch to fluidly consume whatever
   width is available at any viewport size in this band -- the button group ends up
   flush against the same right edge the quote-panel/hero use above, with zero dead
   space, at every width, without touching column width. Buttons are shrunk modestly
   (icon dropped, tighter padding) only so this stays possible as low as ~1270px
   (the thank-you-contact page's longer "Send another message" button needs a touch
   more room than the others, so the crossover is set by that page, not the shorter
   labels); verified via actual screenshots at 1280/1366/1440px (Sheila's realistic
   range), not just DOM coordinates -- this is what the previous 3 passes got wrong.
   Below ~1270px the flex-grow floor (3 full 280px columns + minimum gap) genuinely
   cannot fit a real CTA button pair on the same row no matter how margins/gaps are
   adjusted (that's pure arithmetic: 3x280px alone already exceeds the container),
   so that sliver falls back to the same column-stack the site already uses below
   1100px -- not a new stacking behavior, just extending the existing one over a
   ~170px gap nothing else covers. Must come after the base .footer-facts/
   .footer-actions rules above to win the cascade (equal specificity, source order
   decides). */
@media (min-width: 1101px) and (max-width: 1269px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1270px) and (max-width: 1550px) {
  .footer-row {
    justify-content: flex-start;
    gap: 16px;
  }
  .footer-facts {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 24px;
  }
  .footer-actions { gap: 8px; }
  .footer-actions .button { padding: 0 12px; font-size: 16px; }
  .footer-actions .button-primary .arrow { display: none; }
  .footer-actions .button-primary { padding-right: 12px; }
}

.copyright {
  color: #6f7b82;
  font-size: 14px;
}

.legal-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  gap: 20px;
  flex: 0 0 auto;
}

.legal-links a {
  color: #6f7b82;
  font-size: 14px;
}

.legal-links a:hover { color: #d9f4ff; }

@media (max-width: 1100px) {
  .site-header { align-items: flex-start; }
  .nav { justify-content: flex-end; flex-wrap: wrap; }
  .proof-card { gap: 40px; }
  .service-row { grid-template-columns: 68px 1fr; }
  .service-row p, .service-row a { grid-column: 2; }
  .split-heading, .contact-main, .footer-row { align-items: flex-start; flex-direction: column; }
  .hours-grid { grid-template-columns: 1fr; }
  .footer-facts { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .logo { width: 104px; }
  .hero .hero-headline { white-space: normal; }
  .site-header { min-height: auto; flex-direction: column; gap: 22px; align-items: flex-start; }
  .nav { justify-content: flex-start; gap: 16px 22px; font-size: 15px; }
  .nav-cta { width: 100%; justify-content: space-between; }
  .hero-content { padding: 70px 24px 60px; }
  .button-row, .footer-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .section-title-wrap { min-height: 190px; padding-top: 48px; padding-bottom: 56px; }
  .proof-card { min-height: auto; flex-direction: column; padding-block: 70px; }
  .proof-number { min-width: 0; }
  .services, .hours, .contact { padding-block: 72px; }
  .split-heading { gap: 28px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row p, .service-row a { grid-column: auto; }
  .availability { align-items: flex-start; flex-direction: column; }
  .contact-heading h2 { font-size: clamp(40px, 12vw, 56px); }
  .quote-panel { padding: 30px; }
  .quote-panel h3 { font-size: 40px; line-height: 44px; }
  .legal-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sticky-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    align-items: center;
    justify-content: center;
    padding: 14px var(--gutter);
    background: linear-gradient(90deg, #3782ad 0%, #245a80 100%);
  }
  .sticky-call-bar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
  }
  body { padding-bottom: 58px; }
}
