/* Trent GECO — company site. Values from the Trent GECO design system (tokens.json). */

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* River palette */
  --deep: #12324A;
  --current: #2A6A92;
  --current-light: #8FC1E0;
  --shallows: #DCE9F0;
  --silt: #F5F2EB;
  --stone: #5A6770;
  --white: #FFFFFF;

  /* Semantic, light (the brand's theme) */
  --surface: var(--white);
  --surface-panel: var(--silt);
  --surface-tint: var(--shallows);
  --surface-inverse: var(--deep);
  --line: #D9DEE2;
  --line-strong: var(--stone);
  --ink: var(--deep);
  --ink-muted: var(--stone);
  --ink-inverse: var(--white);
  --ink-inverse-muted: var(--shallows);
  --accent: var(--current);
  --accent-hover: #1F5277;
  --on-accent: var(--white);
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #2A6A92;

  /* Type */
  --font-sans: "Figtree", system-ui, sans-serif;

  /* Spacing: 8px rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 2px;
  --radius-md: 6px;
  --measure: 680px;
  --page: 1120px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0E2638;
    --surface-panel: #16344B;
    --surface-tint: #1B3D56;
    --surface-inverse: #081B29;
    --line: #2C4A61;
    --line-strong: #8396A6;
    --ink: var(--silt);
    --ink-muted: #A9B7C1;
    --ink-inverse: var(--silt);
    --ink-inverse-muted: #A9B7C1;
    --accent: #7FB7DA;
    --accent-hover: #A6CDE6;
    --on-accent: #0E2638;
    --focus-ring: 0 0 0 2px #0E2638, 0 0 0 4px #7FB7DA;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.skip {
  position: absolute; left: var(--space-3); top: -100px;
  background: var(--surface); color: var(--ink); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); z-index: 10;
}
.skip:focus { top: var(--space-3); }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-3); }
@media (min-width: 720px) { .wrap { padding: 0 var(--space-5); } }

/* Type styles */
.display, h1, h2, h3 { font-weight: 700; color: var(--ink); margin: 0; }
.display { font-size: 34px; line-height: 42px; letter-spacing: -0.01em; }
@media (min-width: 720px) { .display { font-size: 48px; line-height: 56px; } }
h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.01em; }
h2 { font-size: 26px; line-height: 34px; }
h3 { font-size: 20px; line-height: 28px; }
.lead { font-size: 20px; line-height: 30px; margin: 0; }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--ink-muted); }
.label {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-2);
}
.rule { width: 32px; height: 3px; background: var(--accent); margin: var(--space-3) 0 0; border: 0; }
.hero .wrap > *, .contact > * { min-width: 0; }
p { margin: 0 0 var(--space-3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px var(--space-4);
  font: 600 16px/24px var(--font-sans); text-decoration: none;
  border-radius: var(--radius-sm); border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); min-height: 72px; flex-wrap: wrap;
}
.brand { display: inline-flex; padding: var(--space-2) 0; }
.brand img { width: 168px; }
.nav { display: flex; gap: var(--space-4); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 560px) {
  .site-header .wrap { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .nav { width: 100%; gap: var(--space-4); padding-bottom: var(--space-2); }
  .nav a { font-size: 14px; }
}

/* Hero */
.hero { padding: var(--space-6) 0 var(--space-7); overflow: hidden; }
@media (min-width: 720px) { .hero { padding: var(--space-8) 0; } }
.hero .wrap { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1fr 420px; } }
.hero .lead { margin-top: var(--space-4); max-width: 560px; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.hero-art { width: 100%; max-width: 420px; }
@media (max-width: 959px) { .hero-art { max-width: 360px; } }

/* Sections */
.section { padding: var(--space-7) 0; }
@media (min-width: 720px) { .section { padding: var(--space-8) 0; } }
.section-head { margin-bottom: var(--space-5); }
.section-head p { margin-top: var(--space-4); }
.panel { background: var(--surface-panel); }

/* Products: the product-family panel */
.family {
  background: var(--surface-tint); border-radius: var(--radius-md);
  padding: var(--space-4);
}
@media (min-width: 720px) { .family { padding: var(--space-5); } }
.cards { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2);
}
.card .for { color: var(--ink-muted); font-size: 14px; line-height: 20px; margin: 0; }
.card p { margin: 0; }
.card .more { margin-top: auto; padding-top: var(--space-3); font-weight: 600; }
.family-note { margin-top: var(--space-4); color: var(--ink-muted); font-size: 14px; line-height: 20px; }

/* How we work */
.points { display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .points { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.points h3 { margin-bottom: var(--space-2); }
.points li { border-top: 1px solid var(--line); padding-top: var(--space-4); }

/* Contact */
.contact { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.details { margin: 0; display: grid; gap: var(--space-4); }
.details dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-1); }
.details dd { margin: 0; }
.details a { font-weight: 600; }

/* Footer band on Deep */
.site-footer { background: var(--surface-inverse); color: var(--ink-inverse); padding: var(--space-6) 0 var(--space-5); }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.site-footer img { width: 168px; }
.site-footer nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.site-footer a { color: var(--ink-inverse); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-footer a:hover { text-decoration: underline; color: var(--ink-inverse); }
.site-footer .legal { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgba(220, 233, 240, 0.2); color: var(--ink-inverse-muted); font-size: 14px; line-height: 20px; max-width: none; }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--surface-inverse), 0 0 0 4px var(--current-light); }

/* 404 */
.notfound { padding: var(--space-8) 0; min-height: 50vh; }
.notfound p { margin-top: var(--space-4); }
