:root {
  --ink: #111820;
  --muted: #59636e;
  --bg: #f2f3f4;
  --panel: #ffffff;
  --red: #c9232d;
  --red-dark: #9f1821;
  --line: #d7dce0;
  --dark: #0f151c;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img {
  max-width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 4px solid var(--red);
  background: white;
}

nav {
  width: min(1240px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand img {
  display: block;
  width: min(280px, 22vw);
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #303942;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  background: white;
  box-shadow: 0 18px 46px rgba(17, 24, 32, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.93rem;
  font-weight: 600;
}

.dropdown a:hover {
  background: var(--red);
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-button {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  background: white;
  color: var(--dark);
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notification-button.has-alerts {
  border-color: rgba(192, 0, 0, 0.28);
  background: #fff5f5;
  color: var(--red);
}

.notification-icon {
  width: 13px;
  height: 15px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 8px 8px 5px 5px;
  position: relative;
}

.notification-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.notification-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.notification-badge,
.nav-badge {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
}

.nav-badge {
  margin-left: 6px;
  vertical-align: middle;
}

.notification-summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff5f5;
  color: var(--red);
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 4px;
  padding: 0 16px;
  background: var(--dark);
  color: white;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.login-link {
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.refresh-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  background: white;
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  cursor: pointer;
}

.refresh-button:hover {
  color: var(--red);
  background: #f8fafb;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.38)),
    var(--page-hero-image, url("assets/eastern-freight-lines-truck-white-box-black-cab.png")) center right / cover;
}

.hero-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 360px;
  margin: 0 auto;
  padding: 72px 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(700px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  color: #303a44;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

h2 {
  color: #303a44;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #243241;
  font-size: 1.08rem;
  font-weight: 500;
}

.content {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 84px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.content.tools-only {
  width: min(900px, calc(100% - 32px));
}

.panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.panel {
  padding: 28px;
}

.side-panel {
  padding: 22px;
}

.intro {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

input,
select {
  height: 46px;
}

textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

.full { grid-column: 1 / -1; }

.button-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 18px;
  background: var(--red);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.button.secondary {
  background: white;
  color: var(--dark);
  border-color: var(--line);
}

.button:hover { background: var(--red-dark); }

.button.secondary:hover {
  background: #f7f9fb;
  color: var(--red);
}

.tool-result {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 6px;
  padding: 22px;
  background: #f8fafb;
}

.tool-result[hidden] {
  display: none;
}

.tool-result h3 {
  margin: 0 0 12px;
  color: #303a44;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.tool-result p {
  margin: 8px 0;
  color: var(--muted);
}

.tool-result strong {
  color: var(--ink);
}

.tool-result.is-processing,
.system-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 24px;
  background: rgba(11, 18, 26, 0.58);
  backdrop-filter: blur(7px);
}

.system-processing-overlay[hidden] {
  display: none;
}

.processing-modal {
  width: min(470px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.96)),
    #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.processing-mark {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 28px rgba(192, 0, 0, 0.16);
}

.spinner {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 5px solid #d7dce0;
  border-top-color: var(--red);
  border-right-color: var(--dark);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.processing-pulse {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(192, 0, 0, 0.22);
  border-radius: 50%;
  animation: pulse-ring 1.35s ease-out infinite;
}

.processing-copy .eyebrow {
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.processing-copy h3 {
  margin-bottom: 8px;
}

.processing-copy p {
  margin: 0 0 12px;
}

.processing-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e8ed;
}

.processing-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #303a44, var(--red));
  animation: process-bar 1.15s ease-in-out infinite;
}

.processing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.processing-steps span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 8px;
  background: #fff;
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.82;
    transform: scale(0.86);
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

@keyframes process-bar {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(65%); }
  100% { transform: translateX(250%); }
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: white;
}

.result-item span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-item b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.02rem;
}

.quote-service-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.quote-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 4px;
  padding: 14px;
  background: #fff;
}

.quote-service-row span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-service-row b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.06rem;
}

.quote-service-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.quote-service-row .button {
  margin-top: 10px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.timeline div {
  border-left: 4px solid var(--red);
  padding: 10px 12px;
  background: white;
  color: var(--muted);
  font-weight: 700;
}

.fine-print {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.bol-preview {
  margin-top: 22px;
  border: 2px solid var(--dark);
  background: white;
  color: var(--ink);
}

.bol-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 18px;
  padding: 18px;
  border-bottom: 2px solid var(--dark);
}

.bol-head img {
  display: block;
  width: min(260px, 100%);
  height: 54px;
  margin-bottom: 10px;
  object-fit: contain;
  object-position: left center;
}

.bol-head strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.bol-head span,
.bol-numbers span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.bol-numbers {
  border: 1px solid var(--line);
  background: #f8fafb;
}

.bol-numbers span {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
}

.bol-numbers span:last-child {
  border-bottom: 0;
}

.bol-numbers b {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1rem;
}

.bol-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--dark);
}

.bol-blocks section {
  min-height: 128px;
  padding: 14px;
  border-right: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
}

.bol-blocks section:nth-child(2n) {
  border-right: 0;
}

.bol-blocks section:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.bol-preview h4 {
  margin: 0 0 8px;
  color: var(--red);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
}

.bol-preview p {
  margin: 0;
  color: var(--ink);
  font-size: 0.93rem;
}

.bol-table {
  width: 100%;
  border-collapse: collapse;
}

.bol-table th,
.bol-table td {
  padding: 11px;
  border-right: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
  text-align: left;
  vertical-align: top;
}

.bol-table th {
  background: var(--dark);
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bol-table th:last-child,
.bol-table td:last-child {
  border-right: 0;
}

.bol-instructions {
  padding: 14px;
  border-bottom: 1px solid var(--dark);
}

.bol-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bol-signatures div {
  min-height: 76px;
  display: flex;
  align-items: end;
  padding: 12px;
  border-right: 1px solid var(--dark);
}

.bol-signatures div:last-child {
  border-right: 0;
}

.bol-signatures span {
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--dark);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rate-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.rate-table th,
.rate-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.rate-table th {
  background: #f8fafb;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rate-table td:last-child {
  color: var(--red);
  font-weight: 900;
}

.auth-shell,
.portal-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 86px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.auth-grid.single {
  width: min(560px, 100%);
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.auth-card,
.portal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: white;
  min-width: 0;
  overflow-x: auto;
}

.panel {
  overflow-x: auto;
}

.auth-card h2,
.portal-card h2 {
  margin-bottom: 14px;
}

.role-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.role-links a {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 13px;
  background: #f8fafb;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.portal-top p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.portal-stat {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background: white;
}

.portal-stat strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
}

.portal-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 22px;
}

