:root {
  --ink: #111827;
  --muted: #617085;
  --surface: #ffffff;
  --soft: #f3f6f8;
  --line: #dce3ea;
  --navy: #07131f;
  --steel: #17324d;
  --gold: #ffc247;
  --orange: #f26d21;
  --green: #2c7a66;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--surface);
}

a { text-decoration: none; }

/* Use the available screen width consistently without letting content touch the viewport edges. */
.container {
  width: min(calc(100% - 2rem), 1380px);
  max-width: none;
  padding-right: clamp(0.75rem, 1.4vw, 1.25rem);
  padding-left: clamp(0.75rem, 1.4vw, 1.25rem);
}

.site-nav {
  background: rgba(7, 19, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-nav.is-scrolled {
  background: rgba(7, 19, 31, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.navbar-brand {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 210px;
  height: 60px;
  object-fit: contain;
}

.logo-white {
  filter: brightness(0) invert(1);
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus { color: #ffffff; }

.nav-cta {
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
}

.btn-lg {
  padding: 0.88rem 1.3rem;
  font-size: 1rem;
}

.hero-section {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  padding: 8.5rem 0 4rem;
}

.page-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  padding: 9rem 0 5rem;
  background-size: cover;
  background-position: center;
}

.careers-hero {
  background-image: url("../img/nomad_truck_image3.jpeg");
}

.owner-hero {
  background-image: url("../img/nomad_truck_image2.jpeg");
}

.driver-hero {
  background-image: url("../img/nomad_truck_image3.jpeg");
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../img/nomad_truck_image1.jpeg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 19, 31, 0.95) 0%, rgba(7, 19, 31, 0.82) 42%, rgba(7, 19, 31, 0.34) 100%),
    linear-gradient(0deg, rgba(7, 19, 31, 0.82) 0%, rgba(7, 19, 31, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section h1 {
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.75rem, 6.4vw, 5.9rem);
  line-height: 0.98;
  font-weight: 900;
}

.page-hero h1 {
  max-width: 860px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: 1;
  font-weight: 900;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.quote-panel {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.panel-kicker {
  display: block;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-panel h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.panel-icon {
  display: inline-grid;
  min-width: 48px;
  height: 48px;
  place-items: center;
  color: var(--green);
  font-size: 1.8rem;
}

.form-label {
  color: #3b4756;
  font-size: 0.84rem;
  font-weight: 800;
}

.form-control,
.form-select {
  border-color: #cfd8e2;
  border-radius: 8px;
}

.quote-submit-done {
  background: var(--green) !important;
  border-color: var(--green) !important;
}

.stats-strip {
  position: relative;
  z-index: 2;
  color: #ffffff;
  background: var(--steel);
  padding: 1.5rem 0;
}

.stats-strip strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1;
  font-weight: 900;
}

.stats-strip span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.section-pad { padding: clamp(3.5rem, 5.5vw, 5.25rem) 0; }

main > .section-pad + .section-pad {
  border-top: 1px solid rgba(220, 227, 234, 0.72);
}

main .row.g-5 {
  --bs-gutter-x: clamp(1.5rem, 3vw, 2.75rem);
  --bs-gutter-y: clamp(1.75rem, 4vw, 2.75rem);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-heading h2,
.about-section h2,
.fleet-section h2,
.testimonial-section h2,
.contact-section h2,
.process-section h2,
.cta-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 900;
}

.section-heading p:last-child,
.about-section p,
.fleet-section .lead,
.process-section p,
.contact-section p,
.testimonial-section p { color: var(--muted); }

.about-heading {
  max-width: 1040px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
}

.about-content { --bs-gutter-x: clamp(1.5rem, 3vw, 2.75rem); }

.about-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-right: clamp(0.75rem, 2vw, 2rem);
}

.about-copy p { margin: 0; }

.service-card,
.info-card,
.career-card,
.location-card,
.contact-form,
.process-step,
.testimonial {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card,
.info-card,
.career-card,
.location-card,
.contact-form {
  padding: 1.75rem;
}

.info-card i,
.location-card i {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-size: 1.45rem;
}

.info-card h3,
.location-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.18rem;
  font-weight: 900;
}

.info-card p,
.location-card p {
  margin-bottom: 0;
}

.location-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange);
  font-weight: 900;
}

.service-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

.service-grid > [class*="col-"] {
  width: auto;
  padding: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 109, 33, 0.32);
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.1);
}

.service-card i {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-size: 1.6rem;
}

.career-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.career-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 109, 33, 0.32);
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.1);
}

