/* ============================================================
   TOPMOVERS LOGISTICS — style.css
   Location: /assets/css/style.css
   Palette inspired by topmovers.co.nz
   Navy + Yellow-Orange + White + Light Grey
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES (Design Tokens) ─────────────── */
:root {
  /* Brand Colours — extracted directly from Topmovers logo */
  --clr-primary:       #f06414;   /* Logo orange — CTAs, accents, truck streaks */
  --clr-primary-dark:  #d4520a;   /* Darker orange — hover state */
  --clr-primary-light: #fde8d8;   /* Orange tint — card backgrounds */
  --clr-navy:          #14283c;   /* Logo deep navy — hero, footer, headings */
  --clr-navy-mid:      #1e3a52;   /* Mid navy — gradients, cards */
  --clr-navy-light:    #283c50;   /* Lighter navy — hover states */
  --clr-tan:           #c8b48c;   /* Logo beige/tan — decorative accents */
  --clr-tan-light:     #f0e8d8;   /* Tan tint — subtle backgrounds */
  --clr-white:         #ffffff;
  --clr-light:         #f5f7fa;   /* Off-white section bg */
  --clr-grey:          #6c757d;
  --clr-grey-light:    #dee2e6;
  --clr-text:          #14283c;   /* Body text — logo navy */
  --clr-text-muted:    #6c757d;

  /* Status colours */
  --clr-success:       #28a745;
  --clr-danger:        #dc3545;
  --clr-warning:       #ffc107;
  --clr-info:          #17a2b8;

  /* Tracking status colours */
  --clr-pending:       #6c757d;
  --clr-in-transit:    #f06414;
  --clr-delivered:     #28a745;
  --clr-cancelled:     #dc3545;
  --clr-online:        #28a745;
  --clr-offline:       #dc3545;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-py:   5rem;
  --card-radius:  12px;
  --btn-radius:   8px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(13, 31, 60, 0.08);
  --shadow-md:    0 4px 20px rgba(13, 31, 60, 0.12);
  --shadow-lg:    0 8px 40px rgba(13, 31, 60, 0.18);
  --shadow-card:  0 4px 24px rgba(13, 31, 60, 0.10);

  /* Transitions */
  --transition:   all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--clr-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--clr-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1.3;
}

/* ── 3. TOP BAR ───────────────────────────────────────────── */
.top-bar {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--clr-primary);
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--clr-primary); }
.top-bar .top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar .top-bar-left,
.top-bar .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.top-bar i { color: var(--clr-primary); margin-right: 0.35rem; }

/* ── 4. NAVBAR ────────────────────────────────────────────── */
.navbar {
  background: var(--clr-white) !important;
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}
.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-navy) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.15rem 0;
}
.navbar-brand img {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.navbar-brand:hover img { transform: rotate(-5deg) scale(1.05); }
.navbar-brand span { color: var(--clr-primary); }
.navbar-brand .brand-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--clr-tan);
  display: block;
  line-height: 1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-navy) !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--btn-radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-link:hover,
.nav-link.active { color: var(--clr-primary) !important; background: var(--clr-primary-light); }
.navbar .btn-quote {
  background: var(--clr-primary);
  color: var(--clr-white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(247,148,29,0.35);
}
.navbar .btn-quote:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,148,29,0.45);
}
.navbar-toggler {
  border: 2px solid var(--clr-primary) !important;
  border-radius: 8px !important;
  padding: 0.35rem 0.6rem !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f7941d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
}
.dropdown-item {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--clr-navy);
  transition: var(--transition-fast);
}
.dropdown-item:hover { background: var(--clr-primary-light); color: var(--clr-primary); }

/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--btn-radius);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary-tm {
  background: var(--clr-primary);
  color: var(--clr-white);
  border: 2px solid var(--clr-primary);
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(247,148,29,0.35);
}
.btn-primary-tm:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  color: var(--clr-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247,148,29,0.45);
}
.btn-outline-tm {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
}
.btn-outline-tm:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247,148,29,0.4);
}
.btn-navy {
  background: var(--clr-navy);
  color: var(--clr-white);
  border: 2px solid var(--clr-navy);
  padding: 0.75rem 2rem;
}
.btn-navy:hover {
  background: var(--clr-navy-mid);
  color: var(--clr-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--clr-white);
  border: 2px solid #25D366;
  padding: 0.75rem 2rem;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  color: var(--clr-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

/* ── 6. SECTION LAYOUT HELPERS ────────────────────────────── */
.section-py    { padding: var(--section-py) 0; }
.section-light { background: var(--clr-light); }
.section-navy  { background: var(--clr-navy); }
.section-primary { background: var(--clr-primary); }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clr-primary);
  display: inline-block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--clr-navy);
  margin-bottom: 1rem;
}
.section-title .highlight { color: var(--clr-primary); }
.section-subtitle {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
  margin: 1rem auto;
}
.divider-left { margin-left: 0; }

