/* ==========================================================================
   Core Logistics — "The Consignment Note"
   Design system layered on top of Bootstrap 4 (css/style.css).
   Palette: ink blue on paper white, high-vis rider amber, mono data type.
   ========================================================================== */

:root {
  --ink: #0e2a44;
  --ink-deep: #0a1f33;
  --ink-tint: #12334f;
  --paper: #f4f6f2;
  --white: #ffffff;
  --rider: #ffc62b;
  --rider-dark: #e0ac00;
  --rider-tint: #fff3d0;
  --slate: #5b6b78;
  --rule: #d9e0e4;
  --font-display: "Barlow Condensed", "Archivo", sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Base & type ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background-color: var(--white);
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1,
h2,
h3 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h4,
h5,
h6 {
  text-transform: none;
}

p {
  color: inherit;
}

a {
  color: var(--ink);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--rider-dark);
}

::selection {
  background: var(--rider);
  color: var(--ink);
}

.display-3,
.display-4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.text-body {
  color: var(--ink) !important;
}

/* ---------- Bootstrap utility overrides ---------- */

.text-primary {
  color: var(--ink) !important;
}

.bg-primary {
  background-color: var(--ink) !important;
}

.text-secondary {
  color: var(--slate) !important;
}

.bg-secondary {
  background-color: var(--paper) !important;
}

.bg-dark {
  background-color: var(--ink-deep) !important;
}

.text-muted {
  color: var(--slate) !important;
}

.text-rider {
  color: var(--rider) !important;
}

.bg-rider {
  background-color: var(--rider) !important;
}

.border-light {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0;
  padding: 0.7rem 1.6rem;
  border-width: 1px;
}

.btn-primary {
  color: var(--ink);
  background-color: var(--rider);
  border-color: var(--rider);
}

.btn-primary:hover,
.btn-primary:focus {
  color: var(--ink);
  background-color: var(--rider-dark);
  border-color: var(--rider-dark);
}

.btn-rider {
  color: var(--ink);
  background-color: var(--rider);
  border-color: var(--rider);
}

.btn-rider:hover,
.btn-rider:focus {
  color: var(--ink);
  background-color: var(--rider-dark);
  border-color: var(--rider-dark);
}

.btn-dark {
  color: var(--white);
  background-color: var(--ink);
  border-color: var(--ink);
}

.btn-dark:hover,
.btn-dark:focus {
  color: var(--white);
  background-color: var(--ink-deep);
  border-color: var(--ink-deep);
}

.btn-outline-primary {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: var(--white);
  background-color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--ink);
  background-color: var(--white);
  border-color: var(--white);
}

.btn-social {
  width: 38px;
  height: 38px;
  padding: 0;
  line-height: 36px;
  border-radius: 0;
}

/* ---------- Forms ---------- */

.form-control,
.custom-select {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--rule);
  border-radius: 0;
}

.form-control:focus,
.custom-select:focus {
  color: var(--ink);
  background-color: var(--white);
  border-color: var(--rider);
  box-shadow: 0 0 0 0.15rem rgba(255, 198, 43, 0.25);
}

.form-control::placeholder {
  color: #98a4ae;
}

.custom-select {
  font-family: var(--font-body);
}

/* ---------- Kickers & section headers ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.kicker::before {
  content: "// ";
  color: var(--rider-dark);
  font-weight: 600;
}

.kicker--rider {
  color: var(--rider);
}

.kicker--rider::before {
  color: var(--rider);
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Perforation (dashed divider) ---------- */

.perforation {
  position: relative;
  height: 1px;
  margin: 1.5rem 0;
  border-top: 2px dashed var(--rule);
}

.perforation::before,
.perforation::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
}

.perforation::before {
  left: 0;
}

.perforation::after {
  right: 0;
}

.perforation--rider {
  border-top-color: rgba(255, 198, 43, 0.4);
}

/* ---------- Barcode ---------- */

.barcode {
  position: relative;
  height: 46px;
  background-color: var(--white);
  overflow: hidden;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 13px);
}

.barcode::before,
.barcode::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ink);
}

.barcode::before {
  left: 0;
}

.barcode::after {
  right: 0;
}

.barcode--scan::before {
  width: 2px;
  background: var(--rider);
  box-shadow: 12px 0 0 -1px var(--rider), -12px 0 0 -1px var(--rider);
  z-index: 2;
  animation: barcode-scan 2.6s ease-in-out infinite;
}

@keyframes barcode-scan {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 2px);
    opacity: 0;
  }
}

.barcode--thin {
  height: 14px;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 9px);
}

