/* ============================================================
   Jackson Veterinary Clinic — Design Tokens
   Rooted in the 1981 logo (navy + copper), modernized 2026-06-18:
   cool whites, neutralized sand, a cleaner copper, and one cool-slate
   accent — heritage DNA without the sepia haze. Dark theme.
   ============================================================ */

:root {
  /* --- Brand core (navy + copper from the logo; whites/neutrals cooled) --- */
  --ink-900: #0e2b42;   /* logo disc navy, slightly cooled — page base */
  --sand:    #aeb4b6;   /* neutralized cool grey (was warm logo sand) */
  --sand-lt: #c9d0d2;   /* light cool neutral */
  --copper:  #e2935a;   /* cleaner terracotta copper — primary accent / CTA */
  --slate:   #7d9cb0;   /* cool accent — AA as small text on navy (5.0:1) */
  --paper:   #F8F8F8;   /* near-white — band cards */
  --band:    #ECEEED;   /* light cool surface — the "beige band" backgrounds */

  /* --- Dark surface ramp (navy-tinted) --- */
  --ink-950: #081c2b;   /* deepest — behind base, footer */
  --ink-850: #16384c;   /* raised panels */
  --ink-800: #1a4055;   /* cards */
  --ink-700: #234e63;   /* card hover / borders-strong */
  --ink-600: #2e5a70;   /* dividers, hairlines on dark */

  /* --- Accent tints --- */
  --copper-bright: #f2a86c; /* hover / active accent */
  --copper-deep:   #b5713c; /* pressed / on-light accent (graphics only) */
  --copper-on-sand:#7a3e14; /* deep saddle — copper accent TEXT on the light band (AA: 7.1:1 on #ECEEED) */

  /* --- Text on dark --- */
  --text:      #f4f6f5;  /* cool near-white — primary copy */
  --text-soft: #aeb4b6;  /* cool grey — secondary copy */
  --text-mute: #8aa0ac;  /* blue-gray — captions, meta */

  /* --- Hairlines & glows --- */
  --line:       rgba(174,180,182, 0.16); /* cool grey @ low alpha */
  --line-strong:rgba(174,180,182, 0.30);
  --glow-copper:rgba(226,147,90, 0.22);

  /* --- Radius --- */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* --- Spacing scale (8pt) --- */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  /* --- Type scale (fluid) --- */
  --t-xs:  clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --t-sm:  clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --t-base:clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lg:  clamp(1.2rem, 1.12rem + 0.4vw, 1.375rem);
  --t-xl:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --t-2xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --t-3xl: clamp(2.75rem, 2.2rem + 2.75vw, 4.5rem);
  --t-4xl: clamp(3.5rem, 2.6rem + 4.5vw, 6.5rem);

  /* --- Typography families --- */
  /* Display matches the logo wordmark: bold condensed geometric grotesque. */
  --font-display: 'Barlow Semi Condensed', system-ui, sans-serif;
  --font-accent:  'Barlow Semi Condensed', system-ui, sans-serif; /* pull-quotes, monograms */
  --font-sans:    'Public Sans', system-ui, sans-serif;
}

/* ============================================================
   Accessibility — WCAG 2.1 AA (shared across every page)
   ============================================================ */

/* 2.4.7 / 2.4.11 — always-visible keyboard focus indicator.
   Copper-bright on the dark navy = ~6:1 (well above the 3:1 minimum). */
:focus-visible {
  outline: 3px solid var(--copper-bright);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Suppress the ring for pointer activation only (keyboard still shows it). */
:focus:not(:focus-visible) { outline: none; }

/* 2.4.1 — Skip to main content link (visible on focus). */
.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 1000;
  background: var(--copper); color: var(--ink-900);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; padding: 12px 20px; border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }
/* The <main> target receives focus after the skip — don't draw a box around the whole page. */
main:focus { outline: none; }

/* The burger is now a real <button>; strip the default button chrome. */
.burger { background: none; border: 0; font: inherit; color: inherit; }

/* 2.2.2 — Pause / Play control for the autoplaying hero video.
   Injected by assets/js/a11y.js; hidden when the user prefers reduced motion. */
.hero-pause {
  position: absolute; z-index: 4;
  right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vw, 30px);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(8,28,43,.62); border: 1px solid var(--line-strong);
  color: var(--text); cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.hero-pause:hover { background: var(--ink-850); color: var(--copper-bright); }
.hero-pause svg { width: 18px; height: 18px; fill: currentColor; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero-pause { display: none; } }
