/* /track — global-shipping-tracker style hero + Bootstrap-based sections */

.bg-gradient-track {
  background: linear-gradient(135deg, #0b1f3f 0%, #1f4c8c 60%, #163a6b 100%);
}

.bg-gradient-track h1,
.bg-gradient-track h2,
.bg-gradient-track h3,
.bg-gradient-track h4,
.bg-gradient-track h5,
.bg-gradient-track h6,
.bg-gradient-track p {
  color: #fff !important;
}

.track-cta {
  background: #fff;
}

.track-cta h2 {
  color: var(--accent-dark, #0b1f3f);
}

.track-cta p {
  color: #687184;
}

.track-cta .btn-primary {
  background: var(--accent-color, #1f4c8c);
  border-color: var(--accent-color, #1f4c8c);
}

.track-cta .btn-primary:hover,
.track-cta .btn-primary:focus-visible {
  background: var(--accent-dark, #0b1f3f);
  border-color: var(--accent-dark, #0b1f3f);
}

/* ===================================================================
   Hero: navigational chart background + animated sea route + search card
   =================================================================== */
.track-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  background: linear-gradient(160deg, #0a1c38 0%, #123563 45%, #1f4c8c 100%);
  isolation: isolate;
}

/* Nautical-chart dot grid — subtle, structural, not a decorative glow */
.track-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  z-index: 0;
}

.track-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.track-hero__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.track-hero__route-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2.5;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
}

.track-hero__port {
  position: absolute;
  width: 0;
  height: 0;
}

/* Classic map-pin marker (the well-known CSS teardrop shape) with the
   real port name printed underneath — informative, not decorative. */
.track-hero__pin {
  position: absolute;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange, #f28c28);
  border: 2px solid #f4f8fb;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  animation: track-pin-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.track-hero__pin i {
  transform: rotate(45deg);
  color: #0b1f3f;
  font-size: 0.68rem;
}

@keyframes track-pin-drop {
  from { opacity: 0; transform: translate(-50%, -160%) rotate(-45deg) scale(0.4); }
  to   { opacity: 1; transform: translate(-50%, -100%) rotate(-45deg) scale(1); }
}

.track-hero__port-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 31, 63, 0.6);
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
}

.track-hero__ship {
  position: absolute;
  top: 77%;
  left: 5%;
  color: #ffd9a8;
  font-size: 1.05rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
  offset-path: var(--route-path);
  offset-rotate: auto;
  animation: track-ship-sail 12s linear infinite;
}

@keyframes track-ship-sail {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

/* --- Hero content: force readable colors regardless of global heading rules --- */
.track-hero__content,
.track-hero__content h1,
.track-hero__content p {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

/* One deliberate, staggered entrance on load — not a looping decoration */
@keyframes track-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.track-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(242, 140, 40, 0.18);
  border: 1px solid rgba(242, 140, 40, 0.5);
  color: #ffd9a8 !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: track-fade-up 0.6s ease both;
}

.track-hero__title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: track-fade-up 0.6s 0.08s ease both;
}

.track-hero__subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.92;
  animation: track-fade-up 0.6s 0.16s ease both;
}

/* --- Embedded search card (solid surface, no blur) --- */
.track-hero__search {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 2.25rem;
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 24px 46px rgba(3, 12, 28, 0.4);
  animation: track-fade-up 0.6s 0.24s ease both;
}

/* --- Trust indicators: a structured, divided info bar (no glass pills) --- */
.track-hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  animation: track-fade-up 0.6s 0.32s ease both;
}

.track-hero__stat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.35rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 600;
}

.track-hero__stat:first-child {
  border-inline-start: 0;
}