.barcode--rider {
  background-image:
    repeating-linear-gradient(90deg, var(--rider) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, var(--rider) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, var(--rider) 0 3px, transparent 3px 13px);
}

.barcode--rider::before,
.barcode--rider::after {
  background: var(--rider);
}

.barcode-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0.5rem 0 0;
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.topbar__sep {
  margin: 0 0.9rem;
  color: rgba(255, 255, 255, 0.3);
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
}

.topbar a:hover {
  color: var(--rider);
  text-decoration: none;
}

.topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

.topbar__social a:hover {
  border-color: var(--rider);
}

/* ---------- Site nav ---------- */

.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-nav .navbar-brand {
  padding: 0.25rem 0;
}

.site-nav .navbar-brand img {
  width: 132px;
}

.site-nav .navbar-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 1.6rem 1.1rem;
  position: relative;
}

.site-nav .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.35rem;
  height: 3px;
  background: var(--rider);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link.active {
  color: var(--ink);
  background: transparent;
}

.site-nav .navbar-nav .nav-link:hover::after,
.site-nav .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.site-nav__cta {
  margin-left: 1rem;
}

.site-nav__cta .btn {
  padding: 0.6rem 1.4rem;
}

.navbar-toggler {
  border: 1px solid var(--rule);
  border-radius: 0;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-nav .nav-link {
    padding: 0.7rem 1rem;
  }

  .site-nav .navbar-nav .nav-link::after {
    display: none;
  }

  .site-nav .navbar-nav .nav-link:hover,
  .site-nav .navbar-nav .nav-link.active {
    color: var(--ink);
    background: var(--paper);
  }

  .site-nav__cta {
    margin: 0.75rem 0 1rem;
  }

  .site-nav__cta .btn {
    display: block;
  }
}

/* ---------- Waybill hero ---------- */

.waybill-hero {
  position: relative;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(14, 42, 68, 0.55), rgba(14, 42, 68, 0.55)),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.02) 2px 58px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(255, 255, 255, 0.02) 2px 58px);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.waybill-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--rider) 0 34px,
    var(--ink) 34px 60px
  );
  opacity: 0.9;
}

.waybill-hero__title {
  color: var(--white);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.waybill-hero__sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.waybill-hero__foot {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 1.75rem;
}

/* ---------- The waybill slip ---------- */

.waybill {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
  padding: 1.9rem 2.1rem 2.2rem;
  margin: 3rem auto 0;
  max-width: 920px;
  position: relative;
}

.waybill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 30px,
    var(--rider) 30px 60px
  );
}

.waybill__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.waybill__brand img {
  width: 148px;
  display: block;
}

.waybill__doc {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.45rem;
}

.waybill__stamp {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 2px solid var(--rider);
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
  transform: rotate(2.5deg);
  background: var(--rider-tint);
}

.waybill__fields {
  margin-top: 1.5rem;
}

.waybill__field {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

.waybill__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.35rem;
}

.waybill__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.waybill__track {
  background: var(--paper);
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--rule);
}

.waybill__form .input-group {
  flex-wrap: nowrap;
}

.waybill__form .form-control {
  height: 58px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  border-right: none;
}

.waybill__form .btn {
  height: 58px;
  padding: 0 2rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .waybill {
    padding: 1.4rem 1.25rem 1.6rem;
  }

  .waybill-hero__title {
    font-size: 3rem;
  }

  .waybill__form .btn {
    padding: 0 1.1rem;
    font-size: 0.85rem;
  }
}

/* ---------- Page head (inner pages) ---------- */

.page-head {
  position: relative;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(14, 42, 68, 0.6), rgba(14, 42, 68, 0.6)),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(255, 255, 255, 0.02) 2px 58px);
  padding: 4.5rem 0 5.25rem;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--rider) 0 34px,
    var(--ink) 34px 60px
  );
  opacity: 0.9;
}

.page-head__title {
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.page-head__crumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.page-head__crumbs a {
  color: var(--white);
}

.page-head__crumbs a:hover {
  color: var(--rider);
  text-decoration: none;
}

.page-head__crumbs .crumb-sep {
  margin: 0 0.75rem;
  color: var(--rider);
}

/* ---------- Ruled stat strip ---------- */

.stat-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.stat {
  padding: 2.75rem 1rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.3rem;
  color: var(--ink);
  line-height: 1.1;
  display: block;
}

.stat__num small {
  font-size: 1.2rem;
  color: var(--rider-dark);
}

.stat__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-top: 0.55rem;
  display: block;
}

@media (max-width: 767.98px) {
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 1.75rem 1rem;
  }

  .stat:last-child {
    border-bottom: none;
  }
}

