/* ==========================================================================
   BS LOGISTICS — Design System
   Navy / Orange, glass + gradient, "route line" signature motif
   ========================================================================== */

:root {
  --navy-deep: #051B42;
  --navy: #082A5E;
  --navy-light: #12417E;
  --orange: #F97316;
  --orange-light: #FFA352;
  --white: #FFFFFF;
  --gray-900: #0F172A;
  --gray-600: #64748B;
  --gray-400: #94A3B8;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 60px -20px rgba(8, 42, 94, 0.25);
  --shadow-card: 0 8px 30px -8px rgba(8, 42, 94, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em 0;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}

p { margin: 0 0 1em 0; color: var(--gray-600); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #EA580C 100%);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(249, 115, 22, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(249, 115, 22, 0.65); }
.btn-outline {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-ghost-navy {
  background: transparent;
  border-color: var(--gray-200);
  color: var(--navy);
}
.btn-ghost-navy:hover { border-color: var(--navy); background: var(--gray-50); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--navy); background: var(--gray-100); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-primary { background: linear-gradient(135deg, var(--orange), #EA580C); color: #fff; box-shadow: none; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none; /* decorative only — positioned elements paint above static
    content regardless of DOM order, so without this, any interactive element sitting
    in a plain (non-positioned) .container inside .hero silently can't receive clicks */
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--orange-light); }
.hero p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Route line signature element */
.route-visual {
  position: relative;
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.route-visual svg { width: 100%; height: 100%; }
.route-path {
  fill: none;
  stroke: rgba(255,255,255,0.35);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.route-progress {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw 4s ease-in-out infinite alternate;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.route-node { fill: var(--white); }
.route-node-label { font-family: var(--font-mono); font-size: 11px; fill: rgba(255,255,255,0.75); }
.route-mover {
  animation: move-along 4s ease-in-out infinite alternate;
  offset-path: path('M40,170 C160,40 260,300 420,120');
}
@keyframes move-along { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }

.stat-strip {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 70px;
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.stat-strip .stat b {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--white);
  display: block;
}
.stat-strip .stat span { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.7); }
.section-navy h2 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.card .icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.94rem; margin-bottom: 0; }
.card a.card-link { color: var(--orange); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

.glass-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(10px);
}

/* ---------- Route divider ---------- */
.route-divider {
  display: flex; align-items: center; gap: 18px;
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 10px 0 40px;
}
.route-divider .line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gray-200) 0 6px, transparent 6px 12px);
  position: relative;
}
.route-divider .line::after {
  content: "✈";
  position: absolute; top: -9px; left: 40%;
  color: var(--orange);
  animation: fly 6s linear infinite;
}
@keyframes fly { 0% { left: -5%; } 100% { left: 100%; } }

/* ---------- Forms ---------- */
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.12);
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
textarea { resize: vertical; min-height: 120px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}

/* ---------- Pricing table ---------- */
.pricing-card {
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--gray-200);
  position: relative;
  background: var(--white);
}
.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow-soft);
  transform: scale(1.03);
}
.pricing-card .tag {
  position: absolute; top: -13px; right: 28px;
  background: var(--orange); color: white;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 100px;
  letter-spacing: 0.05em;
}
.pricing-card .price { font-family: var(--font-mono); font-size: 2.1rem; color: var(--navy); margin: 6px 0 2px; }
.pricing-card .price span { font-size: 0.9rem; color: var(--gray-600); font-family: var(--font-body); }
.pricing-card ul { list-style: none; padding: 0; margin: 22px 0; }
.pricing-card li { padding: 9px 0; border-top: 1px solid var(--gray-100); font-size: 0.9rem; display: flex; gap: 10px; }
.pricing-card li::before { content: "✓"; color: var(--orange); font-weight: 700; }

/* ---------- Quote calculator result ---------- */
.quote-result {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-md);
  padding: 26px;
  font-family: var(--font-mono);
}
.quote-result .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.9rem; border-bottom: 1px dashed rgba(255,255,255,0.15); }
.quote-result .row.total { font-size: 1.2rem; font-weight: 700; color: var(--orange-light); border-bottom: none; margin-top: 6px; }

/* ---------- Tracking ---------- */
.track-shell { border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-soft); overflow: hidden; }
.track-header { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: white; padding: 30px 34px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.track-id { font-family: var(--font-mono); font-size: 1.3rem; letter-spacing: 0.03em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(249,115,22,0.18); color: var(--orange-light); padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.timeline { padding: 34px; }
.timeline-item { display: grid; grid-template-columns: 26px 1fr; gap: 18px; padding-bottom: 30px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1.5px;
  background: var(--gray-200);
}
.timeline-item:last-child::before { display: none; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-100); border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; z-index: 1; }
.timeline-item.done .tl-dot { background: var(--orange); border-color: var(--orange); color: white; }
/* A stage the shipment moved past without a recorded event — distinct
   from both "done" (real event, orange) and a genuinely upcoming stage
   (plain number), so nothing here implies an event that never happened. */
.timeline-item.skipped .tl-dot { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-400); }
.timeline-item.skipped .tl-time { color: var(--gray-400); font-style: italic; }
.tl-time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray-400); }
.tl-title { font-weight: 600; color: var(--navy); margin: 2px 0; }

/* ---------- Tabs (services) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab-btn {
  padding: 11px 20px; border-radius: 100px; border: 1.5px solid var(--gray-200);
  background: white; font-weight: 600; font-size: 0.88rem; color: var(--gray-600);
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--gray-50); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein 0.4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

/* ---------- FAQ accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.accordion-q .plus { font-size: 1.3rem; color: var(--orange); transition: transform 0.3s; }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-item.open .accordion-a { max-height: 300px; }
.accordion-a p { padding-bottom: 20px; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.65); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
footer h4 { color: white; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
footer a { display: block; padding: 6px 0; font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
footer a:hover { color: var(--orange-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; padding: 0; }

/* ---------- Floating contact buttons ---------- */
.float-actions { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 90; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(8,42,94,0.4);
  font-size: 1.3rem; color: white; transition: transform 0.25s;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.whatsapp { background: #25D366; }
.float-btn.call { background: var(--navy); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { font-size: 0.78rem; font-weight: 600; padding: 7px 14px; border-radius: 100px; background: var(--gray-100); color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .route-visual { height: 240px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two, .form-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .pricing-card.featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
