/* ============================================================
   WAYBOUND — Main Stylesheet
   Brand: Navy #0B1F3A | Amber #F5A623 | Slate #4A5568
   ============================================================ */

/* ----- RESET & BASE ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #4A5568;
  background: #F7F8FA;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; border: none; outline: none; }

/* ----- CONTAINER ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #0B1F3A;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: #4A5568;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
}

.btn--track {
  background: #F5A623;
  color: #0B1F3A;
  border: 2px solid #F5A623;
}

.btn--track:hover {
  background: #e0961a;
  border-color: #e0961a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

.btn--track:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

.btn--large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  min-height: 52px;
}
/* ============================================================
   MAIN HEADER (Sticky)
   ============================================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0B1F3A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s, background 0.3s;
}

.main-header--scrolled {
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.3);
}

.main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.main-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  outline: none;
}

.main-header__logo:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

.main-header__logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.main-header__nav {
  display: none;
}

@media (min-width: 992px) {
  .main-header__nav { display: flex; }
}

.main-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-header__nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.main-header__nav-link:hover,
.main-header__nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.main-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ----- Hamburger ----- */
.main-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
}

@media (min-width: 992px) {
  .main-header__hamburger { display: none; }
}

.main-header__hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.main-header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.main-header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.main-header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Mobile Menu ----- */
.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0B1F3A;
  z-index: 999;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  padding: 0.75rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #F5A623;
  padding-left: 0.75rem;
}

.mobile-menu a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #F5A623;
}

/* ============================================================
   HERO SECTION (Full-width video background)
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  display: none;
}

.video-failed .hero__bg-image {
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(11, 31, 58, 0.35);
}

/* Video fallback: when the video fails to load, hide it and show the static bg */
.video-failed .hero__video,
.video-failed .network__video {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 700px;
}

@media (min-width: 768px) {
  .hero__headline { font-size: 3rem; }
}

@media (min-width: 1200px) {
  .hero__headline { font-size: 3.5rem; }
}

/* ----- Tracking Card (Hero Widget) ----- */
.tracking-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.3);
  overflow: hidden;
  max-width: 680px;
  width: 100%;
}

.tracking-card__tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #F7F8FA;
}

.tracking-card__tab {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4A5568;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
}

.tracking-card__tab:hover {
  color: #0B1F3A;
  background: rgba(11, 31, 58, 0.03);
}

.tracking-card__tab.active {
  color: #0B1F3A;
  border-bottom-color: #F5A623;
  background: #fff;
}

.tracking-card__panel {
  display: none;
  padding: 1.5rem;
}

.tracking-card__panel.active {
  display: block;
}

.tracking-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .tracking-form__row {
    flex-direction: row;
  }

  .tracking-form__input {
    flex: 1;
  }
}

.tracking-form__input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  color: #0B1F3A;
  background: #F7F8FA;
  transition: border-color 0.2s;
  font-family: 'Space Mono', monospace;
  min-height: 52px;
}

.tracking-form__input::placeholder {
  color: #a0aec0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.tracking-form__input:focus {
  border-color: #F5A623;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.tracking-form__row .btn--large {
  flex-shrink: 0;
}

.tracking-card__multi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4A5568;
  margin-top: 1rem;
  transition: color 0.2s;
}

.tracking-card__multi-link:hover {
  color: #F5A623;
}

/* ============================================================
   QUICK ACTIONS TILES
   ============================================================ */
.quick-actions {
  padding: 4rem 0;
  background: #F7F8FA;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .quick-actions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .quick-actions__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-action-tile {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.quick-action-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.1);
  border-color: transparent;
}

.quick-action-tile__icon {
  width: 56px;
  height: 56px;
  background: rgba(11, 31, 58, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0B1F3A;
  transition: background 0.3s;
}

.quick-action-tile:hover .quick-action-tile__icon {
  background: rgba(245, 166, 35, 0.12);
  color: #F5A623;
}

.quick-action-tile__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0B1F3A;
}

.quick-action-tile__desc {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.5;
}

/* ----- Tile Media Backgrounds (scoped to modified tiles) ----- */
.quick-action-tile--image-bg,
.quick-action-tile--video-bg {
  position: relative;
  overflow: hidden;
  background: #0B1F3A;
  border-color: transparent;
  color: #fff;
  justify-content: center;
  min-height: 240px;
}

