/*
 * GP design tokens. Source of truth: the official October 2024 brand guidelines and the
 * approved mock docs/design/site-direction/index.html (plan: "Design revision R1").
 * Raw hex values live in this file only. Corners are square, so there is no radius token.
 * See docs/design-system.md.
 */

/* Self-hosted Montserrat (SIL OFL 1.1, ../fonts/OFL-Montserrat.txt). Latin subset from @fontsource. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'); }

/* Brand palette (October 2024 guidelines). */
:root {
  --gp-dark-blue:  #1F2342;
  --gp-light-blue: #E1F1FA;
  --gp-gunmetal:   #454B54;
  --gp-stone:      #CAD0D4;
  --gp-pebble:     #F4F4F6;
  --gp-white:      #FFFFFF;
  --gp-orange:     #DF531C;  /* minimal accent: thin lines, small labels, focus ring */
}

/* Roles. Derived shades are for dark-band depth and text tints only. */
:root {
  --gp-ink:        var(--gp-dark-blue);  /* dark bands, header, footer */
  --gp-navy:       var(--gp-dark-blue);  /* headings on light, solid buttons */
  --gp-surface-dk: #181B35;              /* raised panel on dark (services panel) */
  --gp-deep:       #1A1E3A;              /* gradient ends */
  --gp-navy-mid:   #262B52;              /* gradient midpoint */
  --gp-accent:     var(--gp-orange);

  --gp-text:       var(--gp-gunmetal);   /* body on light */
  --gp-text-2:     #6C727B;              /* secondary body, captions */
  --gp-text-3:     #9197A0;              /* muted labels, footer base line */
  --gp-text-dk:    var(--gp-stone);      /* body on dark */
  --gp-head-dk:    var(--gp-light-blue); /* headings and links on dark */
  --gp-pale:       var(--gp-light-blue);

  --gp-surface-lt: var(--gp-pebble);
  --gp-rule-lt:    rgba(31, 35, 66, 0.18);    /* hairline on light */
  --gp-rule-dk:    rgba(225, 241, 250, 0.16); /* hairline on dark */
  --gp-dots-dk:    rgba(225, 241, 250, 0.09); /* dot grid on the hero */

  --gp-cover: linear-gradient(150deg, #1A1E3A 0%, #262B52 50%, #1A1E3A 100%);
}

/* Type: Montserrat only. Headings 400 then 600; body 400; labels 500 uppercase. */
:root {
  --gp-font: 'Montserrat', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gp-fs-xl:         92px;   /* .gp-h-xl, hero */
  --gp-lh-xl:         .98;
  --gp-track-xl:      -.03em;
  --gp-fs-l:          50px;   /* .gp-h-l, section heading */
  --gp-lh-l:          1.06;
  --gp-track-l:       -.022em;
  --gp-fs-m:          32px;   /* .gp-h-m */
  --gp-lh-m:          1.12;
  --gp-track-m:       -.015em;
  --gp-fs-stand:      20px;   /* standfirst */
  --gp-lh-stand:      1.55;
  --gp-fs-body:       16px;
  --gp-lh-body:       1.7;
  --gp-fs-service:    14px;   /* service names, 600 uppercase */
  --gp-track-service: .04em;
  --gp-fs-label:      11px;   /* nav, eyebrow, buttons */
  --gp-fs-label-sm:   10.5px; /* column headings, text links */
  --gp-fs-label-xs:   10px;   /* footer base line */
  --gp-track-label:   .18em;
  --gp-track-btn:     .16em;
}

/* Layout and spacing. */
:root {
  --gp-inner:      1280px;  /* content measure: the column is min(1280px, 100% - 2 gutters) */
  --gp-gutter:     clamp(24px, 5vw, 80px); /* fluid page margin */
  --gp-header-h:   72px;
  --gp-band-y:     112px;   /* full-bleed band padding */
  --gp-gap:        24px;
  --gp-space-1:    4px;
  --gp-space-2:    8px;
  --gp-space-3:    12px;
  --gp-space-4:    16px;
  --gp-space-5:    24px;
  --gp-space-6:    32px;
  --gp-space-7:    48px;
  --gp-space-8:    72px;
}

/* Motion. */
:root {
  --gp-ease:       cubic-bezier(.2, .6, .2, 1);
  --gp-dur-fast:   .15s;
  --gp-dur:        .2s;
  --gp-dur-slow:   .45s;
}

@media (max-width: 1100px) {
  :root { --gp-band-y: 88px; }
}
@media (max-width: 720px) {
  :root {
    --gp-band-y: 64px;
    --gp-fs-xl: 48px;
    --gp-fs-l: 34px;
    --gp-fs-m: 26px;
  }
}

/* ---------- Phone and tablet pass (below 1101px only; desktop values above are untouched) ---------- */
@media (max-width: 960px) {
  /* The bar is a little lower once it carries only the logo and the menu button. */
  :root { --gp-header-h: 64px; }
}
@media (max-width: 480px) {
  /* Phones: hero about 40px, section headings 30px, standfirst 18px, bands 56px. */
  :root {
    --gp-gutter: 24px;
    --gp-band-y: 56px;
    --gp-fs-xl: 40px;
    --gp-fs-l: 30px;
    --gp-fs-m: 24px;
    --gp-fs-stand: 18px;
  }
}
@media (max-width: 374px) {
  :root { --gp-gutter: 20px; --gp-fs-xl: 36px; --gp-fs-l: 28px; }
}
