:root {
  --brand-900: #121a2f;
  --brand-800: #1e315f;
  --brand-700: #2f4f98;
  --accent-500: #f26b1d;
  --accent-600: #d95a12;
  --signal-500: #ffb44a;
  --ink-900: #0f1321;
  --ink-700: #2a3451;
  --ink-500: #616c87;
  --line-300: #d5ddeb;
  --surface-100: #eff3fa;
  --surface-50: #f8faff;
  --white: #ffffff;
  --radius-lg: 10px;
  --radius-md: 6px;
  --shadow-1: 0 10px 20px rgba(20, 30, 52, 0.08);
  --shadow-2: 0 18px 34px rgba(18, 29, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, #f8fafe 0%, var(--surface-100) 100%);
}

a {
  color: inherit;
}

.top-strip {
  min-height: 38px;
  background: var(--brand-900);
  color: #e8edf8;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-strip p {
  margin: 0;
  font-size: 0.89rem;
}

.top-links {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}

.top-links a {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e8edf8;
}

.site-header,
main,
.site-footer {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.site-header {
  margin-top: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line-300);
  border-radius: var(--radius-lg);
  background: var(--white);
  min-height: 72px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 10px;
  z-index: 20;
  box-shadow: var(--shadow-1);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  width: min(52vw, 252px);
  height: 88px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main-nav {
  display: inline-flex;
  gap: 22px;
  align-items: center;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-300);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-900);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.84rem;
  color: #3b3f4d;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.admin-header .brand {
  pointer-events: none;
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-section-nav a {
  border: 1px solid #d7ddea;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f7f9fd;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

.admin-section-nav a::after {
  display: none;
}

.admin-section-nav a.active,
.admin-section-nav a:hover,
.admin-section-nav a:focus-visible {
  background: #e8f4ff;
  border-color: #b5d8ff;
  color: var(--brand-800);
}

.btn {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: var(--white);
  min-height: 42px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 167, 160, 0.22);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn-small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.75rem;
}

.btn-alt {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.btn-alt:hover,
.btn-alt:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: #e6ebf2;
  color: #232734;
  box-shadow: none;
}

.floating-track-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-600);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(18, 26, 47, 0.28);
}

.floating-track-btn:hover,
.floating-track-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

main {
  padding-bottom: 58px;
}

section {
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  margin: 0 0 11px;
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
}

h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9bcde0;
  margin-bottom: 8px;
}

.eyebrow.dark {
  color: var(--brand-700);
}

.hero,
.tracking,
.feature-split,
.locations-results-wrap,
.network,
.route-map-head,
.quote-band,
.admin-grid,
.client-review-actions {
  display: grid;
  gap: 14px;
}

.hero {
  grid-template-columns: 1.35fr 0.88fr;
}