.quick-action-tile--image-bg:hover,
.quick-action-tile--video-bg:hover {
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.35);
}

.quick-action-tile__media,
.quick-action-tile__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.quick-action-tile__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quick-action-tile__bg-video {
  object-fit: cover;
}

.quick-action-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(11, 31, 58, 0.55), rgba(11, 31, 58, 0.75));
  pointer-events: none;
}

.quick-action-tile__icon,
.quick-action-tile__title,
.quick-action-tile__desc {
  position: relative;
  z-index: 2;
}

.quick-action-tile--image-bg .quick-action-tile__icon,
.quick-action-tile--video-bg .quick-action-tile__icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.quick-action-tile--image-bg:hover .quick-action-tile__icon,
.quick-action-tile--video-bg:hover .quick-action-tile__icon {
  background: rgba(245, 166, 35, 0.3);
  color: #F5A623;
}

.quick-action-tile--image-bg .quick-action-tile__title,
.quick-action-tile--video-bg .quick-action-tile__title {
  color: #fff;
}

.quick-action-tile--image-bg .quick-action-tile__desc,
.quick-action-tile--video-bg .quick-action-tile__desc {
  color: rgba(255, 255, 255, 0.85);
}
/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 5rem 0;
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  position: relative;
  background: #F7F8FA;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.step-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
}

.step-card__icon {
  font-size: 1.6rem;
  color: #0B1F3A;
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #0B1F3A;
  margin-bottom: 0.5rem;
}

.step-card__desc {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.6;
}

.step-card__number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: rgba(11, 31, 58, 0.06);
}

/* ============================================================
   OUR NETWORK / CARGO OPERATIONS (Video background)
   ============================================================ */
.network {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.network__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.network__video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.network__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  display: none;
}

.video-failed .network__bg-image {
  display: block;
}


.network__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(11, 31, 58, 0.40);
}

.network__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
}

.network__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .network__title { font-size: 2.5rem; }
}

.network__text {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.85);
}

.network__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.network__stat {
  text-align: center;
}

.network__stat-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: #F5A623;
  line-height: 1.2;
}

.network__stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   SAMPLE TRACKING PREVIEW
   ============================================================ */
.sample-tracking {
  padding: 5rem 0;
  background: #F7F8FA;
}

.tracking-preview-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
}

.tracking-preview-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.tracking-preview-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tracking-preview-card__label {
  font-size: 0.8rem;
  color: #4A5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracking-preview-card__number {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0B1F3A;
  letter-spacing: 1px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.status-badge--success {
  background: #EAF3DE;
  color: #27500A;
}

/* ----- Timeline ----- */
.tracking-preview-card__timeline-wrap {
  padding: 1.5rem;
  overflow-x: auto;
}

.tracking-preview-card__timeline {
  display: flex;
  gap: 0;
  position: relative;
  min-width: 500px;
  padding: 0.5rem 0;
}

.tracking-preview-card__timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.timeline-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  gap: 0.5rem;
}

.timeline-dot i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 3px solid #e2e8f0;
  background: #fff;
  color: #e2e8f0;
}

.timeline-dot--completed i {
  background: #0B1F3A;
  border-color: #0B1F3A;
  color: #fff;
  font-size: 0.7rem;
}

.timeline-dot--active i {
  border-color: #F5A623;
  color: #F5A623;
  background: #fff;
  font-size: 0.6rem;
  box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.15);
}

.timeline-dot--pending i {
  background: #fff;
  border-color: #e2e8f0;
  color: #cbd5e0;
}

.timeline-dot__label {
  text-align: center;
  min-width: 80px;
}

.timeline-dot__title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #0B1F3A;
}

.timeline-dot__date {
  display: block;
  font-size: 0.7rem;
  color: #4A5568;
  margin-top: 0.15rem;
}

.timeline-dot--pending .timeline-dot__title {
  color: #a0aec0;
}

.timeline-dot--pending .timeline-dot__date {
  color: #cbd5e0;
}

/* ----- Tracking Preview Footer ----- */
.tracking-preview-card__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #F7F8FA;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
  .tracking-preview-card__footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.tracking-preview-card__detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tracking-preview-card__detail-label {
  font-size: 0.75rem;
  color: #4A5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracking-preview-card__detail-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0B1F3A;
}
/* ----- Tracking Status Badge Variants ----- */
.status-badge--info {
  background: #E8EDF4;
  color: #2D3748;
}