.portal-layout + .portal-card {
  margin-top: 22px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  overflow-wrap: anywhere;
}

.portal-table th,
.portal-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-table span {
  color: var(--muted);
  font-size: 0.84rem;
}

.management-task-table {
  table-layout: fixed;
}

[data-admin-operations] {
  overflow-x: auto;
}

.management-task-table th:nth-child(1),
.management-task-table td:nth-child(1) {
  width: 88px;
}

.management-task-table th:nth-child(2),
.management-task-table td:nth-child(2) {
  width: 110px;
}

.management-task-table th:nth-child(4),
.management-task-table td:nth-child(4) {
  width: 120px;
}

.management-task-table th:nth-child(5),
.management-task-table td:nth-child(5) {
  width: 96px;
  text-align: center;
}

.management-task-action {
  white-space: nowrap;
}

.management-task-action .button {
  width: 76px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 4px;
  padding: 0 8px;
  background: #f8e7e8;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.dark {
  background: var(--dark);
  color: white;
}

.status-pill.danger {
  background: var(--red);
  color: white;
}

.employee-directory-list {
  display: grid;
  gap: 10px;
}

.employee-directory-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
  min-width: 0;
}

.employee-directory-card strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.employee-directory-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.employee-directory-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.employee-directory-meta > span {
  width: fit-content;
  color: var(--red);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-filter {
  margin-bottom: 18px;
}

.driver-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.driver-stats div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  background: #f8fafb;
}

