/* Next Mile Dispatchers — Premium dispatch & logistics theme */

:root {
  --bg-deep: #05070c;
  --bg-panel: #0c1018;
  --bg-panel-2: #111827;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eef7;
  --text-muted: #9aa8bc;
  --white: #f8fafc;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.18);
  --accent-strong: #60a5fa;
  --gold: #eab308;
  --gold-soft: rgba(234, 179, 8, 0.15);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  /* Type scale — tuned for comfortable mobile reading */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: clamp(1rem, 0.35vw + 0.9375rem, 1.0625rem);
  --text-md: clamp(1.0625rem, 0.45vw + 1rem, 1.125rem);
  --text-lg: clamp(1.125rem, 0.55vw + 1.02rem, 1.2rem);
  --text-xl: clamp(1.375rem, 1.8vw + 1rem, 1.75rem);
  --text-2xl: clamp(1.625rem, 2.5vw + 1rem, 2.25rem);
  --text-3xl: clamp(1.875rem, 3.2vw + 1.05rem, 2.85rem);
  --text-hero: clamp(1.75rem, 4.5vw + 1rem, 3.95rem);
  --leading-body: 1.65;
  --leading-relaxed: 1.72;
  --leading-snug: 1.4;
  --leading-tight: 1.22;
  --leading-display: 1.1;
  --tracking-tight: -0.02em;
  --tracking-tighter: -0.03em;
  --tracking-wide: 0.12em;
  --tracking-wider: 0.14em;
  --container: min(1180px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 78px;
  --touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

p,
li,
label,
input,
textarea,
select,
button {
  font-family: inherit;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-photo img,
.split-visual img {
  max-width: none;
  width: 100%;
  height: 100%;
}

/* Utilities */
.mt-2 {
  margin-top: 2rem;
}

.mt-125 {
  margin-top: 1.25rem;
}

.page-top {
  padding-top: clamp(3rem, 6vw, 5.75rem);
}

.hero--subpage {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.about-hero-head {
  max-width: 760px;
  margin-top: 0.5rem;
}

.about-hero-head .section-lead {
  color: rgba(226, 232, 248, 0.92);
}

.card--light {
  background: #fff;
  color: #0f172a;
}

.card--light h4 {
  color: #0f172a;
}

.card--light p {
  color: #475569;
}

.card--light .card-icon {
  color: #1d4ed8;
}

.t-card--accent {
  margin-top: 1.25rem;
  border-left: 3px solid var(--accent);
}

.mail-card-spaced {
  margin-top: 1.75rem;
}

.mail-block p {
  margin: 0.35rem 0 0;
}

.mail-block a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: #0f172a;
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--accent);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, var(--container));
}

/* Typography */
p {
  margin: 0 0 1rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-strong);
  line-height: var(--leading-snug);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-display);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
}

.section-lead {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  max-width: 56ch;
}

.section-head + .cards,
.section-head + .benefit-grid {
  margin-top: 2rem;
}

/* Buttons — clean corporate style (not oversized pills) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(96, 165, 250, 0.65);
  color: var(--white);
}

.btn-sm {
  padding: 0.65rem 1rem;
  font-size: var(--text-sm);
}

/* Light sections (white background) */
.section--invert .btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}

.section--invert .btn-outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.section--invert .btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.hero-call {
  margin: 0.85rem 0 0;
  font-size: var(--text-sm);
}

.hero-call a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-call a:hover {
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 12, 0.88);
  border-color: var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-tight);
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 65%, var(--gold) 130%);
  position: relative;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.primary-nav .nav-list a {
  display: inline-block;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 550;
  font-size: var(--text-sm);
}

