/* ============================================================
   Baxtop website styles
   One stylesheet for the whole site. Edit colours and sizes in
   the ":root" block below and the change applies everywhere.
   ============================================================ */

:root {
  /* Colours */
  --ink: #14181c;          /* darkest, used for dark sections and body text */
  --slate: #333c44;        /* secondary dark */
  --steel: #5a666f;        /* muted text */
  --paper: #edebe6;        /* light page background, warm concrete grey */
  --white: #ffffff;
  --hivis: #e1611b;        /* hi-vis orange, for blocks and large marks */
  --hivis-deep: #a8460c;   /* darker orange, safe for small text on light */
  --hivis-light: #ff8a45;  /* lighter orange, for text on dark */
  --tape: #c9cdd0;         /* reflective silver-grey */

  /* Type */
  --display: "Archivo", "Arial Narrow", Helvetica, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Spacing */
  --gap: 1.25rem;
  --section-y: 5.5rem;
  --max: 68rem;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 64ch; }

a { color: var(--hivis-deep); }
a:hover { color: var(--ink); }

/* Keyboard focus must always be obvious */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--section-y) 0; }

.dark {
  background: var(--ink);
  color: var(--paper);
}
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark a { color: var(--hivis-light); }
.dark a:hover { color: var(--white); }
.dark .lede { color: #c3c9ce; }

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--slate);
  max-width: 46ch;
}

/* Reflective tape divider: the one decorative motif on the site,
   borrowed from the banding on hi-vis workwear. */
.tape {
  height: 14px;
  background: linear-gradient(
    to bottom,
    var(--tape) 0 4px,
    var(--hivis) 4px 10px,
    var(--tape) 10px 14px
  );
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--white);
  padding: 0.9rem 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
}
.wordmark:hover { color: var(--white); }
.wordmark span { color: var(--hivis); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--hivis-light);
  text-decoration: underline;
}

.header-phone {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--hivis-light); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--hivis);
  color: #1a0d04;
}
.btn-primary:hover {
  background: var(--white);
  color: var(--ink);
}
.btn-secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.dark .btn-secondary { color: var(--paper); }
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}
.dark .btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.75rem 0 0.9rem;
}
.actions + .fineprint { margin-top: 0; }

.fineprint {
  font-size: 0.95rem;
  color: var(--steel);
}
.dark .fineprint { color: #a7b0b7; }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0 5rem;
}
.hero h1 { color: var(--white); }
.hero .lede {
  color: #c9ced3;
  font-size: 1.35rem;
  max-width: 40ch;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #2c343b;
}
.hero-points li {
  border-bottom: 1px solid #2c343b;
  padding: 0.85rem 0 0.85rem 1.5rem;
  position: relative;
  color: #d5dade;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--hivis);
}

/* ---------- Content blocks ---------- */

.cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.5rem;
}
.cols h3 { margin-bottom: 0.35rem; }
.cols p { margin-bottom: 0; font-size: 1rem; }

/* Two-column split for compare-style content */
.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  margin-top: 2.5rem;
}
.panel {
  border-top: 4px solid var(--ink);
  padding-top: 1.25rem;
}
.panel.accent { border-top-color: var(--hivis); }
.panel ul {
  margin: 0;
  padding-left: 1.1rem;
}
.panel li { margin-bottom: 0.45rem; }

/* Numbered sequence, used only where the content really is a sequence */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.steps li {
  counter-increment: step;
  border-top: 1px solid #3a434b;
  padding-top: 0.9rem;
  font-size: 1rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--hivis);
  margin-bottom: 0.25rem;
}

/* Sector list */
.sectors {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.sectors h3 { margin-bottom: 0.3rem; }
.sectors p { margin: 0; font-size: 1rem; color: var(--slate); }

/* Callout used for the honest limits statement */
.callout {
  border-left: 6px solid var(--hivis);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin-top: 2rem;
}
.callout p { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b6bec4;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--hivis-light); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-bottom: 2.5rem;
}
.site-footer h2 {
  font-size: 1rem;
  font-family: var(--body);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.legal { border-top: 1px solid #2c343b; padding-top: 1.5rem; }
.legal p { max-width: none; margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 46rem) {
  :root { --section-y: 3.75rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .site-header .wrap { gap: 0.75rem 1.25rem; }
  .wordmark { width: 100%; margin-right: 0; }
}

/* ---------- Respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