/* ---------- Service cards ---------- */

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0 1.6rem 1.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rider);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: var(--rider-dark);
  box-shadow: 0 16px 40px -22px rgba(14, 42, 68, 0.45);
}

.service-card__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -1.6rem 1.35rem;
  padding: 1rem 1.6rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.service-card__icon {
  font-size: 1.4rem;
  color: var(--ink);
}

.service-card__code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--rider);
  padding: 0.2rem 0.55rem;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.service-card__text {
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.service-card__more {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rider-dark);
  padding-bottom: 0.2rem;
  align-self: flex-start;
}

.service-card__more:hover {
  color: var(--rider-dark);
  text-decoration: none;
}

/* ---------- About / image + stamp ---------- */

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  border: 1px solid var(--rule);
}

.about-media__stamp {
  position: absolute;
  right: -0.9rem;
  bottom: -1.1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 0.9rem 1.2rem;
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 0 14px 30px -18px rgba(14, 42, 68, 0.5);
}

.about-media__stamp b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  display: block;
  text-transform: uppercase;
}

.about-media__stamp span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.check-list .check-list__mark {
  color: var(--rider-dark);
  margin-right: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.check-list li span {
  font-size: 0.98rem;
}

/* ---------- Quote slip ---------- */

.quote-band {
  position: relative;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(14, 42, 68, 0.6), rgba(14, 42, 68, 0.6)),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(255, 255, 255, 0.02) 2px 58px);
  overflow: hidden;
}

.quote-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--rider) 0 34px,
    var(--ink) 34px 60px
  );
  opacity: 0.9;
}

.quote-band__title {
  color: var(--white);
  font-size: 3rem;
}

.quote-band__text {
  color: rgba(255, 255, 255, 0.8);
}

.quote-slip {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
  padding: 1.6rem 1.7rem 1.9rem;
}

.quote-slip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.quote-slip__title {
  font-size: 1.55rem;
  margin-bottom: 0;
}

.quote-slip__form .form-control,
.quote-slip__form .custom-select {
  height: 52px;
  font-size: 0.95rem;
}

.quote-slip__form .btn {
  height: 52px;
}

/* ---------- Client carousel ---------- */

.client-item {
  text-align: center;
}

.client-item img {
  max-height: 84px;
  width: auto !important;
  object-fit: contain;
  padding: 0.6rem 1rem;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.client-item img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- FAQ accordion ---------- */

.faq-card {
  background: var(--white);
  border: 1px solid var(--rule) !important;
  border-radius: 0;
}

.faq-card .card-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}

.faq-card .btn-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 1.15rem 1.4rem;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-card .btn-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.faq-card__qic {
  color: var(--rider-dark);
  font-size: 0.9rem;
}

.faq-card__chevron {
  color: var(--rider-dark);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.faq-card .btn-link[aria-expanded="true"] .faq-card__chevron {
  transform: rotate(180deg);
}

.faq-card .card-body {
  background: var(--paper);
  color: var(--slate);
  font-size: 0.95rem;
}

.faq-card .card-body h6 {
  color: var(--ink);
}

.faq-card .card-body .bg-white {
  border: 1px solid var(--rule);
}

.tint-box {
  background: var(--rider-tint);
  border: 1px solid rgba(224, 172, 0, 0.35);
  color: var(--ink);
  padding: 0.95rem 1.1rem;
}

.tint-box strong {
  color: var(--ink);
}

.tint-box a {
  color: var(--ink);
  font-weight: 600;
}

.tint-box a:hover {
  color: var(--rider-dark);
}

/* ---------- Newsletter ---------- */

.newsletter-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-band__title {
  color: var(--white);
  font-size: 2.6rem;
}

.newsletter-band .kicker {
  color: var(--rider);
}

.newsletter-band .form-control {
  height: 58px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.newsletter-band .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-band .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--rider);
}

.newsletter-band .btn {
  height: 58px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.75);
  border-top: 4px solid var(--rider);
}

.site-footer__head {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rider);
  margin-bottom: 1.4rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
}

.site-footer .link {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.55rem;
}

.site-footer .link:hover {
  color: var(--rider);
  text-decoration: none;
}

.site-footer .link i {
  color: var(--rider);
  margin-right: 0.6rem;
  font-size: 0.75rem;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__bar a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__bar a:hover {
  color: var(--rider);
  text-decoration: none;
}

.site-footer__bar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__bar .nav-link:hover {
  color: var(--rider);
  background: transparent;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 11;
  width: 46px;
  height: 46px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--rider);
  color: var(--ink);
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4);
}