.career-card i {
  display: inline-grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1.35rem;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-size: 1.65rem;
}

.career-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.career-card p {
  color: var(--muted);
}

.career-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 1.5rem;
  padding-left: 1.15rem;
  color: #354254;
  font-weight: 700;
}

.application-form {
  height: auto;
}

.service-card h3,
.process-step h3 {
  margin-bottom: 0.8rem;
  font-size: 1.22rem;
  font-weight: 900;
}

.service-card p,
.process-step p {
  margin: 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
  padding-left: 1.15rem;
  color: #354254;
  font-weight: 700;
}

.fleet-section,
.process-section { background: var(--soft); }

.fleet-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.16);
}

.fleet-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-layout { align-items: stretch; }
.fleet-media-col { display: flex; }
.fleet-content { align-self: stretch; }

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-list div {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #263445;
  font-weight: 700;
}

.feature-list i {
  color: var(--green);
  font-size: 1.3rem;
}

.fleet-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.fleet-grid div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.fleet-grid i {
  grid-row: span 2;
  color: var(--green);
  font-size: 1.3rem;
}

.fleet-grid strong {
  color: var(--ink);
  font-weight: 900;
}

.fleet-grid span {
  color: var(--muted);
}

.process-step { padding: 1.6rem; }

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 900;
}

.testimonial-section {
  color: #ffffff;
  background: var(--navy);
}

.testimonial-section p { color: rgba(255, 255, 255, 0.74); }

.testimonial {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 194, 71, 0.18), rgba(44, 122, 102, 0.12)),
    #ffffff;
}

.testimonial i {
  color: var(--orange);
  font-size: 2.4rem;
}

.testimonial p {
  margin: 0.6rem 0 1.4rem;
  color: #263445;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.45;
}

.testimonial span {
  display: block;
  color: var(--muted);
}

.contact-section {
  background: #ffffff;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-list a,
.contact-list p {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  color: #263445;
  font-weight: 800;
}

.contact-list i {
  color: var(--orange);
  font-size: 1.15rem;
  line-height: 1.6;
}

.contact-form {
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.08);
}

.cta-section {
  padding: 4rem 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #9f3f14);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-section .eyebrow { color: rgba(255, 255, 255, 0.78); }
.cta-section h2 { margin-bottom: 0; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.cta-actions .btn { white-space: nowrap; }

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #050b12;
  padding: 4rem 0 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-logo {
  display: block;
  width: 230px;
  height: 66px;
  object-fit: contain;
}

.footer-brand i { color: var(--gold); }

.site-footer h3 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 0.45rem 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover,
.site-footer a:focus { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .site-nav { background: rgba(7, 19, 31, 0.98); }
  .navbar-collapse { padding: 1rem 0; }
  .hero-section {
    min-height: auto;
    padding-top: 7.5rem;
  }
  .page-hero {
    min-height: auto;
    padding-top: 8rem;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 19, 31, 0.94), rgba(7, 19, 31, 0.76));
  }
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-image { height: auto; }
  .fleet-image img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 575.98px) {
  .container { width: min(calc(100% - 1rem), 1380px); }
  .brand-logo {
    width: 172px;
    height: 50px;
  }
  .hero-section h1 { font-size: 2.55rem; }
  .page-hero h1 { font-size: 2.35rem; }
  .hero-copy { font-size: 1rem; }
  .quote-panel { box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28); }
  .section-heading { text-align: left; }
  .cta-actions,
  .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
}
