/* GeoComply Design System — Colors & Type
   Source: brand guidelines (Inter, primary Blue/Orange, secondary Navy/Light-Grey/Teal/Grey) */

/* ---------- Webfonts ---------- */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Brand colors — primary */
  --gc-blue:        #0041ED;
  --gc-orange:      #FF600F;

  /* Brand colors — secondary */
  --gc-navy:        #0A003C;
  --gc-light-grey:  #F4F7FA;
  --gc-teal:        #00CD91;
  --gc-grey:        #A0AFBE;

  /* Neutrals (derived) */
  --gc-white:       #FFFFFF;
  --gc-black:       #000000;
  --gc-grey-900:    #0A003C;   /* navy doubles as deepest text */
  --gc-grey-700:    #3B4858;
  --gc-grey-500:    #A0AFBE;
  --gc-grey-300:    #D6DEE7;
  --gc-grey-100:    #F4F7FA;

  /* Tints (use sparingly — for backgrounds, hover states) */
  --gc-blue-tint:   #E6EDFD;   /* ~10% blue */
  --gc-orange-tint: #FFE7D8;   /* ~10% orange */
  --gc-teal-tint:   #D9F7EE;

  /* Semantic foreground/background */
  --fg-1: var(--gc-navy);          /* primary text */
  --fg-2: var(--gc-grey-700);      /* secondary text */
  --fg-3: var(--gc-grey-500);      /* tertiary, captions */
  --fg-on-dark: var(--gc-white);
  --fg-accent-blue: var(--gc-blue);
  --fg-accent-orange: var(--gc-orange);

  --bg-1: var(--gc-light-grey);    /* page — Light Grey is the default */
  --bg-2: var(--gc-white);         /* surface — cards lift off the page */
  --bg-3: #ECF1F7;                 /* sunken */
  --bg-dark: var(--gc-navy);
  --bg-blue: var(--gc-blue);

  --border-1: var(--gc-grey-300);
  --border-2: #E5EBF2;

  /* State */
  --success: var(--gc-teal);
  --warning: var(--gc-orange);
  --danger:  #E1264C;             /* red, derived; not on official palette */
  --info:    var(--gc-blue);

  /* Type families */
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (px). Display = Inter, Body = Inter Light. */
  --fs-display-xl: 96px;
  --fs-display-l:  72px;
  --fs-display-m:  56px;
  --fs-h1:         44px;
  --fs-h2:         34px;
  --fs-h3:         26px;
  --fs-h4:         20px;
  --fs-eyebrow:    14px;

  --fs-body-l:     20px;
  --fs-body:       16px;
  --fs-body-s:     14px;
  --fs-caption:    12px;

  /* Leading — display 1.3, body 120–150% */
  --lh-display-tight: 1.3; /* @kind font */
  --lh-display:       1.3; /* @kind font */
  --lh-body-tight:    1.5; /* @kind font */
  --lh-body:          1.5; /* @kind font */
  --lh-body-loose:    1.5; /* @kind font */

  /* Tracking — 0 per spec; small decorative tracking only on eyebrows */
  --ls-zero:    0;       /* @kind font */
  --ls-eyebrow: 0.08em;  /* @kind font */

  /* Spacing — 4px base */
  --sp-0:  0; /* @kind spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* Radii — soft rectangles, never pill except for chips/badges */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Elevation — borders only. NO drop-shadow system. */
  --sh-1: none; /* @kind shadow */
  --sh-2: none; /* @kind shadow */
  --sh-3: none; /* @kind shadow */
  --sh-focus: 0 0 0 3px rgba(0, 65, 237, 0.25); /* @kind shadow */

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   320ms; /* @kind other */
}

/* ---------- Element defaults ---------- */
html, body {
  font-family: var(--font-body);
  font-weight: 300;        /* Inter Light preferred for body */
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0;
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display / headings — Inter, Sentence case, left aligned */
h1, h2, h3, h4, h5, .display, .eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--fg-accent-blue);
  text-align: left;
  text-wrap: balance;
}

.display-xl { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-xl); line-height: var(--lh-display-tight); }
.display-l  { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-l);  line-height: var(--lh-display-tight); }
.display-m  { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-m);  line-height: var(--lh-display); }

h1, .h1 { font-weight: 400; font-size: var(--fs-h1); line-height: var(--lh-display); }
h2, .h2 { font-weight: 400; font-size: var(--fs-h2); line-height: var(--lh-display); }
h3, .h3 { font-weight: 500; font-size: var(--fs-h3); line-height: var(--lh-display); }
h4, .h4 { font-weight: 500; font-size: var(--fs-h4); line-height: 1.2; }

.eyebrow {
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.2;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-accent-orange);
}

/* Body */
p, .body { font-family: var(--font-body); font-weight: 300; font-size: var(--fs-body); line-height: var(--lh-body); }
.body-l  { font-size: var(--fs-body-l); line-height: var(--lh-body-loose); }
.body-s  { font-size: var(--fs-body-s); line-height: var(--lh-body); }
.caption { font-size: var(--fs-caption); line-height: 1.4; color: var(--fg-3); }
strong, .strong { font-weight: 500; }

a {
  color: var(--fg-accent-blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
a:hover { opacity: 0.7; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

/* Lists / bullets — orange squares (default), white squares on orange surfaces.
   Inline-block + vertical-align: middle puts the bullet centred on the x-height by CSS spec. */
ul.gc-list, .gc-list ul { list-style: none; padding-left: 0; margin: 0; }
ul.gc-list li, .gc-list ul li {
  position: relative;
  padding-left: 0;
  margin: 0 0 10px;
}
ul.gc-list li::before, .gc-list ul li::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  background: var(--gc-orange);
  vertical-align: middle;
  margin-right: 0.75em;
  position: static;
}
/* When the list sits on an orange surface, switch to white squares. */
.on-orange ul.gc-list li::before,
.on-orange .gc-list ul li::before,
ul.gc-list.on-orange li::before {
  background: var(--gc-white);
}

/* On-dark surfaces */
.on-dark, .on-blue {
  color: var(--fg-on-dark);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark .eyebrow,
.on-blue h1, .on-blue h2, .on-blue h3, .on-blue h4 { color: var(--fg-on-dark); }
.on-blue .eyebrow { color: var(--fg-on-dark); }
