﻿/* ============================================================
   Swiss Design System — Flexi Cargo
   Palette  : Navy #0A2540 | Accent #FF6B35 | BG #F8F9FA | Text #1A1A1A
   Spacing  : 8 px base grid
   Type     : Inter 400 / 500 / 700 / 800 / 900
   ============================================================ */

:root {
  /* Colour tokens */
  --navy      : #0A2540;
  --navy-80   : #1A3C5C;
  --orange    : #FF6B35;
  --orange-dk : #E0521C;
  --bg        : #F8F9FA;
  --white     : #FFFFFF;
  --text      : #1A1A1A;
  --text-md   : #3D4450;
  --text-lt   : #5A6070;
  --border    : #D8DCE6;
  --success   : #0D7A5F;
  --warning   : #B87200;
  --danger    : #C42B2B;
  --info      : #1A5EA8;

  /* 8 px grid spacing */
  --s1  : 8px;
  --s2  : 16px;
  --s3  : 24px;
  --s4  : 32px;
  --s5  : 40px;
  --s6  : 48px;
  --s8  : 64px;
  --s10 : 80px;
  --s12 : 96px;

  /* Shadows */
  --sh-sm : 0 1px 3px rgba(10,37,64,.08);
  --sh    : 0 2px 8px rgba(10,37,64,.10);
  --sh-lg : 0 8px 24px rgba(10,37,64,.14);
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem);  font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; font-weight: 700; }
p  { color: var(--text-md); }
.lead { font-size: 1.0625rem; font-weight: 400; color: var(--text-lt); }

/* Tabular numbers */
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--navy);
}

/* Swiss section label */
.sw-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--orange);
  margin-bottom: var(--s2);
}

/* Accent divider */
.sw-divider {
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin: var(--s1) 0 var(--s3);
}

/* ── Top Bar ─────────────────────────────── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
}
.top-bar .contact-info span { margin-right: var(--s3); }
.top-bar .contact-info i    { color: var(--orange); margin-right: 6px; }
.top-bar .social-links      { display: flex; gap: var(--s2); justify-content: flex-end; }
.top-bar .social-link       { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.top-bar .social-link:hover { color: var(--orange); }

/* ── Navigation ─────────────────────────── */
.navbar {
  padding: 0 !important;
  border-bottom: 2px solid var(--border);
  background: var(--white) !important;
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: var(--sh); }

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--navy) !important;
  text-decoration: none;
  padding: var(--s2) 0 !important;
  letter-spacing: -.03em;
}
.brand-text { color: var(--navy); -webkit-text-fill-color: var(--navy); }

.navbar-nav { gap: 0; }
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text-md) !important;
  padding: var(--s3) var(--s2) !important;
  position: relative;
  transition: color .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--navy) !important; }
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: var(--s2); right: var(--s2);
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--sh-lg);
  margin-top: 0 !important;
  padding: var(--s1) 0;
}
.dropdown-item {
  font-weight: 500;
  font-size: .9rem;
  padding: 10px var(--s3);
  color: var(--text-md);
}
.dropdown-item:hover { background: var(--bg); color: var(--navy); }

/* Search widget */
.search-widget-container {
  background: var(--bg);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary {
  background: var(--orange);
  color: var(--white) !important;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,53,.35);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-80);
  border-color: var(--navy-80);
  color: var(--white) !important;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy) !important;
  border-color: var(--white);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white) !important;
}
.btn-sm { padding: 7px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 40px; font-size: 1.0625rem; }

/* ── Hero ────────────────────────────────── */
.hero-section {
  background: var(--navy);
  color: var(--white);
  padding: var(--s12) 0;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: -4%;
  top: -10%;
  width: 46%;
  height: 135%;
  background: var(--orange);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .06;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange);
  margin-bottom: var(--s2);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: var(--s3);
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  font-weight: 400;
  margin-bottom: var(--s5);
  max-width: 500px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: var(--s2); flex-wrap: wrap; }
.hero-image img { border-radius: 2px; }

/* ── Sections ────────────────────────────── */
.section    { padding: var(--s12) 0; }
.section-sm { padding: var(--s8) 0; }
.section-bg { background: var(--bg); }
.section-header { margin-bottom: var(--s8); }
.section-header h2 { margin-bottom: var(--s1); }
.section-header p  { color: var(--text-lt); }