.status-badge--primary {
  background: #DBEAFE;
  color: #1E40AF;
}

.status-badge--warning {
  background: #FEF3C7;
  color: #92400E;
}

.status-badge--cancelled {
  background: #F3F4F6;
  color: #6B7280;
}

.status-badge--return {
  background: #FEF3C7;
  color: #B45309;
}

/* ----- Tracking Loading State ----- */
.tracking-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
}

.tracking-loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #F5A623;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tracking-loading__text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: #4A5568;
  font-size: 0.95rem;
}

/* ----- Tracking Error State ----- */
.tracking-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
}

.tracking-error__icon {
  width: 56px;
  height: 56px;
  background: #FEE2E2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #DC2626;
}

.tracking-error__message {
  font-size: 1rem;
  color: #4A5568;
  max-width: 480px;
  line-height: 1.6;
}

/* ----- Tracking Placeholder State ----- */
.tracking-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
}

.tracking-placeholder__icon {
  width: 56px;
  height: 56px;
  background: rgba(11, 31, 58, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #a0aec0;
}

.tracking-placeholder__text {
  font-size: 0.95rem;
  color: #a0aec0;
  max-width: 400px;
}

/* ----- Timeline Location & Notes ----- */
.timeline-dot__location {
  display: block;
  font-size: 0.68rem;
  color: #718096;
  margin-top: 0.1rem;
}

.timeline-dot__location i {
  width: auto;
  height: auto;
  border: none;
  background: none;
  font-size: 0.6rem;
  color: #a0aec0;
  padding: 0;
  border-radius: 0;
}

.timeline-dot__notes {
  display: block;
  font-size: 0.68rem;
  color: #a0aec0;
  margin-top: 0.1rem;
  font-style: italic;
}

/* ----- Vertical timeline variant for terminal statuses ----- */
.timeline-dot--vertical {
  flex-direction: row;
  gap: 1rem;
  padding: 0.5rem 0;
}

.timeline-dot--vertical i {
  flex-shrink: 0;
}

.timeline-dot--vertical .timeline-dot__label {
  text-align: left;
  min-width: auto;
}

/* ============================================================
   SHIPMENT MAP (Leaflet)
   ============================================================ */
.shipment-map-section {
  max-width: 780px;
  margin: 1.5rem auto 0;
}

.shipment-map-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0B1F3A;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #F5A623;
  display: inline-block;
}

.shipment-map {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #F7F8FA;
}

.shipment-map__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 350px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #F7F8FA;
  color: #a0aec0;
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
}

.shipment-map__fallback i {
  font-size: 1.2rem;
  color: #cbd5e0;
}

/* Map marker pins */
.shipment-map__marker {
  background: none;
  border: none;
}

.shipment-map__pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.shipment-map__pin--origin {
  background: #0B1F3A;
}

.shipment-map__pin--dest {
  background: #F5A623;
  color: #0B1F3A;
}

