/* The Bench — shared styles. Palette and type per ColdSpark brand spec (Sept 2026). */

:root {
  --navy: #00224A;
  --sky: #46A4E4;
  --sky-deep: #1B6FB8;
  --sky-pale: #E8F1FA;
  --sky-tint: #B9D7F0;
  --spark: #FF3115;
  --spark-dark: #D9250C;
  --white: #FFFFFF;
  --ink: #444444;
  --muted: #666666;
  --rule: #C3C3C3;
  --mist: #E8E8E8;
  --haze: #F5F7FA;
  --good: #14907A;
  --warn: #B87A00;
  --violet: #6E5AC8;

  --font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --container: 1170px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,34,74,.06), 0 12px 32px -12px rgba(0,34,74,.18);
  --focus: 0 0 0 3px rgba(70,164,228,.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--haze);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 45px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0; }
.lede { font-size: 22px; font-weight: 400; color: var(--ink); max-width: 36em; }
.small { font-size: 15px; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--sky-deep);
}
.eyebrow.on-dark { color: var(--sky); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 96px; }
@media (max-width: 720px) { .section { padding-block: 56px; } body { font-size: 17px; } .lede { font-size: 19px; } }

/* Buttons — pill, per brand spec */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: 1.8px; text-transform: uppercase;
  border-radius: 22px; padding: 10px 22px 9px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2; transition: transform .12s ease, background .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--spark); border-color: var(--spark); color: var(--white); }
.btn-primary:hover { background: var(--spark-dark); border-color: var(--spark-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline.on-dark { border-color: var(--white); color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--navy); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--sky-deep); padding-inline: 8px; }
.btn-ghost:hover { color: var(--navy); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { font-size: 14px; padding: 7px 16px 6px; letter-spacing: 1.4px; border-radius: 18px; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245,247,250,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand-by { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .4px; margin-left: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 560px) { .brand-by { display: none; } .topbar .btn { font-size: 14px; padding: 7px 16px 6px; letter-spacing: 1.4px; } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: 16px; color: var(--navy); }
.field .hint { font-size: 14px; color: var(--muted); font-weight: 500; }
.field .req::after { content: " *"; color: var(--spark); }
.input, .select, .textarea {
  font-family: var(--font); font-weight: 500; font-size: 17px; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--rule); border-radius: 10px;
  padding: 11px 14px; width: 100%; min-width: 0; transition: border-color .12s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: #9AA7B8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sky-deep); box-shadow: var(--focus); outline: none; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%2300224A' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--spark); }
.field-error { font-size: 14px; color: var(--spark-dark); font-weight: 700; display: none; }
.field.invalid .field-error { display: block; }
.grid { display: grid; gap: 20px 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.span-2 { grid-column: 1 / -1; }

/* Chip checkboxes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--rule); background: var(--white); color: var(--navy); line-height: 1.2;
  transition: background .1s ease, border-color .1s ease, color .1s ease; user-select: none;
}
.chip input:hover + span { border-color: #9AA7B8; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.chips.compact .chip span { padding: 6px 10px; font-size: 14px; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }

/* Radio row */
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios .chip input:checked + span { background: var(--sky-deep); border-color: var(--sky-deep); }

/* Checkbox line */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--navy); cursor: pointer; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Utility */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.hidden-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.notice {
  border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 500;
  background: var(--sky-pale); color: var(--navy); border: 1px solid var(--sky-tint);
}
.notice.warn { background: #FFF4E5; border-color: #F3D9A8; color: #6B4700; }
.notice.error { background: #FFECE8; border-color: #FFC2B8; color: #8A1A08; }
.notice.good { background: #E6F5F1; border-color: #A9DDD0; color: #0B5C4D; }

/* Footer */
.footer { background: var(--navy); color: var(--white); padding-block: 56px 40px; }
.footer .container { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
.footer a { color: var(--white); opacity: .85; }
.footer a:hover { opacity: 1; color: var(--white); }
.footer .small { color: rgba(255,255,255,.7); }
.footer-offices { display: grid; gap: 6px; font-size: 15px; color: rgba(255,255,255,.85); }
.footer-offices strong { color: var(--white); }
.office { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.office svg { width: 30px; height: 30px; flex: none; fill: var(--sky); margin-top: 2px; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255,255,255,.7); }
@media (max-width: 820px) { .footer .container { grid-template-columns: 1fr; } }

.divider-blue-red { height: 4px; background: linear-gradient(215deg, #2E7FD0, #7A5AA0 45%, #E0452A); }