/* ── Cards ───────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  box-shadow: none;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--sh);
  border-color: #b0b8cc !important;
  transform: translateY(-2px);
}
.card-header {
  background: var(--navy) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: var(--s3) var(--s4);
  font-weight: 700;
}
.card-body { padding: var(--s4); }

/* Feature cards */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--s5) var(--s4);
  height: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--orange);
  box-shadow: var(--sh);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.375rem;
  margin-bottom: var(--s3);
}
.feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.feature-description { font-size: .9375rem; color: var(--text-lt); line-height: 1.6; }

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--s5) var(--s4);
  height: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.service-card:hover {
  border-color: var(--navy);
  box-shadow: var(--sh-lg);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.625rem;
  margin-bottom: var(--s3);
}
.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-description { color: var(--text-lt); margin-bottom: var(--s3); line-height: 1.6; }

/* ── Stats Section ───────────────────────── */
.stats-section {
  background: var(--navy);
  padding: var(--s10) 0;
}
.stat-item { text-align: center; padding: var(--s2); }
.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Tracking form ───────────────────────── */
.tracking-section { padding: var(--s10) 0; background: var(--bg); }
.tracking-form {
  background: var(--white);
  padding: var(--s6);
  border: 1px solid var(--border);
}
.form-group   { margin-bottom: var(--s3); }
.form-label   { font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; font-size: .9375rem; }
.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,37,64,.1);
}
.form-control::placeholder { color: #9AA3B0; }
select.form-control { appearance: auto; }

/* ── Timeline ────────────────────────────── */
.timeline         { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item             { position: relative; margin-bottom: var(--s4); }
.timeline-item:last-child  { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -26px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--border);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
}
.timeline-item.active   .timeline-dot { background: var(--orange);  box-shadow: 0 0 0 2px var(--orange); }
.timeline-item.delivered .timeline-dot { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-time     { font-size: .8125rem; font-weight: 600; color: var(--text-lt); margin-bottom: 2px; }
.timeline-title    { font-size: 1rem; font-weight: 700; color: var(--navy); }
.timeline-desc     { font-size: .9rem; color: var(--text-lt); margin-top: 4px; }
.timeline-location { font-size: .8125rem; color: var(--text-lt); margin-top: 2px; }
.timeline-location i { color: var(--orange); margin-right: 4px; }

/* ── Status Badges ───────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: 0;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-pending             { background: #FEF3C7; color: var(--warning); }
.status-in_transit,
.status-in-transit          { background: #DBEAFE; color: var(--info); }
.status-out_for_delivery    { background: #EDE9FE; color: #5B21B6; }
.status-delivered           { background: #D1FAE5; color: var(--success); }
.status-exception,
.status-delayed             { background: #FEE2E2; color: var(--danger); }
.status-returned            { background: #F3F4F6; color: var(--text-lt); }

/* ── CTA Banner ──────────────────────────── */
.cta-section {
  background: var(--orange);
  padding: var(--s10) 0;
  color: var(--white);
}
.cta-section h2 { color: var(--white); letter-spacing: -.02em; }
.cta-section p  { color: rgba(255,255,255,.85); }

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: var(--s10) 0 var(--s4);
}
.footer-section { margin-bottom: var(--s5); }
.footer-title {
  font-size: .875rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--s3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-links           { list-style: none; padding: 0; }
.footer-links li        { margin-bottom: 10px; }
.footer-links a         { color: rgba(255,255,255,.55); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.footer-links a:hover   { color: var(--orange); }
.footer .contact-info p { color: rgba(255,255,255,.55); font-size: .9rem; margin-bottom: 8px; }
.footer .contact-info i { color: var(--orange); }
.footer .social-links   { display: flex; gap: var(--s1); margin-bottom: var(--s3); }
.footer .social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .875rem;
  transition: all .2s;
}
.footer .social-link:hover { border-color: var(--orange); color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--s3);
  margin-top: var(--s8);
  font-size: .875rem;
  color: rgba(255,255,255,.38);
}
.footer-bottom a       { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--orange); }

/* ── Animations ──────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease-out both; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(0,0,0,.1);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Utility ─────────────────────────────── */
.text-navy   { color: var(--navy)   !important; }
.text-orange { color: var(--orange) !important; }
.text-muted  { color: var(--text-lt) !important; }
.bg-navy     { background: var(--navy)   !important; }
.bg-orange   { background: var(--orange) !important; }
.loading     { opacity: .6; pointer-events: none; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 991px) {
  .hero-section { padding: var(--s10) 0; }
  .navbar-nav .nav-link { padding: var(--s2) 0 !important; }
  .navbar-nav .nav-link::after { display: none; }
  .section    { padding: var(--s8) 0; }
  .section-sm { padding: var(--s6) 0; }
}
@media (max-width: 767px) {
  .hero-title    { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons  { flex-direction: column; align-items: flex-start; }
  .top-bar .col-md-6:first-child { text-align: center; margin-bottom: 6px; }
  .top-bar .social-links { justify-content: center; }
  .card-body { padding: var(--s3); }
  .tracking-form { padding: var(--s3); }
  .stats-section { padding: var(--s8) 0; }
}