/*
 * HelixMed base tokens.
 * Typography (Nunito Sans + semantic text tokens) follows the Figma design
 * system; Kadence remains in control of remaining layout defaults.
 *
 * Client-locked brand colors (override near-matches from Figma):
 * Primary #0A518E · Highlight #2BC0D0 · Gradient mid #3785C5
 */

:root {
  /* Brand colors */
  --vt-color-brand: #0a518e;
  --vt-color-brand-dark: #083f6e;
  --vt-color-brand-light: #3785c5;
  --vt-color-brand-soft: #e8f1f8;
  --vt-color-highlight: #2bc0d0;

  /* HelixMed aliases (map onto vt_* technical tokens) */
  --hm-primary: var(--vt-color-brand);
  --hm-primary-light: var(--vt-color-brand-light);
  --hm-highlight: var(--vt-color-highlight);
  --hm-heading: #1e293b;
  --hm-body: #64748b;
  --hm-muted: #6b7280;
  --hm-surface: #ffffff;
  --hm-surface-soft: #f9faff;
  --hm-border: #f1f5f9;

  /* Neutral colors */
  --vt-color-neutral-0: #ffffff;
  --vt-color-neutral-50: #f8fafc;
  --vt-color-neutral-100: #f1f5f9;
  --vt-color-neutral-200: #e2e8f0;
  --vt-color-neutral-300: #cbd5e1;
  --vt-color-neutral-500: #64748b;
  --vt-color-neutral-700: #334155;
  --vt-color-neutral-800: #1e293b;
  --vt-color-neutral-900: #0f172a;

  /* Text colors */
  --vt-color-text: var(--vt-color-neutral-900);
  --vt-color-text-muted: var(--vt-color-neutral-500);
  --vt-color-text-inverse: var(--vt-color-neutral-0);
  --vt-color-link: var(--vt-color-brand);
  --vt-color-link-hover: var(--vt-color-brand-dark);

  /* Background, surface, and border colors */
  --vt-color-background: var(--vt-color-neutral-0);
  --vt-color-background-alt: var(--vt-color-neutral-50);
  --vt-color-surface: var(--vt-color-neutral-0);
  --vt-color-surface-alt: var(--vt-color-neutral-100);
  --vt-color-border: var(--vt-color-neutral-200);
  --vt-color-border-strong: var(--vt-color-neutral-300);

  /* Basic state colors */
  --vt-color-success: #15803d;
  --vt-color-success-soft: #dcfce7;
  --vt-color-warning: #b45309;
  --vt-color-warning-soft: #fef3c7;
  --vt-color-error: #b91c1c;
  --vt-color-error-soft: #fee2e2;
  --vt-color-focus: var(--vt-color-brand-light);

  /* Font families (Figma: Nunito Sans) */
  --vt-font-sans: "Nunito Sans", sans-serif;
  --vt-font-heading: var(--vt-font-sans);

  /* Font size scale */
  --vt-font-size-xs: 0.75rem;
  --vt-font-size-sm: 0.875rem;
  --vt-font-size-base: 1rem;
  --vt-font-size-md: 1.125rem;
  --vt-font-size-lg: 1.25rem;
  --vt-font-size-xl: 1.5rem;
  --vt-font-size-2xl: 2rem;
  --vt-font-size-3xl: 2.5rem;

  /* Font weight scale */
  --vt-font-weight-regular: 400;
  --vt-font-weight-medium: 500;
  --vt-font-weight-semibold: 600;
  --vt-font-weight-bold: 700;

  /* Line height scale */
  --vt-line-height-tight: 1.2;
  --vt-line-height-snug: 1.35;
  --vt-line-height-base: 1.6;
  --vt-line-height-relaxed: 1.75;

  /*
   * Semantic text tokens mapped from Figma (file GbrSk7Fs7OiPQWoHFWysM3).
   * Sizes are desktop-confirmed values; line heights are unitless ratios of
   * the confirmed px pairs (e.g. nav 16/24 = 1.5).
   */
  --vt-text-nav-size: 1rem;                 /* 16px */
  --vt-text-nav-line-height: 1.5;           /* 24px */
  --vt-text-hero-size: 4.5rem;              /* 72px */
  --vt-text-hero-line-height: 1.1;          /* 79.2px */
  --vt-text-hero-letter-spacing: -0.025em;  /* -1.8px at 72px */
  --vt-text-section-size: 1.875rem;         /* 30px */
  --vt-text-section-line-height: 1.2;       /* 36px */
  --vt-text-section-letter-spacing: -0.025em; /* -0.75px at 30px */
  --vt-text-card-size: 1.125rem;            /* 18px */
  --vt-text-card-line-height: 1.5556;       /* 28px */
  --vt-text-cta-size: 3rem;                 /* 48px */
  --vt-text-cta-line-height: 1.375;         /* 66px */
  --vt-text-small-size: 0.875rem;           /* 14px */
  --vt-text-small-line-height: 1.4286;      /* 20px */

  /* Spacing scale */
  --vt-space-0: 0;
  --vt-space-1: 0.25rem;
  --vt-space-2: 0.5rem;
  --vt-space-3: 0.75rem;
  --vt-space-4: 1rem;
  --vt-space-5: 1.25rem;
  --vt-space-6: 1.5rem;
  --vt-space-8: 2rem;
  --vt-space-10: 2.5rem;
  --vt-space-12: 3rem;
  --vt-space-16: 4rem;
  --vt-space-20: 5rem;

  /* Border radius scale */
  --vt-radius-sm: 0.25rem;
  --vt-radius-md: 0.5rem;
  --vt-radius-lg: 0.75rem;
  --vt-radius-xl: 1rem;
  --vt-radius-full: 999px;

  /* Shadow scale */
  --vt-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
  --vt-shadow-md: 0 8px 24px rgb(15 23 42 / 0.10);
  --vt-shadow-lg: 0 16px 40px rgb(15 23 42 / 0.12);

  /* Container tokens */
  --vt-container-max: 1200px;
  --vt-container-narrow: 900px;
  --vt-container-padding: clamp(1rem, 4vw, 2rem);

  /* Section spacing tokens */
  --vt-section-spacing-sm: clamp(2rem, 5vw, 3rem);
  --vt-section-spacing-md: clamp(3rem, 7vw, 5rem);
  --vt-section-spacing-lg: clamp(4rem, 9vw, 7rem);

  /* Shared page-hero overlay (Figma 154:1784) — pair with opacity: 0.9 on ::before */
  --vt-page-hero-overlay-gradient: linear-gradient(
    90deg,
    #0a518e 0%,
    #337cc0 49.519%,
    #2bc0d0 93.269%
  );

  /* Motion tokens */
  --vt-motion-duration-fast: 150ms;
  --vt-motion-duration-base: 250ms;
  --vt-motion-duration-slow: 400ms;
  --vt-motion-ease: ease;
  --vt-motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--vt-font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--vt-font-heading);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--vt-color-focus);
  outline-offset: 3px;
}
