/* Phone presentation (linked with media="(max-width:720px)" after site.css, so desktop never reads it).
   Same pages, same motion (motion-fx.js and the CSS motion layer are untouched); only the phone look changes:
   a glass header, the whole menu grouped in one sheet, a floating action bar with WhatsApp,
   the assistant above it, a photo banner, and service cards with their photos. */

/* ---------- header ---------- */
/* no backdrop-filter here: it would make the header the containing block of the fixed menu sheet */
header.nav{background:rgba(255,255,255,.97);border-bottom:1px solid rgba(14,34,51,.08)}
header.nav .container{height:64px;gap:10px}
header.nav .logo img{width:clamp(108px,32vw,128px);height:auto}
.nav-actions{gap:8px}
.nav-actions .lang{height:40px;min-width:44px;padding:0 12px;border-radius:20px}
.menu-btn{width:44px;height:44px;padding:0;border-radius:22px;background:#EEF2F6;color:var(--navy);justify-content:center;align-items:center}
.menu-btn svg{width:22px;height:22px}
.menu-btn .menu-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- the menu: every section grouped in one sheet ---------- */
#nav{max-height:88vh;max-height:88dvh;background:#F2F2F7;padding:6px 16px calc(16px + env(safe-area-inset-bottom,0px))}
#nav::before{background:#C5CED8}
#nav > ul{display:flex;flex-direction:column;gap:6px}
#nav .dd{background:transparent}
/* group titles: the dropdown buttons become plain captions, their panels stay open */
#nav .dd-btn{pointer-events:none;min-height:0;padding:14px 4px 6px;font-size:.85rem;font-weight:800;color:var(--muted);background:none}
#nav .dd-btn .chev{display:none}
#nav .dd-panel,#nav .dd.open > .dd-panel{display:flex;flex-wrap:wrap;gap:8px;padding:0;background:transparent}
#nav .dd-panel a,#nav .dd-panel .dd-head{min-height:44px;padding:0 14px;border:0;border-radius:22px;margin:0;background:#fff;color:var(--ink);font-weight:600;font-size:.95rem;gap:8px}
#nav .dd-panel .dd-head{background:var(--navy);color:#fff;font-weight:700}
#nav .dd-panel a svg{width:18px;height:18px}
/* tools read better as a list */
#nav li:nth-child(3) .dd-panel{flex-direction:column;flex-wrap:nowrap;gap:0;background:#fff;border-radius:18px;overflow:hidden}
#nav li:nth-child(3) .dd-panel a,#nav li:nth-child(3) .dd-panel .dd-head{border-radius:0;background:#fff;color:var(--ink);font-weight:600}
#nav li:nth-child(3) .dd-panel a + a{border-top:1px solid var(--line)}
#nav li:nth-child(3) .dd-panel .dd-head{color:var(--navy);font-weight:800}
#nav li > .nl{min-height:48px;padding:0 14px;margin-top:8px;border-radius:16px;background:#fff;display:flex;align-items:center;font-weight:700}
/* the quote button is pinned to the bottom of the sheet */
#nav .mobile-only{display:block;position:sticky;bottom:0;margin-top:12px;padding-top:10px;background:linear-gradient(180deg,rgba(242,242,247,0),#F2F2F7 35%)}
#nav .mobile-only .btn{width:100%;min-height:52px;justify-content:center;border-radius:26px}

/* ---------- floating action bar: quote, WhatsApp, call ---------- */
.m-bar{inset:auto 10px calc(10px + env(safe-area-inset-bottom,0px)) 10px;padding:6px;gap:6px;border:1px solid rgba(255,255,255,.7);border-radius:28px;background:rgba(255,255,255,.84);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);box-shadow:0 8px 30px rgba(14,34,51,.16)}
.m-bar a{min-height:52px;border-radius:22px}
.m-bar .mb-quote{color:var(--navy)}
body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
.quote-page{padding-bottom:0}

/* the assistant sits just above the bar, on the side away from the reading start */
.cb-fab{bottom:calc(84px + env(safe-area-inset-bottom,0px));inset-inline-end:16px;width:54px;height:54px;box-shadow:0 8px 24px rgba(0,60,96,.35)}
/* the quote form keeps its own sticky bar (Next/Send sit on the end side), so the assistant moves to the start side above it */
body:has(.w-nav) .cb-fab{bottom:calc(150px + env(safe-area-inset-bottom,0px));inset-inline-end:auto;inset-inline-start:16px}

/* ---------- banner: the photo shows above the headline ---------- */
/* the photo is 3:2, so at full width it fills the top 67vw; the shade fades it into navy where the text starts */
.hero,html[dir="ltr"] .hero{--hero-shade:linear-gradient(180deg,rgba(0,30,50,.18) 0,rgba(0,30,50,.08) 30vw,rgba(0,40,68,.97) 66vw);padding-top:52vw;background-size:100% auto;background-position:center top;background-repeat:no-repeat}
.hero.has-drift::before{background-size:100% auto;background-position:center top;background-repeat:no-repeat}
html[dir="ltr"] .hero.has-drift::before{background-position:center top}

/* ---------- cards ---------- */
.track-card,.cta-band,.quote-form,.faq-list details,.why-grid > *,.steps > *{border-radius:20px}

/* home services: 2-up photo cards */
.services-grid{gap:12px}
.services-grid .svc{padding:0 0 14px;border:0;border-radius:20px;overflow:hidden;box-shadow:0 1px 3px rgba(14,34,51,.08)}
.services-grid .svc::before{content:"";display:block;width:100%;aspect-ratio:4 / 3;margin-bottom:10px;background:#DCE6EE center / cover no-repeat}
.services-grid .svc .ic{display:none}
.services-grid .svc h3{padding:0 10px}
.services-grid .svc .svc-actions{padding:0 10px}
#svc-sea::before{background-image:url(svc/ocean-freight-sm.webp)}
#svc-air::before{background-image:url(svc/air-freight-sm.webp)}
#svc-multi::before{background-image:url(svc/multimodal-sm.webp)}
#svc-customs::before{background-image:url(svc/customs-clearance-sm.webp)}
#svc-lcl::before{background-image:url(svc/lcl-consolidation-sm.webp)}
#svc-d2d::before{background-image:url(svc/door-to-door-sm.webp)}
#svc-wh::before{background-image:url(svc/warehousing-sm.webp)}

/* small phones (320–360px): nothing wider than the screen */
.other-grid{grid-template-columns:minmax(0,1fr)}
.other-card{min-width:0;overflow-wrap:anywhere}
@media (max-width:360px){
  .nav-actions .lang{min-width:40px;padding:0 10px}
  .m-bar a{font-size:.78rem}
  .m-bar .mb-quote{font-size:.88rem}
}

/* ---------- assistant: a full-screen chat on phones ---------- */
.cb-panel{inset:0;width:auto;height:100vh;height:100dvh;bottom:auto;border:0;border-radius:0;box-shadow:none;z-index:120}
.cb-head{padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;min-height:60px}
.cb-head b{font-size:1.05rem}
.cb-x{width:44px;height:44px;font-size:1.9rem}
.cb-msg{font-size:1rem}
.cb-quick{padding:10px 12px}
.cb-quick .cb-chip{min-height:40px;padding:6px 14px;font-size:.92rem}
.cb-form{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}
.cb-form input{font-size:16px;min-height:46px}
.cb-send{min-height:46px}
body.cb-open{overflow:hidden}
body.cb-open .m-bar,body.cb-open .cb-fab{display:none}