.track-hero__stat i {
  color: var(--orange, #f28c28);
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .track-hero__ship,
  .track-hero__route,
  .track-hero__port {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-hero__ship,
  .track-hero__pin,
  .track-hero__kicker,
  .track-hero__title,
  .track-hero__subtitle,
  .track-hero__search,
  .track-hero__stats {
    animation: none;
  }
}

/* Vehicle-shipping landing panel */
.track-hero {
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
  background-color: #f6f7fb;
  background-image: radial-gradient(#4a49ff 1px, transparent 1px);
  background-position: 0 0;
  background-size: 12px 12px;
}

.track-hero::before {
  display: none;
}

.track-hero__panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(30, 37, 59, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 36px rgba(24, 31, 57, 0.12);
  isolation: isolate;
}

.track-hero__panel::after {
  position: absolute;
  z-index: -1;
  inset-inline-start: 0;
  bottom: 0;
  width: 32%;
  height: 3px;
  content: '';
  background: #463cff;
}

.track-hero__content,
.track-hero__content h1,
.track-hero__content p {
  position: relative;
  z-index: 1;
  color: #20243a !important;
  text-align: start;
  text-shadow: none;
}

.track-hero__content {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.track-hero__kicker {
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.15rem;
  color: #fff !important;
  background: var(--accent-color, #1f4c8c);
  border: 0;
  border-radius: 999px;
}

.track-hero__kicker i {
  color: #fff;
}

.track-hero__title {
  max-width: 540px;
  margin-bottom: 0.6rem;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.35;
  text-shadow: none;
}

.track-hero__subtitle {
  max-width: 500px;
  margin: 0 0 1.45rem;
  color: #777d8e !important;
  font-size: 1rem;
  line-height: 1.9;
  opacity: 1;
}

.track-hero__search {
  width: min(100%, 540px);
  max-width: 540px;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  animation-delay: 0.12s;
}

.track-hero__search h2 {
  margin: 0 0 0.65rem;
  color: #272a3d;
  font-size: 1rem;
  font-weight: 700;
  text-align: start;
}

.track-hero__search .input-group {
  direction: ltr;
  overflow: hidden;
  min-height: 54px;
  border: 1px solid #e5e6ee;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(36, 40, 63, 0.07);
}

.track-hero__search .input-group-text,
.track-hero__search .form-control,
.track-hero__search .btn {
  border: 0 !important;
}

.track-hero__search .input-group-text {
  color: var(--accent-color, #1f4c8c) !important;
}

.track-hero__search .form-control {
  min-width: 0;
  font-size: 0.95rem;
}

.track-hero__search .btn-warning {
  color: #fff;
  background: var(--accent-color, #1f4c8c);
  border-radius: 0 !important;
}

.track-hero__search .btn-warning:hover,
.track-hero__search .btn-warning:focus-visible {
  background: var(--accent-dark, #0b1f3f);
}

.track-hero__search form > p {
  margin-top: 0.65rem;
  color: #84899a !important;
  font-size: 0.77rem;
}

.track-hero__search form > .form-label {
  color: #73798a !important;
}

.track-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem 1.35rem;
  width: 100%;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #eceef3;
  animation-delay: 0.2s;
}

.track-hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #666d7e;
  font-size: 0.8rem;
}

.track-hero__stats i {
  color: var(--accent-color, #1f4c8c);
}

.track-hero__art {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  inset-inline-start: auto;
  width: 47%;
  min-height: 500px;
  overflow: hidden;
}

.track-hero__map-shape {
  position: absolute;
  top: 12%;
  left: 13%;
  width: 75%;
  height: 72%;
  border-radius: 44% 56% 60% 40% / 46% 43% 57% 54%;
  background: #eeedff;
  transform: rotate(-8deg);
}

.track-hero__map {
  position: absolute;
  top: 7%;
  left: 8%;
  width: 86%;
  height: 82%;
  overflow: visible;
}

.track-hero__map-blob {
  fill: #e9e7ff;
}

.track-hero__map-city {
  fill: #f69bd4;
  opacity: 0.82;
}

.track-hero__map-streets {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2;
}

.track-hero__route-path {
  fill: none;
  stroke: #4d42f4;
  stroke-width: 4;
  stroke-dasharray: 8 7;
  stroke-linecap: round;
}

.track-hero__route-pin circle:first-child {
  fill: #ffbd3e;
  stroke: #fff;
  stroke-width: 4;
}

.track-hero__route-pin circle:nth-child(2) {
  fill: #fff;
}

.track-hero__route-pin--end circle:first-child {
  fill: #4d42f4;
}

.track-hero__route-pin--end path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.track-hero__car path {
  fill: #fff;
  stroke: #4d42f4;
  stroke-width: 2;
  stroke-linejoin: round;
}

.track-hero__car path:nth-of-type(2) {
  fill: #b7b2ff;
}

.track-hero__car circle {
  fill: #30344a;
}

.track-hero__car circle:nth-of-type(2n) {
  fill: #dce0ea;
}

.track-hero__transporter {
  position: absolute;
  right: 4%;
  bottom: 14%;
  width: min(83%, 420px);
  height: 104px;
  filter: drop-shadow(0 10px 8px rgba(53, 49, 105, 0.15));
}

.track-hero__deck {
  position: absolute;
  right: 15%;
  bottom: 28px;
  width: 73%;
  height: 10px;
  border-radius: 3px 2px 0 0;
  background: #f3a83b;
  transform: skewX(-7deg);
}

.track-hero__deck::before {
  position: absolute;
  right: 4%;
  bottom: 8px;
  width: 88%;
  height: 3px;
  content: '';
  background: #68738a;
  transform: rotate(-8deg);
  transform-origin: right;
}

.track-hero__mini-car {
  position: absolute;
  bottom: 10px;
  width: 30%;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 8px 10px 3px 3px;
  background: #55a8d5;
}

.track-hero__mini-car::before {
  position: absolute;
  top: -9px;
  left: 22%;
  width: 53%;
  height: 9px;
  content: '';
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 7px 8px 0 0;
  background: #79c7e9;
}

.track-hero__mini-car i,
.track-hero__mini-car i::after {
  position: absolute;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #34394c;
  content: '';
}

.track-hero__mini-car i {
  left: 15%;
}

.track-hero__mini-car i::after {
  left: 37px;
  bottom: -2px;
}

.track-hero__mini-car--one {
  left: 8%;
  bottom: 30px;
}

.track-hero__mini-car--two {
  left: 38%;
  bottom: 30px;
  background: #e17d5e;
}

.track-hero__mini-car--three {
  left: 66%;
  bottom: 30px;
  background: #f4c649;
}

.track-hero__cab {
  position: absolute;
  right: 0;
  bottom: 23px;
  width: 22%;
  height: 39px;
  border-radius: 5px 12px 3px 2px;
  background: #f4ad32;
  clip-path: polygon(0 0, 67% 0, 100% 44%, 100% 100%, 0 100%);
}

.track-hero__cab::before {
  position: absolute;
  top: 5px;
  right: 8%;
  width: 42%;
  height: 14px;
  content: '';
  border-radius: 2px 7px 0 0;
  background: #b8e4f3;
}

.track-hero__cab span {
  position: absolute;
  right: 0;
  bottom: 7px;
  width: 5px;
  height: 9px;
  border-radius: 3px 0 0 3px;
  background: #fff0a8;
}

.track-hero__wheel {
  position: absolute;
  bottom: 17px;
  width: 20px;
  height: 20px;
  border: 5px solid #34394c;
  border-radius: 50%;
  background: #dce0ea;
}

.track-hero__wheel--one { right: 75%; }
.track-hero__wheel--two { right: 39%; }
.track-hero__wheel--three { right: 7%; }

@media (max-width: 767.98px) {
  .track-hero {
    padding: 1rem 0 1.5rem;
  }

  .track-hero__panel {
    min-height: 0;
  }

  .track-hero__content {
    min-height: 0;
    padding: 2rem 1.35rem 1.5rem;
  }

  .track-hero__art {
    position: relative;
    inset: auto;
    left: auto;
    inset-inline-start: auto;
    width: 100%;
    min-height: 290px;
  }

  .track-hero__map {
    top: 0;
    left: 12%;
    width: 76%;
    height: 90%;
  }

  .track-hero__map-shape {
    top: 8%;
    left: 17%;
    width: 66%;
    height: 78%;
  }

  .track-hero__transporter {
    right: 7%;
    bottom: 10%;
    width: min(78%, 360px);
    transform: scale(0.86);
    transform-origin: right bottom;
  }

  .track-hero__search .input-group {
    flex-wrap: nowrap;
  }

  .track-hero__search .btn-warning {
    padding-inline: 0.8rem !important;
    white-space: nowrap;
  }

  .track-hero__stats {
    gap: 0.55rem 0.9rem;
  }
}

@media (max-width: 420px) {
  .track-hero__search .btn-warning {
    padding-inline: 0.55rem !important;
    font-size: 0.82rem;
  }

  .track-hero__stats span {
    font-size: 0.72rem;
  }
}

/* ===================================================================
   How-it-works step icons + card hover lift
   =================================================================== */
.track-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #1f4c8c, #0b1f3f);
  box-shadow: 0 8px 18px rgba(11, 31, 63, 0.25);
}

.track-card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.track-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(11, 31, 63, 0.14) !important;
}

/* ===================================================================
   Real shipping stages: horizontal connector + icons
   =================================================================== */
.track-stepper {
  position: relative;
}

.track-stepper__line {
  position: absolute;
  top: 32px;
  inset-inline: 12%;
  height: 3px;
  background: #e2e8f0;
  border-radius: 3px;
  z-index: 0;
}

.track-stepper__line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f4c8c, #f28c28);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.track-stepper__icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--orange, #f28c28);
  background: #fff;
  border: 2px solid var(--orange, #f28c28);
  box-shadow: 0 6px 14px rgba(242, 140, 40, 0.2);
}

@media (max-width: 767.98px) {
  .track-stepper__line {
    display: none;
  }
}

/* ===================================================================
   FAQ accordion polish
   =================================================================== */
.track-faq-accordion .accordion-item {
  border: 1px solid #edf1f7;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.track-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--accent-dark, #0b1f3f);
  background-color: rgba(31, 76, 140, 0.06);
}

.track-faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

/* ===================================================================
   Scroll-reveal helper (JS toggles .is-visible via IntersectionObserver)
   =================================================================== */
.track-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.track-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .track-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .track-stepper__line-fill {
    transition: none;
  }
}

/* ===================================================================
   VIN search form
   =================================================================== */
.track-search-form__input {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.track-search-form__spinner[hidden] {
  display: none;
}
