/* Final visual overrides for the current Tegar Logistics refresh. */
.main-nav .nav-phone {
  display: none !important;
}

.card,
#how-it-works .how-card,
.contact-left,
.contact-right {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.024)),
    #101423;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover,
#how-it-works .how-card:hover,
.contact-item:hover,
.contact-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0,174,255,0.34);
  background:
    linear-gradient(180deg, rgba(0,174,255,0.08), rgba(255,255,255,0.028)),
    #121827;
  box-shadow:
    0 18px 42px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.card::before {
  background: radial-gradient(circle at 28px 28px, rgba(0,174,255,0.12), transparent 42px);
}

.card img,
.services-hero img,
#how-it-works .how-image img,
.about-image img {
  border-radius: 8px;
}

.card-icon,
#how-it-works .how-card span {
  border-radius: 8px;
  background: rgba(0,174,255,0.12);
  color: #00aeff;
  border: 1px solid rgba(0,174,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

#how-it-works .how-layout {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

#how-it-works .how-image {
  position: relative;
  top: auto;
  order: 0;
  width: 100%;
}

#how-it-works .how-image img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

#how-it-works .how-grid {
  order: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  margin: 0;
}

#how-it-works .how-card {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 22px;
}

#how-it-works .how-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
}

#how-it-works .how-card h3 {
  grid-column: auto;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
  text-transform: none;
}

#how-it-works .how-card p {
  grid-column: auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.74;
}

#how-it-works .how-card p + p {
  margin-top: 10px;
}

#how-it-works .how-card-note {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  opacity: 1;
}

#how-it-works .how-note {
  max-width: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--brand-red);
  border-radius: 0 8px 8px 0;
  background: rgba(255,255,255,0.035);
  font-size: 14px;
}

.contact-wrapper {
  align-items: stretch;
}

.contact-left,
.contact-right {
  padding: 34px;
}

.contact-right {
  color: #ffffff;
}

.contact-right form {
  gap: 14px;
}

.contact-right input:not([type="checkbox"]),
.contact-right textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,11,31,0.74);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.contact-right input:not([type="checkbox"])::placeholder,
.contact-right textarea::placeholder {
  color: rgba(255,255,255,0.54);
}

.contact-right input:not([type="checkbox"]):focus,
.contact-right textarea:focus {
  border-color: rgba(0,174,255,0.56);
  box-shadow:
    0 0 0 4px rgba(0,174,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.contact-right label {
  color: rgba(255,255,255,0.72);
}

.contact-item {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,11,31,0.58);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.contact-right .btn {
  border-radius: 8px;
}

@media (max-width: 900px) {
  #how-it-works .how-image img {
    aspect-ratio: 16 / 9;
  }

  #how-it-works .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #how-it-works .how-card {
    min-height: 0;
  }

  .contact-left,
  .contact-right {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  #how-it-works .how-image img {
    aspect-ratio: 4 / 3;
  }

  #how-it-works .how-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #how-it-works .how-card {
    padding: 18px;
  }

  #how-it-works .how-card span {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
  }
}

/* Compact centered footer. */
.site-footer .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.site-footer .footer-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.site-footer .footer-brand strong {
  color: #ffffff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer .footer-brand span {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.site-footer .social-links {
  margin-top: 0;
}

.site-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.site-footer .footer-links a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Rank Me Higher inspired How It Works timeline. */
#how-it-works {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(237,28,36,0.18), transparent 34%),
    linear-gradient(180deg, #070707 0%, #180909 52%, #090909 100%);
}

#how-it-works .section-heading {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

#how-it-works .section-heading h2 {
  margin-bottom: 14px;
  font-size: 46px;
  line-height: 1.05;
}

#how-it-works .section-heading h2 strong {
  color: var(--brand-red);
}

#how-it-works .section-heading p {
  color: rgba(255,255,255,0.68);
  font-size: 18px;
  line-height: 1.55;
}

#how-it-works .how-layout {
  max-width: 760px;
  margin: 0 auto;
}

#how-it-works .how-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

#how-it-works .how-grid::before {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 28px;
  width: 1px;
  background: linear-gradient(180deg, rgba(237,28,36,0.58), rgba(255,255,255,0.08));
}

#how-it-works .how-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 0 0 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#how-it-works .how-card:last-child {
  padding-bottom: 0;
}

