/* ==========================================================================
   site.css - PUBLIC pages (landing page + tracking page). Loaded after style.css.
   Animations are triggered by public/assets/js/site.js (adds .is-visible, .is-scrolled ...)
   and are switched off for visitors who prefer reduced motion.
   ========================================================================== */

/* ---------- header (sticky, shrinks on scroll) ----------
   Phones and tablets (< 960px): logo + a round menu button. The menu is a panel that drops
   down under the bar (site.js adds .nav-open, locks the page scroll, closes it on a link,
   Escape or a tap outside). Without JavaScript the hidden checkbox does the same with CSS.
   Computers (>= 960px): the links sit in the bar with an underline on hover.
   --nav-bg / --nav-fg = the panel colours. Each header style sets them (theme-options.css),
   so the open panel always matches its bar: light, dark, brand colour or over the hero photo. */
.site-notice { background: var(--accent); color: #1b1300; text-align: center; padding: .5rem 16px; font-weight: 600; position: relative; z-index: 1001; }
.topbar { --nav-bg: var(--surface); --nav-fg: var(--text);
  position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(15, 27, 45, .06); transition: background .3s, box-shadow .3s; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; transition: min-height .3s; }
.topbar.is-scrolled .topbar-inner { min-height: 62px; }
.topbar.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 27, 45, .35); }
/* Over the hero: transparent with white text until the page scrolls (or the menu opens) */
.topbar-over { --nav-bg: #0b1726; --nav-fg: #fff; position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.topbar-over .logo, .topbar-over .mainnav a:not(.btn) { color: #fff; }
.topbar-over .nav-burger span { background: #fff; }
.topbar-over.is-scrolled { background: rgba(11, 23, 38, .88); backdrop-filter: saturate(160%) blur(12px); }
.topbar-over:is(.nav-open, :has(.nav-toggle:checked)) { background: var(--nav-bg); backdrop-filter: none; }

/* Logo: mark + name, the name shortens with "..." instead of pushing the menu button off screen */
.topbar .logo { min-width: 0; flex: 0 1 auto; gap: .65rem; line-height: 1.15; }
.topbar .logo img { flex: none; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; transition: transform .25s ease; }
.topbar .logo:hover img { transform: rotate(-6deg) scale(1.04); }
.topbar .logo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar.is-scrolled .logo img { width: 36px; height: 36px; }

/* Links (shared) */
.mainnav-links { list-style: none; margin: 0; padding: 0; }
.mainnav a { text-decoration: none; color: var(--text); font-weight: 600; position: relative; }
.mainnav-links a { display: flex; align-items: center; gap: .85rem; padding: .45rem 0; }
.mainnav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 2px; background: var(--accent); transition: right .25s ease; }
.mainnav a:not(.btn):hover::after, .mainnav a:not(.btn):focus-visible::after { right: 0; }
.mainnav a.btn { color: #1b1300; padding: .5em 1.1em; }
.mainnav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-ico { display: none; }
.topbar a:focus-visible, .nav-burger:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, transparent); outline-offset: 3px; border-radius: 8px; }

/* Menu button: three bars that turn into an X. The <button> is used with JavaScript, the <label> without. */
.nav-burger { display: none; position: relative; flex: none; width: 46px; height: 46px; padding: 0; border-radius: 14px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: transparent;
  border: 1px solid color-mix(in srgb, var(--nav-fg) 16%, transparent); color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; transition: background .2s, border-color .2s; }
.nav-burger:hover { background: color-mix(in srgb, var(--nav-fg) 7%, transparent); }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.topbar.nav-open .nav-burger span:nth-child(1), .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.nav-open .nav-burger span:nth-child(2), .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.topbar.nav-open .nav-burger span:nth-child(3), .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Unread messages: a small dot on the menu button, so it's visible while the menu is closed */
.topbar:has(.bell-count) .nav-burger::after { content: ''; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--nav-bg); }
.topbar:is(.nav-open, :has(.nav-toggle:checked)) .nav-burger::after { display: none; } /* Messages is visible in the open menu */
/* While the menu is open the bar is solid (no see-through blur over the dimmed page). */
.topbar:is(.nav-open, :has(.nav-toggle:checked)) { background: var(--nav-bg); backdrop-filter: none; box-shadow: none; }
.nav-backdrop { display: none; }

