/* ==========================================================================
   01-tokens.css  |  DESIGN TOKENS (the single source of truth)
   --------------------------------------------------------------------------
   Everything visual is a CSS variable here. To restyle the site, edit values
   in this file only. All other files use var(--cds-*).

   NAMING: --cds-<group>-<name>.  Prefix "cds-" avoids clashes with Astra/plugins.

   RESPONSIVE STRATEGY (mobile first, mostly fluid)
   - Font sizes, spacing and section padding use clamp(min, fluid, max), so they
     scale smoothly with the screen instead of jumping at breakpoints.
   - Grids use auto-fit/minmax, so columns appear as space allows.
   - Only a few real breakpoints are used (min-width, in em so they respect zoom):
        45em  = 720px   tablets portrait (iPad mini 744px): grids go to 2 columns
        56em  = 896px   two-column splits (text + media) begin; iPad portrait stays stacked
        64em  = 1024px  iPad landscape / iPad Pro 12.9 portrait / small laptops: 3-4 column grids
        80em  = 1280px  standard desktops (1280x900 up to 1920x1080)
     Phones (320-719px) use the base, un-queried styles.
   - Astra's own header switches to the mobile menu at 921px (set in Customizer).
   ========================================================================== */

:root {
  /* ---------- Brand colours (from the CDS & Co. palette sheet) ---------- */
  --cds-blue:        #2f39ff; /* PRIMARY. Buttons, links, key accents */
  --cds-blue-500:    #6067fc; /* lighter blue, hover/secondary accents */
  --cds-blue-200:    #aeb2fb; /* tint. Use for text/links on DARK backgrounds */
  --cds-navy:        #111143; /* dark sections, footer, hero (dark variant) */
  --cds-cream:       #f6f7ff; /* NOT cream: kept as a name only, now a pale blue (client does not want cream) */
  --cds-white:       #ffffff;
  --cds-page:        #f8f8ff; /* page background (soft lavender white) */
  --cds-wash:        #eef1ff; /* soft blue wash used for alternate sections */
  --cds-ink:         #171717; /* default text colour */
  --cds-black:       #000000;
  --cds-grey-500:    #828282; /* decorative only (3.9:1 on white = fails AA for text) */
  --cds-grey-100:    #ededed; /* borders, dividers, light fills */
  --cds-orange:      #f15928; /* ACCENT. Small highlights, secondary button */
  --cds-orange-400:  #ed8361;
  --cds-orange-300:  #e7a58f;
  --cds-orange-200:  #edc6ba; /* soft peach, used in background glows */

  /* Derived neutral for readable secondary text (7.5:1 on white). Not in the
     brand sheet; added only to keep muted text accessible. */
  --cds-text-muted:  #484848;

  /* Semantic aliases: use these in components so a theme swap is easy */
  --cds-text:        var(--cds-ink);
  --cds-text-inverse: var(--cds-white);
  --cds-link:        var(--cds-blue);
  --cds-link-hover:  var(--cds-navy);
  --cds-border:      var(--cds-grey-100);
  --cds-focus:       var(--cds-blue);

  /* ---------- Typography ---------- */
  --cds-font-heading: "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --cds-font-body:    "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Fluid type scale: clamp(smallest phone, fluid middle, largest desktop) */
  --cds-fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);    /* 16px -> 17px (max 18px rule) */
  --cds-fs-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14px -> 15px */
  --cds-fs-lead: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);      /* intro paragraphs: 16px -> 18px MAX */
  --cds-fs-h1: clamp(2.375rem, 1.6rem + 3.4vw, 3.75rem);      /* 38px -> 60px */
  --cds-fs-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);         /* 30px -> 48px */
  --cds-fs-h3: clamp(1.0625rem, 1.02rem + 0.25vw, 1.25rem);   /* 17px -> 20px */
  --cds-fs-h4: clamp(1rem, 0.97rem + 0.15vw, 1.125rem);        /* 16px -> 18px */
  --cds-fs-stat: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);         /* big numbers */
  --cds-lh-body: 1.65;
  --cds-lh-heading: 1.1;
  --cds-ls-heading: -0.04em;  /* tight headings, as on the Vionsys reference */

  /* ---------- Spacing ---------- */
  --cds-gap-xs: 0.5rem;
  --cds-gap-sm: 0.875rem;
  --cds-gap-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --cds-gap-lg: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  --cds-gap-xl: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  --cds-section-y: clamp(3.5rem, 2rem + 6vw, 7rem);  /* top/bottom padding of every section */
  --cds-gutter: clamp(1rem, 0.5rem + 3vw, 2.5rem);   /* page side padding */

  /* ---------- Layout widths ---------- */
  --cds-container: 76rem;       /* 1216px content width on big screens */
  --cds-container-narrow: 52rem;
  --cds-measure: 68ch;          /* ideal line length for reading */

  /* ---------- Shape ---------- */
  --cds-radius-sm: 0.75rem;
  --cds-radius-md: 1.25rem;
  --cds-radius-lg: 1.75rem;
  --cds-radius-xl: 2.5rem;
  --cds-radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --cds-shadow-sm: 0 1px 2px rgba(17, 17, 67, 0.06), 0 2px 8px rgba(17, 17, 67, 0.05);
  --cds-shadow-md: 0 8px 28px rgba(17, 17, 67, 0.10);
  --cds-shadow-lg: 0 20px 60px rgba(17, 17, 67, 0.16);

  /* ---------- Frosted glass ("glassmorphism") ----------
     Glass only looks like glass over a coloured/gradient background, so use
     .cds-card--glass inside a .cds-section--aurora or --navy section. */
  --cds-glass-bg: rgba(255, 255, 255, 0.58);
  --cds-glass-border: rgba(255, 255, 255, 0.75);
  --cds-glass-blur: 18px;
  --cds-glass-bg-dark: rgba(255, 255, 255, 0.08);
  --cds-glass-border-dark: rgba(255, 255, 255, 0.2);

  /* ---------- Motion ---------- */
  --cds-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cds-speed: 0.25s;

  /* ---------- Layers ---------- */
  --cds-z-header: 100;
}
