/* ==========================================================================
   Golog LTC design tokens
   Source: Brand-Guide/05_GOLOG_LTC_Brand_Guidelines.pdf (Website Brand Guidelines 2026)
   Every value traces to the guideline, or is a derived step marked "derived".
   ========================================================================== */

/* Brand typeface, self-hosted (Latin subset). Manrope only, by owner decision (docs/adr/0004) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }

:root {
  /* ---- Brand colour (guideline HEX values; never sample from the metallic logo) ---- */
  --market-blue: #0B52C8;    /* Primary, 60%: brand elements and highlights */
  --trade-navy: #193B72;     /* Secondary, 30%: headings, navigation and footer */
  --global-silver: #AEB8C6;  /* Tertiary, 10%: maps, borders and supporting graphics */
  --ink: #141C2B;            /* Text */
  --paper: #FFFFFF;          /* Background */
  --night: #0E1320;          /* Dark background (logo dark-background spec) */

  /* ---- Derived steps (states, surfaces and AA-safe text) ---- */
  --blue-700: #0942A3;       /* derived: hover on primary */
  --blue-100: #EAF0FB;       /* derived: tint surface */
  --mist: #F4F6F9;           /* derived: off-white section alternate */
  --muted: #4A5568;          /* derived: secondary text on light (7.5:1) */
  --on-dark: #EEF2F7;        /* derived: primary text on night */
  --on-dark-muted: #A9B4C4;  /* derived: secondary text on night (8.8:1) */
  --sky: #7FA8EC;            /* derived: Market Blue lightened for accents on dark (7.7:1 on night) */
  --line: rgba(25, 59, 114, 0.14);        /* hairlines on light */
  --line-dark: rgba(174, 184, 198, 0.22); /* hairlines on dark */

  /* ---- Semantic roles ---- */
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-focus: var(--market-blue);

  /* ---- Typography: Manrope for everything (owner decision; the guideline names four fonts) ---- */
  --font-display: "Manrope", Arial, sans-serif;         /* headings and company name: 600 */
  --font-body: "Manrope", Arial, sans-serif;            /* body 400 16px/1.7; menus and buttons 600 caps */
  --font-tagline: "Manrope", Arial, sans-serif;         /* taglines: 600, 0.06em */
  --font-details: "Manrope", Arial, sans-serif;         /* company details: caps, wide tracking */

  --tracking-ui: 0.15em;
  --tracking-tagline: 0.06em;
  --tracking-details: 0.24em;
  --tracking-display: -0.02em;

  /* Fluid type scale (min at 360px, max at 1440px viewport) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
  --text-3xl: clamp(2.625rem, 1.7rem + 4.2vw, 5.25rem);
  --text-hero: clamp(2.875rem, 1.6rem + 5.6vw, 7rem);

  --leading-body: 1.7;
  --leading-display: 1.1;

  /* ---- Space ---- */
  --space-section: clamp(5rem, 3rem + 8vw, 10rem);

  /* ---- Layout ---- */
  --container: 1320px;
  --container-narrow: 880px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem); /* 16px at phone width */
  --header-h: 84px;  /* 10px offset + 64px floating bar + breathing room */

  /* ---- Shape ---- */
  --radius: 3px;          /* guideline radius: inputs, chips, small UI */
  --radius-pill: 999px;
  /* Media-led redesign (Oct 2026, following the Golog Nexus model and mchb.com.my): pill buttons and
     14px media cards, a departure from the guideline's 3px buttons. Set both to var(--radius) to revert. */
  --radius-btn: 999px;
  --radius-lg: 14px;

  /* ---- Elevation ---- */
  --shadow-1: 0 1px 2px rgba(20, 28, 43, 0.06), 0 4px 16px rgba(20, 28, 43, 0.05);
  --shadow-2: 0 2px 6px rgba(20, 28, 43, 0.08), 0 24px 60px rgba(20, 28, 43, 0.14);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 420ms;
  --dur-reveal: 1200ms;

  /* ---- Z ---- */
  --z-header: 50;
  --z-menu: 60;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur-base: 1ms; --dur-reveal: 1ms; }
}
