/* ==========================================================================
   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 */
  /* Monochromatic scale of the logo teal (#008FBE), darkest to lightest */
  --teal-900: #005572;        /* Headlines, dark sections, primary buttons */
  --teal-800: #00698B;        /* Links, icons, feature panels, hover on dark buttons */
  --teal-700: #007CA5;
  --teal-600: #008FBE;        /* Logo teal: rules and accents (not small text on white) */
  --teal-500: #00A2D8;        /* Bright rules, map coverage */
  --teal-400: #00B5F1;
  --teal-300: #0CC3FF;        /* Large numbers on dark sections */
  /* Complement of the logo teal */
  --accent: #BE2F00;          /* Call-now buttons and key highlights. White text passes AA */
  --accent-hover: #9A2600;

  /* Roles (use these names in components) */
  --navy: var(--teal-900);
  --navy-hover: var(--teal-800);
  --teal: var(--teal-600);
  --teal-text: var(--teal-800);
  --mist: #E8F1F5;            /* Alternate section background (teal tint) */
  --fiber: #F7F9FA;           /* Page background */
  --white: #FFFFFF;
  --ink: #10232B;             /* Body text */
  --ink-soft: #344A55;        /* Secondary text */
  --muted: #4A5E68;           /* Small print */
  --rule: #C6D6DD;            /* Hairline rules */
  --rule-dark: rgba(255, 255, 255, 0.22);
  --on-navy: #CFE6EF;         /* Body text on dark teal */
  --on-navy-muted: #A9D3E3;   /* Labels on dark teal */
  --error: #B42318;
  --success: #2E6B4F;

  /* 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: 0;             /* Square corners throughout: straight-line system */
  --radius: 0;
  --header-height: 92px;      /* Main header bar height on desktop */
  --topbar-height: 40px;
  --focus: 3px solid var(--accent);
  --divider: 4px solid var(--teal-500);   /* Straight rule that opens each dark section */
}

/* 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; }
.band :focus-visible, .band-slim :focus-visible, .site-footer :focus-visible, .proc-card :focus-visible,
.feature-panel :focus-visible, .topbar :focus-visible, .call-card :focus-visible, .btn-call:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 5px var(--navy); }
.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(--accent); color: var(--white); font-weight: 700;
  padding: 12px 18px; 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(--teal-text); margin-bottom: 14px; }
.kicker { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1rem; color: var(--teal-text); }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--accent); 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;
  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(--accent); color: var(--white); }  /* Accent = call now, always a tel: link */
.btn-call:hover { background: var(--accent-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; }
.topbar-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
/* Live office status (computed in main.js from the hours in config.js) */
.open-status { display: inline-flex; align-items: center; gap: 8px; }
.open-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-navy-muted); flex: none; }
.open-status[data-state="open"] .open-status__dot { background: #43D17A; box-shadow: 0 0 0 3px rgba(67, 209, 122, .25); }
.open-status[data-state="closed"] .open-status__dot { background: #FF8A5C; box-shadow: 0 0 0 3px rgba(255, 138, 92, .22); }
.open-status strong { color: var(--white); font-weight: 600; }
.topbar-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, .25); }

.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(--accent); }
.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 var(--rule); border-top: 3px solid var(--teal-600);
  padding: 10px 0; box-shadow: 0 18px 40px rgba(0, 85, 114, .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); 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 { position: relative; background: var(--white); padding: 72px 0 var(--section-space); overflow: hidden; border-bottom: 1px solid var(--rule); }
.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); }
.hero-figure .photo-frame { height: 100%; min-height: 560px; aspect-ratio: auto; }
/* Home hero collage (aeg-fleet-collage-angled): its angled edges are white,
   so it sits unframed on the hero's white background. */
.hero-figure--collage { align-self: start; width: min(100%, 640px); }
.hero-figure--collage img { width: 100%; height: auto; }
.photo-frame {
  position: relative; overflow: hidden; aspect-ratio: 560 / 690; background: var(--mist);
  border-bottom: 6px solid var(--teal-600);   /* Straight teal rule under every hero photo */
}
.photo-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: 28px; padding-top: 26px; border-top: 1px solid var(--rule); }
.cert-badge { display: flex; align-items: center; background: var(--white); padding: 8px 14px; height: 90px; border: 1px solid var(--rule);}
.cert-badge img { height: 95px; width: auto; }
.cert-row .cert-note { font-size: .875rem; color: var(--muted); line-height: 1.4; max-width: 160px; }