#how-it-works .how-card:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

#how-it-works .how-card .how-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(237,28,36,0.45);
  background: rgba(237,28,36,0.16);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

#how-it-works .how-card .how-icon.accent {
  border-color: rgba(0,174,255,0.48);
  background: rgba(0,174,255,0.16);
}

#how-it-works .how-card .how-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

#how-it-works .how-card .how-icon.accent img {
  filter: brightness(0) saturate(100%) invert(60%) sepia(89%) saturate(1620%) hue-rotate(164deg) brightness(102%) contrast(102%);
}

#how-it-works .how-copy {
  padding-top: 2px;
}

#how-it-works .how-copy small {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#how-it-works .how-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.22;
}

#how-it-works .how-card p {
  max-width: 560px;
  color: rgba(255,255,255,0.66);
  font-size: 16px;
  line-height: 1.55;
  opacity: 1;
}

#how-it-works .how-card p + p {
  margin-top: 8px;
}

#how-it-works .how-card-note {
  color: rgba(255,255,255,0.76);
  font-weight: 700;
}

#how-it-works .how-note {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(237,28,36,0.28);
  border-radius: 8px;
  background: rgba(237,28,36,0.08);
  text-align: center;
}

/* CDL Agency inspired contact form. */
#contact {
  background: #080a13;
}

.contact-wrapper {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: 34px;
  align-items: stretch;
}

.contact-left {
  justify-content: center;
  padding: 40px;
  border-color: rgba(237,28,36,0.2);
  background:
    radial-gradient(circle at 18% 20%, rgba(237,28,36,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    #111018;
}

.contact-left h2 {
  font-size: 48px;
  line-height: 1;
}

.contact-left p {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
}

.contact-right {
  padding: 0;
  overflow: hidden;
  border-color: rgba(237,28,36,0.32);
  background: #0c0c0f;
}

.contact-right form {
  padding: 30px;
  gap: 12px;
}

.form-heading {
  margin-bottom: 8px;
}

.form-heading span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand-red-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.1;
}

.contact-right input:not([type="checkbox"]),
.contact-right textarea {
  min-height: 52px;
  padding: 14px 16px;
  border-color: rgba(255,255,255,0.14);
  background: #17171b;
}

.contact-right textarea {
  min-height: 118px;
}

.contact-right input:not([type="checkbox"]):focus,
.contact-right textarea:focus {
  border-color: rgba(237,28,36,0.72);
  box-shadow: 0 0 0 4px rgba(237,28,36,0.14);
}

.contact-right .btn {
  min-height: 54px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  #how-it-works .section-heading h2 {
    font-size: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-left h2 {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  #how-it-works .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  #how-it-works .section-heading h2 {
    font-size: 34px;
  }

  #how-it-works .section-heading p {
    font-size: 16px;
  }

  #how-it-works .how-grid::before {
    left: 24px;
  }

  #how-it-works .how-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 38px;
  }

  #how-it-works .how-card .how-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  #how-it-works .how-card h3 {
    font-size: 20px;
  }

  #how-it-works .how-card p {
    font-size: 15px;
  }

  .contact-left,
  .contact-right form {
    padding: 24px;
  }
}

/* Blue system pass, visible language toggle, and equipment carousel. */
:root {
  --brand-red: #006bff;
  --brand-red-dark: #0047b8;
  --brand-red-light: #00aeff;
  --brand-red-glow: rgba(0,174,255,0.34);
}

.lang-toggle {
  width: 96px;
  height: 44px;
  margin-left: 4px;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(135deg, #0047b8 0%, #006bff 54%, #00aeff 100%);
  box-shadow:
    0 0 0 3px rgba(0,174,255,0.14),
    0 14px 34px rgba(0,87,216,0.34);
}

.lang-toggle::before {
  top: 5px;
  left: 5px;
  width: 42px;
  height: 34px;
}

.lang-toggle.is-spanish::before {
  transform: translateX(44px);
}

.lang-option {
  font-size: 15px;
  text-transform: uppercase;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px rgba(0,174,255,0.2),
    0 18px 38px rgba(0,87,216,0.42);
  outline: none;
}

#equipment {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,174,255,0.12), transparent 36%),
    #0b0b1f;
}

#equipment h2 {
  margin-bottom: 30px;
}

