/* ProBay website. Nunito and Nunito Sans are self-hosted (SIL Open Font License, see fonts/OFL.txt). */

@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Brand colors, taken from the ProBay logo */
  --navy: #0f2c4a;
  --steel: #386694;
  --orange: #fe6a1d;
  --peach: #fea269;

  --ink-soft: #3e5268;
  --muted: #5a6b7e;
  --bg: #f5f7fa;
  --paper: #ffffff;
  --line: #d5dce4;

  --st-repair: #386694;  --st-repair-bg: #e4edf6;
  --st-wait: #b45309;    --st-wait-bg: #fdefd9;
  --st-parts: #6b4fa0;   --st-parts-bg: #efe9f7;
  --st-ready: #2e7d4f;   --st-ready-bg: #e2f2e8;
  --st-in: #64748b;      --st-in-bg: #eceff3;

  --display: "Nunito", "Trebuchet MS", sans-serif;
  --text: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

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

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

img, svg { display: block; }

a { color: var(--steel); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; 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: -999px; top: 0; }
.skip-link:focus { left: var(--gutter); top: 0.75rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

/* Header */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.brand { display: inline-block; }
.brand img { height: 48px; width: auto; }

.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--text); font-weight: 700; font-size: 1.0625rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--navy);
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--peach); border-color: var(--peach); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--paper); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); } }

.hero h1 {
  font-family: var(--display); font-weight: 800; margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.015em;
  max-width: 13ch;
}
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Bay board (hero illustration) */
.board {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 22px 40px -28px rgba(15, 44, 74, 0.5);
}
.board-stripe {
  height: 12px;
  background: repeating-linear-gradient(135deg, var(--orange) 0 14px, var(--navy) 14px 28px);
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem 0.75rem; }
.board-title { font-family: var(--display); font-weight: 800; font-size: 1.45rem; margin: 0; }
.board-time { color: var(--muted); font-size: 0.95rem; }

.board table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.board .col-job { white-space: nowrap; }
.board th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 0.875rem;
  padding: 0.55rem 0.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.board td { padding: 0.65rem 0.6rem; border-bottom: 1px solid #e8edf2; vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.board th:first-child, .board td:first-child { padding-left: 1.25rem; }
.board th:last-child, .board td:last-child { padding-right: 1.25rem; }

.bay {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding-inline: 0.4rem;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1;
  border: 2px solid var(--orange); border-radius: 8px;
}
.bay-yard { font-size: 0.9rem; }
.unit { font-weight: 700; font-variant-numeric: tabular-nums; }
.truck { color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; font-size: 0.88rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: 999px; }
.status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
.status span { color: var(--navy); }
.st-repair { color: var(--st-repair); background: var(--st-repair-bg); }
.st-wait { color: var(--st-wait); background: var(--st-wait-bg); }
.st-parts { color: var(--st-parts); background: var(--st-parts-bg); }
.st-ready { color: var(--st-ready); background: var(--st-ready-bg); }
.st-in { color: var(--st-in); background: var(--st-in-bg); }

@media (min-width: 960px) and (max-width: 1149px) { .board .col-truck { display: none; } }
@media (max-width: 640px) {
  .board .col-truck { display: none; }
  .board .col-job { white-space: normal; }
  .board table { font-size: 0.92rem; }
  .board th:first-child, .board td:first-child { padding-left: 0.85rem; }
  .board th:last-child, .board td:last-child { padding-right: 0.85rem; }
  .board td { padding-inline: 0.45rem; }
  .board .status { font-size: 0.8rem; padding: 0.2rem 0.5rem; gap: 0.35rem; }
  .board .bay { min-width: 2rem; height: 2rem; font-size: 1.05rem; }
  .board .bay-yard { font-size: 0.8rem; }
  .board-head { padding-inline: 0.85rem; }
}

/* One load moment: the board fills in, row by row */
@media (prefers-reduced-motion: no-preference) {
  .board tbody tr { animation: row-in 420ms ease-out both; }
  .board tbody tr:nth-child(1) { animation-delay: 150ms; }
  .board tbody tr:nth-child(2) { animation-delay: 270ms; }
  .board tbody tr:nth-child(3) { animation-delay: 390ms; }
  .board tbody tr:nth-child(4) { animation-delay: 510ms; }
  .board tbody tr:nth-child(5) { animation-delay: 630ms; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sections */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }

h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 1rem;
}
h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.35rem; }
.intro { max-width: 40rem; color: var(--ink-soft); margin: 0 0 2.75rem; }

/* The visit, as a route */
.platform .wrap { display: grid; gap: 1rem 4rem; }
@media (min-width: 960px) {
  .platform .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .platform-head { position: sticky; top: 2rem; }
}
.route { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.route li { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding-bottom: 2.25rem; }
.route li:last-child { padding-bottom: 0; }
.route li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
}
.route li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.5rem - 1.5px); top: 3.4rem; bottom: 0.4rem;
  border-left: 3px dashed var(--orange);
}
.route p { margin: 0; color: var(--ink-soft); max-width: 36rem; }

/* Audiences */
.audiences { display: grid; gap: 2rem; margin-top: 2.25rem; }
@media (min-width: 820px) { .audiences { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.audiences div { border-top: 3px solid var(--navy); padding-top: 1rem; }
.audiences p { margin: 0; color: var(--ink-soft); }

/* Company and contact */
.company .wrap { display: grid; gap: 3rem; }
@media (min-width: 900px) { .company .wrap { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.company p { max-width: 38rem; }

.contact-card { background: var(--navy); color: var(--paper); border-radius: 14px; padding: 2rem; }
.contact-card h2 { color: var(--paper); font-size: 2.2rem; }
.contact-card dl { margin: 0 0 1.75rem; display: grid; gap: 0.9rem; }
.contact-card dt { color: #b7c4d3; font-size: 0.95rem; }
.contact-card dd { margin: 0; font-size: 1.2rem; font-weight: 600; }
.contact-card a { color: var(--paper); }
.contact-card a:hover { color: var(--peach); }
.contact-card .btn-primary { color: var(--navy); }
.contact-card :focus-visible { outline-color: var(--peach); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.75rem 2.25rem; font-size: 0.98rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }

/* Long-form pages (privacy policy) */
.prose { max-width: 44rem; padding-block: 2rem 5rem; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1.05; margin: 0 0 0.75rem; }
.prose .updated { color: var(--muted); margin: 0 0 2.5rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 0.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

.notfound { padding-block: 5rem 7rem; }
.notfound h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.3rem); margin: 0 0 1rem; }