.band { position: relative; background: var(--navy); color: var(--white); padding: var(--section-space) 0; border-top: var(--divider); }
.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-width: 0 0 0 4px; border-left-color: var(--teal-300); padding: 6px 20px 8px 22px;
}
.fact-tag strong { display: block; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 2.5rem; color: var(--teal-300); 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-left-color: var(--teal-600); }
.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(--teal-800); color: var(--white); overflow: hidden; border-top: var(--divider); }
.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(--accent); color: var(--white); font-weight: 700; font-size: .95rem; padding: 9px 14px; 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: #DDEFF6; 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 { overflow: hidden; border-bottom: 6px solid var(--teal-600); }
.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 var(--rule); }
.check-item .check { width: 28px; height: 28px; color: var(--teal-text); 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(--accent); color: var(--white); padding: 24px 26px; margin-top: 20px; align-self: start; }
.call-card h3 { color: var(--white); }
.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(--white); text-decoration: none; }
.call-card a .icon { width: 26px; height: 26px; }

/* Steps along a line */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.step { border-top: 2px solid var(--navy); padding-top: 24px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; background: var(--navy);
  font-family: var(--font-display); font-weight: 800; color: var(--white); 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 { 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); padding: 40px; border-top: var(--divider); }
.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: var(--on-navy-muted); }
.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 var(--section-space); border-bottom: 1px solid var(--rule); }
.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 .photo-frame { aspect-ratio: 4 / 3; }
.page-hero-media .photo-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 64px; border-top: var(--divider); }
.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: 23px; width: 10px; height: 10px;
  background: var(--teal-600);
}
.aside-card { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); 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 { 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;
  position: relative; background: var(--white); border: 1px solid var(--rule); padding: 24px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.link-card:hover { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--accent); }
.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 { overflow: hidden; background: var(--mist); border-bottom: 3px solid var(--teal-600); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Four-photo gallery with tall shop photos (repair shop page) */
@media (min-width: 1101px) { .gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-4 img { aspect-ratio: 1 / 1; }
.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: 10px; height: 10px; background: var(--teal-600); flex: none; }
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.location-card { border: 1px solid var(--rule); border-top: 3px solid var(--navy); 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(--teal-500); fill-opacity: .32; }
.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); padding: clamp(24px, 4vw, 44px); border-top: 3px solid var(--navy); }
.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: 0;
  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='%23005572' 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; font-size: .975rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.chip label::before { content: ""; width: 18px; height: 18px; border: 2px solid #6B7884; flex: none; }
.chip input:checked + label { border-color: var(--navy); background: var(--mist); }
.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; font-weight: 600; font-size: 1rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-success { background: #E7F2EC; 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: var(--mist); 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 var(--rule); }
.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; border-top: var(--divider); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 290px) repeat(3, minmax(0, 1fr)) minmax(0, 272px); gap: 32px; }
.footer-logo { display: inline-block; background: var(--white); 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: 93px; width: auto; background: var(--white); 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(--white) !important; margin-bottom: 6px; }
.footer-digits { font-style: italic; color: var(--on-navy); margin: -2px 0 10px; font-size: .95rem; }
/* Phone number shown as 1-888-880-ARCH with the digits "(2724)" in smaller type */
.phone-suffix { font-size: .78em; font-weight: 600; opacity: .9; white-space: nowrap; }
[data-config="phone"] { white-space: nowrap; }   /* never split 1-888-880-ARCH across lines */
.call-card a { flex-wrap: wrap; column-gap: 10px; row-gap: 0; font-size: 1.6rem; line-height: 1.15; }
.call-card a .phone-suffix { font-size: .62em; flex-basis: 100%; padding-left: 36px; }
.phone-digits { display: block; font-style: italic; font-weight: 400; font-size: .95em; }
.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, .35); 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: var(--on-navy-muted); }
.legal a { color: var(--on-navy-muted); }

/* 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); 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 -------------------------------------------------------------- */
/* Header fit with five menu tabs: tighten spacing and shorten the call button */
@media (max-width: 1480px) {
  .nav-list { gap: 20px; font-size: .95rem; }
  .logo img { height: 50px; }
  .site-header .container { gap: 24px; }
  .header-actions .btn-call .btn-label-long { display: none; }
}
@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(--teal-600); 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) {
  .topbar-links, .topbar-hours, .topbar-divider { display: none; }
  .topbar-phone { display: none; }   /* The sticky action bar carries the call button on phones */
  .topbar .container { font-size: .8125rem; }
  .hero { padding-top: 40px; }
  .hero .container, .page-hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { justify-self: center; width: min(100%, 520px); }
  .hero-figure { align-self: auto; justify-self: stretch; width: 100%; }
  .hero-figure--collage { max-width: 640px; justify-self: center; }
  .hero-figure .photo-frame { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .page-hero { padding-bottom: 120px; }
  .page-hero-media { max-width: 520px; }
  .page-hero-media { max-width: none; }
  .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; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; padding-top: 20px; }
  .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%; }
  .btn .phone-suffix { display: block; font-size: .8em; margin-top: 2px; }   /* digits as subtext under the number on phones */
  .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 { 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 ---------------------------------------------- */
.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); }