.equipment-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4px 0 10px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.equipment-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: equipmentMarquee 34s linear infinite;
}

.equipment-carousel:hover .equipment-track,
.equipment-carousel:focus-within .equipment-track {
  animation-play-state: paused;
}

.equipment-track .card {
  flex: 0 0 360px;
  min-height: 430px;
}

@keyframes equipmentMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 11px));
  }
}

#how-it-works {
  background:
    radial-gradient(circle at 50% 18%, rgba(0,174,255,0.18), transparent 36%),
    linear-gradient(180deg, #070a12 0%, #081324 52%, #070a12 100%);
}

#how-it-works .section-heading h2 strong,
.form-heading span {
  color: #00aeff;
}

#how-it-works .how-grid::before {
  background: linear-gradient(180deg, rgba(0,174,255,0.72), rgba(255,255,255,0.08));
}

#how-it-works .how-card .how-icon,
#how-it-works .how-card .how-icon.accent {
  border-color: rgba(0,174,255,0.48);
  background: rgba(0,174,255,0.16);
}

#how-it-works .how-note {
  border-color: rgba(0,174,255,0.3);
  background: rgba(0,174,255,0.08);
}

.contact-left {
  border-color: rgba(0,174,255,0.22);
  background:
    radial-gradient(circle at 18% 20%, rgba(0,174,255,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    #0d1320;
}

.contact-right {
  border-color: rgba(0,174,255,0.32);
  background: #0b101a;
}

.contact-right input:not([type="checkbox"]):focus,
.contact-right textarea:focus {
  border-color: rgba(0,174,255,0.72);
  box-shadow: 0 0 0 4px rgba(0,174,255,0.14);
}

.btn {
  background: linear-gradient(135deg, #0047b8 0%, #006bff 58%, #00aeff 100%);
  box-shadow:
    0 12px 28px rgba(0,107,255,0.24),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn:hover {
  background: linear-gradient(135deg, #006bff 0%, #00aeff 100%);
  box-shadow:
    0 16px 34px rgba(0,174,255,0.32),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

@media (max-width: 900px) {
  .lang-toggle {
    width: 90px;
    height: 40px;
    margin-top: 4px;
  }

  .lang-toggle::before {
    top: 4px;
    left: 4px;
    width: 40px;
    height: 32px;
  }

  .lang-toggle.is-spanish::before {
    transform: translateX(42px);
  }

  .equipment-track .card {
    flex-basis: 320px;
  }
}

@media (max-width: 560px) {
  .equipment-carousel {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

  .equipment-track {
    gap: 16px;
    animation-duration: 30s;
  }

  .equipment-track .card {
    flex-basis: 280px;
    min-height: 390px;
  }
}

/* Section heading system and red capsule CTAs. */
.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 46px;
  line-height: 1.05;
}

.section-heading h2 strong,
.form-heading h3 strong {
  color: #00aeff;
}

.section-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255,255,255,0.68);
  font-size: 18px;
  line-height: 1.55;
}

#services .section-heading,
#equipment .section-heading,
#contact .section-heading {
  margin-bottom: 34px;
}

#services h2,
#equipment h2 {
  margin-bottom: 14px;
}

.services-hero {
  margin-top: 0;
}

.services-grid .card h3 {
  font-size: 17px;
  line-height: 1.25;
  text-transform: none;
}

.contact-section-heading {
  margin-bottom: 34px;
}

.contact-left {
  justify-content: center;
}

.contact-info-block {
  margin-top: 0;
}

.form-heading {
  text-align: center;
}

.form-heading h3 {
  font-size: 30px;
}

.form-heading p {
  max-width: 420px;
  margin: 10px auto 0;
  color: rgba(255,255,255,0.66);
  font-size: 15px;
  line-height: 1.45;
}

.btn,
.contact-right .btn {
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b5121b 0%, #ed1c24 58%, #ff4b52 100%);
  box-shadow:
    0 14px 30px rgba(237,28,36,0.28),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn:hover,
.contact-right .btn:hover {
  background: linear-gradient(135deg, #ed1c24 0%, #ff4b52 100%);
  box-shadow:
    0 18px 38px rgba(237,28,36,0.34),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.btn:focus-visible,
.contact-right .btn:focus-visible {
  outline: 3px solid rgba(237,28,36,0.32);
  outline-offset: 3px;
}

#contact .contact-wrapper {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}

#contact .contact-left {
  display: none;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 920px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0,174,255,0.34);
  background: rgba(0,174,255,0.08);
  color: #ffffff;
  outline: none;
}

.footer-contact img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.form-contact-info {
  padding: 0 30px 30px;
  gap: 10px;
}

.form-contact-info a {
  flex: 1 1 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .section-heading h2 {
    font-size: 40px;
  }

  .section-heading p {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .section-heading {
    margin-bottom: 28px;
    text-align: center;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading p {
    font-size: 16px;
  }

  .form-heading h3 {
    font-size: 26px;
  }

  .footer-contact {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .footer-contact a {
    justify-content: center;
    width: 100%;
  }

  .form-contact-info {
    padding: 0 24px 24px;
  }
}

/* Final request: fixed language control, billing step, compact form, horizontal contact strip. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-actions .main-nav {
  order: 1;
}

.nav-actions .lang-toggle {
  order: 2;
  flex: 0 0 auto;
}

.nav-actions .menu-toggle {
  order: 3;
}

.logo {
  transition: transform 0.24s ease, filter 0.24s ease;
  transform-origin: center;
}

.logo:hover,
.logo:focus-visible {
  transform: scale(1.035) rotate(-1.5deg);
  filter: drop-shadow(0 0 14px rgba(0,174,255,0.22));
  outline: none;
}

.btn,
.contact-right .btn {
  border-radius: 10px;
}

#how-it-works .how-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

#how-it-works .how-card {
  min-height: 0 !important;
}

.how-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#how-it-works .how-note {
  width: min(560px, calc(100% - 96px));
  max-width: none;
  margin: 34px 0 0 max(0px, calc((100% - 760px) / 2 + 74px));
  padding: 14px 18px;
  text-align: left;
  justify-content: center;
}

.how-note img {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(79%) sepia(79%) saturate(1162%) hue-rotate(359deg) brightness(101%) contrast(104%);
}

.between-section-image {
  background: #111122;
  padding: 0 0 78px;
}

.between-section-image img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 58px rgba(0,0,0,0.46);
}

.contact-right textarea {
  display: none;
}

.contact-strip {
  background: #070b1f;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}

.contact-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.contact-strip a:hover,
.contact-strip a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0,174,255,0.34);
  background: rgba(0,174,255,0.075);
  color: #ffffff;
  outline: none;
}

.contact-strip img {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

@media (max-width: 900px) {
  .nav-actions {
    gap: 10px;
  }

  .nav-actions .main-nav {
    order: 3;
  }

  .nav-actions .lang-toggle {
    order: 1;
  }

  .nav-actions .menu-toggle {
    order: 2;
  }

  .contact-strip-inner {
    grid-template-columns: 1fr;
  }

  .contact-strip a {
    justify-content: flex-start;
  }

  #how-it-works .how-note {
    width: 100%;
    margin: 28px 0 0;
  }

  .between-section-image {
    padding-bottom: 54px;
  }

  .between-section-image img {
    aspect-ratio: 16 / 10;
  }
}

/* Final alignment polish for How It Works note and section background */
#how-it-works,
.between-section-image {
  background: #070b1f;
}

#how-it-works .how-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  width: min(760px, 100%);
  max-width: 760px;
  margin: 34px auto 0;
  padding: 14px 18px;
}

#how-it-works .how-note span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  #how-it-works .how-note {
    width: 100%;
    margin-top: 28px;
    justify-content: flex-start;
  }

  #how-it-works .how-note span {
    white-space: normal;
  }
}

/* Mobile navbar and How It Works alignment fixes */
@media (max-width: 900px) {
  .site-header {
    position: fixed;
    top: 0;
    background: rgba(7, 11, 31, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav-container {
    position: relative;
    flex-direction: row;
    align-items: center;
    min-height: 68px;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .nav-actions .main-nav {
    order: 3;
  }

  .nav-actions .lang-toggle {
    order: 1;
    margin: 0;
  }

  .nav-actions .menu-toggle {
    order: 2;
    display: inline-block !important;
    margin: 0;
  }

  .main-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 20px !important;
    right: 20px !important;
    z-index: 1000;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 14px !important;
    background: rgba(7, 11, 31, 0.98) !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .main-nav.is-open {
    display: flex !important;
  }

  .main-nav a {
    justify-content: space-between;
    min-height: 46px;
    padding: 12px 14px !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px !important;
    background: rgba(255,255,255,0.075);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    text-shadow: none;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(0,174,255,0.16);
    border-color: rgba(0,174,255,0.34);
    outline: none;
  }
}

@media (max-width: 560px) {
  #how-it-works .section-heading,
  #how-it-works .section-heading.centered {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  #how-it-works .section-heading h2,
  #how-it-works .section-heading p {
    text-align: center;
  }
}

/* Final mobile contrast, equipment stability, and unified blue background pass */
:root {
  --site-blue: #070b1f;
  --site-blue-card: #0b1730;
  --site-blue-field: #081225;
}

body,
.section,
.dark,
#services,
#equipment,
#how-it-works,
#contact,
.between-section-image,
.contact-strip,
.site-footer {
  background: var(--site-blue) !important;
}

.contact-right,
#contact .contact-right {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    var(--site-blue-card) !important;
  border-color: rgba(0,174,255,0.22) !important;
  color: #ffffff !important;
}

.contact-right input:not([type="checkbox"]),
.contact-right textarea {
  background: var(--site-blue-field) !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
}

.contact-right label,
.form-heading p {
  color: rgba(255,255,255,0.72) !important;
}

@media (max-width: 760px) {
  .hero h1 strong {
    color: var(--brand-red) !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.48);
  }

  .equipment-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 20px 14px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .equipment-carousel::-webkit-scrollbar {
    display: none;
  }

  .equipment-track {
    width: max-content;
    gap: 16px;
    animation: none !important;
    transform: none !important;
  }

  .equipment-track .card {
    flex: 0 0 min(82vw, 320px);
    min-height: 390px;
    scroll-snap-align: center;
  }
}
 /* ===== FINAL FIX FORM BACKGROUND ===== */
.contact-right {
  background: #0b3d91 !important;
}

/* Latest form/nav/performance adjustments. */
.nav-actions .lang-toggle {
  order: 1 !important;
}

.nav-actions .main-nav {
  order: 2 !important;
}

.nav-actions .menu-toggle {
  order: 3 !important;
}

.contact-right input:not([type="checkbox"]),
.contact-right textarea,
.contact-right select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 8px;
  background: var(--site-blue-field) !important;
  color: #ffffff !important;
  font: inherit;
}

.contact-right select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.58) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.58) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-right input:not([type="checkbox"]):focus,
.contact-right textarea:focus,
.contact-right select:focus {
  border-color: rgba(237,28,36,0.72) !important;
  box-shadow: 0 0 0 4px rgba(237,28,36,0.14);
}

