/* ==========================================================================
   Design tokens — extracted from Figma file sywVmtEK0lqmS4kbqgvwsy (Homepage 2:2).
   The Figma file has no variables/styles; values were read from layer styles
   and sampled from the rendered frame. This is the ONLY file with raw colours.
   ========================================================================== */

/* Cascade order for the whole site. Unlayered rules (reduced-motion) win over all layers. */
@layer reset, base, components, pages;

@font-face {
  font-family: "Kumbh Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/kumbh-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Kumbh Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/kumbh-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---- Colour: brand ---- */
  --color-primary: #285078;          /* navy — headings, nav, cards */
  --color-primary-strong: #1d3d5c;   /* navy hover/pressed */
  --color-accent: #4cb752;           /* green — decorative only (stat bars). 2.35:1 on cream: fails AA */
  --color-accent-text: #4cb752;      /* green for TEXT: exact Figma brand green, chosen by UCI (2026-10-08).
                                        2.35:1 on cream, below WCAG AA (README open question 10) */
  --color-cta: #fcb74f;              /* amber — buttons, tag borders, impact numbers */
  --color-cta-hover: #f5a52c;

  /* ---- Colour: surfaces ---- */
  --color-page: #fcf4e8;             /* page background (cream) */
  --color-nav: #f7f3ea;              /* floating nav pill */
  --color-faq: #f7f1e7;              /* FAQ items */
  --color-footer: #eeeae4;           /* footer band — UCI palette (2026-10-08); unused since the Figma 1127:449 footer */
  /* Figma 1127:449 (UCI 2026-10-22): header bar = #fcf4e8 multiplied over the cream page;
     footer = #63a0dd → #306eac (54.3%) → #285078 multiplied over cream. Values are the blended results. */
  --color-header-bar: #f9e9d3;     /* unused since the floating nav pill (2026-10-27) */
  --color-footer-start: #6299c9;
  --color-footer-mid: #2f699c;
  --color-footer-end: #284d6d;
  --color-card: #2b537c;             /* service cards (slightly lighter navy in Figma) */
  --color-band-cta: #284d6d;         /* "Ready to build" band */
  --color-band-overlay: rgb(40 80 120 / 0.8); /* multiply overlay on photo bands */
  --color-hero-overlay: rgb(92 93 94 / 0.8);  /* Company Overview hero, Figma 42:37 */
  --color-hero-card-start: #133353;  /* homepage banner card gradient, Figma 899:997: #133353 → navy at 43.75% → #2966a4 */
  --color-hero-card-end: #2966a4;
  /* Diagonal navy gradient, Figma 1089:377: #133353 → navy at 46% → #2966a4, top-left → bottom-right.
     Hover state of the homepage service cards, banner card and impact cards (UCI 2026-10-21) */
  --gradient-navy-diagonal: linear-gradient(145deg, var(--color-hero-card-start) 0%, var(--color-primary) 46%, var(--color-hero-card-end) 100%);
  --gradient-navy-horizontal: linear-gradient(90deg, var(--color-hero-card-start) 0%, var(--color-primary) 46%, var(--color-hero-card-end) 100%);   /* homepage Data & AI band, Figma 871:543 */
  --mask-edge-fade: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);   /* credentials carousel: logos fade at both edges */
  --color-card-glass-hover: rgb(255 255 255 / 0.06);   /* Data & AI card fill on hover */
  --color-sand: #f4e7d2;             /* Data & Analytics "Real-Time" band, Figma 1439:81 */
  --color-hero-photo-tint: rgb(40 80 120 / 0.38);  /* even navy wash over the banner photo (multiply) */
  --color-mega-bg: var(--color-nav); /* mega-menu panel matches the nav pill (was #ffffff) */
  --color-mega-rule: #e2e5e9;        /* heading underline + side divider */
  --color-nav-active: rgb(40 80 120 / 0.1);
  --color-feature-halo: rgb(252 183 79 / 0.28);  /* amber glow behind Data & AI icons */
  --color-glass: rgb(255 255 255 / 0.1);
  --color-glass-border: rgb(255 255 255 / 0.25);
  --color-glass-grey: rgb(217 217 217 / 0.2);  /* certification tiles, Figma 608:289 */
  --color-hero-title: rgb(255 255 255 / 0.95); /* inner-page hero title, Figma 608:75 */
  --color-rule-dashed: rgb(92 93 94 / 0.5);    /* 0.5px #5c5d5e dashed rules (Figma 608:197) drawn as 1px at 50% */
  --color-fade-navy-0: rgb(40 80 120 / 0);      /* leader card fade, Figma 711:72: navy 0 → 70% at 38.9% → 100% */
  --color-fade-navy-70: rgb(40 80 120 / 0.7);

  /* ---- Colour: text & lines ----
     UCI palette (2026-10-08): blue text #285078, paragraph grey #5c5d5e, white text #ffffff,
     background #fcf4e8, yellow buttons #fcb74f, footer #f7f1e7. Use only these for text. */
  --color-text: #5c5d5e;             /* body copy on cream */
  --color-error: #b42318;            /* form validation and send errors (6:1 on cream) */
  --color-text-on-dark: #ffffff;
  --color-text-soft-on-dark: #d9d9d9; /* body copy + bullets on the homepage service cards, Figma 1089:383/384 (UCI 2026-10-21) */
  --color-border: #dde3e6;
  --color-line: #d6d3d3;             /* stat track */
  --color-shadow: rgb(0 0 0 / 0.25);

  /* ---- Type ---- */
  --font-base: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(1.875rem, 1.3rem + 1.8vw, 2.25rem);   /* Figma 36/58 */
  --fs-h2: clamp(1.75rem, 1.2rem + 1.7vw, 2.25rem);      /* Figma 36/55 */
  --fs-h3-lg: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);   /* Figma 30/40 (Data & AI) */
  --fs-h3: 1.5rem;                                        /* Figma 24/32 */
  --fs-card-title: 1.25rem;                               /* Figma 20/40 */
  --fs-stat: clamp(3rem, 2.2rem + 2.5vw, 4.375rem);       /* track-record numbers */
  --fs-impact: clamp(2.75rem, 2.2rem + 1.6vw, 3.4375rem); /* Figma 55 */
  --fs-nav: 1.25rem;                                      /* Figma 20 */
  --fs-btn: 1.25rem;                                      /* Figma 20 */
  --fs-body: 1.125rem;                                    /* Figma 18/32 */
  --fs-small: 1rem;
  --lh-tight: 1.25;
  --lh-heading: 1.53;
  --lh-body: 1.78;

  /* ---- Shape ---- */
  --radius-pill: 50px;
  --radius-card: 20px;
  --radius-btn: 20px;
  --btn-lg-h: 62px;                  /* .btn--lg height; Looking Ahead reserves half of it below the photo */
  --notch: 20px;                     /* service-card inverted corner */
  --shadow-nav: 0 2px 10px var(--color-shadow);
  --shadow-faq: 0 2px 6px rgb(0 0 0 / 0.18);
  --shadow-panel: 2px 2px 4px rgb(0 0 0 / 0.25); /* cream contract/award panels (sampled from Figma 608:70) */
  --shadow-card-hover: 0 18px 40px rgb(20 40 60 / 0.22);
  --shadow-mega: 0 24px 60px rgb(20 40 60 / 0.25);
  --shadow-to-top: 0 8px 24px rgb(20 40 60 / 0.3);
  --shadow-btn-hover: 0 10px 22px rgb(40 80 120 / 0.28);
  --shadow-faq-hover: 0 8px 22px rgb(40 80 120 / 0.16);

  /* ---- Layout grid (from Figma): 16 columns, centred, 70px columns, 30px gutters.
         Content spans the middle 14 columns (2–15) = 14×70 + 13×30 = 1370px,
         which puts content at x 275–1645 on the 1920 artboard. ---- */
  --grid-col: 70px;
  --grid-gap: 30px;
  --container: 1370px;               /* 14 content columns */
  --gutter: clamp(1rem, 4vw, 2rem);  /* minimum side margin on small screens */
  --grid-overlay: rgb(255 0 0 / 0.1);
  --section-gap: clamp(4rem, 7vw, 6rem);
  --header-h: 64px;                  /* floating nav pill height (UCI reference 2026-10-27; was the 74px full-width bar) */
  --header-top: clamp(0.5rem, 1vw, 0.875rem);  /* gap above and beside the floating nav pill */

  /* ---- Motion (§9A) ---- */
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-distance: 24px;
  --stagger: 80ms;
}