/* ---------- phones + tablets: the drop-down panel ---------- */
@media (max-width: 959.98px) {
  .topbar-inner { min-height: 68px; }
  .topbar.is-scrolled .topbar-inner { min-height: 60px; }
  .topbar .logo img, .topbar.is-scrolled .logo img { width: 36px; height: 36px; }
  .topbar .logo { font-size: 1.05rem; }
  .nav-burger-css { display: flex; }
  .js .nav-burger-css { display: none; }
  .js .nav-burger-js { display: flex; }

  .mainnav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: .9rem;
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
    padding: .6rem clamp(16px, 4vw, 32px) 1.2rem; background: var(--nav-bg); color: var(--nav-fg);
    border-top: 1px solid color-mix(in srgb, var(--nav-fg) 10%, transparent);
    border-radius: 0 0 20px 20px; box-shadow: 0 28px 50px -24px rgba(8, 15, 28, .55);
    visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; }
  .topbar.nav-open .mainnav, .nav-toggle:checked ~ .mainnav { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }

  .mainnav-links { display: grid; gap: .15rem; }
  .mainnav-links li { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
  .topbar.nav-open .mainnav-links li, .nav-toggle:checked ~ .mainnav .mainnav-links li { opacity: 1; transform: none; }
  .topbar.nav-open .mainnav-links li:nth-child(2) { transition-delay: .04s; }
  .topbar.nav-open .mainnav-links li:nth-child(3) { transition-delay: .08s; }
  .topbar.nav-open .mainnav-links li:nth-child(4) { transition-delay: .12s; }
  .topbar .mainnav .mainnav-links a { min-height: 54px; padding: .5rem .65rem; border-radius: 14px; font-size: 1.02rem; color: var(--nav-fg); transition: background .2s; }
  .topbar .mainnav .mainnav-links a:hover, .topbar .mainnav .mainnav-links a:focus-visible { background: color-mix(in srgb, var(--nav-fg) 7%, transparent); }
  .nav-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px;
    background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
  .nav-ico .icon { width: 19px; height: 19px; }
  .nav-label { flex: 1; min-width: 0; }
  /* the hover underline becomes a small arrow on the right */
  .topbar .mainnav .mainnav-links a:not(.btn)::after { content: ''; position: static; display: block; flex: none; width: 8px; height: 8px; margin-right: .3rem;
    background: none; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); opacity: .35; transition: none; }

  .mainnav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: .9rem; border-top: 1px solid color-mix(in srgb, var(--nav-fg) 10%, transparent); }
  .mainnav-actions:not(:has(.bell)) { grid-template-columns: 1fr; }
  .topbar .mainnav-actions .btn, .topbar .mainnav-actions .bell { min-height: 50px; justify-content: center; font-size: 1rem; }
  .topbar .mainnav-actions .bell { color: var(--nav-fg); background: transparent; border-color: color-mix(in srgb, var(--nav-fg) 22%, transparent); }

  .nav-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(8, 15, 28, .5); backdrop-filter: blur(2px); cursor: pointer; }
  body.nav-locked .nav-backdrop, body:has(.nav-toggle:checked) .nav-backdrop { display: block; animation: fade .25s ease both; }
  body.nav-locked, body:has(.nav-toggle:checked) { overflow: hidden; }
}
@media (max-width: 380px) {
  .topbar .logo { font-size: .98rem; gap: .5rem; }
  .mainnav-actions { grid-template-columns: 1fr; }
}

/* ---------- computers: links in the bar ---------- */
@media (min-width: 960px) {
  .mainnav { display: flex; align-items: center; gap: 2rem; }
  .mainnav-links { display: flex; align-items: center; gap: 1.8rem; }
  .topbar .logo { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mainnav, .mainnav-links li, .nav-burger span, .topbar .logo img { transition: none !important; }
  .nav-backdrop { animation: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; padding: 130px 0 120px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transform: scale(1.04); animation: kenburns 28s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 14, 26, .92) 0%, rgba(8, 22, 40, .72) 45%, rgba(8, 22, 40, .25) 100%), linear-gradient(0deg, rgba(6, 14, 26, .7), transparent 40%); }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