/* Leaflet popup brand styling */
.shipment-map .leaflet-popup-content-wrapper {
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

.shipment-map .leaflet-popup-content strong {
  font-family: 'Space Grotesk', sans-serif;
  color: #0B1F3A;
}

@media (max-width: 600px) {
  .shipment-map {
    height: 260px;
  }

  .shipment-map__fallback {
    height: 260px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0B1F3A;
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__logo {
  opacity: 0.85;
  margin-bottom: 0.75rem;
  height: 32px;
  width: auto;
}
.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 260px;
}

.footer__col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__col-list a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__col-list a:hover {
  color: #F5A623;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal-links {
  display: flex;
  gap: 1.25rem;
}

.footer__legal-links a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer__legal-links a:hover {
  color: #F5A623;
}

/* ============================================================
   RESPONSIVE / MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 767px) {
  .hero {
    min-height: 90vh;
  }

  .hero__content {
    padding-top: 1rem;
    gap: 1.5rem;
    align-items: stretch;
  }

  .hero__headline {
    font-size: 1.75rem;
    text-align: center;
  }

  .tracking-card {
    max-width: 100%;
    border-radius: 10px;
  }

  .tracking-card__tab {
    font-size: 0.8rem;
    padding: 0.85rem 0.75rem;
    min-height: 44px;
  }

  .tracking-card__tab i {
    display: none;
  }

  .tracking-card__panel {
    padding: 1.25rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .quick-actions {
    padding: 3rem 0;
  }

  .quick-actions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-action-tile {
    padding: 1.5rem 1rem;
  }

  .how-it-works {
    padding: 3rem 0;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .network__title {
    font-size: 1.6rem;
  }

  .network__text {
    font-size: 0.95rem;
  }

  .network__stat-number {
    font-size: 1.75rem;
  }

  .sample-tracking {
    padding: 3rem 0;
  }

  .tracking-preview-card__header {
    padding: 1.25rem;
  }

  .tracking-preview-card__timeline-wrap {
    padding: 1.25rem;
  }

  .network__stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer__col-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
/* ----- Very small screens (≤480px) ----- */
@media (max-width: 480px) {
  .hero__headline {
    font-size: 1.5rem;
  }

  .quick-actions__grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .network__stats {
    gap: 1rem;
  }

  .network__stat-number {
    font-size: 1.5rem;
  }

  /* Vertical timeline for very small screens */
  .tracking-preview-card__timeline-wrap {
    overflow-x: visible;
  }

  .tracking-preview-card__timeline {
    flex-direction: column;
    min-width: auto;
    padding-left: 1.5rem;
  }

  .tracking-preview-card__timeline::before {
    top: 0;
    bottom: 0;
    left: 41px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .timeline-dot {
    flex-direction: row;
    gap: 1rem;
  }

  .timeline-dot__label {
    text-align: left;
    min-width: auto;
  }

  .footer__grid {
    gap: 2rem;
  }
  .tracking-form__row .btn--large {
    width: 100%;
  }

}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle Ken Burns zoom for static hero/network backgrounds */
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero__bg-image {
  animation: kenBurns 20s ease-in-out infinite alternate;
}

.network__bg-image {
  animation: kenBurns 25s ease-in-out infinite alternate;
}

.hero__content {
  animation: fadeInUp 0.8s ease-out;
}

.quick-action-tile:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
.quick-action-tile:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
.quick-action-tile:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
.quick-action-tile:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }

.step-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
.step-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
.step-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
.step-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #F5A623;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #F5A623;
  color: #0B1F3A;
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
  
  .hero__bg-image,
  .network__bg-image {
    animation: none;
  }
}

/* ============================================================
   SHIPPING DOCUMENT (Barcode + Logo)
   ============================================================ */
.shipping-document {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-width: 780px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: #0B1F3A;
  border-radius: 8px;
}

.doc-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.doc-header svg {
  flex-shrink: 0;
}

/* Selection styling */
::selection {
  background: rgba(245, 166, 35, 0.3);
  color: #0B1F3A;
}

/* ============================================================
   SHIPPING DOCUMENT — Toggle Button & Expanded Sections
   ============================================================ */
.btn--doc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #0B1F3A;
  border-radius: 6px;
  color: #0B1F3A;
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn--doc-toggle:hover {
  background: #0B1F3A;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.25);
}

.btn--doc-toggle i {
  font-size: 0.85rem;
}

.doc-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0B1F3A;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #F5A623;
  display: inline-block;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.doc-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: #0B1F3A;
  padding: 0.6rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.doc-table th:first-child {
  border-radius: 4px 0 0 0;
}

.doc-table th:last-child {
  border-radius: 0 4px 0 0;
}

.doc-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: #4A5568;
  vertical-align: top;
}

.doc-table tbody tr:hover {
  background: rgba(245, 166, 35, 0.04);
}

.doc-table tbody tr:last-child td {
  border-bottom: none;
}

/* Info table: label-value layout (no thead) */
.doc-table--info td {
  padding: 0.5rem 0.75rem;
}

.doc-table--info td:first-child {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: #0B1F3A;
  white-space: nowrap;
  width: 180px;
  background: rgba(11, 31, 58, 0.03);
  border-right: 2px solid #F5A623;
}

.doc-no-data {
  text-align: center;
  padding: 1.5rem;
  color: #a0aec0;
  font-style: italic;
  font-size: 0.9rem;
}

/* Status tag in doc tables */
.doc-status-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.doc-status-tag--success {
  background: #EAF3DE;
  color: #27500A;
}

.doc-status-tag--primary {
  background: #DBEAFE;
  color: #1E40AF;
}