.hero-main {
  background: linear-gradient(132deg, var(--brand-900), var(--brand-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-2);
}

.hero-inline-image {
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.hero-inline-image img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
}

.hero-main h1 {
  color: var(--white);
  max-width: 13.5ch;
}

.lead {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-side,
.tracking-card,
.status-card,
.feature-panel,
.route-map-wrap,
.timeline-wrap,
.client-review-wrap,
.location-search,
.map-card,
.location-card,
.service-card,
.quick-link-card,
.quote-band,
.network,
.cta,
.hub-table-wrap,
.admin-card,
.admin-panel,
.page-hero {
  background: var(--white);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.hero-side,
.tracking-card,
.status-card,
.feature-panel,
.route-map-wrap,
.timeline-wrap,
.client-review-wrap,
.location-search,
.quote-band,
.network,
.cta,
.hub-table-wrap,
.admin-card,
.admin-panel,
.page-hero {
  padding: clamp(18px, 2.4vw, 28px);
}

.hero-side p,
.tracking-card p,
.status-card p,
.client-review-wrap p,
.hint,
.quick-link-card p,
.feature-panel p,
.timeline-empty,
.route-last-scan,
.location-card p,
.service-card p,
.quote-band p,
.network p,
.muted,
.empty-state {
  color: var(--ink-500);
}

.section-head {
  margin-bottom: 10px;
}

.section-head p {
  margin-bottom: 7px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-link-card {
  padding: 18px;
  border-left: 4px solid var(--accent-500);
}

.quick-link-card h3 {
  margin-bottom: 7px;
}

.trust-band,
.problem-section,
.service-pillar-section,
.journey-section,
.story-section,
.integration-section,
.faq-section {
  background: var(--white);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(18px, 2.4vw, 28px);
}

.trust-band {
  display: grid;
  gap: 10px;
}

.trust-band p {
  color: var(--ink-700);
  font-weight: 600;
}

.trust-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-pill-row span {
  border: 1px solid #d4dceb;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.86rem;
  color: var(--ink-700);
  background: #f8fbff;
}

.problem-grid,
.service-pillar-grid,
.journey-grid,
.story-grid,
.integration-grid,
.faq-grid {
  display: grid;
  gap: 12px;
}

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

.problem-card,
.service-pillar,
.story-card,
.faq-item {
  border: 1px solid #d9deea;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.problem-card p,
.service-pillar p,
.story-card p,
.faq-item p {
  color: var(--ink-500);
}

.service-pillar-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-pillar h3 {
  font-size: 1.17rem;
}

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

.journey-step {
  border: 1px solid #d8ddea;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.journey-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.journey-step p {
  color: var(--ink-500);
}

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

.story-card strong {
  display: block;
  margin-top: 10px;
  color: var(--brand-700);
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.18rem;
}

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

.integration-grid span {
  border: 1px solid #d5dbe8;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  font-weight: 700;
  color: var(--ink-700);
}

.faq-grid {
  grid-template-columns: 1fr;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-700);
}

.faq-item p {
  margin-top: 9px;
}

.feature-split {
  grid-template-columns: 1.25fr 0.85fr;
}

.feature-panel-main {
  background: linear-gradient(180deg, #ffffff, #f7fafe);
}

.feature-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-700);
}

.feature-list li + li {
  margin-top: 5px;
}

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

.metric-list div {
  border: 1px solid #d9dfec;
  border-radius: 8px;
  padding: 11px;
  background: #fbfcff;
}

.metric-list strong {
  display: block;
  color: var(--brand-800);
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.7rem;
}

.metric-list span {
  color: var(--ink-500);
  font-size: 0.9rem;
}

.page-hero {
  background: linear-gradient(128deg, var(--brand-800), var(--brand-700));
  color: var(--white);
}

.page-hero-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 14px;
}

.page-hero-image {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero-image img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.page-hero h1,
.page-hero p,
.page-hero h2,
.page-hero h3 {
  color: var(--white);
}

.page-hero .eyebrow {
  color: #cceaf3;
}

.tracking {
  grid-template-columns: 1.1fr 0.9fr;
}

.tracking-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 10px;
}

.tracking-form input,
.filter-form input,
.filter-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  border-radius: 8px;
  border: 1px solid #cfd5e2;
  width: 100%;
  padding: 10px 11px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.tracking-form input {
  flex: 1;
  min-width: 180px;
}

.tracking-form input:focus,
.filter-form input:focus,
.filter-form select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 2px solid rgba(0, 167, 160, 0.24);
  border-color: var(--accent-500);
}

.hint code {
  color: var(--brand-700);
  font-weight: 700;
}

.status-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.picked {
  background: #ddeeff;
  color: #2a4d78;
}

.status-pill.in-transit {
  background: #ffefd2;
  color: #7a4d06;
}

.status-pill.out-for-delivery {
  background: #dcf4ff;
  color: #1d5468;
}

.status-pill.delivered {
  background: #daf7e5;
  color: #175e35;
}

.status-pill.exception,
.status-pill.delayed {
  background: #ffe1d6;
  color: #7f3421;
}

.route-map-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.route-map-meta {
  text-align: right;
}

.is-hidden {
  display: none !important;
}

.client-review-summary {
  margin-top: 10px;
}

.client-review-group + .client-review-group {
  margin-top: 12px;
}

.client-review-group h3 {
  margin-bottom: 8px;
}

.client-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.client-review-grid div {
  border: 1px solid #d8dfec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px;
}

.client-review-grid dt {
  color: #646d7e;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.client-review-grid dd {
  margin: 6px 0 0;
  color: #202638;
  font-weight: 700;
}

.client-review-actions {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, max-content));
}

