/* ------------------------------------------------------------------------
   Base stylesheet v4.0.0 — provided by the platform.

   Plumbing only: reset, design tokens, icon sizing, mobile-nav mechanics,
   form and accessibility helpers. The site's design lives in styles.css,
   which loads after this file and wins. Do not edit this file — it is
   regenerated on every build.
   ------------------------------------------------------------------------ */

/* ----------------------------------------------------------- design tokens */
/* Each colour is declared twice on purpose: --x-hsl is the raw triplet for
   alpha use — hsl(var(--primary-hsl) / 0.15) — and --x is the finished colour
   everything else uses. Re-theme by overriding the -hsl triplets. */

:root {
  --background-hsl: 0 0% 100%;
  --foreground-hsl: 222 47% 11%;
  --card-hsl: 0 0% 100%;
  --card-foreground-hsl: 222 47% 11%;
  --primary-hsl: 222 47% 31%;
  --primary-foreground-hsl: 210 40% 98%;
  --secondary-hsl: 210 40% 96%;
  --secondary-foreground-hsl: 222 47% 11%;
  --muted-hsl: 210 40% 96%;
  --muted-foreground-hsl: 215 16% 47%;
  --accent-hsl: 210 40% 94%;
  --accent-foreground-hsl: 222 47% 11%;
  --destructive-hsl: 0 72% 51%;
  --destructive-foreground-hsl: 210 40% 98%;
  --border-hsl: 214 32% 91%;
  --input-hsl: 214 32% 91%;
  --ring-hsl: 222 47% 31%;

  --background: hsl(var(--background-hsl));
  --foreground: hsl(var(--foreground-hsl));
  --card: hsl(var(--card-hsl));
  --card-foreground: hsl(var(--card-foreground-hsl));
  --primary: hsl(var(--primary-hsl));
  --primary-foreground: hsl(var(--primary-foreground-hsl));
  --secondary: hsl(var(--secondary-hsl));
  --secondary-foreground: hsl(var(--secondary-foreground-hsl));
  --muted: hsl(var(--muted-hsl));
  --muted-foreground: hsl(var(--muted-foreground-hsl));
  --accent: hsl(var(--accent-hsl));
  --accent-foreground: hsl(var(--accent-foreground-hsl));
  --destructive: hsl(var(--destructive-hsl));
  --destructive-foreground: hsl(var(--destructive-foreground-hsl));
  --border: hsl(var(--border-hsl));
  --input: hsl(var(--input-hsl));
  --ring: hsl(var(--ring-hsl));

  --radius: 0.625rem;

  /* Font stacks as tokens. No webfont ever loads — overrides must be fonts
     already on the visitor's device. */
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);

  /* Fluid type scale, for sites that want one ready-made. */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem);
}

/* ------------------------------------------------------------------- reset */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection { background: hsl(var(--primary-hsl) / 0.2); }

img, svg, video, canvas, iframe { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-family: var(--font-heading);
}
p { margin: 0 0 1rem; }
p, li { text-wrap: pretty; }

a { color: var(--primary); text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: calc(var(--radius) / 2);
}

/* break-word, NOT anywhere: 'anywhere' collapses min-content width and breaks
   ordinary words mid-way inside flex/grid items. */
h1, h2, h3, h4, p, li, td, th, dd, dt { overflow-wrap: break-word; }

/* ------------------------------------------------------------------ layout */

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ------------------------------------------------------------------- forms */
/* Accessible field plumbing with the iOS-safe 16px floor; restyle freely. */

.form { display: grid; gap: 1.125rem; }
.field { display: grid; gap: 0.4rem; }
.label { font-size: var(--text-sm); font-weight: 600; }

.input, .textarea, .select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  /* 16px minimum stops iOS Safari zooming the page on focus. */
  font-size: max(1rem, var(--text-sm));
}
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: var(--ring);
}
.textarea { min-height: 8rem; resize: vertical; }

/* --------------------------------------------------------------- site nav */
/* Mechanics only — a sticky bar and a CSS-only mobile toggle that works with
   zero JavaScript. The look is the site's to restyle or replace. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background-hsl) / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--foreground);
  text-decoration: none;
}
.brand img { max-height: 2.5rem; width: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: var(--text-sm);
}
.nav-link[aria-current="page"] { color: var(--primary); font-weight: 700; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--foreground);
  content: "";
  position: relative;
}
.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after { position: absolute; top: 6px; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--ring); outline-offset: 2px; }

@media (max-width: 47.9375rem) {
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-link { padding: 0.75rem; }
  .site-header .container { position: relative; flex-wrap: wrap; }
}

@media (min-width: 48rem) {
  .nav-toggle-label { display: none; }
}

/* -------------------------------------------------------------------- icon */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.2em;
  color: inherit;
}

/* ----------------------------------------------------------- mobile call bar */
/* Fixed call-to-action bar, phones only; body padding via :has() keeps the
   footer from hiding behind it. Children stretch to share the width. */

.mobile-cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: hsl(var(--background-hsl) / 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.mobile-cta-bar > * { flex: 1; text-align: center; }
body:has(.mobile-cta-bar) { padding-bottom: 4.25rem; }
@media (min-width: 48rem) {
  .mobile-cta-bar { display: none; }
  body:has(.mobile-cta-bar) { padding-bottom: 0; }
}

/* --------------------------------------------------------------- utilities */

.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-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
}
.skip-link:focus { left: 0; }
