/* ==========================================================================
   Toyota Tanzania Limited — Design Tokens v1.0
   Source of truth: Toyota Brand Hub (brand.toyota.com) + TTL logo artwork.
   Import this file first in any TTL website or web app.
   ========================================================================== */

/* Toyota Type is Toyota-owned and licensed for work on Toyota's behalf.
   Download the WOFF2 web toolkit from the Brand Hub (login required) and
   place the files in /fonts. Until then the fallback stack is used. */
/* @font-face { font-family: "Toyota Type"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/ToyotaType-Light.woff2") format("woff2"); } */
/* @font-face { font-family: "Toyota Type"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ToyotaType-Book.woff2") format("woff2"); } */
/* @font-face { font-family: "Toyota Type"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ToyotaType-Regular.woff2") format("woff2"); } */
/* @font-face { font-family: "Toyota Type"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ToyotaType-Semibold.woff2") format("woff2"); } */
/* @font-face { font-family: "Toyota Type"; font-weight: 600; font-style: italic; font-display: swap; src: url("fonts/ToyotaType-SemiboldItalic.woff2") format("woff2"); } */
/* @font-face { font-family: "Toyota Type"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ToyotaType-Bold.woff2") format("woff2"); } */
/* @font-face { font-family: "Toyota Type"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/ToyotaType-Black.woff2") format("woff2"); } */

:root {
  /* ---------- Core brand colours (Toyota global palette) ---------- */
  --ttl-red:            #E02A29;   /* Toyota Red (TTL) · RGB 224 42 41 · CMYK 0 81 82 12 · always 100% opacity */
  --ttl-black:          #000000;   /* PMS Black C */
  --ttl-white:          #FFFFFF;
  --ttl-gray:           #58595B;   /* PMS Black C 80% · CMYK 0 0 0 80 */

  /* ---------- TTL digital extension (UI neutrals & states) ---------- */
  --ttl-red-pressed:    #BE2423;   /* Toyota Red + 15% black — hover/pressed on red controls */
  --ttl-gray-900:       #1A1A1A;   /* footer / dark surfaces */
  --ttl-gray-700:       #58595B;   /* = --ttl-gray; secondary text */
  --ttl-gray-400:       #8C8D8F;   /* disabled text on white (decorative only) */
  --ttl-gray-200:       #D9D9DA;   /* borders, dividers */
  --ttl-gray-100:       #EEEEEF;   /* input fills, hover rows */
  --ttl-gray-50:        #F7F7F7;   /* alternate section background */
  --ttl-black-hover:    rgba(0,0,0,.08);  /* Toyota: black at reduced opacity for hover/active */
  --ttl-black-active:   rgba(0,0,0,.16);

  /* Feedback colours — UI only, never in marketing graphics */
  --ttl-success:        #1E7B34;
  --ttl-warning:        #8A5A00;
  --ttl-error:          #E02A29;
  --ttl-info:           #1A1A1A;

  /* ---------- Semantic roles ---------- */
  --color-bg:           var(--ttl-white);
  --color-bg-alt:       var(--ttl-gray-50);
  --color-bg-inverse:   var(--ttl-black);
  --color-text:         var(--ttl-black);
  --color-text-muted:   var(--ttl-gray);
  --color-text-inverse: var(--ttl-white);
  --color-accent:       var(--ttl-red);
  --color-border:       var(--ttl-gray-200);
  --color-focus:        var(--ttl-black);

  /* ---------- Typography ---------- */
  --font-brand: "Toyota Type", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  --fw-light: 300; --fw-book: 400; --fw-regular: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 900;

  /* Web type scale (desktop → fluid down to mobile) */
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);   /* 40 → 72px */
  --fs-h1:      clamp(2rem,   1.5rem + 2vw,   3rem);     /* 32 → 48px */
  --fs-h2:      clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); /* 26 → 36px */
  --fs-h3:      clamp(1.375rem, 1.2rem + .7vw, 1.75rem); /* 22 → 28px */
  --fs-h4:      1.25rem;   /* 20px */
  --fs-body-lg: 1.125rem;  /* 18px */
  --fs-body:    1rem;      /* 16px — minimum for body copy on web */
  --fs-small:   0.875rem;  /* 14px */
  --fs-legal:   0.75rem;   /* 12px — legal/disclaimers only */

  --lh-headline: 0.9;   /* Toyota digital headline leading 90% (uppercase / single-line) */
  --lh-heading:  1.1;   /* multi-line sentence-case headings */
  --lh-body:     1.45;  /* Toyota body & legal leading 145% */
  --tracking:    0;     /* Toyota: 0px tracking on digital */

  /* ---------- Spacing (4px base) ----------
     The large steps were tightened (48/64/96/128 → 40/48/64/96) so sections sit closer together
     and pages scroll less; the small steps used inside components are unchanged. */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 40px; --space-8: 48px;
  --space-9: 64px; --space-10: 96px;

  /* ---------- Layout ---------- */
  --container-max: 1440px;
  --grid-columns: 12;
  --gutter: 24px;                     /* 16px below 768px */
  --page-margin: clamp(16px, 4vw, 64px);
  --bp-sm: 576px; --bp-md: 768px; --bp-lg: 1024px; --bp-xl: 1280px; --bp-xxl: 1440px;

  /* ---------- Shape & elevation ---------- */
  --radius-0: 0;        /* logo platform, banners, image crops — square like the staging platform */
  --radius-sm: 4px;     /* inputs, chips */
  --radius-pill: 999px; /* buttons */
  --shadow-1: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);  /* cards on hover only; never on text or logos */

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 360ms;

  /* ---------- Icons ---------- */
  --icon-sm: 16px;  /* stroke 1px — UI navigation, always with a label */
  --icon-md: 32px;  /* stroke 2px — default */
  --icon-lg: 64px;  /* stroke 3px — pictograms */

  /* ---------- Logo ---------- */
  --logo-min-height: 24px;   /* height of the staging platform, digital */
  --logo-header-h: 36px;     /* desktop header */
  --logo-header-h-mobile: 28px;
}

@media (max-width: 767px) { :root { --gutter: 16px; } }
@media (prefers-reduced-motion: reduce) { :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; } }