.client-shipper-wrap {
  margin-top: 10px;
}

.client-shipper-panel {
  margin-top: 10px;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px;
}

.client-correction-form {
  margin-top: 12px;
}

#routeProgressValue {
  color: var(--brand-800);
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.route-canvas {
  --route-progress: 0.02;
  position: relative;
  border-radius: 9px;
  border: 1px solid #d5dceb;
  background: linear-gradient(180deg, #f9fbfe, #f3f7fc);
  padding: 16px;
  overflow: hidden;
}

.route-map-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.44;
  background-image: linear-gradient(rgba(13, 34, 64, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 34, 64, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}

.route-line-wrap {
  height: 80px;
  position: relative;
  margin-bottom: 12px;
}

.route-line-base,
.route-line-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 999px;
}

.route-line-base {
  width: 100%;
  background: #d6dce9;
}

.route-line-fill {
  width: calc(var(--route-progress) * 100%);
  background: linear-gradient(90deg, var(--brand-700), var(--accent-500));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.route-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-700);
}

.route-node-start {
  left: 0;
}

.route-node-mid {
  left: 50%;
}

.route-node-end {
  left: 100%;
}

.route-truck {
  position: absolute;
  left: calc(var(--route-progress) * 100%);
  top: 50%;
  width: 42px;
  height: 20px;
  transform: translate(-50%, -88%);
  transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s ease;
}

.route-truck::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 25px;
  height: 10px;
  border-radius: 2px;
  background: var(--brand-800);
}

.truck-cabin {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 15px;
  height: 13px;
  border-radius: 2px 4px 2px 2px;
  background: var(--signal-500);
}

.truck-wheel {
  position: absolute;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #262a33;
}

.truck-wheel-a {
  left: 6px;
}

.truck-wheel-b {
  right: 6px;
}

.route-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.route-labels strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #646d7e;
}

.route-labels span {
  display: block;
  margin-top: 4px;
  color: #25293a;
  font-weight: 700;
}

.route-last-scan {
  margin-top: 12px;
  font-size: 0.92rem;
}

.route-live-map {
  margin-top: 14px;
  border: 1px solid #d6ddeb;
  border-radius: 9px;
  background: #fff;
  padding: 8px;
}

.route-live-map iframe,
.map-card iframe {
  width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 280px;
}

.route-live-map a,
.map-card a {
  display: inline-block;
  margin-top: 7px;
  color: var(--brand-700);
  font-weight: 700;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.timeline li {
  border: 1px solid #d7deeb;
  background: #fbfdff;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 12px;
}

.event-time {
  color: var(--brand-700);
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1rem;
}

.event-body p + p {
  margin-top: 5px;
}

.service-grid,
.location-grid,
.stats-grid,
.network,
.locations-results-wrap,
.admin-grid {
  display: grid;
  gap: 12px;
}

.service-grid,
.location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-card,
.service-card,
.quick-link-card,
.stats-grid article {
  padding: 16px;
}

.service-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-700);
}

.service-card li + li {
  margin-top: 4px;
}

.card-media-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d8deea;
  display: block;
  margin-bottom: 10px;
  max-height: 170px;
  object-fit: cover;
  background: #edf3fb;
}

.hero-side .card-media-image {
  max-height: 150px;
}

.service-pillar .card-media-image {
  max-height: 100px;
}

.quick-link-card .card-media-image {
  max-height: 120px;
}

.location-card .meta {
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 7px;
}

.network {
  grid-template-columns: 1fr 1fr;
}

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

.stats-grid strong {
  display: block;
  color: var(--brand-800);
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.8rem;
}

.stats-grid span {
  color: var(--ink-500);
}

.filter-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto;
  gap: 10px;
  margin: 10px 0 14px;
}

.admin-filter-form {
  grid-template-columns: 1.2fr 1fr 1fr auto;
}

.locations-results-wrap {
  grid-template-columns: 1fr 1fr;
}

.location-results,
.shipment-list,
.metric-list {
  display: grid;
  gap: 10px;
}

