/* ============================================================
   00-base.css — reset, CSS variables, base typography
   Disable last. Everything else depends on the variables here.
   ============================================================ */

:root {
  /* Colours */
  --c-ink: #1a1a1a;
  --c-ink-soft: #2b2b2b;
  --c-timber: #1e3a5f;          /* deep blue replaces dark timber for anchor sections */

  /* New brand palette: blue + green + hi-vis yellow */
  --c-blue: #1e3a5f;             /* primary brand — eyebrows, banners, links, hover */
  --c-blue-dark: #0f2540;        /* hover/active states */
  --c-blue-light: #3a6a91;       /* lighter accent, link hover on dark bg */
  --c-green: #2d6a4f;            /* primary CTA — action buttons, success */
  --c-green-dark: #1d4a35;       /* CTA hover */
  --c-yellow: #f9c74f;           /* hi-vis pop — stars, badges, status dot */
  --c-yellow-dark: #e0a82e;      /* yellow hover */

  /* Backwards-compat: anywhere that still says --c-amber gets the new blue */
  --c-amber: var(--c-blue);
  --c-amber-dark: var(--c-blue-dark);

  --c-bg: #f5f7f9;               /* slightly cooler bg to suit blue/green */
  --c-card: #eaeef2;
  --c-line: #d8dee5;
  --c-muted: #5d6772;
  --c-white: #ffffff;
  --c-success: #2d6a4f;

  /* Type — Inter is the site font; system fallback ensures graceful degrade */
  --f-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-25: 12px;  /* mid-step between s-2 and s-3 — useful for tight inner gaps */
  --s-3: 16px;
  --s-35: 20px;  /* mid-step between s-3 and s-4 — fills the gap in the 4/8/12/16/20/24 run */
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;

  /* Layout */
  --container: 1280px;
  --radius: 6px;
  --radius-md: 10px;   /* mid-radius — between card corners and pill; used for inner chips */
  --radius-lg: 14px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  color: var(--c-ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--s-3); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: var(--s-3);
}

/* Buttons — modern pill style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 13px 26px;
  border-radius: 999px;            /* full pill */
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;            /* sentence case, not SHOUTING */
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 37, 64, 0.06);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 37, 64, 0.16); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(15, 37, 64, 0.08); }

.btn-primary { background: var(--c-green); color: var(--c-white); }
.btn-primary:hover { background: var(--c-green-dark); }

.btn-yellow { background: var(--c-yellow); color: var(--c-ink); }
.btn-yellow:hover { background: var(--c-yellow-dark); }

.btn-dark { background: var(--c-ink); color: var(--c-white); }
.btn-dark:hover { background: var(--c-timber); }

.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-white); }
.btn-ghost:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
}

.btn-light { background: var(--c-white); color: var(--c-ink); }
.btn-light:hover { background: var(--c-card); }

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip-to-content — invisible until focused via keyboard Tab.
   Like a secret door: normal visitors walk past it, keyboard users see it appear. */
.sr-only-focusable {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  z-index: 9999;
}
.sr-only-focusable:focus {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  width: auto; height: auto;
  clip: auto; white-space: normal;
  padding: 10px 20px;
  background: var(--c-green);
  color: var(--c-white);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Scrollbar — site-wide refinement
   Thin track, soft muted thumb, brand blue on hover.
   Applies to <html>, <body>, and any container with overflow.
   Specific overrides (e.g. testimonials carousel hides its bar)
   still win because they target a specific selector.
============================================================ */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--c-line) transparent;
}

/* WebKit / Chromium / Safari */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background 0.2s ease;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--c-blue);
  background-clip: content-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
