/* Heritage Truck Driving School
   Light, but grown up: navy and steel on a cool paper ground, squared
   geometry, condensed display type. Mobile first — every layout query is
   min-width and the phone layout is the base. */

/* ------------------------------------------------------------- webfonts */

/* Self-hosted, so the site makes no third-party requests. Inter is the
   variable release: one file serves every weight. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('fonts/roboto-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  --navy: #16233b;
  --navy-2: #22334f;
  --ink: #16233b;
  --ink-2: #414e68;
  --ink-3: #6d7a95;

  --bg: #f4f6f9;
  --bg-2: #eaeef4;
  --surface: #ffffff;

  --line: #dde2ea;
  --line-2: #c4ccd9;

  --blue: #1d5aa8;
  --blue-2: #17497f;
  --blue-wash: #eef3fa;

  --amber: #a85c0a;
  --amber-2: #d98324;
  --amber-wash: #fbf3e8;

  --green: #146b47;
  --green-wash: #edf5f1;

  --radius: 4px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(22, 35, 59, 0.05);
  --shadow: 0 8px 24px -14px rgba(22, 35, 59, 0.3);
  --shadow-lg: 0 24px 48px -28px rgba(22, 35, 59, 0.38);

  --wrap: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --display: 'Roboto Condensed', 'Inter', ui-sans-serif, system-ui,
    'Arial Narrow', Arial, sans-serif;

  --step-0: 1rem;
  --step-1: clamp(1.06rem, 1.02rem + 0.2vw, 1.18rem);
  --step-2: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.35rem, 1.8rem + 2.7vw, 4rem);
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

img, svg { max-width: 100%; }
strong { font-weight: 650; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { translate: -50% 0; color: #fff; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.narrow { max-width: 62ch; }
.center { text-align: center; }
.center .narrow { margin-inline: auto; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease;
}

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); color: #fff; }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-2); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--surface); color: var(--ink); }

.btn--lg { padding: 0.95rem 1.9rem; min-height: 52px; font-size: 1.03rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.center .btn-row { justify-content: center; }

/* -------------------------------------------------------------- eyebrows */

/* Was a rounded pill; now a small ruled label — the standard trade-press
   section marker. */
.chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}
.chip::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--amber-2);
  flex: none;
}
.center .chip { justify-content: center; }
.chip--blue { color: var(--blue-2); }
.chip--blue::before { background: var(--blue); }
.chip--green { color: var(--green); }
.chip--green::before { background: var(--green); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), 1280px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
  padding-block: 0.7rem;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; width: 38px; height: 38px; }