.location-select,
.shipment-item {
  border: 1px solid #d5dceb;
  border-radius: 8px;
  background: #fff;
}

.location-select {
  width: 100%;
  text-align: left;
  padding: 12px;
  cursor: pointer;
  font-family: inherit;
}

.location-select:hover,
.location-select:focus-visible,
.location-select.active {
  border-color: var(--accent-500);
  box-shadow: inset 0 0 0 1px var(--accent-500);
}

.location-select p + p {
  margin-top: 4px;
}

.map-card {
  padding: 14px;
}

.shipment-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.shipment-item p + p {
  margin-top: 4px;
}

.shipment-id {
  color: var(--brand-700);
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.quote-band {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-left: 5px solid var(--signal-500);
}

.hub-table-scroll {
  overflow-x: auto;
}

.hub-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.hub-table th,
.hub-table td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid #d9dfea;
}

.hub-table th {
  color: var(--brand-700);
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.02rem;
}

.image-showcase {
  background: var(--white);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(18px, 2.4vw, 28px);
}

.image-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.image-showcase-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d8deea;
  display: block;
  background: #eef4fd;
}

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

.admin-main {
  display: grid;
  gap: 12px;
}

.admin-section-panel {
  margin: 0;
}

.admin-section-panel.is-tab-hidden {
  display: none !important;
}

.admin-content-fields {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.content-studio-card {
  padding: 14px;
}

.content-studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.content-studio-filters {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 10px;
  flex: 1 1 680px;
}

.content-studio-toolbar-actions {
  display: grid;
  gap: 8px;
  align-content: end;
  justify-items: end;
  min-width: 220px;
}

.admin-content-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.content-group-tab {
  border: 1px solid #cfd7e7;
  border-radius: 999px;
  background: #f2f6fd;
  color: #40516f;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-group-tab:hover,
.content-group-tab:focus-visible {
  border-color: var(--accent-500);
  color: var(--brand-700);
}

.content-group-tab.active {
  border-color: var(--brand-700);
  background: rgba(18, 91, 130, 0.12);
  color: var(--brand-700);
}

.content-field-card {
  border: 1px solid #d6dceb;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.content-field-card.is-image {
  border-left: 4px solid var(--accent-500);
}

.content-field-card.is-text {
  border-left: 4px solid var(--brand-700);
}

.content-field-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.content-field-title {
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.04rem;
  color: var(--brand-800);
}

.content-field-meta {
  color: var(--ink-500);
  font-size: 0.86rem;
}

.content-field-key {
  border: 1px solid #d5dceb;
  border-radius: 999px;
  background: #f2f6fd;
  color: #40516f;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  letter-spacing: 0.02em;
}

.content-field-input-wrap {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #495066;
  font-weight: 700;
}

.content-image-tools {
  display: grid;
  gap: 8px;
}

.content-image-preview {
  border: 1px solid #d5dceb;
  border-radius: 8px;
  background: #f3f6fc;
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
}

.content-image-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.content-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-field-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.content-studio-savebar {
  margin-top: 4px;
  border-top: 1px solid #dbe2ef;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.content-dirty-state {
  color: #9a4e0c;
  font-weight: 700;
}

.admin-content-workbench {
  grid-template-columns: 0.9fr 1.1fr;
}

.content-advanced-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

#adminAdvancedContentPanel {
  margin-top: 12px;
  border-top: 1px solid #d9e1ef;
  padding-top: 12px;
}

.content-selected-media {
  font-weight: 700;
  color: var(--brand-700);
}

.admin-media-library {
  display: grid;
  gap: 10px;
}

.admin-media-item {
  grid-template-columns: 124px 1fr auto;
  align-items: center;
}

.admin-media-item.is-selected {
  border-color: var(--accent-500);
  box-shadow: inset 0 0 0 1px var(--accent-500);
}

.admin-media-preview {
  width: 100%;
  height: 86px;
  border-radius: 8px;
  border: 1px solid #d4dceb;
  background: #eff4fb;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-preview span {
  color: #6d7890;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-media-body p + p {
  margin-top: 4px;
}

.admin-media-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-profile-sections {
  display: grid;
  gap: 12px;
}

.admin-profile-section {
  border: 1px solid #d5dceb;
  border-radius: 8px;
  padding: 10px 10px 12px;
  background: #fbfdff;
}

.admin-profile-section legend {
  font-family: "Barlow Condensed", "Source Sans 3", sans-serif;
  font-size: 1.1rem;
  color: var(--brand-800);
  padding: 0 6px;
}

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

.admin-profile-wide {
  grid-column: 1 / -1;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.admin-inline-form label {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  color: #424a5b;
  font-weight: 700;
  flex: 1 1 220px;
}

.admin-inline-form .btn {
  flex: 0 0 auto;
}

.admin-footer a {
  margin-left: 0;
}

.admin-visual-meta-form {
  margin-top: 10px;
}

.admin-visual-editor-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 12px;
  margin-top: 12px;
}

.admin-visual-sidebar {
  border: 1px solid #d7deeb;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
  max-height: 700px;
  overflow: auto;
}

.admin-visual-sidebar h3 {
  margin-bottom: 8px;
}

.admin-visual-sidebar h3:not(:first-child) {
  margin-top: 14px;
}

.admin-device-btn.active {
  background: var(--brand-700);
  color: var(--white);
  border-color: var(--brand-700);
}

.admin-visual-preview-mode-btn.active {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--white);
}

