/* ==========================================================================
   Arch Equipment Group — site stylesheet
   One file for the whole site. Sections, in order:
   1. Design tokens (edit brand colors, fonts, spacing here)
   2. Fonts
   3. Reset and base
   4. Layout helpers and accessibility
   5. Buttons and links
   6. Shared partial placeholders
   7. Top bar, header, navigation
   8. Home: hero, statement band, equipment, services, steps, storm, about
   9. Inner pages: page hero, breadcrumbs, content blocks
   10. Service area map and locations
   11. Fleet customer form
   12. Calls to action and footer
   13. Capability statement, 404
   14. Responsive layouts
   15. Motion, print
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
  /* Brand colors */
  --navy: #12263F;            /* Lineman Navy: headlines, dark sections */
  --navy-hover: #1D3A5E;
  --teal: #008FBE;            /* Logo teal: decorative accents only (not text on white) */
  --teal-text: #006A8F;       /* Darker logo teal: links and icons, passes AA on white and mist */
  --yellow: #F2B705;          /* Inspection Yellow: reserved for emergency/call actions and accents */
  --yellow-hover: #D9A404;
  --green: #2E5E4E;           /* Canopy Green: tree-service emphasis */
  --mist: #E7ECEF;            /* Alternate section background */
  --fiber: #F8F9F7;           /* Page background */
  --white: #FFFFFF;
  --ink: #17202A;             /* Body text */
  --ink-soft: #344250;        /* Secondary text */
  --muted: #4A5866;           /* Small print */
  --rule: #C9D2D9;            /* Hairline rules */
  --rule-dark: rgba(255, 255, 255, 0.18);
  --on-navy: #C9D6E3;         /* Body text on navy */
  --error: #B42318;
  --success: #2E5E4E;

  /* Typography */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --display-stretch: 112%;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2vw, 2.875rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --fs-body: 1.125rem;
  --fs-small: 0.95rem;
  --lh-body: 1.62;

  /* Layout */
  --content-width: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(64px, 8vw, 120px);
  --radius-sm: 4px;
  --radius: 8px;
  --header-height: 92px;      /* Main header bar height on desktop */
  --topbar-height: 40px;
  --focus: 3px solid var(--yellow);
  --curve-h: clamp(44px, 6.4vw, 92px);   /* Height of the catenary section dividers */
}

/* 2. Fonts (self-hosted, SIL Open Font License; see assets/fonts) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* 3. Reset and base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  background: var(--fiber);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.03; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
p + p { margin-top: 1em; }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 14px; height: 14px; flex: none; }

/* 4. Layout helpers and accessibility --------------------------------------- */
.container { width: min(var(--content-width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-mist { background: var(--mist); }
.section-white { background: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--yellow); color: var(--navy); font-weight: 700;
  padding: 12px 18px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.lede { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: #2C3A47; max-width: 640px; }
.label { display: block; font-weight: 700; font-size: 1rem; color: var(--green); margin-bottom: 14px; }
.kicker { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1rem; color: var(--green); }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); flex: none; }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 32px 60px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--ink-soft); }

/* 5. Buttons and links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-hover); }
.btn-call { background: var(--yellow); color: var(--navy); }  /* Yellow = call now, always a tel: link */
.btn-call:hover { background: var(--yellow-hover); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--mist); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 0.95rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link {
  color: var(--teal-text); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid rgba(0, 106, 143, .28); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--teal-text); }
.on-dark .text-link, .text-link.light { color: var(--white); border-bottom-color: rgba(255,255,255,.35); }
.on-dark .text-link:hover, .text-link.light:hover { border-bottom-color: var(--white); }
.prose a:not(.btn):not(.text-link) { color: var(--teal-text); font-weight: 600; }

/* 6. Shared partial placeholders --------------------------------------------
   Each page holds a small fallback inside [data-include]. With JavaScript on,
   the fallback is hidden while the shared partial loads, then replaced.
   If the partial cannot load (e.g. opened via file://), the fallback shows. */
.js [data-include]:not(.include-failed) > .include-fallback { visibility: hidden; }
[data-include="header"] { min-height: calc(var(--header-height) + var(--topbar-height)); }
.include-fallback { padding: 18px 0; }
.include-fallback .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.include-fallback nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.include-fallback a { color: var(--navy); }
.include-fallback img { height: 44px; width: auto; }
.footer-fallback { background: var(--navy); color: var(--on-navy); }
.footer-fallback a { color: var(--white); }