.doc-status-tag--info {
  background: #E8EDF4;
  color: #2D3748;
}

.doc-status-tag--warning {
  background: #FEF3C7;
  color: #92400E;
}

/* ============================================================
   FLOATING CHAT WIDGET — Global support chat
   ============================================================ */
.chat-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* Bubble Button */
.chat-float__bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #F5A623;
  color: #0B1F3A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-float__bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.5);
}

.chat-float__bubble:focus-visible {
  outline: 3px solid #0B1F3A;
  outline-offset: 3px;
}

.chat-float__bubble.hidden {
  display: none;
}

/* Chat Panel */
.chat-float__panel {
  width: 360px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 8rem);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(11, 31, 58, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-float__panel.hidden {
  display: none;
}

/* Header */
.chat-float__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #0B1F3A;
  flex-shrink: 0;
}

.chat-float__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.chat-float__title i {
  color: #F5A623;
  font-size: 0.85rem;
}

.chat-float__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  transition: color 0.2s;
}

.chat-float__close:hover {
  color: #F5A623;
}

/* Start Chat Form */
.chat-float__start {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  flex-shrink: 0;
}

.chat-float__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.chat-float__label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: #0B1F3A;
}

.chat-float__required {
  color: #DC2626;
}

.chat-float__optional {
  color: #a0aec0;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.chat-float__input {
  padding: 0.65rem 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #0B1F3A;
  background: #F7F8FA;
  transition: border-color 0.2s;
  width: 100%;
}

.chat-float__input:focus {
  border-color: #F5A623;
  background: #fff;
  outline: none;
}

.chat-float__helper {
  font-size: 0.75rem;
  color: #a0aec0;
  line-height: 1.4;
}

.chat-float__start .btn--track {
  align-self: stretch;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  margin-top: 0.25rem;
}

/* Shared widget sub-styles (thread, messages, send area, error) */
.chat-widget__error {
  margin-top: 0;
  padding: 0.6rem 1rem;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  flex-shrink: 0;
}

.chat-widget__thread {
  max-height: 280px;
  min-height: 80px;
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem;
  background: #F7F8FA;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.chat-widget__thread::-webkit-scrollbar {
  width: 5px;
}

.chat-widget__thread::-webkit-scrollbar-track {
  background: transparent;
}

.chat-widget__thread::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.chat-widget__info {
  text-align: center;
  color: #a0aec0;
  font-size: 0.85rem;
  font-style: italic;
  padding: 1rem 0;
}

/* Message Bubbles */
.chat-widget__msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-widget__msg--customer {
  align-self: flex-end;
}

.chat-widget__msg--admin {
  align-self: flex-start;
}

.chat-widget__msg-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.chat-widget__msg--customer .chat-widget__msg-label {
  color: #F5A623;
  text-align: right;
}

.chat-widget__msg--admin .chat-widget__msg-label {
  color: #0B1F3A;
}

.chat-widget__msg-bubble {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.chat-widget__msg--customer .chat-widget__msg-bubble {
  background: #0B1F3A;
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat-widget__msg--admin .chat-widget__msg-bubble {
  background: #fff;
  color: #4A5568;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 3px;
}

.chat-widget__msg-time {
  font-size: 0.65rem;
  color: #a0aec0;
  margin-top: 0.1rem;
}

.chat-widget__msg--customer .chat-widget__msg-time {
  text-align: right;
}

/* Send Area */
.chat-widget__send {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}

.chat-widget__input--msg {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: #0B1F3A;
  background: #F7F8FA;
  transition: border-color 0.2s;
}

.chat-widget__input--msg:focus {
  border-color: #F5A623;
  background: #fff;
  outline: none;
}

.chat-widget__send .btn--track {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .chat-float {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-float__bubble {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .chat-float__panel {
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 6rem);
  }

  .chat-widget__msg {
    max-width: 90%;
  }

  .chat-widget__thread {
    max-height: 220px;
  }
}

/* ============================================================
   FLOATING WHATSAPP BUTTON — Mirrors chat widget, bottom-left
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #0B1F3A;
  outline-offset: 3px;
}

.whatsapp-float__icon {
  width: 30px;
  height: 30px;
  display: block;
}

/* Mobile adjustments — mirror chat widget breakpoints */
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 1rem;
    left: 1rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__icon {
    width: 26px;
    height: 26px;
  }
}
