/* Styled to match the ICS marketing site (instantcourierservice.us): navy brand colours, the "Faster" display font,
   the road photo behind the pages. Content sits on white cards so the records table stays easy to read. */
@font-face {
  font-family: "Faster";
  src: url("/fonts/faster-webfont.woff2") format("woff2"), url("/fonts/faster-webfont.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}
:root {
  --brand-400: #4d7aa2;
  --brand-600: #01417a;
  --brand-700: #013866;
  --brand-800: #012e55;
  --gray-900: #111827;
  --ink: #1a1a2e;
  --muted: #5b6075;
  --card: #ffffff;
  --line: #dde2f0;
  --tint: #f2f6fa;
  --error: #b00020;
  --display: "Faster", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--brand-800); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--ink); line-height: 1.5;
  background: linear-gradient(rgba(1, 46, 85, .35), rgba(1, 46, 85, .85)), url("/img/bg.jpg") center / cover fixed var(--brand-800);
}
a { color: var(--brand-600); }

/* Header: same bar as the marketing site */
header { position: sticky; top: 0; z-index: 10; background: var(--brand-600); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; }
header h1 { margin: 0; font-family: var(--display); font-weight: normal; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; }
header a { color: #fff; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
nav a { padding: 6px 10px; border-radius: 4px; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
nav a:hover { opacity: .85; }
nav a[aria-current="page"] { background: var(--brand-800); }

main.wrap { flex: 1; width: 100%; padding: 32px 16px 48px; }
.wrap { max-width: 1100px; margin: 0 auto; }

/* Home page hero, as on the marketing site */
.hero { color: #fff; text-align: center; padding: 16px 0 40px; }
.hero img.logo { width: min(260px, 70%); height: auto; margin: 0 auto 16px; display: block; }
.hero h2 { font-family: var(--display); font-weight: normal; font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: 1.05; text-transform: uppercase; color: #fff; margin: 0 0 20px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-400); color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 14px; border-radius: 4px; }
.badge img { width: 16px; height: 16px; }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Cards */
.card { background: var(--card); border-radius: 6px; padding: 24px 28px; margin-bottom: 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
h2, h3 { font-family: var(--display); font-weight: normal; color: var(--brand-600); text-transform: uppercase; letter-spacing: .02em; }
h2 { margin-top: 0; font-size: 2rem; }
h3 { font-size: 1.15rem; margin-bottom: .4em; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.phone { font-size: 1.25rem; font-weight: 700; }

/* Buttons, including phone links styled as buttons */
button, .btn {
  display: inline-block; padding: 10px 22px; border: 0; border-radius: 4px; background: var(--brand-400); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  transition: background-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
button:hover, .btn:hover, button:focus-visible, .btn:focus-visible { background: var(--brand-700); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.btn.dark { background: var(--brand-800); font-size: 1.1rem; font-weight: 500; }
.btn.dark:hover { background: var(--brand-700); }
button.secondary { background: transparent; color: var(--brand-600); border: 1px solid var(--brand-400); box-shadow: none; }
button.secondary:hover { background: var(--tint); }
button:disabled { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid #9cc3e6; outline-offset: 2px; }

/* Forms */
form.login { display: grid; gap: 12px; max-width: 360px; }
label { font-weight: 600; font-size: .9rem; }
input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: #fff; }
input:focus, select:focus { border-color: var(--brand-400); }
.error { color: var(--error); min-height: 1.5em; margin: 0; }
.notice { color: var(--muted); min-height: 1.5em; margin: 0; }
.busy::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy::before { animation-duration: 3s; } button, .btn { transition: none; } }

/* Records table */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.toolbar .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.toolbar input { width: auto; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--brand-600); color: #fff; font-weight: 600; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: var(--tint); }
tfoot th { background: var(--tint); border-top: 2px solid var(--brand-600); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Footer: dark band like the marketing site's contact section */
footer { background: var(--gray-900); color: #c7ccd6; text-align: center; font-size: .85rem; padding: 20px 16px; }
footer a { color: #c7ccd6; }

.muted { color: var(--muted); }
[hidden] { display: none !important; }
.flush { margin: 0; }

@media (max-width: 640px) {
  header h1 { font-size: 1.25rem; }
  .card { padding: 20px 18px; }
  h2 { font-size: 1.6rem; }
  body { background-attachment: scroll; }
}
