/* =========================================================================
   MANH LOGISTICS LIMITED — Design System
   Industrial / utilitarian brand · Red #D6181F · Ink #15171C
   Display: Saira Condensed · Body: Public Sans
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --red: #D6181F;
  --red-dark: #B01218;
  --red-soft: #FF8A8F;
  --tint: #FDE7E8;
  --tint-2: #FBEFEF;
  --ink: #15171C;
  --ink-2: #262A31;
  --ink-3: #1B1E24;
  --muted: #5C5C5C;
  --muted-2: #7A7F87;
  --line: #ECEDEF;
  --line-2: #DDDFE3;
  --paper: #F4F5F7;
  --paper-2: #FAFBFC;
  --white: #ffffff;

  --maxw: 1240px;
  --gutter: 24px;

  --disp: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 14px -8px rgba(21,23,28,.15);
  --shadow-md: 0 20px 44px -30px rgba(21,23,28,.4);
  --shadow-lg: 0 26px 54px -30px rgba(21,23,28,.45);
  --shadow-red: 0 18px 40px -18px rgba(214,24,31,.55);

  --clip-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --clip-md: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
button { font-family: inherit; cursor: pointer; }
a, button, .btn, input[type="submit"] { touch-action: manipulation; -webkit-tap-highlight-color: rgba(214,24,31,.18); }
input, textarea, select { font-family: inherit; font-size: 16px; }
h1, h2, h3, h4 { line-height: 1.06; color: var(--ink); text-wrap: balance; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.disp { font-family: var(--disp); font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 92px 0; }
.section-sm { padding: 72px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #C4C8CF; }
.center { text-align: center; }

/* Eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-weight: 700; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.kicker.center-k { justify-content: center; }
.kicker.on-dark { color: var(--red-soft); }

/* Section heading */
.sh { max-width: 660px; }
.sh.center { margin: 0 auto; }
.sh h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(30px, 4.6vw, 46px); text-transform: uppercase; letter-spacing: .01em; }
.sh .rule { width: 56px; height: 3px; background: var(--red); margin-top: 16px; }
.sh.center .rule { margin-left: auto; margin-right: auto; }
.sh p { color: var(--muted); font-size: 16.5px; margin-top: 18px; }
.on-dark h2, .on-dark h1, .on-dark h3 { color: #fff; }
.on-dark p { color: #AEB3BB; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--disp); font-weight: 700; font-size: 17px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 30px; border: 0; cursor: pointer;
  clip-path: var(--clip-md); transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); clip-path: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 17px 36px; font-size: 18px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--red); font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--red-dark); }
.link-arrow:hover svg { transform: translateX(5px); }

/* Circular arrow CTA */
.cta-round {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--disp); font-weight: 700; font-size: 18px;
  letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
}
.cta-round .knob {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .25s, transform .25s;
}
.cta-round:hover { color: var(--red); }
.cta-round:hover .knob { background: var(--red); transform: translateX(4px); }