.admin-visual-active-section-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-800);
}

.admin-visual-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.admin-visual-list-item {
  border: 1px solid #d5dceb;
  border-radius: 8px;
  background: #fff;
  color: #1e2638;
  padding: 10px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-visual-list-item:hover,
.admin-visual-list-item:focus-visible {
  border-color: var(--accent-500);
  box-shadow: inset 0 0 0 1px var(--accent-500);
}

.admin-visual-list-item.active {
  border-color: var(--brand-600);
  box-shadow: inset 0 0 0 1px var(--brand-600);
  background: #f8fbff;
}

.admin-visual-list-item .status-pill {
  flex-shrink: 0;
}

.admin-visual-section-map-item {
  justify-content: flex-start;
  gap: 6px;
}

.admin-visual-section-map-item .map-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d2dbeb;
  background: #f3f7fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-visual-section-map-item .map-label {
  flex: 1 1 auto;
  min-width: 0;
}

#adminVisualSectionHtml {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-visual-structured-group {
  border-top: 1px solid #dce3f0;
  margin-top: 10px;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.admin-visual-structured-group h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-800);
}

.admin-visual-media-hint {
  margin: 0;
  font-size: 0.82rem;
}

.admin-visual-field-list {
  display: grid;
  gap: 8px;
}

.admin-visual-field-row {
  border: 1px solid #d7deeb;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.admin-visual-field-row.is-image {
  background: #fbfdff;
}

.admin-visual-field-row label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #3a445c;
}

.admin-visual-image-preview {
  border: 1px solid #dce3f0;
  border-radius: 6px;
  background: #f5f8fd;
  min-height: 100px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-visual-image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.admin-visual-image-preview span {
  font-size: 0.8rem;
  color: #61708f;
}

.admin-visual-page-image-card {
  cursor: pointer;
}

.admin-visual-page-image-card:hover,
.admin-visual-page-image-card:focus-visible {
  border-color: var(--accent-500);
  box-shadow: inset 0 0 0 1px var(--accent-500);
}

.admin-visual-page-image-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #495772;
  font-weight: 700;
}

.admin-visual-page-image-src {
  margin: 0;
  font-size: 0.76rem;
  color: #59688a;
  word-break: break-word;
}

.admin-visual-page-image-src code {
  font-size: inherit;
}

.admin-visual-page-image-actions {
  justify-content: flex-start;
  gap: 8px;
}

.admin-visual-template-image-row {
  border-left: 3px solid var(--brand-700);
}

.visual-editor-image-block {
  margin: 14px 0;
}

.visual-editor-image-block img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #d8e0ed;
  display: block;
}