.primary-nav .nav-list a:hover,
.primary-nav .nav-list a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop {
  display: none;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

@media (max-width: 899px) {
  :root {
    --container: min(1180px, calc(100% - 1.25rem));
    --header-h: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 48;
    background: rgba(5, 7, 12, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
  }

  .nav-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  .header-inner {
    min-height: var(--header-h);
  }

  .logo {
    font-size: 0.92rem;
    min-width: 0;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(52vw, 220px);
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    background: rgba(5, 7, 12, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .primary-nav .nav-list a {
    padding: 0.9rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
  }

  .nav-cta {
    flex-direction: column;
    margin-top: 1rem;
    gap: 0.65rem;
  }

  .nav-cta .btn {
    width: 100%;
    min-height: var(--touch-min);
    padding-block: 0.85rem;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.75rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 8.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 60% at 10% -10%, rgba(59, 130, 246, 0.16), transparent),
    radial-gradient(50% 50% at 90% 0%, rgba(234, 179, 8, 0.1), transparent),
    linear-gradient(180deg, #05070c 0%, #090d16 42%, var(--bg-deep) 100%);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo {
  position: absolute;
  inset: -4% -2% auto -2%;
  height: clamp(440px, 58vw, 720px);
  overflow: hidden;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.35) 0%, rgba(5, 7, 12, 0.75) 55%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.92fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tighter);
  color: var(--white);
}

.hero-copy .hero-sub {
  margin: 0 0 2rem;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(226, 232, 248, 0.88);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0;
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.stat-strong {
  display: block;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.stat-label {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.hero-aside-panel {
  background: rgba(12, 16, 24, 0.72);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.35rem, 2vw, 1.85rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-aside-panel h3 {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  color: var(--white);
}

.truck-roll {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.07), transparent);
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.truck-rail {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  animation: truck-slide 22s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.truck-rail--reverse {
  animation-duration: 28s;
  animation-direction: reverse;
  margin-top: 0.5rem;
}

.truck-shape {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(248, 250, 252, 0.55);
}

.truck-shape::before {
  content: "";
  width: 36px;
  height: 20px;
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 6px, rgba(255, 255, 255, 0.12) 6px 10px);
  clip-path: polygon(0 30%, 18% 30%, 24% 0, 92% 0, 100% 30%, 100% 100%, 68% 100%, 64% 70%, 0 70%);
  opacity: 0.88;
}

@keyframes truck-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.aside-points {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.aside-points li {
  margin-bottom: 0.45rem;
}

@media (max-width: 959px) {
  .hero {
    padding-top: 0;
    padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
    display: flex;
    flex-direction: column;
  }

  .hero--home .hero-visual {
    position: relative;
    inset: auto;
    z-index: 0;
    order: -1;
    width: 100%;
    margin: 0;
  }

  .hero--home .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(200px, 42vw, 280px);
    margin: 0;
  }

  .hero--home .hero-photo::after {
    background: linear-gradient(180deg, rgba(5, 7, 12, 0.1) 0%, rgba(5, 7, 12, 0.88) 100%);
  }

  .hero--home .hero-aside-panel--desktop {
    display: none;
  }

  .hero--home .container.hero-grid {
    padding-top: 1.35rem;
    padding-bottom: 0;
  }

  .hero:not(.hero--home) {
    padding-top: clamp(2.5rem, 6vw, 4rem);
  }

  .hero:not(.hero--home) .hero-photo {
    inset: 0;
    height: min(48vh, 320px);
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .hero-copy .hero-sub {
    margin-bottom: 1.25rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: var(--touch-min);
    padding-block: 0.85rem;
  }

  .hero-call {
    text-align: center;
    margin-top: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .stat-card:last-child {
    grid-column: auto;
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section--tight-bottom {
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

.section--muted {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-deep) 45%);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section--invert {
  background: #f8fafc;
  color: #0f172a;
}

.section--invert .section-lead {
  color: #475569;
}

.section--invert .eyebrow {
  color: #2563eb;
}

.section--invert .section-title,
.section--invert h2,
.section--invert h3,
.section--invert .card-mini h4 {
  color: #0f172a;
}

.section--invert a:not(.btn) {
  color: #1d4ed8;
}

.panel {
  padding: clamp(3.75rem, 7vw, 5.75rem) 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.82rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 650;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.section--invert .badge {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.section-head.align-center {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.section-head.align-center .section-lead {
  margin-inline: auto;
}

/* Cards grids */
.equipment-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.equipment-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: var(--text-sm);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.15rem;
}

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.45rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(96, 165, 250, 0.32);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 50%;
  background: radial-gradient(circle at 30%, rgba(59, 130, 246, 0.12), transparent 55%);
  pointer-events: none;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: var(--text-xs);
  background: linear-gradient(135deg, var(--accent-soft), rgba(234, 179, 8, 0.1));
  color: var(--accent-strong);
  margin-bottom: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h4 {
  margin: 0 0 0.45rem;
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  color: var(--white);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.card-photo {
  min-height: 180px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.two-col-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
}

.split-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(165deg, rgba(5, 7, 12, 0.25), rgba(5, 7, 12, 0.78));
  pointer-events: none;
}

.split-visual img {
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.split-visual--alt::after {
  background: linear-gradient(165deg, rgba(5, 7, 12, 0.15), rgba(5, 7, 12, 0.84));
}

.split-visual--services img {
  object-position: center 45%;
}

.split-visual--services::after {
  background: linear-gradient(165deg, rgba(5, 7, 12, 0.35), rgba(5, 7, 12, 0.76));
}

.split-visual--why img {
  object-position: center 62%;
}

.split-visual--why::after {
  background: linear-gradient(165deg, rgba(5, 7, 12, 0.28), rgba(5, 7, 12, 0.8));
}

.split-body .section-head {
  margin-bottom: 1.25rem;
}

.split-body ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.split-body ul li + li {
  margin-top: 0.55rem;
}

@media (max-width: 959px) {
  .two-col-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .two-col-split .split-visual {
    order: -1;
    min-height: 240px;
  }

  .two-col-split .split-visual img {
    min-height: 240px;
  }

  .two-col-split--visual-first .split-visual {
    order: 0;
  }
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.benefit {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.benefit h4 {
  margin: 0 0 0.5rem;
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  color: #0f172a;
}

.benefit p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: #334155;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
}

.t-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.t-quote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.t-meta strong {
  color: var(--white);
}

.t-meta span {
  display: block;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.cta-banner {
  border-radius: var(--radius);
  padding: clamp(2.25rem, 4vw, 3rem);
  margin-top: clamp(2.75rem, 5vw, 4rem);
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
}

.cta-banner .btn-outline {
  background: rgba(255, 255, 255, 0.05);
}

.cta-banner h3 {
  margin: 0 0 0.65rem;
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: var(--leading-display);
  color: var(--white);
}

.cta-banner p {
  margin: 0;
  max-width: 60ch;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(226, 232, 248, 0.88);
}

.cta-banner .cta-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Services page */
.simple-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.95rem;
  margin-top: 2rem;
}

.simple-li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.simple-li-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  margin-top: 0.42rem;
  flex-shrink: 0;
}

.simple-li span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Contact page */
.mail-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.mail-block {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}

.mail-block strong {
  color: var(--white);
}

.mail-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Forms */
.contact-form-panel {
  background: rgba(12, 16, 24, 0.75);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.42rem;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
}

.req {
  color: var(--accent-strong);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  min-height: var(--touch-min);
  -webkit-appearance: none;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(154, 168, 188, 0.85);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-field textarea {
  min-height: 140px;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%239aa8bc' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

.form-field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.contact-form {
  position: relative;
}

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #bbf7d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.36);
  color: #fecaca;
}

.alert-error ul {
  margin: 0.5rem 0 0;
}

/* Footer */
.site-footer {
  position: relative;
  padding-top: clamp(5rem, 9vw, 7rem);
  background: radial-gradient(60% 100% at 50% -10%, rgba(59, 130, 246, 0.1), transparent 55%), #05070c;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-trucks {
  position: absolute;
  inset: auto 0 calc(78% + 60px);
  height: 40px;
  opacity: 0.45;
}

.truck-lane {
  display: flex;
  gap: 4rem;
  animation: footer-drive 42s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.truck-lane--b {
  margin-top: 8px;
  animation-duration: 56s;
  animation-direction: reverse;
  opacity: 0.6;
}

.truck-icon {
  display: inline-block;
  width: 48px;
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 10px, transparent 10px 16px);
  clip-path: polygon(0 32%, 20% 32%, 28% 0, 94% 0, 100% 32%, 100% 100%, 72% 100%, 68% 70%, 0 70%);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

.truck-icon--light {
  opacity: 0.35;
}

.truck-icon--accent {
  opacity: 0.75;
}

@keyframes footer-drive {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33%);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.85fr) minmax(240px, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2rem;
}

.footer-lead {
  color: rgba(226, 232, 248, 0.9);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.footer-muted {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-snug);
  color: rgba(226, 232, 248, 0.8);
}

.footer-phone {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--white);
}

.footer-links a {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  background: rgba(0, 0, 0, 0.28);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-buttons {
    flex-direction: column;
  }

  .footer-buttons .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .site-footer {
    padding-top: clamp(3.5rem, 8vw, 5rem);
  }
}

/* ——— Mobile typography & layout ——— */
@media (max-width: 899px) {
  :root {
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-base: 1.0625rem;
    --text-md: 1.125rem;
    --text-lg: 1.1875rem;
    --text-xl: 1.375rem;
    --text-2xl: clamp(1.5rem, 4vw + 0.85rem, 2rem);
    --text-3xl: clamp(1.5rem, 4.5vw + 0.9rem, 2.125rem);
    --text-hero: clamp(1.75rem, 5.5vw + 0.85rem, 2.5rem);
    --leading-body: 1.7;
    --leading-relaxed: 1.75;
    --leading-display: 1.15;
    --tracking-tight: -0.01em;
    --tracking-tighter: -0.02em;
    --tracking-wide: 0.1em;
    --tracking-wider: 0.11em;
  }

  .section {
    padding: clamp(2.75rem, 6vw, 4rem) 0;
  }

  .panel {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
  }

  .section-lead {
    max-width: none;
  }

  .btn {
    font-size: var(--text-base);
  }

  .primary-nav .nav-list a {
    font-size: var(--text-base);
  }

  .cards,
  .benefit-grid,
  .testimonials-grid,
  .simple-list-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .cta-banner .cta-actions,
  .mail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .cta-banner .cta-actions .btn,
  .mail-actions .btn,
  .footer-buttons .btn {
    width: 100%;
    max-width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
    padding-block: 0.85rem;
  }

  .hero-actions .btn {
    max-width: 100%;
  }

  .cta-banner {
    padding: 1.5rem 1.25rem;
    margin-top: 2rem;
  }

  .equipment-strip {
    justify-content: flex-start;
  }

  .equipment-pill {
    font-size: var(--text-sm);
  }

  .mail-card {
    grid-template-columns: 1fr;
  }

  .simple-li {
    padding: 1rem;
  }

  .t-card {
    padding: 1.25rem;
  }

  .btn {
    min-height: var(--touch-min);
  }
}

@media (max-width: 599px) {
  :root {
    --container: min(1180px, calc(100% - 1rem));
    --text-hero: clamp(1.625rem, 6.5vw + 0.7rem, 2.125rem);
    --text-3xl: clamp(1.4375rem, 5.5vw + 0.75rem, 1.875rem);
    --text-2xl: clamp(1.3125rem, 4.5vw + 0.7rem, 1.625rem);
    --leading-display: 1.18;
  }

  .hero--home .hero-photo {
    height: clamp(180px, 40vw, 240px);
  }

  .split-visual {
    min-height: 0;
  }

  .split-visual img {
    min-height: 200px;
    max-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .logo-text {
    max-width: 42vw;
    font-size: 0.875rem;
  }

  .card-icon {
    font-size: var(--text-xs);
  }

  .alert {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
  }
}

/* Animations reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .truck-rail,
  .truck-lane {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