.main-nav .nav-contact {
  border-color: rgba(237,28,36,0.42) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #b5121b 0%, #ed1c24 72%, #ff4b52 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(237,28,36,0.24);
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact:focus-visible {
  background: linear-gradient(135deg, #ed1c24 0%, #ff4b52 100%) !important;
  box-shadow: 0 14px 30px rgba(237,28,36,0.34);
}

.form-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.form-proof span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.form-proof img {
  width: 13px;
  height: 13px;
  filter: brightness(0) saturate(100%) invert(57%) sepia(86%) saturate(1240%) hue-rotate(91deg) brightness(96%) contrast(98%);
}

.trust-badge {
  align-items: center !important;
  flex-direction: row !important;
  gap: 7px !important;
  padding: 8px 11px !important;
  white-space: nowrap;
}

.trust-stars {
  display: inline-flex;
  gap: 0;
  letter-spacing: -1px !important;
  line-height: 1;
}

.trust-badge span:last-child {
  font-size: 13px;
}

@media (max-width: 560px) {
  .trust-badge {
    gap: 6px !important;
    padding: 7px 10px !important;
  }

  .trust-stars {
    font-size: 12px;
    letter-spacing: -1.5px !important;
  }

  .trust-badge span:last-child {
    font-size: 12px;
  }
}

/* Final speed and mobile contact polish. */
.hero::before {
  background-image: url('../images/hero-truck-optimized.jpg') !important;
}

@media (max-width: 900px) {
  .contact-strip a {
    justify-content: center !important;
    text-align: center;
  }

  .contact-strip a span {
    text-align: center;
  }
}