.back-to-top:hover {
  background: var(--rider-dark);
  color: var(--ink);
}

/* ---------- Video / play button ---------- */

.btn-play::before,
.btn-play::after {
  background: var(--rider);
}

.btn-play:hover::after {
  background: var(--rider-dark);
}

.btn-play span {
  border-left-color: var(--ink);
}

/* ==========================================================================
   Tracking page (presentation only — PHP/API logic untouched)
   ========================================================================== */

.tracking-wrap {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.tracking-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1.1rem;
  margin-bottom: 2rem;
}

.tracking-header h2 {
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tracking-number {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.tracking-header .text-muted {
  margin-top: 0.5rem;
}

.info-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.6rem;
}

.info-box h4 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--rule);
}

.info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  min-width: 130px;
}

.info-value {
  color: var(--ink);
  text-align: right;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  word-break: break-word;
}

.tracking-container {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 2rem 2.1rem;
  box-shadow: 0 18px 45px -30px rgba(14, 42, 68, 0.35);
}

.tracking-container > h4 {
  font-size: 1.3rem;
  margin-bottom: 1.6rem;
}

/* Timeline */

.order-track {
  margin: 1.5rem 0;
  position: relative;
}

.order-track-step {
  display: flex;
  height: 120px;
  position: relative;
}

.order-track-text {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.order-track-text-left {
  text-align: right;
  padding-right: 30px;
}

.order-track-text-right {
  text-align: left;
  padding-left: 30px;
}

.last-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  line-height: 1.5;
}

.order-track-status {
  position: relative;
  width: 30px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-track-status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rule);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--rule);
}

.order-track-status-dot.order-track-status-last {
  background: var(--rider);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--rider), 0 0 0 5px rgba(255, 198, 43, 0.25);
}

.order-track-status-line {
  flex: 1;
  width: 2px;
  background: var(--rule);
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.order-track-text-stat {
  margin: 0;
  line-height: 1.4;
}

.status {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 5px !important;
}

.location {
  color: var(--rider-dark);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 5px !important;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-message {
  color: var(--slate);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Empty states */

.no-tracking-data,
.no-parcel {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--paper);
  border: 1px dashed var(--rule);
  margin: 1rem 0;
}

.no-tracking-data .fs-4,
.no-parcel .fs-4 {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.no-tracking-data h3,
.no-parcel h3 {
  color: var(--ink);
}

/* Track-again button */

.track-another-btn {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--rider);
  color: var(--ink);
  border: none;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.track-another-btn:hover {
  background: var(--rider-dark);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Live API badge */

.api-indicator {
  background: var(--rider);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}

.track-form-container {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 2.5rem;
  box-shadow: 0 18px 45px -30px rgba(14, 42, 68, 0.35);
  margin-top: 1rem;
}

.track-form-container h3 {
  font-size: 2rem;
}

.track-form-container .rounded-circle {
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  .order-track-step {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .order-track-text {
    width: 100%;
    text-align: center !important;
    padding: 10px !important;
  }

  .order-track-status {
    order: 1;
    margin: 15px 0;
    height: 40px;
    width: 100%;
  }

  .order-track-status-dot {
    position: relative;
    top: 0;
  }

  .order-track-status-line {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
  }

  .order-track-text-left {
    order: 2;
  }

  .order-track-text-right {
    order: 3;
  }

  .info-row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .info-label {
    margin-bottom: 0.1rem;
  }

  .info-value {
    text-align: left;
  }
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-content {
  border-radius: 0;
  border: none;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.5);
}

.modal-header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--rider);
  border-radius: 0;
  padding: 1.1rem 1.5rem;
}

.modal-header .close {
  color: var(--white);
  text-shadow: none;
  opacity: 0.9;
}

.modal-header .close:hover {
  color: var(--rider);
  opacity: 1;
}

.modal-title {
  font-size: 1.35rem;
  color: var(--white);
}

.modal-footer {
  border-top: 1px solid var(--rule);
  background: var(--white);
}

.modal-body .btn-success {
  background-color: var(--rider);
  border-color: var(--rider);
  color: var(--ink);
  border-radius: 0;
}

.modal-body .btn-success:hover {
  background-color: var(--rider-dark);
  border-color: var(--rider-dark);
  color: var(--ink);
}

.modal-body .btn-outline-success {
  color: var(--ink);
  border-color: var(--ink);
  border-radius: 0;
}

.modal-body .btn-outline-success:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.modal-backdrop {
  background-color: rgba(10, 31, 51, 0.65);
}

/* ---------- Focus & reduced motion ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--rider);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