/* ── 7. CARDS ─────────────────────────────────────────────── */
.tm-card {
  background: var(--clr-white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(13,31,60,0.06);
  transition: var(--transition);
  overflow: hidden;
}
.tm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
}
.tm-card .card-icon {
  width: 64px; height: 64px;
  background: var(--clr-primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--clr-primary);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.tm-card:hover .card-icon {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* ── 8. BADGE / STATUS PILLS ──────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge.pending     { background: #f0f0f0;  color: var(--clr-pending);   }
.status-badge.in-transit  { background: #fff3e0;  color: var(--clr-in-transit); }
.status-badge.delivered   { background: #e8f5e9;  color: var(--clr-delivered); }
.status-badge.cancelled   { background: #fde8e8;  color: var(--clr-cancelled); }
.status-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.status-badge.in-transit .dot { animation: pulse-dot 1.5s infinite; }

/* ── 9. HERO SECTION ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 60%, #1c3850 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* Animated background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(247,148,29,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(247,148,29,0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(247,148,29,0.15);
  border: 1px solid rgba(247,148,29,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.8s ease both;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero h1 .accent { color: var(--clr-primary); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  animation: fadeInUp 0.9s ease 0.35s both;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.5s both;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.65s both;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}
.hero-trust-item i { color: var(--clr-primary); font-size: 1rem; }
/* Hero floating truck animation */
.hero-image-wrap {
  position: relative;
  z-index: 2;
  animation: fadeInRight 1s ease 0.3s both;
}
.hero-image-wrap .floating-card {
  position: absolute;
  background: var(--clr-white);
  border-radius: var(--card-radius);
  padding: 0.75rem 1.1rem;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: floatCard 4s ease-in-out infinite;
  z-index: 3;
}
.hero-image-wrap .floating-card.card-1 {
  top: 15%; left: -30px;
  color: var(--clr-success);
}
.hero-image-wrap .floating-card.card-2 {
  bottom: 20%; right: -20px;
  color: var(--clr-primary);
  animation-delay: 2s;
}

/* ── 10. TRACK PAGE SPECIFIC ──────────────────────────────── */

/* Track hero — shorter version of main hero */
.track-hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 60%, #1c3850 100%);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.track-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(247,148,29,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.track-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(247,148,29,0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}
.track-hero .hero-content { position: relative; z-index: 2; }
.track-hero h1 {
  color: var(--clr-white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.8s ease both;
}
.track-hero h1 span { color: var(--clr-primary); }
.track-hero p {
  color: rgba(255,255,255,0.80);
  font-size: 1rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
/* Animated truck icon in hero */
.track-hero .truck-icon-wrap {
  font-size: 3rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  animation: truckMove 3s ease-in-out infinite;
  display: inline-block;
}

/* Track form card */
.track-form-card {
  background: var(--clr-white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(247,148,29,0.15);
  animation: fadeInUp 0.9s ease 0.3s both;
}
.track-form-card .form-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--clr-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.track-form-card .form-control {
  border: 2px solid var(--clr-grey-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--clr-navy);
  transition: var(--transition);
  background: #fafbfc;
}
.track-form-card .form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(247,148,29,0.12);
  background: var(--clr-white);
  outline: none;
}
.track-form-card .form-control::placeholder { color: #adb5bd; font-weight: 400; }
.track-form-card .btn-track {
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(247,148,29,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.track-form-card .btn-track:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247,148,29,0.45);
}
.track-form-card .btn-track:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}
/* Input group with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 2.75rem; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-primary);
  font-size: 1rem;
  pointer-events: none;
}

/* ── Tracking result panel ──────────────────────────────── */
#trackResult { display: none; }
#trackResult.show { display: block; animation: fadeInUp 0.6s ease both; }

/* Status header bar */
.tracking-status-bar {
  background: var(--clr-navy);
  color: var(--clr-white);
  border-radius: 14px 14px 0 0;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.tracking-status-bar .tracking-number {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tracking-status-bar .tracking-num-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: 1px;
}

/* Map container */
.map-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  background: #e5e8ec;
  overflow: hidden;
}
.map-wrap #liveMap { width: 100%; height: 100%; }
@media (max-width: 576px) { .map-wrap { height: 300px; } }

/* Map overlay badges */
.map-overlay-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--clr-white);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 5;
}
.map-overlay-badge.online  { color: var(--clr-online); }
.map-overlay-badge.offline { color: var(--clr-offline); }

/* Shipment detail cards */
.shipment-details {
  background: var(--clr-white);
  border-radius: 0 0 14px 14px;
  border: 1px solid var(--clr-grey-light);
  border-top: none;
  padding: 1.5rem 1.75rem;
}
.detail-row {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--clr-grey-light);
  align-items: flex-start;
}
.detail-row:last-child { border-bottom: none; }
.detail-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.detail-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
}
.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-navy);
}

/* Truck live info card */
.truck-live-card {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  border-radius: 14px;
  padding: 1.5rem;
  color: var(--clr-white);
  margin-top: 1.25rem;
}
.truck-live-card .truck-stat {
  text-align: center;
  padding: 0.75rem;
}
.truck-live-card .truck-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
  display: block;
}
.truck-live-card .truck-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.truck-live-card .truck-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* Progress tracker (Uber-style steps) */
.journey-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  position: relative;
  overflow-x: auto;
}
.journey-steps::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 3px;
  background: var(--clr-grey-light);
  transform: translateY(-50%);
  z-index: 0;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 80px;
}
.journey-step .step-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid var(--clr-grey-light);
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--clr-grey);
  transition: var(--transition);
}
.journey-step.done .step-icon {
  background: var(--clr-success);
  border-color: var(--clr-success);
  color: var(--clr-white);
}
.journey-step.active .step-icon {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 0 0 6px rgba(247,148,29,0.2);
  animation: pulseStep 2s infinite;
}
.journey-step .step-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-grey);
  text-align: center;
  white-space: nowrap;
}
.journey-step.done .step-label,
.journey-step.active .step-label { color: var(--clr-navy); }