/* 7. Top bar, header, navigation ------------------------------------------- */
.topbar { background: var(--navy); color: var(--on-navy); font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: var(--topbar-height); gap: 20px; }
.topbar strong { color: var(--white); font-weight: 600; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; gap: 28px; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid #DCE2E7; }
.site-header .container { display: flex; align-items: center; gap: 32px; min-height: var(--header-height); }
.logo { display: block; flex: none; }
.logo img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.nav-list > li { position: relative; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav-link:hover, .nav-toggle:hover { color: var(--teal-text); }
.nav-link[aria-current="page"] { color: var(--teal-text); box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-toggle .icon-sm { transition: transform .15s ease; opacity: .65; }
.nav-toggle[aria-expanded="true"] .icon-sm { transform: rotate(180deg); }
.submenu {
  display: none; position: absolute; top: calc(100% + 10px); left: -20px; min-width: 290px;
  background: var(--white); border: 1px solid #DCE2E7; border-top: 3px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius); padding: 10px 0; box-shadow: 0 18px 40px rgba(18, 38, 63, .14);
}
.submenu a { display: block; padding: 9px 20px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .975rem; }
.submenu a:hover, .submenu a:focus-visible { background: var(--mist); color: var(--navy); }
.submenu .submenu-all { border-bottom: 1px solid var(--rule); margin-bottom: 6px; padding-bottom: 12px; color: var(--teal-text); }
.has-sub.is-open > .submenu { display: block; }
@media (hover: hover) and (min-width: 1101px) {
  .has-sub:hover > .submenu { display: block; }
  .has-sub:hover > .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}
.header-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; flex: none; }
.menu-button {
  display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  border: 2px solid var(--navy); border-radius: var(--radius-sm); color: var(--navy); font-weight: 700;
}
.menu-button .icon-close { display: none; }
.site-header.nav-open .menu-button .icon-open { display: none; }
.site-header.nav-open .menu-button .icon-close { display: block; }
.mobile-only { display: none; }

/* Mobile action bar: always-visible call + signup on small screens */
.action-bar { display: none; }

/* 8. Home ------------------------------------------------------------------- */
.hero { --hero-pb: 150px; position: relative; background: var(--fiber); padding: 72px 0 var(--hero-pb); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 60px; align-items: start; }
.hero h1 { margin: 22px 0 26px; }
.hero .btn-group { margin-top: 34px; }
.hero-figure { position: relative; justify-self: end; align-self: stretch; width: min(100%, 560px); margin-bottom: calc(-1 * var(--hero-pb)); }  /* runs under the curve, as in the concept */
.hero-figure .arch-frame { height: 100%; min-height: 560px; aspect-ratio: auto; }
.arch-frame {
  position: relative; overflow: hidden; aspect-ratio: 560 / 690; background: var(--mist);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;   /* Gateway-arch window, the concept's signature crop */
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rule); }
.cert-badge { display: flex; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 14px; height: 72px; }
.cert-badge img { height: 56px; width: auto; }
.cert-row .cert-note { font-size: .875rem; color: var(--muted); line-height: 1.4; max-width: 160px; }

/* Catenary divider: a sagging line into the next dark section */
.curve { position: absolute; left: 0; width: 100%; height: var(--curve-h); top: calc(1px - var(--curve-h)); pointer-events: none; }
.curve-fill { fill: var(--navy); }
.curve-gap { fill: none; stroke: var(--fiber); stroke-width: 9; }
.curve-line { fill: none; stroke: var(--yellow); stroke-width: 3.5; }
.curve.on-mist .curve-gap { stroke: var(--mist); }

.band { position: relative; background: var(--navy); color: var(--white); padding: 70px 0 var(--section-space); }
.band-intro { display: grid; grid-template-columns: minmax(0, 780px) 1fr; gap: 40px 60px; align-items: end; }
.band h2 { color: var(--white); font-size: clamp(2.6rem, 1.4rem + 4.8vw, 5.25rem); line-height: .98; letter-spacing: -.03em; font-stretch: 115%; }
.band-intro p { color: var(--on-navy); font-size: 1.2rem; }
.fact-tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.fact-tag {
  position: relative; border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 6px 26px 26px 6px; padding: 26px 24px 24px 56px;
}
.fact-tag::before { content: ""; position: absolute; left: 20px; top: 30px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--yellow); }
.fact-tag strong { display: block; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 2.5rem; color: var(--yellow); line-height: 1; }
.fact-tag span { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.45; color: #DCE5EE; }
.fact-tags.on-light .fact-tag { border-color: var(--rule); background: var(--white); }
.fact-tags.on-light .fact-tag strong { color: var(--navy); }
.fact-tags.on-light .fact-tag span { color: var(--ink-soft); }

/* Equipment: Jarraff feature panel + ruled list */
.equip-grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 40px; align-items: start; }
.feature-panel { background: var(--green); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.feature-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-panel .feature-body { padding: 34px 40px 40px; }
.flag { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .95rem; padding: 9px 14px; border-radius: 3px; line-height: 1.35; }
.feature-panel .flag { margin-top: -54px; position: relative; margin-bottom: 20px; }
.feature-panel h3 { color: var(--white); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 800; }
.feature-panel p { color: #D7E6DF; margin: 12px 0 22px; }
.equip-list { border-top: 2px solid var(--navy); }
.equip-row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.equip-row .drawing { color: var(--teal-text); width: 140px; height: 80px; }
.equip-row p { font-size: 1rem; color: #3A4856; margin-top: 4px; line-height: 1.5; }
.equip-row h3 a { text-decoration: none; }
.equip-row h3 a:hover { color: var(--teal-text); }
.equip-row .text-link { font-size: .95rem; white-space: nowrap; }

/* Services: inspection checklist */
.svc-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; }
.photo-tall { border-radius: var(--radius); overflow: hidden; }
.photo-tall img { width: 100%; aspect-ratio: 400 / 600; object-fit: cover; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.check-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid #C7D0D7; }
.check-item .check { width: 28px; height: 28px; color: var(--green); margin-top: 2px; }
.check-item h3 { font-size: 1.3rem; }
.check-item h3 a { text-decoration: none; }
.check-item h3 a:hover { color: var(--teal-text); text-decoration: underline; text-decoration-thickness: 2px; }
.check-item p { font-size: 1rem; color: #3A4856; margin-top: 6px; line-height: 1.5; }
.call-card { background: var(--yellow); color: var(--navy); border-radius: 6px; padding: 24px 26px; margin-top: 20px; align-self: start; }
.call-card h3 { font-size: 1.35rem; }
.call-card p { font-size: 1rem; margin: 6px 0 14px; line-height: 1.5; }
.call-card a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-stretch: var(--display-stretch); font-size: 1.85rem; color: var(--navy); text-decoration: none; }
.call-card a .icon { width: 26px; height: 26px; }

/* Steps along a line */
.steps-line { display: block; width: 100%; height: 96px; margin-top: 44px; color: var(--navy); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow);
  font-family: var(--font-display); font-weight: 800; color: var(--navy); margin-bottom: 18px;
}
.step p { font-size: 1.0625rem; color: #3A4856; margin-top: 8px; }

/* Split feature: full-bleed photo + text */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; background: var(--fiber); }
.split-media { position: relative; min-height: 360px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { padding: clamp(48px, 7vw, 96px) clamp(24px, 7vw, 100px) clamp(48px, 7vw, 96px) clamp(24px, 5.5vw, 80px); align-self: center; max-width: 720px; }
.split-text p { color: var(--ink-soft); margin: 20px 0 32px; }

/* About + procurement */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: start; }
.about-intro { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 40px; align-items: start; }
.portrait { border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.portrait img { width: 100%; aspect-ratio: 330 / 400; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption { font-size: .875rem; color: var(--muted); padding: 10px 2px 0; background: var(--fiber); }
.about-intro h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.about-intro p { color: var(--ink-soft); margin-top: 20px; }
.proc-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 40px; }
.proc-card h2, .proc-card h3 { color: var(--white); font-size: 1.6rem; }
.proc-card > p { color: var(--on-navy); font-size: 1rem; margin: 10px 0 22px; line-height: 1.55; }
.data-list { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-top: 1px solid var(--rule-dark); font-size: .975rem; margin-bottom: 28px; }
.data-list dt, .data-list dd { padding: 13px 0; border-bottom: 1px solid var(--rule-dark); }
.data-list dt { color: #9FB2C6; }
.data-list dd { color: var(--white); font-weight: 600; }
.proc-card .btn { width: 100%; }
.proc-card .sub-link { display: block; text-align: center; margin-top: 16px; color: var(--white); font-weight: 600; font-size: .95rem; }

/* 9. Inner pages ------------------------------------------------------------ */
.page-hero { position: relative; background: var(--fiber); padding: 48px 0 140px; }
.page-hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.page-hero.no-media .container { grid-template-columns: minmax(0, 860px); }
.page-hero h1 { margin: 18px 0 22px; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); }
.page-hero .btn-group { margin-top: 30px; }
.page-hero-media .arch-frame { aspect-ratio: 460 / 520; border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); }
.page-hero-media .arch-frame img { object-position: 50% 50%; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #8A97A3; }
.breadcrumbs a { color: var(--teal-text); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.band-slim { position: relative; background: var(--navy); color: var(--white); padding: 56px 0 72px; }
.band-slim .fact-tags { margin-top: 0; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 64px; align-items: start; }
.prose { max-width: 720px; }
.prose h2 { margin-bottom: 20px; }
.prose h2:not(:first-child) { margin-top: 56px; }
.prose h3 { margin: 32px 0 10px; }
.prose p { color: var(--ink-soft); }
.prose ul.ticks { margin: 20px 0 8px; border-top: 1px solid var(--rule); }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 12px;
  background: var(--yellow); border: 2px solid var(--navy); border-radius: 2px;
}
.aside-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h2, .aside-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.aside-card p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 18px; }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: 12px; }
.aside-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.aside-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.note { font-size: .95rem; color: var(--muted); }

.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.link-card {
  display: grid; grid-template-rows: 1fr auto; gap: 14px; text-decoration: none;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px;
  transition: border-color .15s ease;
}
.link-card:hover { border-color: var(--navy); }
.link-card h3 { font-size: 1.2rem; }
.link-card p { font-size: .975rem; color: var(--ink-soft); line-height: 1.5; }
.link-card .more { color: var(--teal-text); font-weight: 700; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.related h2 { margin-bottom: 32px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding: 10px 12px; background: var(--white); }

/* 10. Service area ----------------------------------------------------------- */
.area-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 60px; align-items: center; }
.area-list { margin: 28px 0 34px; border-top: 1px solid var(--rule); }
.area-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 14px; align-items: center; }
.area-list li::before { content: ""; width: 12px; height: 12px; background: var(--yellow); border: 2px solid var(--navy); border-radius: 2px; flex: none; }
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.location-card { border: 1px solid var(--rule); border-radius: 6px; padding: 20px; background: var(--white); }
.location-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.location-card address { font-style: normal; font-size: 1rem; line-height: 1.5; color: #3A4856; }
.location-card .text-link { margin-top: 12px; font-size: .9rem; }
.area-map { width: 100%; max-width: 640px; margin-inline: auto; }
.area-map svg { width: 100%; height: auto; }
.map-state { fill: #F1F4F6; stroke: #98A6B2; stroke-width: 1.4; }
.map-coverage { fill: var(--yellow); fill-opacity: .42; }
.map-river { fill: none; stroke: var(--teal-text); stroke-width: 2.4; }
.map-i80 { stroke: var(--navy); stroke-width: 2.4; stroke-dasharray: 7 5; }
.map-radius { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-dasharray: 4 5; }
.map-label { fill: #5B6875; font-family: var(--font-body); font-size: 22px; font-weight: 600; }
.map-small { fill: #5B6875; font-family: var(--font-body); font-size: 12px; }
.map-strong { fill: var(--navy); font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.map-note { fill: var(--navy); font-family: var(--font-body); font-size: 12px; font-weight: 600; }

/* 11. Fleet customer form ----------------------------------------------------- */
.join { background: var(--mist); }
.join-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 70px; align-items: start; }
.join-grid .lede { margin-top: 20px; }
.call-box { margin-top: 40px; border-top: 2px solid var(--navy); padding-top: 28px; }
.call-box h3 { font-size: 1.35rem; }
.call-box p { font-size: 1rem; color: #3A4856; margin: 8px 0 18px; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: 0 1px 0 #D3DAE0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 1.5px solid #7D8A96; border-radius: var(--radius-sm);
  background: var(--white); padding: 12px 14px; font-size: 1rem; color: var(--ink);
}
.field select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6' fill='none' stroke='%2312263F' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: var(--focus); outline-offset: 1px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-size: .9rem; margin-top: 6px; font-weight: 600; }
.field-error:empty { display: none; }
fieldset.field { border: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; margin: 0;
  border: 1.5px solid #7D8A96; border-radius: var(--radius-sm); font-size: .975rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.chip label::before { content: ""; width: 18px; height: 18px; border: 2px solid #6B7884; border-radius: 2px; flex: none; }
.chip input:checked + label { border-color: var(--navy); background: #EEF3F8; }
.chip input:checked + label::before {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--navy);
}
.chip input:focus-visible + label { outline: var(--focus); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.form-foot .note { max-width: 360px; line-height: 1.45; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-success { background: #E6F0EC; color: var(--success); border-left: 4px solid var(--success); }
.form-status.is-error { background: #FBEAE8; color: var(--error); border-left: 4px solid var(--error); }
.form-status.is-info { background: #EEF3F8; color: var(--navy); border-left: 4px solid var(--teal); }
.form-status a { color: inherit; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* 12. CTA band and footer ------------------------------------------------------ */
.cta-band { background: var(--white); border-top: 1px solid #DCE2E7; }
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-block: 64px; }
.cta-band h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.cta-band p { color: var(--ink-soft); margin-top: 10px; max-width: 620px; }

.site-footer { position: relative; background: var(--navy); color: var(--on-navy); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 320px) repeat(3, minmax(0, 1fr)) minmax(0, 240px); gap: 36px; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 6px; padding: 14px 18px; }
.footer-logo img { height: 44px; width: auto; }
.footer-about { font-size: .95rem; line-height: 1.6; margin-top: 22px; }
.footer-certs { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.footer-certs img { height: 56px; width: auto; background: var(--white); border-radius: 4px; padding: 6px 8px; }
.site-footer h2 { font-size: 1.05rem; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.footer-links li { line-height: 1.4; padding: 5px 0; }
.footer-links a, .footer-contact a { color: var(--on-navy); text-decoration: none; font-size: .975rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-phone { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-stretch: 104%; font-size: 1.55rem; color: var(--yellow) !important; margin-bottom: 6px; }
.footer-contact p, .footer-contact address { font-size: .925rem; line-height: 1.6; font-style: normal; }
.footer-contact address { margin-top: 12px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 4px; display: grid; place-items: center; color: var(--white); }
.social a:hover { border-color: var(--white); }
.social .icon { width: 18px; height: 18px; }
.legal { margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 30px; font-size: .875rem; color: #9FB2C6; }
.legal a { color: #9FB2C6; }

/* 13. Capability statement, 404 ---------------------------------------------- */
.cap-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 56px; align-items: start; }
.cap-block + .cap-block { margin-top: 48px; }
.cap-block h2 { font-size: 1.7rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.cap-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.cap-aside .proc-card + .aside-card { margin-top: 20px; }
.cert-logos { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cert-logos img { height: 72px; width: auto; border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; background: var(--white); }
.error-page { padding: 96px 0 120px; }
.error-page h1 { margin: 16px 0 20px; }
.error-links { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 0 32px; }
.error-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--navy); font-weight: 600; text-decoration: none; }
.error-links a:hover { color: var(--teal-text); }

/* 14. Responsive -------------------------------------------------------------- */
@media (max-width: 1340px) {
  .nav-list { gap: 20px; font-size: .95rem; }
  .logo img { height: 50px; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 1100px) {
  :root { --header-height: 76px; }
  .menu-button { display: inline-flex; }
  .logo img { height: 46px; }
  .main-nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-height); bottom: 0;
    background: var(--white); overflow-y: auto; padding: 12px var(--gutter) 120px; border-top: 1px solid #DCE2E7;
  }
  .site-header.nav-open .main-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; font-size: 1.1rem; white-space: normal; }
  .nav-list > li { border-bottom: 1px solid var(--rule); }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: 18px 0; }
  .nav-link[aria-current="page"] { box-shadow: none; }
  .submenu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--yellow); border-radius: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
  .submenu a { padding: 11px 16px; }
  .mobile-only { display: block; }
  .header-actions .btn-call .btn-label-long { display: none; }
  .hero .container, .page-hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px; }
  .fact-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equip-grid, .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature-panel img { height: 100%; aspect-ratio: auto; }
  .feature-panel .flag { margin-top: 0; }
  .photo-tall img { aspect-ratio: 16 / 9; object-position: 50% 30%; }
  .about-grid, .content-grid, .cap-sheet { grid-template-columns: minmax(0, 1fr); }
  .area-grid, .join-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .link-cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --topbar-height: 0px; }
  .topbar { display: none; }
  .hero { --hero-pb: 110px; padding-top: 40px; }
  .hero .container, .page-hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { justify-self: center; width: min(100%, 520px); }
  .arch-frame { aspect-ratio: 4 / 3.4; }
  .hero-figure { align-self: auto; }
  .hero-figure .arch-frame { height: auto; min-height: 0; aspect-ratio: 4 / 3.6; }
  .page-hero { padding-bottom: 120px; }
  .page-hero-media { max-width: 520px; }
  .page-hero-media .arch-frame { aspect-ratio: 4 / 3.2; }
  .band-intro, .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 40px; }
  .feature-panel { display: block; }
  .feature-panel .flag { margin-top: -54px; }
  .checklist-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps-line { display: none; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; }
  .step .step-num { grid-row: span 2; margin: 0; }
  .split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split-media { min-height: 320px; }
  .about-intro { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; }
  /* Sticky call + signup bar on phones and small tablets */
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--white); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #DCE2E7; box-shadow: 0 -6px 20px rgba(18, 38, 63, .08);
  }
  .action-bar .btn { min-height: 52px; padding: 0 12px; font-size: 1rem; }
  body { padding-bottom: 76px; }
  .header-actions .btn-call { display: none; }
}
@media (max-width: 640px) {
  :root { --fs-body: 1.0625rem; }
  .fact-tags { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 44px; }
  .fact-tag strong { font-size: 2.1rem; }
  .equip-row { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; }
  .equip-row .drawing { width: 96px; height: 56px; grid-row: span 2; }
  .equip-row .text-link { grid-column: 2; justify-self: start; margin-top: 8px; }
  .feature-panel .feature-body { padding: 26px 24px 30px; }
  .about-intro { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 320px; }
  .proc-card { padding: 28px 22px; }
  .data-list { grid-template-columns: 110px minmax(0, 1fr); }
  .locations, .form-grid, .cap-columns { grid-template-columns: minmax(0, 1fr); }
  .link-cards, .gallery, .error-links { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
  .cta-band .container { grid-template-columns: minmax(0, 1fr); }
  .btn-group .btn { width: 100%; }
  .cert-badge { height: 64px; padding: 6px 10px; }
  .cert-badge img { height: 46px; }
  .logo img { height: 40px; }
  .menu-button .menu-label { display: none; }
}

/* 15. Motion and print ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  [data-include], .topbar, .site-header, .site-footer, .cta-band, .join, .action-bar, .skip-link, .no-print, .curve { display: none !important; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  .page-hero, .section { padding: 16px 0 !important; }
  .proc-card { background: #fff; color: #000; border: 1px solid #999; }
  .proc-card h2, .proc-card h3, .proc-card dd, .proc-card dt, .proc-card p { color: #000 !important; }
  .cap-sheet { grid-template-columns: 1fr 260px; gap: 24px; }
  a { text-decoration: none; }
}

/* Additions: inner-page details ---------------------------------------------- */
.drawing-frame { display: grid; place-items: center; background: var(--mist); }
.hero-drawing { width: 78%; height: auto; aspect-ratio: 168 / 98; color: var(--teal-text); }
.page-hero .flag { margin-top: 18px; }
.page-hero .flag + h1 { margin-top: 14px; }
.aside-stack { display: block; }
.gallery-heading, .loc-heading { margin-bottom: 28px; }
.fit-note { margin-top: 28px; max-width: 760px; }
.loc-note { margin-top: 22px; }
.loc-note a { color: var(--teal-text); font-weight: 700; }
.more-link { margin-top: 26px; }
.cert-logos.on-navy { margin: 6px 0 24px; }
.cert-logos.on-navy img { border-color: transparent; }
.social-row { display: flex; gap: 24px; margin-top: 28px; }
.contact-cards .aside-card + .aside-card { margin-top: 0; }
.contact-cards .aside-card .btn { width: auto; }
.inline-icon { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; color: var(--teal-text); margin-right: 6px; }
.contact-cards p a { color: var(--teal-text); font-weight: 600; }
.aside-card p a { color: var(--teal-text); font-weight: 600; }
.error-page .lede { margin-bottom: 8px; }
.btn-light { background: var(--white); color: var(--navy); }   /* Secondary action on navy panels */
.btn-light:hover { background: var(--mist); }