.driver-stats strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}

.driver-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.driver-card-grid {
  display: grid;
  gap: 14px;
}

.driver-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
}

.driver-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.driver-card h3 {
  margin: 4px 0 4px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.driver-card p {
  margin: 0;
  color: var(--muted);
}

.driver-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.driver-detail-grid div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.driver-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.driver-detail-grid b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.9rem;
}

.finance-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.finance-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-controls input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.quick-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quick-list a,
.quick-list div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px;
  background: #f8fafb;
  color: var(--ink);
  font-weight: 800;
}

.inbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
}

.inbox-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.inbox-thread {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #f8fafb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.inbox-thread.active {
  border-color: var(--red);
  background: #fff5f5;
}

.inbox-thread.unread b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--red);
}

.inbox-thread b,
.inbox-thread small,
.inbox-thread > span:last-child {
  display: block;
}

.inbox-thread b {
  font-size: 0.95rem;
}

.inbox-thread small,
.inbox-thread > span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inbox-detail {
  min-width: 0;
}

.inbox-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.inbox-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.inbox-body {
  margin: 18px 0;
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  background: #f8fafb;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.7;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.trust-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-item {
  min-height: 116px;
  padding: 24px;
  background: white;
}

.trust-item strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.trust-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.info-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.info-card b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 4px;
  background: #f8e7e8;
  color: var(--red);
  font-weight: 900;
}

.info-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.process-band {
  background: var(--dark);
  color: white;
}

.process-band h2 {
  color: white;
}

.process-band .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.process-step {
  min-height: 190px;
  padding: 24px;
  background: #151d26;
}

.process-step strong {
  display: block;
  color: #ffd56a;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
}