/* Progress line fill */
.journey-line {
  position: absolute;
  top: 50%; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-success), var(--clr-primary));
  transform: translateY(-50%);
  transition: width 0.8s ease;
  z-index: 0;
  border-radius: 2px;
}

/* Error / info message boxes */
.track-message {
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
}
.track-message.error   { background: #fde8e8; color: var(--clr-danger);  border-left: 4px solid var(--clr-danger);  }
.track-message.warning { background: #fff8e1; color: #856404;            border-left: 4px solid var(--clr-warning); }
.track-message.info    { background: #e8f4fd; color: #0c5460;            border-left: 4px solid var(--clr-info);    }
.track-message.success { background: #e8f5e9; color: #155724;            border-left: 4px solid var(--clr-success); }
.track-message i       { font-size: 1.25rem; margin-top: 1px; flex-shrink: 0; }

/* Polling indicator */
.poll-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
}
.poll-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-dot 1.5s infinite;
}

/* ── 11. HOW IT WORKS STEPS ───────────────────────────────── */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 15px rgba(247,148,29,0.4);
}
.step-connector {
  position: absolute;
  top: 2.25rem; right: -15%;
  width: 30%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-grey-light));
  border-radius: 2px;
}
@media (max-width: 767px) { .step-connector { display: none; } }

