/* ============================================================
   HERMES Connect Hub — Redesign
   Brand tokens (from style guide):
   Main #0a5694 · Auxiliary #262253 · Background #ffffff
   Fonts: Teko (display) · Poppins (headings/UI) · Source Sans 3 (body)
   ============================================================ */

:root {
  /* Brand */
  --hc-blue: #0a5694;
  --hc-blue-600: #0e6bb0;
  --hc-blue-800: #073f6d;
  --hc-navy: #262253;
  --hc-navy-600: #322c69;

  /* Tweakable accent (drives primary CTAs) */
  --accent: #0a5694;
  --accent-hover: #073f6d;

  /* Ink / text */
  --ink: #1c2138;
  --text: #2c3242;
  --muted: #59617a;
  --faint: #8c93a8;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f2f5fb;
  --bg-soft-2: #e9eef7;
  --bg-navy: #211d49;
  --line: #e4e9f3;
  --line-strong: #d3dbea;

  /* Type */
  --font-display: 'Teko', 'Poppins', sans-serif;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;

  /* Geometry */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(28,33,56,.05), 0 2px 8px rgba(28,33,56,.04);
  --shadow-m: 0 4px 14px rgba(28,33,56,.07), 0 12px 36px rgba(28,33,56,.07);
  --shadow-l: 0 18px 50px rgba(12,40,70,.16);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-family: var(--font-head); line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--hc-blue); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }

::selection { background: rgba(10,86,148,.18); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1340px; }
.section { padding-block: clamp(64px, 9vw, 118px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #d9dcec; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hc-blue);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--hc-blue);
  display: inline-block;
}
.section--navy .eyebrow { color: #8ea7ff; }
.section--navy .eyebrow::before { background: #8ea7ff; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

/* Display / headings scale */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .94;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--ink);
}
.h-xl { font-size: clamp(46px, 8.5vw, 104px); }
.h-l  { font-size: clamp(34px, 4.6vw, 60px); }
h2.title { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.01em; }
h3.subtitle { font-size: clamp(20px, 2vw, 26px); }
.lede { font-size: clamp(19px, 1.5vw, 22px); color: var(--muted); line-height: 1.55; }
.measure { max-width: 64ch; }
.measure-sm { max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 8px 22px rgba(10,86,148,.28); }
.btn--navy { background: var(--hc-navy); color: #fff; }
.btn--navy:hover { background: var(--hc-navy-600); box-shadow: 0 8px 22px rgba(38,34,83,.28); }
.btn--ghost { background: transparent; color: var(--hc-blue); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--hc-blue); background: rgba(10,86,148,.05); }
.btn--light { background: #fff; color: var(--hc-navy); }
.btn--light:hover { box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn--lg { padding: 16px 32px; font-size: 16.5px; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.linkarrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--hc-blue);
}
.linkarrow .arr { transition: transform .2s ease; }
.linkarrow:hover .arr { transform: translateX(4px); }

/* ---------- Bracket motif (echoes the logo frame) ---------- */
.bracket {
  position: relative;
  border: 2px solid var(--hc-blue);
  border-radius: 4px;
}
.bracket--cut::before, .bracket--cut::after {
  content: ""; position: absolute; background: var(--bg);
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-strong); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(10,86,148,.09); color: var(--hc-blue);
}
.chip--navy { background: rgba(38,34,83,.1); color: var(--hc-navy); }
.chip--gold { background: #f6eed8; color: #8a6d1e; }
.chip--soft { background: #eef2f8; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.field .req { color: var(--hc-blue); }
.input, .select, .textarea {
  font-family: var(--font-body); font-size: 16.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 12px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--hc-blue); box-shadow: 0 0 0 3px rgba(10,86,148,.13);
}
.textarea { resize: vertical; min-height: 130px; }
.checkrow { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.checkrow input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--hc-blue); flex: none; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; }
.kicker-num {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(40px,5vw,64px);
  color: var(--bg-soft-2); line-height: 1;
}
.grid { display: grid; gap: 26px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tweak hooks: density & corners ---------- */
body[data-density="compact"] { font-size: 17px; }
body[data-density="compact"] .section { padding-block: clamp(44px, 6vw, 82px); }
body[data-density="compact"] .section--tight { padding-block: clamp(34px, 4.5vw, 60px); }

body[data-corners="sharp"] { --radius-s: 2px; --radius-m: 3px; --radius-l: 4px; }
body[data-corners="sharp"] .btn, body[data-corners="sharp"] .chip, body[data-corners="sharp"] .langsw, body[data-corners="sharp"] .langsw__b { border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