.brand__name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__tag {
  display: block;
  white-space: nowrap;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  position: absolute;
  inset: 100% var(--gutter) auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.nav[hidden] { display: none; }

.nav a {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 550;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav .btn { margin-top: 0.4rem; }

.header-cta { flex: none; display: flex; align-items: center; gap: 0.85rem; }
.header-cta .btn { display: none; }
.header-phone span { display: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--blue-2); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 35em) {
  .brand__tag { display: block; }
  .header-phone span { display: inline; }
}

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .header-cta .btn { display: inline-flex; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav[hidden] { display: flex; }
  .nav a { padding: 0.5rem 0.8rem; font-size: 0.95rem; }
  .nav .btn { display: none; }
  .header-phone { display: none; }
}

@media (min-width: 75em) {
  .header-phone { display: inline-flex; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: clamp(2.25rem, 5vw, 4rem) 0 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.hero h1 { margin-bottom: 0.3em; }
.hero h1 em { font-style: normal; color: var(--amber); }

.hero__lede { font-size: var(--step-1); color: var(--ink-2); }

.hero__proof {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.hero__art { position: relative; order: -1; }
.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}


@media (min-width: 56em) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .hero__art { order: 0; }
}

/* A plain figures strip does more for credibility than a sticker did. */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.stats > div { background: var(--surface); padding: 1.1rem 0.25rem 1.4rem; }
.stats dt {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stats dd {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink);
}

@media (min-width: 48em) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { padding-inline: 1.5rem; }
  .stats > div:first-child { padding-left: 0; }
}

/* ------------------------------------------------------------ credentials */

.ticker { background: var(--navy); color: #d5dded; padding-block: 0.85rem; }
.ticker__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-size: 0.86rem;
  font-weight: 500;
}
.ticker__inner span { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker svg { flex: none; opacity: 0.85; }

/* -------------------------------------------------------------- sections */

.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--paper { background: var(--surface); border-block: 1px solid var(--line); }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section__head { max-width: 58ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Page intros carry a single big heading, which leaves half the measure
   empty. Set the standfirst beside it instead. */
@media (min-width: 60em) {
  .section--tight .section__head {
    max-width: none;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
  .section--tight .section__head .chip { grid-column: 1 / -1; }
  .section--tight .section__head h1 { margin-bottom: 0; }
  /* Nudge the standfirst down to the heading's cap height. */
  .section--tight .section__head p { padding-top: 0.5rem; }
}
.section__head.center { margin-inline: auto; }
.section__head p { color: var(--ink-2); font-size: var(--step-1); margin-bottom: 0; }

/* ------------------------------------------------------------------ grid */

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

@media (min-width: 39em) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------------ card */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.5vw, 1.75rem);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.card--lift:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--ink-2); }
.grid--4 .card h3 { font-size: var(--step-1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  background: var(--blue-wash);
  color: var(--blue-2);
}
.card__icon--amber { background: var(--amber-wash); color: var(--amber); }
.card__icon--green { background: var(--green-wash); color: var(--green); }
.card__icon--slate { background: var(--bg-2); color: var(--ink); }

/* --------------------------------------------------------------- process */

/* A timeline with a rule down the left: step markers sit on it and a truck
   drives between them as you scroll. One layout at every width. */
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 3.25rem;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.steps::before {
  content: "";
  position: absolute;
  left: calc(1.25rem - 1px);
  top: 0.5rem;
  bottom: 2rem;
  width: 2px;
  background: var(--line-2);
}

.step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  transition: border-color 200ms ease;
}
.step.is-current { border-left-color: var(--amber-2); }

.step__num {
  position: absolute;
  left: -3.25rem;
  top: clamp(1.2rem, 2.5vw, 1.6rem);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  font-family: var(--display);
  font-size: 1.1rem;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.step.is-current .step__num,
.step.is-done .step__num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.step h3 { margin-bottom: 0.3em; }
.step p { color: var(--ink-2); }

.step__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.step__meta .tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: var(--bg-2);
  color: var(--ink-3);
}

.steps__truck {
  position: absolute;
  z-index: 0;
  left: 2px;
  top: 0;
  width: 36px;
  pointer-events: none;
  will-change: transform;
}
.steps__truck svg { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) { .steps__truck { display: none; } }

/* -------------------------------------------------------------- programs */

.program {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.program--featured { border-color: var(--navy); box-shadow: var(--shadow); }
.program__top { padding: clamp(1.3rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--line); }
.program--featured .program__top { background: var(--navy); }
.program--featured .program__top h3,
.program--featured .program__top .program__price { color: #fff; }
.program--featured .program__top .chip { color: var(--amber-2); }
.program--featured .program__top .chip::before { background: var(--amber-2); }
.program--featured .program__top .program__price small { color: #9fb0c9; }
.program__top h3 { margin-bottom: 0.2em; }
.program__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ink);
}
.program__price small {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
}
.program__body {
  padding: clamp(1.3rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program__body .btn { margin-top: auto; }

.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.55rem; }
.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.28rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146b47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ----------------------------------------------------------------- table */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--bg-2);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
tbody th { font-weight: 650; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td small { color: var(--ink-3); }

/* ------------------------------------------------------------------- faq */

.faq { display: grid; gap: 0.5rem; }

details.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
details.qa[open] { border-color: var(--line-2); }

details.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary:hover { background: var(--bg); }

details.qa summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7a95' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: rotate 160ms ease;
}
details.qa[open] summary::after { rotate: 180deg; }

details.qa .qa__body { padding: 0 1.2rem 1.2rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- quotes */

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.quote__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.92rem;
  flex: none;
}
.quote__who b { display: block; font-weight: 650; color: var(--ink); font-size: 0.95rem; }
.quote__who span { font-size: 0.85rem; color: var(--ink-3); }
.stars { color: var(--amber-2); letter-spacing: 0.14em; font-size: 0.9rem; margin: 0; }

/* ------------------------------------------------------------------- cta */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.25rem);
}
.cta h2 { color: #fff; }
.cta p { color: #b9c6da; font-size: var(--step-1); }
.cta a { color: #fff; }
.cta .btn--primary { background: #fff; color: var(--navy); }
.cta .btn--primary:hover { background: #dde5f0; color: var(--navy); }
.cta .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; }
.cta__road {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber-2) 0 40px, transparent 40px 80px);
}

/* ----------------------------------------------------------------- forms */

.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field .hint { font-size: 0.84rem; color: var(--ink-3); font-weight: 400; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  min-height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-wash);
}
textarea { min-height: 8rem; resize: vertical; }

.field-error { color: #a5341c; font-size: 0.85rem; font-weight: 550; min-height: 1.2em; margin: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a5341c; }

.form-note {
  background: var(--amber-wash);
  border-left: 3px solid var(--amber-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.form-status {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-weight: 550;
  background: var(--green-wash);
  border-left: 3px solid var(--green);
  color: var(--green);
}

@media (min-width: 39em) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: #b9c6da;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  font-size: 0.94rem;
}
.site-footer a { color: #b9c6da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 2.5rem); }
.footer-brand p { color: #8d9cb5; max-width: 34ch; font-size: 0.92rem; }
.footer-brand .brand { color: #fff; margin-bottom: 0.9rem; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand__tag { color: #8d9cb5; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: grid;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: #8d9cb5;
}
@media (min-width: 33em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56em) {
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .footer-bottom { grid-template-columns: auto auto; justify-content: space-between; gap: 1.5rem; }
}

/* ------------------------------------------------------------ action bar */

/* Phone only: the two things a visitor on a phone actually wants, within
   thumb reach. Hidden once the header shows its own CTA. */
.action-bar {
  position: fixed;
  z-index: 90;
  inset: auto 0 0;
  display: flex;
  gap: 0.55rem;
  padding: 0.55rem var(--gutter);
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { flex: 1; padding-inline: 0.85rem; }

body { padding-bottom: 5rem; }

@media (min-width: 62em) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------------------------------------------------------------- reveal */

/* Nothing is hidden until site.js arms it, so a missing or broken observer
   can never leave the page blank. */
.reveal.is-armed {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 420ms ease, translate 420ms ease;
}
.reveal.is-armed.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal.is-armed { opacity: 1; translate: none; }
}

/* --------------------------------------------------------------- utility */

.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-3); font-size: 0.88rem; }
.lede { font-size: var(--step-1); color: var(--ink-2); }
.mt-lg { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

@media print {
  .site-header, .cta, .nav-toggle, .action-bar { display: none; }
  body { background: #fff; padding-bottom: 0; }
}
