/* TRIN∆LYZE — prototype stylesheet
   Shared across every page in /prototype. This is plain CSS on purpose:
   when this becomes the Astro implementation, these tokens and class
   patterns map directly onto layout components / global.css.

   v2: light theme (per client feedback) — the bold blue→teal gradient
   from the logo lives in the hero band only; the rest of the page is
   light, with dark-navy text on white/near-white surfaces. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F3F6F9;
  --bg-card: #FFFFFF;
  --ink: #12213B;
  --ink-soft: #47536B;
  --ink-faint: #8892A6;
  --line: #E3E8F0;
  --blue: #1F5D93;
  --blue-deep: #12213B;
  --mint: #17836F;
  --mint-bright: #22A18E;
  --coral: #B0402F;
  --hero-a: #0E1B36;
  --hero-b: #1F5D93;
  --hero-c: #22A18E;
  --hero-ink: #FFFFFF;
  --hero-ink-soft: rgba(255,255,255,0.82);
  --font-display: 'Archivo', 'Arial Narrow', Helvetica, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', Helvetica, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(100deg, var(--blue) 0%, var(--mint-bright) 130%);
  color: #08111F;
}
.btn-primary:hover { filter: brightness(1.08); color: #08111F; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost--onhero {
  background: transparent;
  color: var(--hero-ink);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost--onhero:hover { border-color: #fff; color: #fff; }

/* ---------- tags / chips ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
}
.chip {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
}

/* ---------- forms ---------- */
label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}
input, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mint-bright));
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- layout sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--divider-top { border-top: 1px solid var(--line); }
.section--divider-bottom { border-bottom: 1px solid var(--line); }

.page-header {
  padding: 64px 0 52px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: 34px; font-weight: 700; margin-top: 10px; max-width: 26ch; }
.page-header p.dek { font-size: 16px; color: var(--ink-soft); margin-top: 14px; max-width: 56ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }

/* ---------- cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(18,33,59,0.03), 0 12px 28px -18px rgba(18,33,59,0.18);
}
.card--service { border-top: 3px solid var(--blue); display: flex; flex-direction: column; gap: 14px; }
.card--service .icon { color: var(--blue); }
.card--service h3 { font-size: 19px; font-weight: 600; }
.card--service p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.card--project { display: flex; flex-direction: column; gap: 16px; }
.card--project .block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card--project .block-text { font-size: 14px; color: var(--ink); margin-top: 4px; }
.card--project .block-result { font-size: 15px; font-weight: 600; }

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar span { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: rgba(255,255,255,0.92); }

.insight-card { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.insight-card h4 { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.insight-card p { font-size: 13.5px; color: var(--ink-faint); }
.insight-card .read-more { font-family: var(--font-mono); font-size: 12px; color: var(--blue); margin-top: 4px; }

/* ---------- filter chips ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--bg-card);
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a.active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.pagination span.disabled { color: var(--ink-faint); opacity: 0.5; }

/* ---------- process ---------- */
.process-row { display: flex; gap: 0; margin-top: 44px; overflow-x: auto; padding-bottom: 6px; }
.process-step {
  min-width: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 18px;
}
.process-step .step-label { display: flex; align-items: center; gap: 8px; }
.process-step .step-label span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.process-step h4 { font-size: 16px; font-weight: 700; }
.process-step .question { font-size: 13.5px; color: var(--ink-soft); font-style: italic; }
.process-step .detail { font-size: 13px; color: var(--ink-faint); }

/* ---------- sectors ---------- */
.sectors-band { padding: 64px 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sectors-band h2 { font-size: 26px; font-weight: 700; margin-top: 10px; max-width: 26ch; }
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- hero (home only) ---------- */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
  color: var(--hero-ink);
}
.hero-bg { position: absolute; right: -160px; top: -80px; z-index: 0; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-copy .eyebrow { color: rgba(255,255,255,0.72); }
.hero-copy h1 { font-size: 46px; line-height: 1.1; font-weight: 700; color: var(--hero-ink); }
.hero-copy .lede { font-size: 17px; color: var(--hero-ink-soft); max-width: 520px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 4px; flex-wrap: wrap; }

.dash-card {
  background: #101F3A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  max-width: 440px;
  margin-left: auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.dash-card .dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dash-card .dash-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.8; }
.dash-card .dash-url { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); margin-left: 6px; }
.dash-kpis { padding: 22px 20px 8px; display: flex; gap: 10px; }
.dash-kpi { flex: 1; background: rgba(255,255,255,0.06); border-radius: 5px; padding: 12px 14px; }
.dash-kpi .num { font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: #fff; }
.dash-kpi .lbl { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.dash-kpi .delta { font-family: var(--font-mono); font-size: 11px; margin-top: 6px; }
.dash-chart-wrap { padding: 16px 20px 20px; }
.dash-chart-wrap .chart-lbl { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.chart-months { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.chart-note { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.45); text-align: right; margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-alt); border-top: 1px solid var(--line); text-align: center; }
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg); }
.site-footer .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer p { font-size: 12.5px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: var(--ink-faint); }
.footer-social { display: flex; gap: 10px; align-items: center; }
.footer-social a {
  display: inline-flex;
  color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.footer-social a text { fill: currentColor; }
.footer-social a:hover { transform: translateY(-2px); filter: brightness(1.12); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-5, .grid-2, .hero-grid { grid-template-columns: 1fr !important; }
  .hero-copy h1 { font-size: 32px !important; }
  .dash-card { max-width: 100% !important; }
  .container { padding: 0 24px; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px 24px 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    box-shadow: 0 12px 24px -12px rgba(18,33,59,0.18);
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { font-weight: 600; }
}

@media (max-width: 420px) {
  .nav-actions .btn-primary { padding: 10px 14px; font-size: 13px; }
}
