/* ============================================================
   AxiWaste "Hi-vis" theme (draft, 5 Nov 2026)
   Loaded after main.css on every page. Restyles the shared components
   so no page markup needs rewriting. Rules are in DESIGN.md.
   Identity: AxiWaste navy, white and concrete grey, one hi-vis yellow
   signal (skips, chevrons, site signage). Condensed Archivo type.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("Helvetica"), local("Roboto");
  size-adjust: 98%;
  ascent-override: 92%;
  descent-override: 22%;
}

:root {
  --navy-950: #071426;
  --navy-900: #0B1D35;
  --navy-800: #142C4D;
  --ink: #0B1D35;
  --text: #1E2A38;
  --muted: #4E5B69;
  --concrete: #ECEEF0;
  --concrete-2: #DFE3E7;
  --rule: #CBD2D9;
  --hivis: #FFCC00;
  --hivis-deep: #F0B800;

  /* Re-point main.css tokens so every existing component follows */
  --blue-600: #0B1D35;
  --blue-500: #0B1D35;
  --cyan-500: #FFCC00;
  --cyan-400: #FFCC00;
  --cyan-300: #FFE066;
  --slate-600: #4E5B69;
  --slate-800: #1E2A38;
  --grey-50: #ECEEF0;
  --grey-100: #DFE3E7;
  --grey-200: #CBD2D9;
  --green-600: #0B1D35;
  --green-50: #FFF6CC;

  --grad-brand: linear-gradient(#FFCC00, #FFCC00);
  --grad-brand-hover: linear-gradient(#F0B800, #F0B800);
  --grad-brand-active: linear-gradient(#E0AA00, #E0AA00);
  --grad-hero: linear-gradient(#0B1D35, #0B1D35);

  --font-head: "Archivo", "Archivo Fallback", "Arial Narrow", Arial, sans-serif;
  --font-body: "Archivo", "Archivo Fallback", Arial, sans-serif;

  --radius-s: 3px;
  --radius-m: 0px;
  --radius-l: 0px;
  --shadow-card: none;
  --shadow-card-hover: none;
  --container: 1200px;

  --chevrons: repeating-linear-gradient(-45deg, #FFCC00 0 16px, #0B1D35 16px 32px);
}

/* ---------- Base ---------- */
body { color: var(--text); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%; }
a { color: var(--ink); }
a:hover { color: var(--ink); text-decoration-color: var(--hivis); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; border-radius: 0; box-shadow: 0 0 0 6px var(--ink); }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.005em; }
h1, h2 { font-stretch: 75%; font-weight: 800; line-height: 1.0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3, h4 { font-stretch: 90%; font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.4rem; }
.lede { color: var(--text); font-size: 1.2rem; }

/* ---------- Template chrome removed ---------- */
.kicker, .badge-pill, .card .icon { display: none !important; }
.hero h1 .grad-text, .grad-text { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: inherit !important; }
.card .card-link::after { content: none; }
.reveal, .reveal.visible { opacity: 1 !important; transform: none !important; transition: none !important; }
.section-head--centre { margin-left: 0; margin-right: 0; text-align: left; }
.section-head { max-width: 820px; margin-bottom: 40px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-900); border-bottom: 0; box-shadow: inset 0 -4px 0 var(--hivis); }
.nav-bar { min-height: 76px; }
.brand img { height: 46px; }
.nav-links a { color: #E8EDF3; font-family: var(--font-body); font-weight: 550; border-radius: 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--hivis); }
.dropdown { border-radius: 0; border-top: 4px solid var(--hivis); box-shadow: 0 18px 40px rgba(7, 20, 38, 0.25); }
.dropdown a { color: var(--text); }
.dropdown a:hover { background: var(--concrete); color: var(--ink); box-shadow: none; }
@media (max-width: 1200px) {
  .nav-links { background: var(--navy-950); }
  .dropdown { border-top: 0; box-shadow: none; }
  .dropdown a { color: #CBD5E1; }
  .dropdown a:hover { background: transparent; color: #fff; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 3px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; box-shadow: none !important; }
.btn--primary { background: var(--hivis); color: var(--ink); border: 2px solid var(--hivis); }
.btn--primary:hover { background: var(--hivis-deep); border-color: var(--hivis-deep); color: var(--ink); }
.btn--primary:active { background: #E0AA00; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost-dark { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); }
.btn--ghost-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn--ghost, .section--navy .btn--ghost, .cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero .btn--ghost:hover, .section--navy .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--navy-900); padding: 88px 0 96px; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--chevrons); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lede { color: #D5DDE6; max-width: 60ch; }
.hero-status, .hero .note { color: #C2CCD7 !important; }
.hero-panel { background: #fff; color: var(--text); border: 0; border-top: 6px solid var(--hivis); border-radius: 0; }
.hero-panel p { color: var(--muted) !important; }
.hero-panel p[style*="color:var(--white)"] { color: var(--ink) !important; }
.hero-panel [style*="border-bottom:1px dashed"] { border-bottom-color: var(--rule) !important; }
.trust-strip a, .trust-strip li { color: #E8EDF3; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--grey { background: var(--concrete); }
.section--navy { background: var(--navy-900); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p, .section--navy .lede, .section--navy li { color: #D5DDE6; }
.section--navy a:not(.btn) { color: #fff; }
.section + .section:not(.section--grey):not(.section--navy) { border-top: 1px solid var(--rule); }

/* ---------- Cards become ruled blocks ---------- */
.card-grid { gap: 40px 36px; }
.card {
  background: transparent;
  border: 0;
  border-top: 4px solid var(--ink);
  border-radius: 0;
  padding: 20px 0 0;
  box-shadow: none;
}
.card:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.card h3, .card h4 { font-size: 1.3rem; margin-bottom: 0.45em; }
.card p { color: var(--muted); }
.section--navy .card { border-top-color: var(--hivis); }
.section--navy .card h3, .section--navy .card h4 { color: #fff; }
.section--navy .card p { color: #C9D3DE; }
.card .card-link { font-family: var(--font-body); font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hivis); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Panels that really are separate objects (forms, calculator) */
.calc-panel { background: #fff; border: 0; border-top: 6px solid var(--hivis); border-radius: 0; box-shadow: 0 1px 0 var(--rule); }
.calc-shell aside .card { border-top-width: 2px; }
.calc-summary, .gs-side .fact { background: var(--navy-900); border-radius: 0; }
.calc-summary .big-number, .stat-card h3 { background: none; color: var(--hivis); -webkit-background-clip: border-box; background-clip: border-box; }
.stat-card h3 { color: var(--ink); }
.section--navy .stat-card h3 { color: var(--hivis); }

/* ---------- Steps: numbered like bay markers ---------- */
.step { background: transparent; border: 0; border-top: 4px solid var(--ink); border-radius: 0; box-shadow: none; padding: 30px 0 0; }
.step::before { background: var(--hivis); color: var(--ink); border-radius: 0; top: -18px; left: 0; padding: 6px 10px; font-family: var(--font-body); font-weight: 800; }
.section--navy .step { border-top-color: var(--hivis); }
.section--navy .step p { color: #C9D3DE; }
.section--navy .step h4 { color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { border-radius: 0; border: 0; border-top: 4px solid var(--ink); box-shadow: none; }
table.data thead th { background: var(--navy-900); font-family: var(--font-body); }
table.data thead th.highlight { background: var(--hivis); color: var(--ink); }
table.data tbody .highlight { background: #FFF6CC; }
table.data tbody tr:hover { background: var(--concrete); }

/* ---------- Forms ---------- */
.field label, .tool-row label { font-family: var(--font-body); color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea,
.tool-row select, .tool-row input { border: 2px solid var(--rule); border-radius: 3px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hivis); }
.chip span { border-radius: 3px; border-width: 2px; }
.chip input:checked + span { background: var(--hivis); border-color: var(--ink); color: var(--ink); }
.option-card .oc-body { border-radius: 0; }
.option-card input:checked + .oc-body { background: #FFF6CC; border-color: var(--ink); box-shadow: none; }
.stepper .st { border-radius: 0; }
.stepper .st.active { background: var(--hivis); }
.step-label { color: var(--ink); text-transform: none; letter-spacing: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); border-radius: 0; position: relative; padding-top: 74px; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--chevrons); }
.cta-band p { color: #D5DDE6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); position: relative; padding-top: 86px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--chevrons); }
.site-footer h3, .site-footer h4 { font-family: var(--font-body); }
.site-footer a:hover { color: var(--hivis); }

/* ---------- Legal pages ---------- */
.legal-summary { border-radius: 0; border: 0; border-left: 6px solid var(--hivis); }

/* ---------- Large product screenshots ---------- */
/* Screens break out of the text column to up to 1440px wide, and every one
   opens full size on click or tap. */
.shot { width: min(1440px, calc(100vw - 32px)); margin: 40px 0 0 calc(50% - min(720px, calc(50vw - 16px))); transform: none; }
.shot > a { display: block; cursor: zoom-in; }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { max-width: 1200px; margin: 14px auto 0; padding: 0 24px; color: var(--muted); font-size: 1rem; }
.shot figcaption strong { color: var(--ink); }
.shot-stack { gap: 72px; }
.section--navy .shot figcaption, .shot--dark figcaption { color: #C9D3DE; }
.section--navy .shot figcaption strong, .shot--dark figcaption strong { color: #fff; }
.section--navy .shot figcaption a, .shot--dark figcaption a { color: #fff; }
.shot-phones { width: auto; margin-left: 0; }
.shot-phones__row { max-width: none; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; gap: 40px; }
@media (max-width: 720px) {
  .shot, .shot-stack .shot { width: calc(100% + 32px); margin-left: -16px; }
  .shot figcaption { padding: 0 12px; font-size: 0.95rem; }
  .shot-phones__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.shot-hint { display: block; margin-top: 4px; font-size: 0.88rem; color: inherit; opacity: 0.85; }

/* Divider strip used on the homepage */
.chevron-strip { height: 14px; background: var(--chevrons); }

/* ---------- Cookie bar and injected widgets ---------- */
.cookie-btn, .demo-modal__panel, .cookie-bar { border-radius: 0 !important; }

/* Homepage specifics (inline styles in index.html) */
.hero-panel span[style*="#7fe0b0"] { color: var(--ink) !important; border-color: var(--ink) !important; background: var(--hivis); }
#axw-phases .scene-chip { border-color: rgba(255, 255, 255, 0.3) !important; border-radius: 0 !important; }
#axw-phases .scene-chip.active { background: var(--hivis) !important; color: var(--ink) !important; border-color: var(--hivis) !important; transform: none !important; }
#notes-first { background: var(--concrete); border-bottom: 0 !important; }
.shot-stack .shot { margin: 0 0 0 calc(50% - min(720px, calc(50vw - 16px))); }
.calc-shell > * { min-width: 0; }
@media (max-width: 480px) { .calc-panel { padding: 24px 18px; } .card-link { overflow-wrap: anywhere; } }
@media (max-width: 420px) { .stat-row { grid-template-columns: 1fr; } .stat-row > * { min-width: 0; } }

/* ---------- "What do you run?" operation finder (homepage) ---------- */
#what-you-run { padding-top: 72px; }
.op-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 4px solid var(--ink); }
.op-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline;
  padding: 22px 0 22px 18px; border-bottom: 1px solid var(--rule);
  color: var(--text); text-decoration: none !important; position: relative;
}
.op-row::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 6px; background: var(--rule); transition: background 0.15s ease; }
.op-row:hover::before, .op-row:focus-visible::before { background: var(--hivis); }
.op-row:hover .op-row__more, .op-row:focus-visible .op-row__more { text-decoration-color: var(--hivis); }
.op-row__title { font-family: var(--font-head); font-stretch: 80%; font-weight: 800; font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
.op-row__text { grid-column: 1 / -1; color: var(--muted); max-width: 52ch; }
.op-row__more { grid-row: 1; grid-column: 2; font-weight: 700; font-size: 0.92rem; color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .op-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .op-row { grid-template-columns: 1fr; }
  .op-row__more { grid-row: auto; grid-column: 1; margin-top: 6px; }
}

.setup-strip { margin-top: 56px; padding: 32px 0 0; border-top: 4px solid var(--ink); }
.setup-strip h3 { font-size: 1.6rem; font-stretch: 80%; font-weight: 800; margin-bottom: 18px; }
.setup-strip dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0 0 20px; }
.setup-strip dt { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.setup-strip dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .setup-strip dl { grid-template-columns: 1fr; gap: 16px; } }
/* finder rows: title, text, then the link underneath; content top-aligned */
.op-row { grid-template-columns: 1fr; align-content: start; }
.op-row__more { grid-row: auto; grid-column: 1; margin-top: 8px; justify-self: start; }
.op-row__more { white-space: normal; } .op-list > * { min-width: 0; }