/* ---------- Top utility bar ---------- */
.utility {
  background: var(--ink); color: #C4C8CF; font-size: 13.5px;
}
.utility .wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.utility a { color: #C4C8CF; display: inline-flex; align-items: center; gap: 8px; }
.utility a:hover { color: #fff; }
.utility .ic { color: var(--red); display: inline-flex; }
.utility .tag { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #8A9099; }
.utility .tag strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.28); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; }
.brand img { height: 68px; width: 96px; transition: height .25s, width .25s; }
.site-header.scrolled .brand img { height: 56px; width: 79px; }
.main-nav { margin: 0 auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  position: relative; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); border-bottom-color: var(--red); }
.header-cta { display: inline-flex; align-items: center; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: var(--ink);
  color: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  clip-path: var(--clip-sm);
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
  background: var(--ink); color: #fff; z-index: 120; padding: 26px 24px;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-nav .m-close { width: 42px; height: 42px; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 22px; }
.mobile-nav a.m-link {
  color: #E7E9EC; font-family: var(--disp); font-weight: 600; font-size: 22px;
  text-transform: uppercase; letter-spacing: .02em; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav a.m-link:hover, .mobile-nav a.m-link.active { color: var(--red-soft); }
.mobile-nav .m-cta { margin-top: 22px; }
.mobile-nav .m-contact { margin-top: auto; padding-top: 24px; color: #AEB3BB; font-size: 14.5px; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav .m-contact a { color: #C4C8CF; }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(10,11,14,.55); z-index: 110;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.nav-scrim.open { opacity: 1; visibility: visible; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,23,28,.5), rgba(21,23,28,.82));
}
.page-hero .wrap { position: relative; z-index: 1; padding-top: 74px; padding-bottom: 74px; }
.page-hero h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(38px, 6vw, 58px); text-transform: uppercase; color: #fff; margin-top: 10px; }
.page-hero p { color: #C4C8CF; font-size: 17px; max-width: 620px; margin-top: 14px; }
.breadcrumb { color: #9AA0A8; font-size: 13.5px; margin-top: 18px; }
.breadcrumb a { color: #C4C8CF; } .breadcrumb a:hover { color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.svc-card {
  background: #fff; padding: 38px 32px; box-shadow: var(--shadow-md);
  transition: transform .28s var(--ease), box-shadow .28s; position: relative;
  border-top: 3px solid transparent;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 54px -26px rgba(21,23,28,.5); border-top-color: var(--red); }
.svc-card h3 { font-size: 21px; font-weight: 700; margin-top: 22px; }
.svc-card p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.svc-card .link-arrow { margin-top: 18px; }

/* Icon tile */
.icon-tile {
  width: 60px; height: 60px; background: var(--tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  clip-path: var(--clip-sm);
}
.icon-tile svg { width: 30px; height: 30px; }
.icon-tile.ink { background: var(--ink); color: #fff; }
.icon-tile.solid { background: var(--red); color: #fff; }

/* ---------- Animated icon behaviours ---------- */
.ai-draw path, .ai-draw circle, .ai-draw rect, .ai-draw line, .ai-draw polyline, .ai-draw polygon {
  stroke-dasharray: var(--len, 120); stroke-dashoffset: var(--len, 120);
}
.in-view .ai-draw path, .in-view .ai-draw circle, .in-view .ai-draw rect,
.in-view .ai-draw line, .in-view .ai-draw polyline, .in-view .ai-draw polygon {
  animation: draw 1.1s var(--ease) forwards; animation-delay: var(--d, .1s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* hover motion helpers */
.spin-hover:hover .spin { animation: spin 1.1s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.roll-hover:hover .wheel { animation: rollpulse .7s var(--ease) infinite; transform-origin: center; }
@keyframes rollpulse { 50% { transform: scale(1.18); } }
.slide-hover:hover .slidex { animation: slidex .8s var(--ease) infinite; }
@keyframes slidex { 50% { transform: translateX(4px); } }
.float-ic svg { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.pulse-ring { animation: pulsering 2.4s ease-out infinite; transform-origin: center; }
@keyframes pulsering { 0% { transform: scale(.7); opacity: .5; } 70%,100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Value list (icon rows) ---------- */
.value-row { display: flex; gap: 16px; align-items: flex-start; }
.value-row .icon-tile { width: 48px; height: 48px; }
.value-row .icon-tile svg { width: 24px; height: 24px; }
.value-row h3 { font-size: 17px; font-weight: 700; }
.value-row p { color: var(--muted); font-size: 14px; margin-top: 5px; line-height: 1.55; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* ---------- Forms ---------- */
.field label { display: block; font-family: var(--disp); font-weight: 700; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.field input, .field select, .field textarea, .form-input {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line-2); background: #fff;
  font-size: 15px; color: var(--ink-2); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus, .form-input:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,24,31,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted-2); }
.reassure { display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: -2px; }
.reassure svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
.form-status { font-size: 15px; font-weight: 600; padding: 12px 14px; margin-top: 4px; display: none; }
.form-status.ok { display: block; background: #E9F7EE; color: #1B7A43; border-left: 3px solid #2F9E5B; }
.form-status.err { display: block; background: var(--tint); color: var(--red-dark); border-left: 3px solid var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #101216; color: #C4C8CF; }
.site-footer .top { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 42px; padding-top: 68px; padding-bottom: 34px; }
.site-footer .logo-chip { background: #fff; padding: 12px 14px; display: inline-block; }
.site-footer .logo-chip img { height: 62px; width: 88px; }
.site-footer p.blurb { font-size: 14.5px; line-height: 1.7; margin-top: 20px; max-width: 320px; color: #9EA4AC; }
.site-footer .fh { color: #fff; font-family: var(--disp); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.site-footer .fcol > div, .site-footer .fcol a { font-size: 14.5px; }
.site-footer .flist { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.site-footer .flist a { color: #C4C8CF; } .site-footer .flist a:hover { color: #fff; }
.site-footer .fcontact { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; line-height: 1.5; }
.site-footer .fcontact a { color: #C4C8CF; }
.site-footer .map-link { display: inline-flex; align-items: center; gap: 7px; color: var(--red-soft); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.site-footer .map-link:hover { color: #fff; }
.site-footer .map-link svg { width: 14px; height: 14px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; color: #8A9099; }
.footer-bar .slogan { font-family: var(--disp); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Floating actions ---------- */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 12px 26px -8px rgba(0,0,0,.5); position: relative; transition: transform .2s;
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab.wa { background: #25D366; }
.fab.call { background: var(--red); }
.fab svg { width: 26px; height: 26px; }
.fab .ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(0,0,0,.3);
  grid-template-columns: 1fr 1fr; gap: 0;
}
.mobile-cta a { padding: 15px 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--disp); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; }
.mobile-cta a.call { color: var(--ink); }
.mobile-cta a.quote { background: var(--red); color: #fff; }
.mobile-cta svg { width: 18px; height: 18px; }

/* ---------- Misc utilities ---------- */
.stat-badge {
  position: absolute; background: var(--red); color: #fff; padding: 16px 22px; box-shadow: var(--shadow-red);
}
.stat-badge .n { font-family: var(--disp); font-size: 34px; font-weight: 800; line-height: 1; }
.stat-badge .l { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; margin-top: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--red-dark);
  font-weight: 700; font-size: 13px; padding: 7px 14px; letter-spacing: .02em;
}

.map-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.map-link:hover { color: var(--red-dark); }
.map-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .site-footer .top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .section { padding: 66px 0; }
  .section-sm { padding: 54px 0; }
  .utility .tag { display: none; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bar .wrap { justify-content: center; text-align: center; }
  .mobile-cta { display: grid; }
  .floaters { bottom: 74px; }
  body.has-mcta { padding-bottom: 56px; }
  .footer-bar .wrap { padding-bottom: 26px; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .page-hero .wrap { padding-top: 54px; padding-bottom: 54px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ai-draw path, .ai-draw circle, .ai-draw rect, .ai-draw line, .ai-draw polyline, .ai-draw polygon { stroke-dashoffset: 0; }
}