.hero-inner { max-width: 1200px; }
.hero h1 { max-width: 19ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero .accent { color: var(--accent); display: inline; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34rem; color: rgba(255, 255, 255, .85); margin: 0 0 2rem; }
.hint { font-size: .82rem; color: rgba(255, 255, 255, .7); margin: .7rem 0 0; }

/* Frosted-glass tracking box */
.track-glass { max-width: 620px; padding: 1.2rem; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.track-glass > label { color: #fff; font-size: .9rem; display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; }
.track-glass-row { display: flex; gap: .5rem; background: #fff; padding: .4rem; border-radius: 14px; }
.track-glass-row input { border: 0; font-size: 1.05rem; padding: .7em .8em; min-width: 0; }
.track-glass-row input:focus { box-shadow: none; }
.track-glass-row .btn { flex: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- stats band ---------- */
.stats-band { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15, 27, 45, .45); padding: 0; max-width: 1160px; }
.stat { background: #fff; padding: 1.4rem 1rem; text-align: center; }
.stat strong { display: block; font-family: var(--heading-font); font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--primary); line-height: 1.1; }
.stat > span { color: var(--muted); font-size: .9rem; }
.stat strong span { color: inherit; font-size: inherit; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: #fff; }
.section-dark { background: radial-gradient(900px 500px at 85% 20%, rgba(19, 64, 116, .55), transparent), #0b1726; color: #dbe5f1; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Services: photo cards with hover zoom + lift */
.services-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.service-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 30px -22px rgba(15, 27, 45, .4); transition: transform .35s ease, box-shadow .35s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(15, 27, 45, .55); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: #dfe7f1; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { position: relative; padding: 1.8rem 1.4rem 1.5rem; }
.service-icon { position: absolute; top: -26px; left: 1.4rem; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 10px 20px -8px rgba(19, 64, 116, .7); }
.service-icon .icon { width: 26px; height: 26px; }
.service-body p { color: var(--muted); margin: 0; }

/* How it works: 4 steps with a connecting line that draws in */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: 1fr; position: relative; }
.step { text-align: center; position: relative; }
.step-icon { position: relative; width: 84px; height: 84px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e8f0fa, #fff); border: 1px solid var(--border); color: var(--primary); box-shadow: 0 14px 30px -18px rgba(19, 64, 116, .6); transition: transform .3s; }
.step:hover .step-icon { transform: translateY(-4px) rotate(-4deg); }
.step-icon .icon { width: 34px; height: 34px; }
.step-num { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #1b1300; font-weight: 800; font-size: .85rem; display: grid; place-items: center; border: 3px solid #fff; }
.step p { color: var(--muted); max-width: 26ch; margin: 0 auto; }

/* Coverage map with animated routes */
.coverage { display: grid; gap: 2.5rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .6rem; align-items: center; }
.check-list .icon { color: var(--accent); width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(245, 165, 36, .15); }
.coverage-map { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 1rem; }
.world-map { width: 100%; height: auto; display: block; color: rgba(148, 179, 214, .35); overflow: visible; }
.world-map .route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round; opacity: .85; animation: dash 1.6s linear infinite; }
.world-map .route-ship { stroke: #7cc4ff; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.world-map .hub circle { fill: #fff; }
.world-map .hub .hub-pulse { fill: var(--accent); opacity: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.world-map .hub text { fill: #cbd8e8; font: 600 13px var(--font); }
@keyframes pulse { from { transform: scale(.4); opacity: .7; } to { transform: scale(2.2); opacity: 0; } }
.world-map .mover circle { fill: #7cc4ff; }
.world-map .mover-plane circle { fill: var(--accent); }
.world-map .mover path { fill: none; stroke: #0b1726; }

/* Testimonials slider */
.slider { max-width: 820px; margin: 0 auto; text-align: center; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; padding: 2.4rem 2rem; background: #fff; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 30px 60px -40px rgba(15, 27, 45, .5); opacity: 0; transform: translateX(30px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote-icon { width: 42px; height: 42px; color: var(--accent); margin: 0 auto 1rem; display: block; }
.slide blockquote { margin: 0 0 1.5rem; font-family: var(--heading-font); font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 600; line-height: 1.45; color: var(--text); }
.slide figcaption { display: inline-flex; gap: .8rem; align-items: center; text-align: left; font-size: .92rem; }
.slider-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.slider-dots button.is-active { width: 30px; background: var(--primary); }

/* CTA band with picture background */
.cta-band { position: relative; color: #fff; background-size: cover; background-position: center; padding: clamp(4rem, 9vw, 7rem) 0; isolation: isolate; }
.cta-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 37, 69, .94), rgba(11, 37, 69, .6)); }
.cta-inner { max-width: 760px; }
.cta-inner p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin: 0 0 1.8rem; }

/* Contact cards */
.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; transition: transform .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(15, 27, 45, .5); }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #eaf1fa; color: var(--primary); margin-bottom: 1rem; }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-card p { margin: 0; }

/* ---------- footer ---------- */
.footer { background: #08131f; color: #cbd5e1; padding: 4rem 0 1.4rem; }
.footer a { color: #e2e8f0; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand p { margin: 1rem 0 1.3rem; max-width: 30ch; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: .2em; }
.footer .btn-accent { color: #1b1300; }
.muted-light { color: #94a3b8; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; color: #94a3b8; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Tracking page
   ========================================================================== */
.track-hero { position: relative; color: #fff; padding: 3.2rem 0 5.5rem; overflow: hidden; isolation: isolate; background: #0b1726; }
.track-hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 60%; opacity: .35; }
.track-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 23, 38, .3), rgba(11, 23, 38, .95)); }
.track-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.track-glass-inline { padding: .6rem; }
.track-hero .alert { max-width: 620px; }
.track-result { padding-top: 0; margin-top: -3.4rem; position: relative; }
.status-card { padding: 1.6rem; }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status-id { display: flex; align-items: center; gap: 1rem; }
/* Right side of the tracking number row: the messages bell + the status badge. */
.status-side { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.bell-track { min-height: 44px; padding: .45rem .95rem; }
@media (max-width: 560px) {
  .status-side { width: 100%; justify-content: space-between; }
}
.status-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: #e3edf9; color: var(--primary); }
.status-icon .icon { width: 30px; height: 30px; }
.status-orange { background: #fff1d6; color: #8a5300; }
.status-green { background: #dff5e7; color: #17633a; }
.status-red { background: #fde4e1; color: #8a1f17; }
.status-purple { background: #ede7fa; color: #4c2d8f; }
.status-teal { background: #dcf5f1; color: #0f6157; }

/* Animated progress bar with the vehicle driving to the current step */
.route-line { display: grid; grid-template-columns: 1fr; gap: .8rem; align-items: center; margin: 1.6rem 0 .4rem; }
.route-line > div:not(.progress) { display: flex; flex-direction: column; }
.route-line .muted { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.progress { position: relative; height: 44px; }
.progress-track { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 99px; background: repeating-linear-gradient(90deg, #e2e8f0 0 10px, #eef2f7 10px 20px); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.progress-vehicle { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); border: 2px solid var(--accent); box-shadow: 0 8px 18px -8px rgba(15, 27, 45, .6); transition: left 1.6s cubic-bezier(.2, .8, .2, 1); }
.progress-vehicle .icon { width: 22px; height: 22px; }
.progress.is-animated .progress-fill { width: var(--progress); }
.progress.is-animated .progress-vehicle { left: var(--progress); }
.progress-cancelled .progress-fill { background: #cbd5e1; }
.progress-cancelled .progress-vehicle { border-color: var(--danger); color: var(--danger); }

.track-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-bottom: 1.4rem; }
.track-grid > .card { margin-bottom: 0; }

/* Vertical timeline, steps animate in one after another */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.25rem 2.6rem; display: flex; flex-wrap: wrap; gap: .1rem 1rem; justify-content: space-between; align-items: baseline; }
.js .timeline li { opacity: 0; transform: translateX(-10px); }
.timeline.is-visible li, .reveal.is-visible .timeline li { animation: tl-in .5s ease forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes tl-in { to { opacity: 1; transform: none; } }
.timeline li::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: grid; place-items: center; color: #fff; }
.tl-dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.tl-done .tl-dot { background: var(--success); border-color: var(--success); }
.tl-done::before { background: var(--success) !important; }
.tl-current .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(245, 165, 36, .22); animation: current 2s ease-in-out infinite; }
@keyframes current { 50% { box-shadow: 0 0 0 10px rgba(245, 165, 36, .08); } }
.tl-current .tl-label { font-weight: 800; }
.tl-todo .tl-label, .tl-skipped .tl-label { color: #94a3b8; }
.tl-skipped .tl-dot { border-style: dashed; }
.tl-label { font-weight: 600; }
.tl-time { color: var(--muted); font-size: .82rem; }

.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 1fr; gap: .2rem; padding: .85rem 0; border-bottom: 1px dashed var(--border); }
.history li:last-child { border-bottom: 0; }
.history-time { color: var(--muted); font-size: .82rem; font-weight: 600; }
.history .muted { display: flex; align-items: center; gap: .3rem; font-size: .9rem; }
.history-note { background: #f8fafc; border-left: 3px solid var(--accent); padding: .35rem .7rem; border-radius: 0 8px 8px 0; margin-top: .35rem; font-size: .93rem; }

.inbox-locked { display: flex; gap: 1rem; align-items: flex-start; }
.lock-badge { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #eef3fb; color: var(--primary); }
.lock-badge .icon { width: 24px; height: 24px; }
.lock-badge b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #1b1300; font-size: .75rem; display: grid; place-items: center; border: 2px solid #fff; }
.safety-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: #475569; background: #f1f6fd; border-radius: 12px; padding: .8rem 1rem; margin: 1.2rem 0 0; }
.safety-note .icon { color: var(--primary); margin-top: .1em; }

/* Leaflet route line drawn in by track-map.js */
.route-anim { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.4s ease forwards .3s; }
.route-remaining { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- scroll reveal (site.js adds .is-visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .history li { grid-template-columns: 150px 1fr; }
  .route-line { grid-template-columns: auto 1fr auto; gap: 1.6rem; }
  .route-to { text-align: right; }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { content: ''; position: absolute; top: 42px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); transform-origin: left; transform: scaleX(0); transition: transform 1.4s ease .3s; }
  .steps.is-visible::before { transform: scaleX(1); }
  .step-icon { background: #fff; }
  .coverage { grid-template-columns: 1fr 1.5fr; }
  .track-grid { grid-template-columns: 1fr 1.25fr; }
}

/* ---------- reduced motion: show everything, stop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .timeline li { opacity: 1; transform: none; }
  .world-map .route, .world-map .hub-pulse { animation: none; }
  .route-anim { stroke-dashoffset: 0; }
  .steps::before { transform: scaleX(1); }
}
.track-grid > * { min-width: 0; }
@media (max-width: 699px) { .scroll-cue { display: none; } }

/* ---------- Phase 2: map on top, bell + messages panel ---------- */
.map-lg { height: 420px; }
.map-card { margin-bottom: 1.4rem; }
.map-legend { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.map-legend .lg { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--primary); }
.map-legend .lg-dashed { border-top: 3px dashed #64748b; margin-left: .6rem; }
.safety-note { margin-bottom: 0; }

/* Bell in the top bar */
.bell { position: relative; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; color: var(--text); padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.mainnav a.bell::after { display: none; }
.bell .icon { width: 1.25em; height: 1.25em; }
.bell-count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; animation: bell-pop .5s ease both; }
.bell:has(.bell-count) .icon { animation: bell-ring 1.4s ease .6s 2; transform-origin: 50% 10%; }
@keyframes bell-pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } }

/* Messages panel: slides in from the right */
.msg-panel { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 15, 28, .5); display: none; justify-content: flex-end; }
.msg-panel.is-open, .msg-panel:target, .msg-panel:has(:target) { display: flex; animation: fade .2s ease both; }
.msg-panel-box { width: min(520px, 100%); height: 100%; overflow-y: auto; background: #fff; padding: 1.4rem 1.4rem 2rem; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .5); animation: panel-in .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes panel-in { from { transform: translateX(40px); opacity: 0; } }
.msg-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.msg-panel-head .h3 { margin: 0; }
.msg-close { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text); }
.inbox li.is-new { border-color: var(--accent); background: #fffaf0; }
body.panel-open { overflow: hidden; }
/* (phones: the bell sits in the menu panel with its label - see the header block at the top) */

/* Receipt unlock page (public/receipt.php) + the receipt button on the tracking page */
.container-narrow { max-width: 560px; }
.receipt-unlock { padding-top: 3rem; }
.receipt-unlock h1 { display: flex; align-items: center; gap: .5rem; margin-top: 0; font-size: clamp(1.35rem, 5vw, 1.8rem); }
.receipt-unlock h1 .icon { flex: none; width: 1em; height: 1em; color: var(--primary); }
.status-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 600px) { .status-actions .btn { flex: 1 1 100%; } }
