/* DJ Capital Transport - design system.
 *
 * Tokens come from 07_Brand/BRAND_GUIDE.md v1.0 and nothing else. Do not add a
 * colour, a type step or a spacing value that is not defined here; add it to the
 * scale first. BRAND_GUIDE.md wins over any generated preference.
 *
 * Compliance note that is not taste: City of Tallahassee 22-91(b)(2) forbids a
 * transportation service from carrying insignia giving the impression of a
 * taxicab. NO yellow, NO checker patterns, anywhere, ever.
 */

:root {
  /* Core palette */
  --navy: #0b2545;
  --teal: #14807e;
  --green: #29a66b;
  --mist: #eef3f6;
  --ink: #0a1219;
  --white: #ffffff;
  /* Extended */
  --deep: #061a31;
  --sky: #4fa8c7;
  --slate: #5b6b7b;
  --amber: #c9821e;
  --amber-dark: #8a5510;  /* 6.4:1 on the notice tint - safe for the small caps label */
  --amber-tint: #fbf3e6;
  --amber-line: #ecd9b8;
  /* Derived, contrast-checked against white and against --navy */
  --teal-dark: #0f6462;   /* 5.6:1 on white - safe for body-size links */
  --green-dark: #1d7a4d;  /* 4.7:1 on white - safe for small text */
  --line: #d7e0e7;
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Type. Public Sans / Montserrat per the brand guide, with a real fallback
     stack because no font file is self-hosted yet and the site makes NO
     external requests. See README.md pre-launch item. */
  --font-head: Montserrat, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Public Sans", "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;

  /* Type scale */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.1875rem;
  --t-xl: 1.4375rem;
  --t-2xl: 1.75rem;
  --t-3xl: 2.125rem;
  --t-4xl: clamp(2.1rem, 1.4rem + 3vw, 3.25rem);

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 5.5rem;

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px rgba(11, 37, 69, 0.07);
}

/* ---- reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* overflow-x hidden is a safety net, NOT the fix. Every layout below is
     bounded on its own. If this ever starts doing work, something upstream
     is broken and must be found. */
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--t-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p, li { overflow-wrap: break-word; }
p { margin: 0 0 var(--s-4); max-width: 68ch; }

a { color: var(--teal-dark); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s-4); color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

