:root {
  --red: #c00000;
  --ink: #000;
  --ring: #ff6b2c;
  --water: #cfe2fb;
  --water-deep: #16324f;
  --paper: #fff;
  --mist: #f2f5f9;
  --muted: #4a4f57;
  --rule: #d6dbe2;

  --font: "Jost", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  --gutter: max(clamp(1.25rem, 5vw, 5rem), calc((100% - 92rem) / 2));
  --measure: 36rem;
}

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

/* Fluid root: 16px on phones, ~21px on a 1440 laptop, capped at 22px on large monitors. Everything in rem scales with it. */
html { font-size: clamp(16px, 0.6vw + 12px, 22px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul, figure, blockquote, address { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

h1, h2, h3 { font-weight: 300; line-height: 1.08; text-wrap: balance; }

/* Temporary notice */
.notice {
  padding: 0.6rem var(--gutter);
  background: var(--red);
  color: #fff;
  font-size: 1.0625rem;
  text-align: center;
}

/* Logo */
.logo {
  display: inline-grid;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.logo-line { display: block; }
.logo-red { color: var(--red); }
.logo-s { font-size: 2.6em; line-height: 0.8; vertical-align: -0.12em; }
.logo-line + .logo-for + .logo-line { margin-left: 0.55em; margin-top: -0.55em; }
.logo-for { margin: -0.15em 0 0 3.4em; font-size: 0.8em; }
.logo-small { font-size: 1.15rem; color: var(--ink); }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem var(--gutter) 0.75rem;
}

.masthead-nav {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 1.125rem;
}
.masthead-nav a { text-decoration: none; }
.masthead-nav a:hover, .masthead-nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.25em; }
.masthead-nav .phone { color: var(--red); font-weight: 500; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

.button {
  display: inline-block;
  padding: 1rem 1.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--red); }
.button:disabled { background: var(--muted); cursor: progress; }

.text-link { font-size: 1.125rem; text-underline-offset: 0.25em; }
.text-link:hover { color: var(--red); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0;
}

.hero h1 {
  color: var(--red);
  font-size: clamp(2.6rem, 5.2vw, 5.25rem);
  letter-spacing: -0.015em;
}

.lede { max-width: var(--measure); margin-top: 1.75rem; font-size: 1.3125rem; line-height: 1.5; }

.rescue { position: relative; }
.rescue img { width: 100%; }
.tag {
  position: absolute;
  font-size: clamp(0.875rem, 1.4vw, 1.25rem);
  line-height: 1.15;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}
.tag-ring { left: 27%; top: 20.5%; }
.tag-employer { left: 88%; top: 9%; }
.tag-employee { left: 19%; top: 97%; }

/* The gap: water. Figures on the left, a brace pulling the eye to the impact copy on the right. */
.gap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(2rem, 4vw, 3.5rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  background: var(--water);
  color: var(--water-deep);
  border-radius: 50% 50% 0 0 / 2.5rem 2.5rem 0 0;
}

/* Both columns are centered in their half, per Damon's 10-4 request. */
.gap-figures, .gap-text { display: grid; justify-items: center; text-align: center; }
.gap-figures { gap: 2.5rem; }
.stat { font-size: 1.375rem; line-height: 1.3; max-width: 26rem; }
.stat-num { justify-content: center; }
.stat-num {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
}
.stat-qual { font-size: 0.4em; font-weight: 400; letter-spacing: 0; }

.brace { align-self: stretch; width: 100%; height: 100%; min-height: 12rem; color: var(--red); }

.gap-text h2 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--ink); }
.gap-text p { max-width: var(--measure); margin-top: 1.25rem; font-size: 1.1875rem; }

/* Benefits */
.benefits { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.benefits h2 { color: var(--red); font-size: clamp(2.25rem, 4.4vw, 3.75rem); }

.sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.side { padding-right: clamp(1.5rem, 4vw, 4rem); }
.side + .side { padding-left: clamp(1.5rem, 4vw, 4rem); padding-right: 0; border-left: 1px solid var(--rule); }

.side h3 { font-size: 2rem; font-weight: 500; }
.side ul { margin-top: 1.5rem; font-size: 1.375rem; }
.side li { padding: 0.85rem 0; border-top: 1px solid var(--rule); }

blockquote { margin-top: 2.25rem; max-width: var(--measure); }
blockquote p { font-size: 1.4375rem; font-style: italic; font-weight: 300; line-height: 1.4; }
blockquote footer { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--muted); }

/* Programs */
.programs { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); background: var(--mist); }
.programs h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.programs-intro { max-width: var(--measure); margin-top: 1rem; font-size: 1.25rem; line-height: 1.5; color: var(--muted); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.program { padding: 0 2rem; border-left: 1px solid var(--rule); }
.program:first-child { padding-left: 0; border-left: 0; }

.who { font-size: 1.0625rem; line-height: 1.3; color: var(--muted); }

.program h3 { margin-top: 0.75rem; font-size: 2rem; font-weight: 400; color: var(--red); min-height: 2.2em; }

.figure { margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.25; color: var(--red); }
.figure strong { display: block; font-weight: 300; font-size: clamp(3.25rem, 5.5vw, 5rem); line-height: 1; letter-spacing: -0.02em; }

.program ul { margin-top: 1.75rem; font-size: 1.1875rem; line-height: 1.4; }
.program li { padding: 0.75rem 0; border-top: 1px solid var(--rule); }

/* Contact block on the home page */
.contact { padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.contact h2 { color: var(--red); font-size: clamp(2.5rem, 5.6vw, 5rem); letter-spacing: -0.015em; text-wrap: initial; }
.contact-lede { max-width: 40rem; margin-top: 2rem; font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.35; color: var(--red); }

address {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  margin-top: 2.5rem;
  font-style: normal;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
}
.contact-name { font-weight: 500; }
address a { text-underline-offset: 0.2em; overflow-wrap: anywhere; }
address a:hover { color: var(--red); }

/* Contact page */
.contact-page {
  width: min(100% - 2 * clamp(1.25rem, 5vw, 5rem), 46rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}
.contact-page h1 { color: var(--red); font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.01em; }

.inquiry { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.inquiry[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 1.0625rem; font-weight: 500; }
.field .prompt { margin-top: 1.5rem; font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 400; line-height: 1.3; }
.optional { font-weight: 300; color: var(--muted); }

.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #8a929c;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--water); border-color: var(--water-deep); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { color: var(--red); font-weight: 500; }

.form-done { margin-top: clamp(2rem, 4vw, 3rem); }
.form-done:focus { outline: none; }
.form-done h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.form-done p { max-width: var(--measure); margin-top: 1rem; font-size: 1.25rem; }
.form-done .actions { margin-top: 1.75rem; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--muted);
}

/* Narrow screens */
@media (max-width: 1500px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4rem; }
  .program:nth-child(odd) { padding-left: 0; border-left: 0; }
  .program h3 { min-height: 0; }
}

@media (max-width: 760px) {
  .masthead-nav a[href$="#programs"] { display: none; }
  .hero, .gap, .sides { grid-template-columns: minmax(0, 1fr); }
  .brace { display: none; }
  .gap-text { margin-top: 1.5rem; }
  .rescue { margin-bottom: 1.5rem; }
  .side, .side + .side { padding: 0; border-left: 0; }
  .side + .side { margin-top: 3rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .program-grid { grid-template-columns: minmax(0, 1fr); }
  .program { padding: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