.admin-visual-frame-shell {
  border: 1px solid #d7deeb;
  border-radius: 8px;
  background: #f4f7fc;
  min-height: 740px;
  overflow: auto;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.admin-visual-preview-frame {
  width: 100%;
  min-height: 700px;
  border: 1px solid #d1d9ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 22, 44, 0.12);
  transition: width 0.22s ease;
}

.admin-visual-frame-shell.device-desktop .admin-visual-preview-frame {
  max-width: 100%;
}

.admin-visual-frame-shell.device-tablet .admin-visual-preview-frame {
  width: 820px;
}

.admin-visual-frame-shell.device-mobile .admin-visual-preview-frame {
  width: 390px;
}

.admin-login-shell {
  width: min(520px, 100%);
  margin-inline: auto;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.inquiry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
}

.inquiry-form label:last-of-type,
.inquiry-form .btn {
  grid-column: 1 / -1;
}

.admin-form label {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  color: #424a5b;
  font-weight: 700;
}

.admin-range-field {
  align-items: flex-start;
}

.admin-range-field .range-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-800);
}

.admin-range-field input[type="range"] {
  border: none;
  padding: 0;
  height: 20px;
  accent-color: var(--brand-700);
  background: transparent;
}

.admin-range-field input[type="range"]:focus {
  outline: 2px solid rgba(0, 167, 160, 0.24);
  border: none;
}

.admin-form textarea {
  resize: vertical;
}

.admin-feedback {
  min-height: 20px;
  margin-top: 10px;
  font-weight: 800;
}

.admin-feedback.info {
  color: var(--ink-700);
}

.admin-feedback.success {
  color: #13572f;
}

.admin-feedback.error {
  color: #7c3221;
}

.cta {
  text-align: center;
  background: linear-gradient(126deg, var(--brand-900), var(--brand-700));
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-2);
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta p {
  max-width: 62ch;
  margin: 0 auto 16px;
}

.site-footer {
  border-top: 1px solid #d5dbe8;
  padding: 24px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #4e5565;
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration: none;
  margin-left: 12px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .problem-grid,
  .service-pillar-grid,
  .journey-grid,
  .story-grid,
  .integration-grid,
  .service-grid,
  .location-grid,
  .image-showcase-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 8px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .admin-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-visual-editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-visual-frame-shell {
    min-height: 620px;
  }

  .content-studio-filters {
    grid-template-columns: 1fr 1fr;
  }

  .content-studio-toolbar-actions {
    justify-items: start;
    min-width: 0;
  }

  .admin-content-field-grid,
  .admin-content-workbench {
    grid-template-columns: 1fr;
  }

  .content-studio-savebar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-media-item {
    grid-template-columns: 1fr;
  }

  .admin-media-actions {
    justify-items: start;
    grid-template-columns: repeat(2, minmax(0, auto));
  }

  .admin-visual-frame-shell.device-tablet .admin-visual-preview-frame,
  .admin-visual-frame-shell.device-mobile .admin-visual-preview-frame {
    width: 100%;
  }

  .tracking,
  .page-hero-media,
  .route-map-head,
  .locations-results-wrap,
  .network,
  .quote-band {
    grid-template-columns: 1fr;
  }

  .route-map-meta {
    text-align: left;
  }

  .route-labels {
    grid-template-columns: 1fr;
  }

  .client-review-grid {
    grid-template-columns: 1fr;
  }

  .admin-profile-grid {
    grid-template-columns: 1fr;
  }

  .filter-form,
  .admin-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 8px 4%;
  }

  .site-header {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    width: min(58vw, 220px);
    height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #d8deea;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .main-nav a {
    width: 100%;
    padding: 8px 2px;
  }

  .admin-section-nav a {
    border-radius: 6px;
  }

  .site-header > .btn.btn-small {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .quick-links,
  .problem-grid,
  .service-pillar-grid,
  .journey-grid,
  .story-grid,
  .integration-grid,
  .service-grid,
  .location-grid,
  .image-showcase-grid,
  .admin-grid,
  .client-review-actions,
  .filter-form,
  .admin-filter-form {
    grid-template-columns: 1fr;
  }

  .route-live-map iframe,
  .map-card iframe {
    min-height: 230px;
  }

  .shipment-item {
    grid-template-columns: 1fr;
  }

  .content-studio-filters {
    grid-template-columns: 1fr;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .site-footer a {
    margin: 0 8px;
  }

  .floating-track-btn {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 0.72rem;
  }
}