/* ---- wordmark ------------------------------------------------------------- */
.wm { display: inline-flex; align-items: center; gap: 0.6rem; }
.wm__mark { color: var(--navy); flex: 0 0 auto; }
.wm__mark svg { width: 40px; height: 40px; }
.wm__mono {
  fill: var(--white); font-family: var(--font-head); font-weight: 700;
  font-size: 17px; letter-spacing: 0.02em;
}
.wm__rule { stroke: var(--green); stroke-width: 3; stroke-linecap: round; }
.wm__type {
  display: flex; flex-direction: column; line-height: 1.02;
  font-family: var(--font-head); font-weight: 700;
}
.wm__a { color: var(--navy); font-size: 1.0625rem; letter-spacing: -0.01em; }
.wm__b {
  color: var(--teal-dark); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.wm--compact .wm__mark svg { width: 34px; height: 34px; }
.wm--compact .wm__mono { font-size: 15px; }

/* Reversed, for the navy footer */
.site-footer .wm__mark { color: var(--white); }
.site-footer .wm__mono { fill: var(--navy); }
.site-footer .wm__a { color: var(--white); }
.site-footer .wm__b { color: #9fd9c0; }

.brand { text-decoration: none; display: inline-flex; }

/* ---- header --------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 72px; flex-wrap: wrap;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
}
.site-nav a {
  display: block; padding: 0.6rem 0.7rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--navy); font-weight: 600;
  font-size: var(--t-sm);
}
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--green); }
.site-nav__cta a { color: var(--white); }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--mist); border: 1px solid var(--line); color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: var(--t-sm);
  border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; cursor: pointer;
  min-height: 44px;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle__bars span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    flex-basis: 100%; display: none; padding-bottom: var(--s-4);
    border-top: 1px solid var(--line); margin-top: var(--s-1);
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--s-2); }
  .site-nav a { padding: 0.85rem 0.6rem; min-height: 44px; }
  .site-nav__cta { margin-top: var(--s-3); }
  .site-nav__cta a { text-align: center; }
}

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-sm);
  padding: 0.8rem 1.35rem; min-height: 46px; border-radius: var(--radius-sm);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn--sm { padding: 0.55rem 1rem; min-height: 40px; }
.btn--primary { background: var(--green-dark); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--secondary { background: var(--navy); color: var(--white); }
.btn--secondary:hover { background: var(--deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--onnavy { background: var(--white); color: var(--navy); }
.btn--onnavy:hover { background: var(--mist); color: var(--navy); }
.btn--ghost-onnavy { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost-onnavy:hover { background: rgba(255,255,255,.12); color: var(--white); }

.linkish {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ---- sections ------------------------------------------------------------- */
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
/* Scoped away from buttons. This rule out-specified .btn--onnavy and repainted
   a button label light green on white at 1.41:1, unreadable. A component must
   not be recolourable by the section it happens to sit in. */
.section--navy a:not(.btn) { color: #a9e6cd; }

.section__head { max-width: 62ch; margin-bottom: var(--s-6); }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark);
  margin: 0 0 var(--s-2);
}
/* Any dark ground, not just .section--navy. The hero is painted by its own rule,
   so the eyebrow kept the light-background teal and rendered at 2.21:1 on navy.
   Scoping a colour override to ONE dark container leaves every other dark
   container silently wrong. */
.section--navy .eyebrow,
.hero .eyebrow,
.cta-band .eyebrow { color: #7fd6b3; }
.lede { font-size: var(--t-lg); color: var(--slate); max-width: 62ch; }
.section--navy .lede { color: rgba(255,255,255,.86); }

/* ---- hero ----------------------------------------------------------------- */
.hero {
  background-color: var(--navy);
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--deep) 60%, #0d3352 100%);
  color: var(--white);
  padding-block: var(--s-9) var(--s-8);
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero__lede { font-size: var(--t-lg); color: rgba(255,255,255,.88); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__promise {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.hero__promise p { margin: 0; color: rgba(255,255,255,.88); font-size: var(--t-sm); }
.hero__promise strong { display: block; color: var(--white); font-family: var(--font-head); }

/* ---- grid + cards --------------------------------------------------------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card__tag {
  display: inline-block; font-size: var(--t-xs); font-weight: 700;
  font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--mist);
  padding: .25rem .6rem; border-radius: 999px; margin-bottom: var(--s-3);
}
.section--navy .card { background: rgba(255,255,255,.06); border-color: var(--line-dark); box-shadow: none; }
.section--navy .card p { color: rgba(255,255,255,.85); }

.checklist { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.checklist li {
  position: relative; padding-left: 1.75rem; margin-bottom: var(--s-3);
  max-width: 66ch;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 3px; background: var(--green-dark);
}
.section--navy .checklist li::before { background: #7fd6b3; }

/* ---- notice --------------------------------------------------------------- */
/* Callout. NO thick one-sided accent border: a heavy border-left on a card is
   the single most recognisable tell of generated UI, and it is banned by house
   rule. The meaning is carried by the coloured uppercase label; the container is
   a tinted ground with an even 1px border in a tint of the accent. */
.notice {
  border: 1px solid var(--amber-line);
  background: var(--amber-tint); border-radius: var(--radius);
  padding: var(--s-5); margin-block: var(--s-5);
}
.notice p:last-child { margin-bottom: 0; }
.notice h3 {
  font-family: var(--font-head); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: var(--s-2);
}

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--navy); color: var(--white); padding-block: var(--s-7); }
.cta-band h2 { color: var(--white); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between; }
.cta-band p { color: rgba(255,255,255,.86); margin-bottom: 0; }

/* ---- forms ---------------------------------------------------------------- */
.form { max-width: 760px; }
.form__grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-sm);
  color: var(--navy);
}
.field .hint { font-size: var(--t-xs); color: var(--slate); }
.req { color: var(--green-dark); font-weight: 700; }

input, select, textarea {
  font-family: inherit; font-size: var(--t-base); color: var(--ink);
  background: var(--white);
  border: 1px solid #b8c5cf; border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem; min-height: 46px; width: 100%; max-width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
}

.fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); margin: var(--s-6) 0 0; min-width: 0;
}
.fieldset legend {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  padding-inline: var(--s-2); font-size: var(--t-base);
}

/* The SMS consent control. Unchecked, optional, separately submitted, and
   visually separated from the submit action so it can never read as bundled. */
.consent-box {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5); margin-top: var(--s-6);
}
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 22px; margin: 2px 0 0; flex: 0 0 auto;
  accent-color: var(--green-dark);
}
.check label { font-size: var(--t-sm); line-height: 1.55; }
.form__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* ---- tables (legal pages) -------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-bottom: var(--s-5); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: var(--t-sm); }
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); color: var(--navy); background: var(--mist); }

/* ---- legal prose ---------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--s-2); max-width: 68ch; }
.meta { color: var(--slate); font-size: var(--t-sm); }

/* ---- footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); margin-top: auto; }
.site-footer__grid {
  display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.site-footer__blurb { font-size: var(--t-sm); margin-top: var(--s-4); max-width: 34ch; color: rgba(255,255,255,.78); }
.site-footer__h {
  font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s-2); font-size: var(--t-sm); }
.site-footer a, .site-footer .linkish { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover, .site-footer .linkish:hover { color: var(--white); text-decoration: underline; }
.site-footer__contact li { color: rgba(255,255,255,.78); }
.site-footer__base {
  border-top: 1px solid var(--line-dark); padding-block: var(--s-5);
  font-size: var(--t-xs); color: rgba(255,255,255,.7);
}
.site-footer__base p { margin: 0 0 var(--s-2); max-width: 90ch; }
.site-footer__note { color: rgba(255,255,255,.62); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
