/* Pact Compliance — pactcompliance.com
   Brand tokens from the Pact brief; layout matches the approved homepage design. */

:root {
  --royal: #003195;   /* primary: headings, buttons */
  --deep:  #00205F;   /* footer, hover */
  --sky:   #7FB2FF;   /* accents, focus rings */
  --mist:  #EEF3FC;   /* alternate section background */
  --ink:   #0F1B33;   /* body text */
  --amber-text: #8A4B00;
  --amber-bg:   #FFF1D6;
  --muted: #33415C;
  --muted-2: #4A5875;
  --line: #DCE4F2;
  --line-2: #E3E9F5;
  --card-line: #C9D5EC;
  --pale: #CFE0FF;
  --rule-on-blue: #3B63B8;
  --gutter: 80px;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, p, ol, ul { margin: 0; }
.display { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; }

/* Skip link (keyboard users) */
.skip-link {
  position: absolute; left: 16px; top: -100px;
  padding: 10px 14px; background: var(--royal); color: #fff;
  font-weight: 600; text-decoration: none; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1280px; }
section, header, footer { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-weight: 600; font-size: 17px; text-decoration: none; border-radius: 6px;
}
.btn-primary { background: var(--royal); color: #fff; }
.btn-primary:hover { background: var(--deep); color: #fff; }
.btn-outline { border: 1.5px solid var(--royal); color: var(--royal); padding: 0 24px; }
.btn-outline:hover { background: var(--mist); color: var(--deep); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.logo-link { display: flex; align-items: center; }
.logo-link svg { width: 190px; height: 43px; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--royal); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 16px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--deep); }
.nav-toggle {
  display: none;
  min-width: 44px; min-height: 44px; padding: 8px;
  background: none; border: 1.5px solid var(--line); border-radius: 6px;
  color: var(--royal); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px; align-items: center;
  padding-top: 96px; padding-bottom: 104px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 600px; }
.hero h1 { font-size: 68px; line-height: 1.02; letter-spacing: -1.5px; color: var(--royal); }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .note { font-size: 15px; color: var(--muted-2); }

/* Roster illustration */
.roster {
  margin: 0; background: #fff; border: 1px solid var(--card-line); border-radius: 10px;
  box-shadow: 0 24px 48px -28px rgba(0, 32, 95, 0.45); overflow: hidden;
}
.roster-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 24px; background: var(--royal); color: #fff;
}
.roster-head strong { font-weight: 700; font-size: 16px; }
.roster-head span { font-size: 14px; color: var(--pale); }
.roster table { width: 100%; border-collapse: collapse; font-size: 15px; }
.roster thead tr { background: var(--mist); color: var(--muted); text-align: left; }
.roster th { padding: 12px; font-weight: 600; }
.roster td { padding: 16px 12px; }
.roster th:first-child, .roster td:first-child { padding-left: 24px; }
.roster th:last-child, .roster td:last-child { padding-right: 24px; }
.roster tbody tr { border-top: 1px solid var(--line-2); }
.roster td:first-child { font-weight: 600; }
.roster .ok { color: var(--royal); }
.roster .date { color: var(--muted); }
.roster figcaption {
  padding: 16px 24px; border-top: 1px solid var(--line-2);
  font-size: 14px; color: var(--muted-2);
}
.row-watch { background: #FFFBF2; }
.row-watch.is-renewed { background: #F3F7FF; }
.badge-expiring {
  display: inline-flex; align-items: center; padding: 4px 10px;
  background: var(--amber-bg); color: var(--amber-text); font-weight: 700; border-radius: 4px;
  white-space: nowrap;
}
.badge-renewed {
  display: none; align-items: center; gap: 8px;
  font-weight: 700; color: var(--royal); white-space: nowrap;
}
.badge-renewed svg { width: 20px; height: 20px; }
.row-watch.is-renewed .badge-expiring { display: none; }
.row-watch.is-renewed .badge-renewed { display: inline-flex; }
@keyframes pactStamp { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes pactFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.badge-renewed path { stroke-dasharray: 40; animation: pactStamp .5s ease-out .1s both; }
.row-watch.is-renewed .badge-renewed { animation: pactFade .35s ease-out both; }
.row-watch { transition: background-color .35s ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-renewed path, .row-watch.is-renewed .badge-renewed { animation: none; }
  .row-watch { transition: none; }
}

/* Section basics */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-inner { display: flex; flex-direction: column; gap: 48px; max-width: 1280px; }
.section h2 { font-size: 44px; line-height: 1.1; color: var(--ink); }
.section-mist { background: var(--mist); }

/* Services */
.services h2 { max-width: 760px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.service { padding: 28px 0; border-top: 2px solid var(--royal); }
.service h3 { margin-bottom: 8px; font-size: 21px; font-weight: 700; color: var(--royal); }
.service p { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* How it works */
.steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-size: 56px; line-height: 1; color: var(--sky); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { font-size: 16px; color: var(--muted); }

/* The pact */
.pact { background: var(--royal); color: #fff; }
.pact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; max-width: 1280px; }
.pact-intro { display: flex; flex-direction: column; gap: 20px; }
.pact h2 { font-size: 52px; line-height: 1.05; color: #fff; }
.pact-intro p { font-size: 18px; color: var(--pale); }
.promise { padding: 22px 0; border-top: 1px solid var(--rule-on-blue); }
.promise:last-child { border-bottom: 1px solid var(--rule-on-blue); }
.promise h3 { margin-bottom: 6px; font-size: 20px; font-weight: 700; }
.promise p { font-size: 16px; color: var(--pale); }

/* Who we serve */
.serve { padding-top: 88px; padding-bottom: 88px; border-bottom: 1px solid var(--line); }
.serve .section-inner { gap: 36px; }
.serve h2 { font-size: 36px; line-height: 1.15; }
.serve-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.serve-grid > div { display: flex; flex-direction: column; gap: 6px; }
.serve-grid h3 { font-size: 19px; font-weight: 700; color: var(--royal); }
.serve-grid p { font-size: 16px; color: var(--muted); }

/* Contact */
.contact {
  padding-top: 104px; padding-bottom: 104px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: end;
}
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact h2 { font-size: 56px; line-height: 1.05; color: var(--royal); }
.contact-copy p { font-size: 19px; color: var(--muted); max-width: 540px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; font-size: 20px; }
.contact-details a { font-weight: 700; }
.contact-details p { font-size: 16px; color: var(--muted-2); }

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
  background: var(--deep); color: var(--pale); font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .nav { gap: 24px; }
  .hero { gap: 48px; }
  .hero h1 { font-size: 56px; }
  .pact h2 { font-size: 44px; }
  .contact h2 { font-size: 48px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-copy { max-width: 640px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pact-grid { grid-template-columns: 1fr; gap: 40px; }
  .serve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; gap: 36px; align-items: start; }
}
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -24px rgba(0, 32, 95, 0.4);
    z-index: 50;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-top: 1px solid var(--line-2); }
  .nav a:first-child { border-top: 0; }
  .nav .btn { margin-top: 12px; padding: 0 22px; border-top: 0; }
  .services-grid { grid-template-columns: 1fr; column-gap: 0; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-inner { gap: 32px; }
  .section h2 { font-size: 34px; }
  .pact h2 { font-size: 36px; }
  .contact h2 { font-size: 40px; }
  .contact { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .hero .lede { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .serve-grid { grid-template-columns: 1fr; gap: 24px; }
  .section h2 { font-size: 30px; }
  .pact h2 { font-size: 32px; }
  .contact h2 { font-size: 36px; }
  .contact-details { font-size: 18px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  /* Roster: keep Driver + Medical card columns on phones */
  .roster .col-pool, .roster .col-mvr { display: none; }
  .roster th:first-child, .roster td:first-child { padding-left: 16px; }
  .roster th:last-child, .roster td:last-child { padding-right: 16px; }
  .roster-head { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .roster figcaption { padding: 14px 16px; }
  .logo-link svg { width: 150px; height: 34px; }
}