/* ── 12. STATS COUNTER ────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; padding: 1rem; position: relative; z-index: 1; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--clr-primary);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* ── 13. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--clr-primary); }
.footer p { font-size: 0.9rem; line-height: 1.8; }
.footer-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--clr-primary);
  border-radius: 2px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--clr-primary); padding-left: 4px; }
.footer-links a i { font-size: 0.7rem; color: var(--clr-primary); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}
.footer-contact-item i {
  color: var(--clr-primary);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { background: var(--clr-primary); color: var(--clr-white); border-color: var(--clr-primary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--clr-primary); }

/* ── 14. WHATSAPP FAB ─────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 999;
  transition: var(--transition);
  animation: fadeInUp 1s ease 1s both;
}
.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.55);
  color: var(--clr-white);
}
.whatsapp-fab .fab-tooltip {
  position: absolute;
  right: 68px;
  background: var(--clr-navy);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-fab:hover .fab-tooltip { opacity: 1; }

/* ── 15. SCROLL TO TOP ────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--clr-navy);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 998;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--clr-primary); transform: translateY(-3px); color: var(--clr-white); }

/* ── 16. LOADER / SPINNER ─────────────────────────────────── */
.tm-spinner {
  width: 42px; height: 42px;
  border: 4px solid var(--clr-primary-light);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
}
.loading-overlay p {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* ── 17. FORMS ────────────────────────────────────────────── */
.form-floating > .form-control { border-radius: 10px; border: 2px solid var(--clr-grey-light); }
.form-floating > .form-control:focus { border-color: var(--clr-primary); box-shadow: 0 0 0 4px rgba(247,148,29,0.12); }
.form-check-input:checked { background-color: var(--clr-primary); border-color: var(--clr-primary); }

/* ── 18. UTILITIES ────────────────────────────────────────── */
.text-primary-tm { color: var(--clr-primary) !important; }
.text-navy       { color: var(--clr-navy)    !important; }
.text-tan        { color: var(--clr-tan)     !important; }
.bg-primary-tm   { background: var(--clr-primary) !important; }
.bg-navy         { background: var(--clr-navy)    !important; }
.bg-tan          { background: var(--clr-tan)     !important; }
.fw-800          { font-weight: 800; }
.fw-900          { font-weight: 900; }
.rounded-tm      { border-radius: var(--card-radius); }
.shadow-tm       { box-shadow: var(--shadow-card); }

/* Logo-inspired tan accent line — used on section titles */
.divider-tan {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-tan));
  border-radius: 2px;
  margin: 1rem auto;
}
.divider-tan.divider-left { margin-left: 0; }

/* Speed streak decoration — mirrors the logo's motion lines */
.streak-decoration {
  display: inline-block;
  position: relative;
}
.streak-decoration::before {
  content: '';
  position: absolute;
  left: -24px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-primary));
  border-radius: 2px;
  box-shadow: 0 -5px 0 rgba(240,100,20,0.4), 0 5px 0 rgba(240,100,20,0.25);
}

/* ── 19. KEYFRAME ANIMATIONS ──────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes truckMove {
  0%, 100% { transform: translateX(0); }
  30%       { transform: translateX(12px); }
  60%       { transform: translateX(6px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
@keyframes pulseStep {
  0%, 100% { box-shadow: 0 0 0 6px rgba(247,148,29,0.2); }
  50%       { box-shadow: 0 0 0 12px rgba(247,148,29,0.08); }
}
@keyframes slideInMap {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── 20. RESPONSIVE OVERRIDES ─────────────────────────────── */
@media (max-width: 991px) {
  :root { --section-py: 3.5rem; }
  .top-bar { display: none; } /* Hide on mobile to save space */
  .navbar-collapse { background: var(--clr-white); padding: 1rem; border-radius: 0 0 16px 16px; box-shadow: var(--shadow-md); }
  .track-form-card { padding: 1.75rem 1.25rem; margin-top: -1rem; }
  .tracking-status-bar { padding: 1rem 1.25rem; }
  .shipment-details { padding: 1.25rem; }
}
@media (max-width: 575px) {
  :root { --section-py: 2.75rem; }
  .hero h1   { font-size: 1.9rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; justify-content: center; }
  .truck-live-card .truck-stat { padding: 0.5rem; }
  .truck-live-card .truck-stat-value { font-size: 1.2rem; }
  .journey-steps { gap: 0.25rem; }
  .journey-step .step-label { font-size: 0.65rem; }
  .whatsapp-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* Print */
@media print {
  .top-bar, .navbar, .whatsapp-fab, .scroll-top, .track-form-card { display: none !important; }
  body { color: #000; }
}

/* ── GALLERY ──────────────────────────────────────────────── */
.gallery-item > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item > div:hover .play-btn {
  transform: translate(-50%, -60%) scale(1.1);
}
.gallery-item > div:hover .gallery-overlay {
  opacity: 1 !important;
}

/* Force aspect ratio fallback for older browsers */
.gallery-item > div {
  position: relative;
  width: 100%;
  padding-top: 0;
}
@supports not (aspect-ratio: 16/10) {
  .gallery-item > div {
    padding-top: 62.5%; /* 16:10 fallback */
    height: 0 !important;
  }
  .gallery-item > div > * {
    position: absolute;
    inset: 0;
  }
}

/* Video modal backdrop */
#videoModal, #imageModal {
  animation: fadeIn 0.25s ease both;
}

/* Gallery filter button active state fix on mobile */
@media (max-width: 575px) {
  .gallery-filter-btn {
    font-size: .72rem !important;
    padding: .35rem .75rem !important;
  }
}