.process-step h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-cta {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-cta p {
  margin: 10px 0 0;
  color: var(--muted);
}

.proof-band {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list div {
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: #f8fafb;
  color: var(--ink);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.seo-links {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.city-seo-hub {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 24px;
}

.city-lane-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.city-lane-section .seo-link-grid {
  margin-bottom: 22px;
}

.city-seo-hub .panel {
  margin-bottom: 18px;
}

.city-seo-hub h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.seo-links .section-head {
  margin-bottom: 20px;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.seo-link-grid a {
  min-height: 74px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  padding: 18px;
  background: white;
  color: #1e2b36;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.seo-link-grid a:hover {
  color: var(--red);
  background: #f8fafb;
}

.tool-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.tool-list a,
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafb;
  color: var(--ink);
  font-weight: 800;
}

.status-row span,
.tool-list span {
  color: var(--muted);
  font-weight: 700;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.coverage-map {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7f9fb, #ffffff);
  overflow: hidden;
}

.coverage-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.map-label {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-small {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.coverage-notes {
  display: grid;
  gap: 12px;
}

.coverage-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.coverage-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.coverage-note span {
  color: var(--muted);
  font-weight: 600;
}

footer,
.site-footer {
  border-top: 4px solid var(--red);
  background: #0b0f14;
  color: white;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 18px;
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) repeat(3, minmax(124px, 1fr)) minmax(185px, 0.95fr);
  gap: 22px;
  align-items: start;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner section,
.footer-inner > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer-brand {
  padding-right: 10px;
}

.footer-brand img {
  width: min(170px, 100%);
  height: auto;
  margin-bottom: 6px;
  padding: 5px 7px;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 8px;
  color: white;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}

.footer-inner h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 0.95;
}

.footer-inner h4 {
  position: relative;
  padding-bottom: 0;
  font-size: 0.88rem;
  letter-spacing: 0.045em;
}

.footer-inner h4::after {
  display: none;
}

.footer-inner p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.28;
}

.footer-inner a,
.footer-inner span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.28;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-inner a:hover {
  color: white;
  transform: translateX(2px);
}

.footer-contact {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-quote {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--red);
  padding: 8px 10px;
  color: white !important;
  font-family: var(--display);
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
}

.footer-quote:hover {
  background: #a80010;
  transform: none !important;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  nav {
    width: min(100% - 24px, 1240px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 10px 0 12px;
  }

  .brand img {
    width: min(190px, 52vw);
    height: 46px;
  }

  .links {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px 0 2px;
    font-size: 0.72rem;
    letter-spacing: 0.045em;
    scrollbar-width: thin;
  }

  .links > a,
  .nav-trigger {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0 10px;
    background: #f8fafb;
    white-space: nowrap;
  }

  .nav-item {
    min-height: 36px;
  }

  .dropdown {
    left: 0;
    width: min(280px, calc(100vw - 32px));
    z-index: 35;
  }

  .nav-actions {
    justify-content: end;
    gap: 8px;
    min-width: 0;
  }

  .notification-button,
  .refresh-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .content { grid-template-columns: 1fr; }
  .trust-inner,
  .info-grid,
  .map-layout,
  .seo-link-grid,
  .result-grid,
  .bol-head,
  .bol-blocks,
  .bol-signatures,
  .auth-grid,
  .portal-grid,
  .portal-layout,
  .driver-stats,
  .driver-detail-grid,
  .inbox-layout,
  .quote-service-row,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }
  .footer-contact {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    padding-left: 0;
  }
  .section-head,
  .portal-top,
  .service-cta {
    flex-direction: column;
    align-items: start;
  }

  .portal-shell,
  .auth-shell {
    width: min(100% - 24px, 1240px);
    padding: 36px 0 56px;
  }

  .portal-card,
  .auth-card {
    padding: 20px;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-table {
    min-width: 680px;
  }

  .rate-table,
  .bol-table {
    min-width: 620px;
  }

  .bol-preview {
    overflow-x: auto;
  }

  .management-task-table {
    min-width: 620px;
  }

  .button-row {
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .contact-button { display: none; }
  nav {
    width: min(100% - 20px, 1240px);
    grid-template-columns: 1fr auto;
  }
  .brand img {
    width: min(168px, 50vw);
    height: 42px;
  }
  .login-link {
    font-size: 0.72rem;
  }
  .notification-button {
    gap: 6px;
    padding: 0 9px;
  }
  .notification-button > span:not(.notification-icon) {
    display: none;
  }
  .refresh-button {
    padding: 0 9px;
  }
  .links {
    margin: 0 -2px;
    padding-bottom: 6px;
  }
  .links > a,
  .nav-trigger {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.7rem;
  }
  .hero-inner {
    min-height: 0;
    padding: 44px 0;
  }
  h1 {
    font-size: clamp(2.25rem, 14vw, 3.2rem);
  }
  h2 {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }
  .hero p {
    font-size: 1rem;
  }
  .content,
  .info-section {
    width: min(100% - 24px, 1240px);
    padding: 38px 0 52px;
  }
  .service-cta {
    width: min(100% - 24px, 1240px);
    padding: 22px;
  }
  .coverage-map,
  .coverage-map svg {
    min-height: 360px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-card,
  .auth-card {
    padding: 16px;
  }
  .portal-top {
    gap: 14px;
    margin-bottom: 16px;
  }
  .button,
  .button.secondary {
    width: 100%;
    min-height: 44px;
  }
  .inbox-toolbar .button,
  .finance-controls .button,
  .management-task-action .button,
  .quote-service-row .button,
  .portal-table .button {
    width: auto;
  }
  .result-grid,
  .trust-inner,
  .seo-link-grid,
  .driver-stats,
  .driver-detail-grid {
    grid-template-columns: 1fr;
  }
  .driver-card-head,
  .inbox-detail-head,
  .finance-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .processing-modal {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .processing-copy .eyebrow {
    justify-content: center;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.35in;
  }

  body {
    background: white;
  }

  header,
  footer,
  .button-row,
  .portal-top,
  .portal-grid,
  .portal-layout,
  .portal-card h2,
  .tool-result,
  .auth-shell > .panel > h1,
  .auth-shell > .panel > .intro {
    display: none !important;
  }

  .auth-shell,
  .portal-shell,
  .panel,
  .portal-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .bol-preview {
    margin: 0;
    border-width: 1px;
    page-break-inside: avoid;
    break-inside: avoid;
    font-size: 0.82rem;
  }

  .bol-head {
    grid-template-columns: 1fr 220px;
    gap: 10px;
    padding: 10px;
  }

  .bol-head img {
    width: 210px;
    height: 38px;
    margin-bottom: 6px;
  }

  .bol-head strong {
    font-size: 1.45rem;
  }

  .bol-head span,
  .bol-numbers span,
  .bol-preview p {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .bol-numbers span {
    padding: 5px 7px;
  }

  .bol-blocks section {
    min-height: 86px;
    padding: 8px;
  }

  .bol-preview h4 {
    margin-bottom: 4px;
    font-size: 0.98rem;
  }

  .bol-table th,
  .bol-table td {
    padding: 6px;
    font-size: 0.72rem;
  }

  .bol-instructions {
    padding: 8px;
  }

  .bol-signatures div {
    min-height: 48px;
    padding: 8px;
  }

  .bol-signatures span {
    font-size: 0.66rem;
  }
}


.pod-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pod-photo-list figure {
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.pod-photo-list img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f3f4f6;
}

.pod-photo-list figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #475569;
  overflow-wrap: anywhere;
}


/* Medline-inspired enterprise polish */
:root {
  --med-blue: #c9232d;
  --med-blue-dark: #9f1821;
  --med-sky: #fff1f2;
  --med-green: #111820;
  --med-border: #d9e3ea;
  --med-soft: #f6f9fb;
}

body {
  background: #f7f9fb;
}

header {
  border-bottom: 1px solid var(--med-border);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}

nav {
  min-height: 76px;
  gap: 26px;
}

.brand img {
  width: min(250px, 20vw);
  height: 52px;
}

.links {
  justify-content: flex-start;
  gap: clamp(18px, 2.1vw, 34px);
  color: #26313b;
  font-size: 0.84rem;
  letter-spacing: 0.035em;
}

.links > a,
.nav-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.links > a:hover,
.nav-trigger:hover {
  color: var(--med-blue);
}

.dropdown {
  width: 292px;
  border: 1px solid var(--med-border);
  border-top: 4px solid var(--med-blue);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 24px 54px rgba(159, 24, 33, 0.18);
}

.dropdown a {
  border-radius: 6px;
  color: #111820;
  font-size: 0.86rem;
  font-weight: 800;
}

.dropdown a:hover {
  background: var(--med-blue);
  color: #fff;
}

.contact-button,
.button {
  border-radius: 3px;
  background: var(--med-blue);
  border-color: var(--med-blue);
}

.contact-button:hover,
.button:hover {
  background: var(--med-blue-dark);
  border-color: var(--med-blue-dark);
}

.button.secondary {
  background: #fff;
  color: var(--med-blue);
  border-color: #bdd0df;
}

.button.secondary:hover {
  background: var(--med-sky);
}

.login-link {
  color: var(--med-blue);
  font-weight: 900;
}

.hero {
  min-height: 360px;
  border-bottom: 1px solid var(--med-border);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 45%, rgba(238,246,251,0.66) 70%, rgba(238,246,251,0.16) 100%),
    var(--page-hero-image, url("assets/eastern-freight-lines-truck-white-box-black-cab.png")) center right / cover;
}

.hero-inner {
  min-height: 360px;
  padding: 46px 0;
}

.hero-copy {
  padding: 0;
}

.hero h1,
h1 {
  max-width: 780px;
  color: #111820;
  font-family: var(--body);
  font-size: clamp(2.15rem, 4.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}

.hero p,
.hero-copy p,
.lead-copy,
.intro {
  color: #42576b;
}

.eyebrow,
.section-kicker {
  color: var(--med-blue) !important;
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
}

.eyebrow::before {
  background: var(--med-green) !important;
}

h2 {
  color: #111820;
  font-family: var(--body);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.12;
}

.panel,
.side-panel,
.service,
.info-card,
.promise,
.industry,
.operation-card,
.portal-card,
.result-item,
.quick-list a,
.quick-list div {
  border-color: var(--med-border);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.05);
}

.content,
.info-section,
.section,
.city-lane-section,
.seo-links {
  padding-top: 58px;
  padding-bottom: 58px;
}

.trust-inner,
.proof-row,
.info-grid,
.process-grid,
.seo-link-grid,
.services,
.promise-grid,
.industry-grid {
  gap: 14px;
  background: transparent;
  border: 0;
}

.trust-item,
.proof-row div,
.info-card,
.process-step,
.service,
.promise,
.industry {
  border: 1px solid var(--med-border);
  background: #fff;
}

.trust-item strong,
.proof-row strong,
.info-card b,
.process-step strong {
  color: var(--med-blue);
}

input,
select,
textarea {
  border-color: #c9d8e3 !important;
  border-radius: 4px !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(201, 35, 45, 0.16);
  border-color: var(--med-blue) !important;
}

.site-footer {
  background: #111820;
}

.footer-quote {
  background: var(--med-blue) !important;
}

@media (max-width: 880px) {
  nav { min-height: 76px; }
  .hero,
  .hero-inner { min-height: 310px; }
}



/* EFL red hero overlay and light-section readability fix */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  min-height: 500px;
  border-bottom: 1px solid var(--med-border);
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.16), rgba(17, 24, 32, 0.04)),
    var(--page-hero-image, url("assets/eastern-freight-lines-truck-white-box-black-cab.png")) center right / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(68%, 980px);
  background: linear-gradient(90deg, rgba(159, 24, 33, 0.98) 0%, rgba(201, 35, 45, 0.92) 72%, rgba(201, 35, 45, 0.62) 100%);
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0% 100%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 32, 0.18), rgba(17, 24, 32, 0));
  z-index: -2;
}

.hero-inner {
  min-height: 500px;
  align-items: center;
}

.hero-inner > div:first-child,
.hero-copy {
  width: min(650px, 100%);
  max-width: 650px;
}

.hero h1,
.hero .hero-copy h1 {
  max-width: 620px;
  color: #fff !important;
  font-family: var(--body);
  font-size: clamp(3rem, 5.25vw, 5.35rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: none;
}

.hero p,
.hero .hero-copy,
.hero .hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: clamp(1.05rem, 1.55vw, 1.34rem);
  line-height: 1.45;
}

.hero .eyebrow {
  color: #fff !important;
}

.hero .eyebrow::before {
  background: #111820 !important;
}

.hero .button {
  background: #111820;
  border-color: #111820;
  color: #fff;
}

.hero .button:hover {
  background: #000;
  border-color: #000;
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.82);
  color: #111820;
}

.home-intro,
.trust-section,
.operations,
.fleet-proof,
.driver-band,
.shipper-categories,
.content,
.info-section,
.section,
.city-lane-section,
.seo-links,
.proof-band,
.process-band {
  color: #111820;
}

.home-intro p,
.trust-section p,
.operations p,
.fleet-proof p,
.driver-band p,
.shipper-categories p,
.content p,
.info-section p,
.section p,
.city-lane-section p,
.seo-links p,
.proof-band p,
.process-band p,
.section-head p,
.promise p,
.industry p,
.service p,
.info-card p,
.operation-card p,
.process-step p {
  color: #42576b;
}

.home-intro h2,
.trust-section h2,
.operations h2,
.fleet-proof h2,
.driver-band h2,
.shipper-categories h2,
.content h2,
.info-section h2,
.section h2,
.city-lane-section h2,
.seo-links h2,
.proof-band h2,
.process-band h2,
.promise strong,
.industry strong,
.service h3,
.info-card h3,
.operation-card h3,
.process-step h3 {
  color: #111820;
}

@media (max-width: 880px) {
  .hero {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(17, 24, 32, 0.1), rgba(17, 24, 32, 0.08)),
      var(--page-hero-image, url("assets/eastern-freight-lines-truck-white-box-black-cab.png")) center right / cover;
  }

  .hero::before {
    width: 100%;
    clip-path: none;
    background: linear-gradient(180deg, rgba(159, 24, 33, 0.96), rgba(201, 35, 45, 0.78), rgba(201, 35, 45, 0.28));
  }

  .hero-inner {
    min-height: 520px;
  }
}


/* Final red split hero treatment and readable light sections */
.hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--page-hero-image, url("assets/eastern-freight-lines-truck-white-box-black-cab.png")) center right / cover no-repeat !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(68%, 980px);
  background: linear-gradient(90deg, rgba(154, 16, 25, 0.98) 0%, rgba(201, 35, 45, 0.94) 76%, rgba(201, 35, 45, 0.62) 100%);
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.24) 0%, rgba(17, 24, 32, 0.05) 46%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(112deg, transparent 0 60%, rgba(154, 16, 25, 0.18) 60% 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner,
.hero-copy,
.hero-inner > div:first-child {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero .hero-copy h1,
.hero-copy h1 {
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.hero p,
.hero .hero-copy,
.hero .hero-copy p,
.hero .lead-copy,
.hero .intro {
  color: rgba(255, 255, 255, 0.94) !important;
}

.hero .eyebrow,
.hero .section-kicker {
  color: #fff !important;
}

.hero .button:not(.secondary) {
  background: #111820 !important;
  border-color: #111820 !important;
  color: #fff !important;
}

.hero .button.secondary {
  background: #fff !important;
  border-color: #fff !important;
  color: #9a1019 !important;
}

.home-intro,
.shipper-categories,
.trust-section,
.operations,
.fleet-proof,
.content,
.info-section,
.city-lane-section,
.seo-links,
.proof-band,
.process-band,
.portal-panel,
.form-section,
.tool-section,
.customer-section,
.admin-section,
.dispatch-section {
  color: #111820;
}

.home-intro :is(h1,h2,h3,h4,strong),
.shipper-categories :is(h1,h2,h3,h4,strong),
.trust-section :is(h1,h2,h3,h4,strong),
.operations :is(h1,h2,h3,h4,strong),
.fleet-proof :is(h1,h2,h3,h4,strong),
.content :is(h1,h2,h3,h4,strong),
.info-section :is(h1,h2,h3,h4,strong),
.city-lane-section :is(h1,h2,h3,h4,strong),
.seo-links :is(h1,h2,h3,h4,strong),
.proof-band :is(h1,h2,h3,h4,strong),
.process-band :is(h1,h2,h3,h4,strong),
.portal-panel :is(h1,h2,h3,h4,strong),
.form-section :is(h1,h2,h3,h4,strong),
.tool-section :is(h1,h2,h3,h4,strong),
.customer-section :is(h1,h2,h3,h4,strong),
.admin-section :is(h1,h2,h3,h4,strong),
.dispatch-section :is(h1,h2,h3,h4,strong) {
  color: #111820 !important;
}

.home-intro p,
.shipper-categories p,
.trust-section p,
.operations p,
.fleet-proof p,
.content p,
.info-section p,
.city-lane-section p,
.seo-links p,
.proof-band p,
.process-band p,
.portal-panel p,
.form-section p,
.tool-section p,
.customer-section p,
.admin-section p,
.dispatch-section p,
.panel p,
.card p,
.info-card p,
.operation-card p,
.process-step p {
  color: #42576b !important;
}

:is(.dark-band, .site-footer, .footer-main, .tracking, .driver-highlight, .service-cta, .portal-hero, .admin-hero, .dispatcher-hero, .customer-hero) :is(h1,h2,h3,h4,p,strong,a,span) {
  color: inherit;
}

/* Keep text readable anywhere the layout uses a dark or red background. */
:is(.dark-band, .site-footer, .footer-main, .tracking, .driver-highlight, .service-cta, .portal-hero, .admin-hero, .dispatcher-hero, .customer-hero, .driver-hero, .login-hero, .money-cta) {
  color: #fff !important;
}

:is(.dark-band, .site-footer, .footer-main, .tracking, .driver-highlight, .service-cta, .portal-hero, .admin-hero, .dispatcher-hero, .customer-hero, .driver-hero, .login-hero, .money-cta) :is(h1,h2,h3,h4,h5,h6,p,li,strong,span,a,label,small) {
  color: #fff !important;
}

:is(.dark-band, .site-footer, .footer-main, .tracking, .driver-highlight, .service-cta, .portal-hero, .admin-hero, .dispatcher-hero, .customer-hero, .driver-hero, .login-hero, .money-cta) :is(.muted,.eyebrow,.section-kicker,.small-note) {
  color: rgba(255, 255, 255, 0.76) !important;
}

/* Process bands use a dark background; keep the intro copy bright while cards stay readable. */
.process-band {
  background: #111820 !important;
  color: #fff !important;
}

.process-band > .section-head,
.process-band > .section-head :is(h1,h2,h3,p,span,strong),
.process-band > .section-head p {
  color: #fff !important;
}

.process-band > .section-head p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.process-band .process-step {
  background: #fff !important;
  color: #111820 !important;
}

.process-band .process-step :is(h3,strong,span) {
  color: #111820 !important;
}

.process-band .process-step p {
  color: #2f4358 !important;
}

@media (max-width: 880px) {
  .hero::before {
    width: 100%;
    clip-path: none;
    background: linear-gradient(180deg, rgba(154, 16, 25, 0.96), rgba(201, 35, 45, 0.82), rgba(154, 16, 25, 0.42));
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(17, 24, 32, 0.14), rgba(17, 24, 32, 0.04));
  }
}



/* Compact hero height across all public pages */
.hero {
  min-height: 300px !important;
}

.hero-inner {
  min-height: 300px !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

.hero::before {
  width: min(62%, 840px) !important;
}

.hero h1,
.hero .hero-copy h1,
.hero-copy h1 {
  max-width: 560px;
  font-size: clamp(2.05rem, 3.55vw, 3.65rem) !important;
  line-height: 1.03 !important;
}

.hero p,
.hero .hero-copy,
.hero .hero-copy p,
.hero .lead-copy,
.hero .intro {
  max-width: 560px;
  font-size: clamp(0.96rem, 1.14vw, 1.08rem) !important;
  line-height: 1.38 !important;
}

@media (max-width: 980px) {
  .hero,
  .hero-inner {
    min-height: 350px !important;
  }

  .hero::before {
    width: 100% !important;
  }
}



/* Footer legal links and sitemap/legal page polish */
.footer-legal {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-legal a:hover {
  color: #fff !important;
}

.legal-page .panel,
.sitemap-page .panel {
  padding: clamp(28px, 4vw, 48px);
}

.legal-grid,
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.legal-grid article,
.sitemap-grid section {
  padding: 22px;
  border: 1px solid #d9e3ea;
  border-top: 4px solid var(--med-blue, #c9232d);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 24, 32, 0.07);
}

.legal-grid h3,
.sitemap-grid h2 {
  margin-top: 0;
}

.sitemap-wide {
  grid-column: 1 / -1;
}

.sitemap-page .seo-link-grid {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .footer-bottom {
    align-items: flex-start;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .legal-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}



/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9999;
  width: min(1080px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 6px solid var(--med-blue, #c9232d);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.98);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, 18px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translate(-50%, 18px);
}

.cookie-copy {
  display: grid;
  gap: 5px;
}

.cookie-copy strong {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 900;
}

.cookie-copy span {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.9rem;
  line-height: 1.42;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions a {
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--med-blue, #c9232d);
  border-radius: 4px;
  background: var(--med-blue, #c9232d);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
}

.cookie-button:hover {
  filter: brightness(1.06);
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    bottom: 12px;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .cookie-button {
    flex: 1 1 145px;
  }
}



/* Accessible hidden text utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
