/* ==========================================================================
   1st Class Medical Transport Services
   Single stylesheet for the whole site.
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-700: #13355e;
  --blue: #1d4e89;
  --blue-soft: #e9f0f8;
  --gold: #b8790c;
  --gold-dark: #94610a;
  --gold-soft: #fdf4e3;

  --ink: #16202e;
  --body: #3c4757;
  --muted: #6a7585;
  --line: #dce3ec;

  --bg: #ffffff;
  --bg-soft: #f4f7fb;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 12px rgba(11, 37, 69, .06);
  --shadow-md: 0 2px 6px rgba(11, 37, 69, .08), 0 16px 32px rgba(11, 37, 69, .10);

  --wrap: 1120px;
}

/* --------------------------------------------------------------- Reset -- */

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

img, svg { max-width: 100%; display: block; }

/* --------------------------------------------------------------- Base --- */

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;      /* 17px — deliberately large; audience skews older */
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}

@media (min-width: 48em) {
  body { font-size: 1.125rem; }  /* 18px */
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }

p { max-width: 68ch; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

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

.container {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------- Buttons - */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;                 /* comfortable touch target */
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

.btn-secondary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-secondary:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--navy); }

.btn-lg { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- Header - */

.utility-bar {
  background: var(--navy);
  color: #d6e0ee;
  font-size: .9375rem;
}
.utility-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-block: .5rem;
}
.utility-bar p { margin: 0; }
.utility-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.utility-bar a:hover { color: #ffd88a; text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding-top: .55rem;   /* optically centers the "1st" lockup */
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.02em;
}
.brand-mark sup { font-size: .625em; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 1.0625rem; color: var(--navy); }
.brand-text span { font-size: .8125rem; color: var(--muted); }

/* On the narrowest phones the tagline steals three lines from the header. */
@media (max-width: 26em) {
  .site-header .brand-text span { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--navy); }
.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bars span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  display: block;
  padding: .625rem 0;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--blue); text-decoration: underline; }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* Mobile nav: collapsed panel below the header bar */
@media (max-width: 55.99em) {
  .site-nav {
    display: none;
    padding-bottom: 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    display: grid;
    gap: .25rem;
    border-top: 1px solid var(--line);
    padding-top: .75rem;
  }
  .site-nav .btn { margin-top: .5rem; }
}

@media (min-width: 56em) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; padding: 0; }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .header-inner { flex-wrap: nowrap; }
}

/* -------------------------------------------------------------- Sections */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #cfdaea; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head p { margin-top: .75rem; color: var(--muted); }
.section-navy .section-head p { color: #a9bbd2; }

.eyebrow {
  display: block;
  margin-bottom: .5rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-navy .eyebrow { color: #f0c268; }

/* ----------------------------------------------------------------- Hero - */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 55%, var(--blue) 100%);
  color: #cfdaea;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.hero h1 { color: #fff; }
.hero-lede {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: #cbd8ea;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: #9fb2ca;
}

/* ------------------------------------------------------------ Trust bar - */

.trust-bar {
  background: var(--gold-soft);
  border-bottom: 1px solid #f0e0c0;
}
.trust-bar ul {
  display: grid;
  gap: .5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  margin: 0;
  padding-block: 1.25rem;
}
.trust-bar li {
  display: flex;
  align-items: baseline;
  gap: .625rem;
  color: #5a4310;
  font-weight: 600;
}
.trust-bar li::before {
  content: "✓";
  flex: none;
  color: var(--gold);
  font-weight: 700;
}

/* ---------------------------------------------------------------- Cards - */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .625rem; }
.card p { font-size: 1rem; }
.card-icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.5rem;
}

/* ----------------------------------------------------------- Step list -- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 3px solid var(--gold);
}
.steps li::before {
  content: "Step " counter(step);
  display: block;
  margin-bottom: .5rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.steps h3 { margin-bottom: .375rem; }
.steps p { font-size: 1rem; }

/* --------------------------------------------------------- Checked list - */

.check-list {
  display: grid;
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.check-list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.check-list li::before {
  content: "✓";
  flex: none;
  color: var(--gold);
  font-weight: 700;
}
.section-navy .check-list li::before { color: #f0c268; }

/* ------------------------------------------------------------- Two-col -- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 56em) {
  .split { grid-template-columns: 1.15fr .85fr; }
  .split-even { grid-template-columns: 1fr 1fr; }
}

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.panel h3 { margin-bottom: .75rem; }

/* --------------------------------------------------------------- Notice - */

.notice {
  display: grid;
  gap: .5rem;
  border-left: 5px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}
.notice strong { color: var(--ink); }
.notice p { font-size: 1rem; margin: 0; }

.notice-alert {
  border-left-color: #b3261e;
  background: #fdeceb;
}

/* ------------------------------------------------------------------ FAQ - */

.faq { display: grid; gap: .75rem; max-width: 52rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.faq details[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--blue); }
.faq .faq-body { padding: 0 1.25rem 1.25rem; }
.faq .faq-body p + p { margin-top: .75rem; }

/* ----------------------------------------------------------------- Form - */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}
.form-section:last-of-type { margin-bottom: 1.5rem; }
.form-section legend {
  padding: 0;
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: .5rem;
  width: 100%;
}

.field-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40em) {
  .field-row-2 { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }
.field-row .field { margin-bottom: 0; }

.field label,
.field .label {
  display: block;
  margin-bottom: .375rem;
  color: var(--ink);
  font-weight: 600;
}
.field .hint {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .9375rem;
}
.req { color: #b3261e; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .625rem .875rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c4d3; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(29, 78, 137, .25);
  outline-offset: 0;
}
/* Only flag a field after the person has actually interacted with it —
   never on page load. */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: #b3261e; }

.choice-group {
  display: grid;
  gap: .625rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem .875rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice:hover { border-color: #b9c4d3; background: var(--bg-soft); }
.choice input { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: .2rem; accent-color: var(--blue); }
.choice span { font-weight: 600; color: var(--ink); }
.choice small { display: block; font-weight: 400; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

/* Honeypot — hidden from people, visible to naive bots */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------- Footer - */

.site-footer {
  background: var(--navy);
  color: #a9bbd2;
  padding-block: 3rem 2rem;
  font-size: 1rem;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.0625rem; margin-bottom: .875rem; }
.site-footer a { color: #e2eaf5; }
.site-footer a:hover { color: #ffd88a; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-brand .brand-mark { background: #fff; color: var(--navy); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #a9bbd2; }
.footer-brand p { margin-top: 1rem; font-size: .9375rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------- CTA band - */

.cta-band {
  background: var(--navy);
  color: #cfdaea;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 1rem auto 0; color: #a9bbd2; }
.cta-band .hero-actions { justify-content: center; }

/* ------------------------------------------------------------- Page head */

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.page-head p { margin-top: 1rem; font-size: 1.1875rem; color: var(--muted); }

.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }