/* ============================================================
   Tracking Platform — public site + shared components
   Palette: "Obsidian & Champagne" (premium)
   Variable names kept from the original theme so no template
   changes are needed — only the values changed.
   ============================================================ */
:root {
  --brand-navy: #0E0E10;    /* obsidian — primary dark */
  --brand-steel: #2A2A31;   /* graphite — secondary dark */
  --brand-orange: #C8A96A;  /* champagne gold — accent */
  --brand-bronze: #8A6A2F;  /* deep gold — accent text on light backgrounds */
  --brand-cloud: #F4F1EA;   /* warm ivory — page background */
  --brand-ink: #1C1C21;     /* body text */
  --brand-muted: #6E7076;   /* secondary text */
  --brand-line: #E6E0D4;    /* borders */

  --brand-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --bs-primary: var(--brand-navy);
  --bs-primary-rgb: 14, 14, 16;
  --bs-body-bg: var(--brand-cloud);
  --bs-body-color: var(--brand-ink);
  --bs-secondary-color: var(--brand-muted);
  --bs-border-color: var(--brand-line);
  --bs-link-color: var(--brand-bronze);
  --bs-link-color-rgb: 138, 106, 47;
  --bs-link-hover-color: var(--brand-navy);
  --bs-font-sans-serif: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

body { font-family: var(--bs-font-sans-serif); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--brand-navy); font-weight: 700; letter-spacing: -.01em; }
h1, h2 { font-family: var(--brand-serif); font-weight: 600; letter-spacing: 0; }

.btn-primary {
  --bs-btn-bg: var(--brand-navy); --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-bg: #2A2A31; --bs-btn-hover-border-color: #2A2A31;
  --bs-btn-active-bg: #34343C; --bs-btn-active-border-color: #34343C;
  --bs-btn-disabled-bg: var(--brand-navy); --bs-btn-disabled-border-color: var(--brand-navy);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand-navy); --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-bg: var(--brand-navy); --bs-btn-hover-border-color: var(--brand-navy);
  --bs-btn-active-bg: var(--brand-navy);
}
.btn-track, .btn-accent {
  background: var(--brand-orange); color: var(--brand-navy); font-weight: 700; border: none; letter-spacing: .02em;
}
.btn-track:hover, .btn-accent:hover, .btn-track:focus, .btn-accent:focus { background: #B8975A; color: var(--brand-navy); }
.text-accent { color: var(--brand-orange) !important; }
.bg-navy { background: var(--brand-navy) !important; color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--brand-bronze); box-shadow: 0 0 0 .2rem rgba(200, 169, 106, .25); }

/* ---------- Status badges ---------- */
.status-badge { font-weight: 600; padding: .45em .7em; border-radius: 999px; font-size: .78rem; }
.status-received  { background: #6E7076; color: #fff; }
.status-picked    { background: #3E6A94; color: #fff; }
.status-transit   { background: #9A6B1F; color: #fff; }
.status-out       { background: #5B4A7A; color: #fff; }
.status-delivered { background: #2F7D4A; color: #fff; }
.status-problem   { background: #A8443A; color: #fff; }
.status-cancelled { background: #3A3A42; color: #fff; }

/* ---------- Public header / footer ---------- */
.site-topbar { background: var(--brand-navy); color: rgba(255,255,255,.75); font-size: .82rem; }
.site-topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-topbar a:hover { color: var(--brand-orange); }
.site-nav { background: #fff; border-bottom: 1px solid var(--brand-line); }
.site-nav .navbar-brand { font-weight: 800; color: var(--brand-navy); display: flex; align-items: center; gap: .55rem; }
.site-nav .navbar-brand img { max-height: 42px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-navy); color: var(--brand-orange); display: grid; place-items: center; font-size: 1.2rem; }
.site-nav .nav-link { color: var(--brand-ink); font-weight: 500; padding: .5rem .9rem !important; }
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--brand-bronze); }
.lang-switch .dropdown-toggle { font-size: .82rem; }

.site-footer { background: var(--brand-navy); color: rgba(255,255,255,.72); padding: 56px 0 24px; font-size: .92rem; border-top: 1px solid rgba(200,169,106,.25); }
.site-footer h5 { color: var(--brand-orange); font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--brand-orange); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .82rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 96px 0 120px; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200,169,106,.18), transparent 60%),
    linear-gradient(100deg, rgba(14,14,16,.94) 0%, rgba(14,14,16,.80) 45%, rgba(14,14,16,.45) 100%),
    url("../img/hero/hero.webp") center / cover no-repeat,
    var(--brand-navy);
}
.hero::after { /* subtle world-route lines */
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #C8A96A 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 560px; }
.hero .eyebrow { display: inline-flex; gap: .5rem; align-items: center; background: rgba(200,169,106,.10); border: 1px solid rgba(200,169,106,.35); color: var(--brand-orange); padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; }
.track-box { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .40); color: var(--brand-ink); position: relative; z-index: 2; }
.track-box .form-control { height: 56px; font-size: 1.05rem; letter-spacing: .04em; }
.track-box .btn-track { height: 56px; padding: 0 28px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--brand-orange); }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.7); }

.section { padding: 80px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title .kicker { color: var(--brand-bronze); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.feature-card { background: #fff; border: 1px solid var(--brand-line); border-radius: 14px; padding: 28px; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,14,16,.08); border-color: rgba(200,169,106,.55); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(200,169,106,.14); color: var(--brand-bronze); margin-bottom: 16px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-orange); color: var(--brand-navy); font-weight: 800; display: grid; place-items: center; margin: 0 auto 14px; }
.cta-band { background: linear-gradient(120deg, rgba(14,14,16,.92), rgba(42,42,49,.70)), url("../img/bg/cta.webp") center / cover no-repeat, var(--brand-navy); color: #fff; border-radius: 18px; padding: 44px; border: 1px solid rgba(200,169,106,.25); }
.cta-band h2 { color: #fff; }
.page-head { background: linear-gradient(100deg, rgba(14,14,16,.95), rgba(14,14,16,.75)), url("../img/hero/hero.webp") center / cover no-repeat, var(--brand-navy); color: #fff; padding: 56px 0 48px; }

/* Service card photos */
.feature-img { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 14px 14px 0 0; }
.feature-card.has-img { padding: 0; overflow: hidden; }
.feature-card.has-img .feature-body { padding: 24px 28px 28px; }
.feature-card.has-img .feature-img { transition: transform .5s ease; }
.feature-card.has-img:hover .feature-img { transform: scale(1.04); }

/* About page photo */
.about-img { width: 100%; height: 340px; object-fit: cover; display: block; border-radius: 16px; box-shadow: 0 14px 34px rgba(14,14,16,.12); }
@media (max-width: 768px) { .about-img { height: 240px; } }

/* Tabs / pills (contact page: Send a message / Request a quote) */
.nav-pills {
  --bs-nav-pills-link-active-bg: var(--brand-navy);
  --bs-nav-pills-link-active-color: var(--brand-orange);
  --bs-nav-link-color: var(--brand-bronze);
  --bs-nav-link-hover-color: var(--brand-navy);
}
.nav-pills .nav-link { font-weight: 600; border-radius: 10px; }

/* Language dropdown readability fix */
.dropdown-menu { background: #fff; border-color: var(--brand-line); }
.dropdown-item { color: var(--brand-ink); }
.dropdown-item:hover { background: var(--brand-cloud); color: var(--brand-navy); }
.dropdown-item.active, .dropdown-item:active { background: var(--brand-navy); color: var(--brand-orange); }
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Tracking result ---------- */
.track-head { background: var(--brand-navy); color: #fff; padding: 34px 0 90px; }
.track-head h1 { color: #fff; font-size: 1.5rem; }
.track-search .form-control { height: 48px; }
.track-search .btn { height: 48px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.track-form .btn-track { white-space: nowrap; }
.track-wrap { margin-top: -64px; }
.card-soft { background: #fff; border: 1px solid var(--brand-line); border-radius: 16px; box-shadow: 0 6px 24px rgba(14,14,16,.06); }
.trk-no { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; font-weight: 700; color: var(--brand-navy); font-size: 1.35rem; }
.route-line { display: flex; align-items: center; gap: 14px; }
.route-point small { color: var(--brand-muted); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.route-point strong { color: var(--brand-navy); }
.route-arrow { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-line) 0 8px, transparent 8px 14px); position: relative; min-width: 40px; }
.route-arrow i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; padding: 0 6px; color: var(--brand-bronze); font-size: 1.1rem; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.meta-grid div small { color: var(--brand-muted); display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.meta-grid div strong { color: var(--brand-ink); font-weight: 600; }

.hold-banner { background: #F7ECEA; border: 1px solid #E8C9C4; border-left: 5px solid #A8443A; color: #5E2019; border-radius: 12px; padding: 16px 18px; }
.hold-banner .bi { color: #A8443A; }
.notice-banner { background: #FAF8F3; border: 1px solid var(--brand-line); border-left: 5px solid #3A3A42; border-radius: 12px; padding: 16px 18px; }
.security-note { font-size: .85rem; color: var(--brand-muted); background: #fff; border: 1px dashed #D9D0BE; border-radius: 12px; padding: 12px 16px; }
.security-note .bi { color: var(--brand-bronze); }

/* Progress bar */
.progress-steps { display: flex; justify-content: space-between; position: relative; margin: 8px 0 4px; }
.progress-steps::before, .progress-steps .bar {
  content: ""; position: absolute; top: 22px; left: calc(100% / 14); right: calc(100% / 14); height: 4px; border-radius: 4px; background: var(--brand-line);
}
.progress-steps .bar { right: auto; background: linear-gradient(90deg, var(--brand-steel), var(--brand-orange)); transition: width 1.2s ease; width: 0; }
.progress-steps.is-hold .bar { background: linear-gradient(90deg, var(--brand-steel), #A8443A); }
.p-step { position: relative; z-index: 1; text-align: center; flex: 1; min-width: 0; }
.p-dot { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; font-size: 1.15rem; background: #fff; border: 3px solid var(--brand-line); color: #A9A49A; transition: all .4s; }
.p-step.done .p-dot { background: var(--brand-steel); border-color: var(--brand-steel); color: var(--brand-orange); }
.p-step.current .p-dot { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-navy); box-shadow: 0 0 0 6px rgba(200,169,106,.25); animation: pulseDot 2s infinite; }
.p-step.hold .p-dot { background: #A8443A; border-color: #A8443A; color: #fff; box-shadow: 0 0 0 6px rgba(168,68,58,.2); animation: pulseHold 1.6s infinite; }
.p-step.finished .p-dot { background: #2F7D4A; border-color: #2F7D4A; color: #fff; }
.p-label { font-size: .78rem; font-weight: 600; color: var(--brand-muted); line-height: 1.2; padding: 0 2px; }
.p-step.done .p-label, .p-step.current .p-label, .p-step.finished .p-label { color: var(--brand-navy); }
.p-step.hold .p-label { color: #A8443A; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 6px rgba(200,169,106,.25); } 50% { box-shadow: 0 0 0 11px rgba(200,169,106,.08); } }
@keyframes pulseHold { 0%,100% { box-shadow: 0 0 0 6px rgba(168,68,58,.2); } 50% { box-shadow: 0 0 0 12px rgba(168,68,58,.05); } }
@media (max-width: 576px) {
  .p-dot { width: 34px; height: 34px; font-size: .9rem; border-width: 2px; }
  .progress-steps::before, .progress-steps .bar { top: 16px; }
  .p-label { font-size: .62rem; visibility: hidden; }
  .p-step.current .p-label, .p-step.hold .p-label, .p-step.finished:last-child .p-label { visibility: visible; white-space: nowrap; }
  .p-step:first-child .p-label { visibility: visible; }
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--brand-line); }
.timeline li { position: relative; padding: 0 0 22px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-icon { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--brand-line); }
.timeline li:first-child .tl-icon { box-shadow: 0 0 0 4px rgba(200,169,106,.35); }
.tl-title { font-weight: 700; color: var(--brand-navy); }
.tl-meta { font-size: .84rem; color: var(--brand-muted); }
.tl-note { font-size: .9rem; margin-top: 4px; }

/* ---------- Map ---------- */
.map-card { position: relative; overflow: hidden; }
.track-map { height: 460px; border-radius: 16px; z-index: 1; background: #E9E4DA; }
@media (max-width: 768px) { .track-map { height: 340px; } }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: rgba(255,255,255,.95); border-radius: 10px; padding: 8px 12px; font-size: .78rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.map-legend .ln { width: 22px; height: 0; border-top: 3px solid var(--brand-navy); display: inline-block; }
.map-legend .ln.dash { border-top: 3px dashed #A9A49A; }
.map-status-chip { position: absolute; right: 12px; top: 12px; z-index: 500; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* Place pins */
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.25); border: 3px solid #fff; }
.pin i { transform: rotate(45deg); font-size: .95rem; color: #fff; }
.pin-origin { background: var(--brand-navy); }
.pin-origin i { color: var(--brand-orange); }
.pin-dest { background: var(--brand-orange); }
.pin-dest i { color: var(--brand-navy); }
.port-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-navy); display: grid; place-items: center; color: var(--brand-navy); font-size: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.scan-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-navy); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-navy); }

/* Moving vehicle */
.vehicle { position: relative; width: 64px; height: 64px; }
.vehicle .veh-body { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s ease; }
.vehicle svg { width: 58px; height: 58px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); overflow: visible; }
.vehicle .veh-tag {
  position: absolute; top: 62px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--brand-navy); color: var(--brand-orange); font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.vehicle.is-late .veh-tag { background: #9A6B1F; color: #fff; }
.vehicle.is-hold .veh-tag { background: #A8443A; color: #fff; }
.vehicle::before { /* soft halo */
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(200,169,106,.40), transparent 70%);
  animation: halo 2.4s ease-in-out infinite;
}
.vehicle.is-hold::before { background: none; border: 3px solid #A8443A; inset: -2px; animation: holdRing 1.4s ease-out infinite; }
@keyframes halo { 0%,100% { transform: scale(.85); opacity: .9; } 50% { transform: scale(1.15); opacity: .4; } }
@keyframes holdRing { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ship: bob + wake */
.veh-ship .bob { animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 70%; }
.veh-ship .wake path { animation: wake 1.8s linear infinite; }
.veh-ship .wake path:nth-child(2) { animation-delay: .6s; }
.veh-ship .wake path:nth-child(3) { animation-delay: 1.2s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-2.5px) rotate(1.5deg); } }
@keyframes wake { 0% { opacity: .9; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-10px); } }
/* plane: float + shadow drift */
.veh-plane .float { animation: float 3s ease-in-out infinite; }
.veh-plane .shadow { animation: shadow 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-3px); } }
@keyframes shadow { 0%,100% { transform: translate(6px,8px) scale(.9); opacity: .25; } 50% { transform: translate(8px,11px) scale(.85); opacity: .15; } }
/* truck: wheels + rumble */
.veh-truck .wheel { animation: spin .7s linear infinite; transform-box: fill-box; transform-origin: center; }
.veh-truck .rumble { animation: rumble .35s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rumble { from { transform: translateY(0); } to { transform: translateY(-.8px); } }
.vehicle.is-hold .wheel, .vehicle.is-hold .bob, .vehicle.is-hold .float, .vehicle.is-hold .rumble, .vehicle.is-hold .wake path,
.vehicle.is-waiting .wheel, .vehicle.is-waiting .rumble, .vehicle.is-waiting .wake path { animation-play-state: paused; }
.veh-done { width: 54px; height: 54px; border-radius: 50%; background: #2F7D4A; color: #fff; display: grid; place-items: center; font-size: 1.6rem; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(47,125,74,.25), 0 6px 14px rgba(0,0,0,.25); }

.leaflet-tooltip.trk-tip { font-size: .78rem; border-radius: 8px; }
.leaflet-container { font-family: var(--bs-font-sans-serif); }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 48px 16px; color: var(--brand-muted); }
.empty-state .bi { font-size: 2.6rem; color: #D9D0BE; }
.turnstile-wrap { min-height: 0; }
::selection { background: rgba(200,169,106,.35); color: var(--brand-navy); }
/* Force-theme any active Bootstrap pill/tab on the public site */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.section .nav-link.active {
  background-color: var(--brand-navy) !important;
  color: var(--brand-orange) !important;
}
.section .nav-link:not(.active) { color: var(--brand-bronze); }