/* ============================================================
   Spokane Cleaning Group — Design Tokens
   Single source of truth. Reference these via var(--token).
   ============================================================ */

:root {
  /* ---------- Brand ---------- */
  --color-brand-deep: #0E3B33;
  --color-brand: #1F8B7E;
  --color-brand-soft: #E6F4F1;

  /* ---------- Neutrals ---------- */
  --color-ink: #0B1A25;
  --color-ink-muted: #5C6B76;
  --color-line: #DCE3E6;
  --color-surface: #FFFFFF;
  --color-bg: #F7F9FA;
  --color-bg-dark: #0E3B33;
  --color-on-dark: #F7F9FA;

  /* ---------- Functional ---------- */
  --color-success: #1F8B7E;
  --color-warning: #D97706;
  --color-danger: #B91C1C;

  /* ---------- Focus ---------- */
  --focus-ring: 0 0 0 3px rgba(31, 139, 126, 0.4);

  /* ---------- Typography ---------- */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-display: 3.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.55;
  --lh-loose: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---------- Radii ---------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px rgba(14, 59, 51, 0.06);
  --shadow-md: 0 4px 14px rgba(14, 59, 51, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 59, 51, 0.12);

  /* ---------- Containers ---------- */
  --container-narrow: 720px;
  --container-default: 1120px;
  --container-wide: 1280px;

  /* ---------- Z-index ---------- */
  --z-header: 50;
  --z-sticky-bar: 60;
  --z-modal: 80;
  --z-toast: 90;
}

@media (min-width: 1024px) {
  :root {
    --fs-xl: 2rem;
    --fs-2xl: 3rem;
  }
}

/* ============================================================
   Reset + base element defaults
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 0; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-brand-deep);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-xl); font-weight: 700; line-height: var(--lh-snug); }
h3 { font-size: var(--fs-lg); font-weight: 600; line-height: var(--lh-snug); }
h4 { font-size: var(--fs-md); font-weight: 600; }

p { text-wrap: pretty; }

@media (min-width: 1024px) {
  h1 { font-size: var(--fs-3xl); }
}

/* ============================================================
   Utility primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.section {
  padding-block: var(--space-7);
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-9); }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--color-ink-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-brand-deep);
  color: var(--color-on-dark);
  z-index: 100;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

/* visually hidden, still readable by AT */
.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;
}
