/* ============================================================
   Maxverge — Singapore Logistics
   Global stylesheet
   ============================================================ */

:root {
  --navy: #0a1d3f;
  --navy-700: #112a55;
  --navy-600: #1b3a6b;
  --accent: #ff6a13;
  --accent-600: #e85a08;
  --accent-soft: #fff1e8;
  --cyan: #16b8c4;
  --ink: #16243d;
  --body: #44546b;
  --muted: #6b7a90;
  --line: #e6eaf1;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-navy-soft: #f1f4fa;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16, 33, 64, .06), 0 1px 2px rgba(16, 33, 64, .04);
  --shadow-md: 0 12px 30px rgba(16, 33, 64, .10);
  --shadow-lg: 0 24px 60px rgba(16, 33, 64, .16);
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #c9d6ec; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.lead { font-size: 1.18rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 19, .32); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-600); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--accent-600); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color:#fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand-logo { height: 30px; width: auto; display: block; flex: none; }
.site-footer .brand-logo { height: 34px; margin-bottom: 14px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-600); }
.nav-menu-cta { display: none; } /* in-menu CTAs: shown only inside the mobile menu */
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, #16336b 0%, var(--navy) 55%);
  color: #d7e2f4;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 30%, rgba(255,106,19,.18), transparent 38%),
    radial-gradient(circle at 12% 90%, rgba(22,184,196,.16), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 1.18rem; color: #b9c8e0; max-width: 540px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #cfe0ff; font-size: .85rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #36d399; box-shadow: 0 0 0 4px rgba(54,211,153,.2); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { margin-top: 38px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust .ht { }
.hero-trust .ht b { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero-trust .ht span { font-size: .85rem; color: #93a6c6; }

/* Hero visual card */
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
/* Hero banner illustration */
.hero-banner { margin: 0; width: 100%; }
.hero-banner svg { width: 100%; height: auto; display: block; border-radius: 26px; filter: drop-shadow(0 24px 50px rgba(5, 14, 33, .45)); }

.hero-card .hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card .hc-head b { color: #fff; font-size: 1.05rem; }
.hero-card .hc-status { font-size: .78rem; color: #36d399; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.hero-card .hc-status::before { content:""; width:7px; height:7px; border-radius:50%; background:#36d399; }
.track-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.track-row .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,106,19,.18); display: grid; place-items: center; flex: none; }
.track-row .ic svg { width: 20px; height: 20px; stroke: var(--accent); }
.track-row .tx b { color: #fff; display: block; font-size: .96rem; }
.track-row .tx span { font-size: .82rem; color: #9fb1cf; }
.track-row .meta { margin-left: auto; font-size: .8rem; color: #9fb1cf; text-align: right; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 36px; margin-top: -56px; position: relative; z-index: 5;
}
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 500; }

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

/* Flexible services grid (centres rows; fits 4 across on desktop, wraps below) */
.services-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.services-grid .card { flex: 1 1 240px; max-width: 300px; }

/* Services page — detailed service cards (2x2) */
.services-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; scroll-margin-top: 90px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8e0ee; }
.service-card .icon { width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 20px; }
.service-card .icon svg { width: 30px; height: 30px; stroke: var(--accent-600); }
.service-card h2 { font-size: 1.45rem; margin-bottom: 10px; }
.service-card > p { color: var(--muted); margin-bottom: 18px; }
.service-card .check-list { margin-bottom: 26px; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .services-detail { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d8e0ee; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--accent-600); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .92rem; }

/* feature list */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .fic {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--bg-navy-soft);
}
.feature .fic svg { width: 22px; height: 22px; stroke: var(--navy-600); }
.feature h3 { font-size: 1.1rem; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--media-first { order: -1; } /* media sits on the left at desktop */
.split--media .media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--navy-700), var(--navy));
  min-height: 380px; position: relative; display: grid; place-items: center; padding: 40px;
}

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #14336e 100%);
  border-radius: 24px; padding: 56px; text-align: center; color: #c9d6ec; position: relative; overflow: hidden;
}
.cta-band::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 80% 20%, rgba(255,106,19,.2), transparent 45%);
}
.cta-band h2 { color: #fff; position: relative; z-index: 2; }
.cta-band p { position: relative; z-index: 2; color: #b9c8e0; max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,19,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* contact info list */
.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item .ci { width:46px; height:46px; border-radius:12px; background: var(--accent-soft); display:grid; place-items:center; flex:none; }
.contact-item .ci svg { width:22px; height:22px; stroke: var(--accent-600); }
.contact-item b { color: var(--ink); display:block; }
.contact-item span, .contact-item a { color: var(--muted); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 14px; background:#fff;
  transition: box-shadow .15s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Pills / chips ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background:#fff; border:1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .92rem; color: var(--ink); }

/* page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, var(--navy), #14336e); color:#cdd9ee; padding: 72px 0 64px; text-align:center; position: relative; overflow:hidden; }
.page-hero::after{ content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 10%, rgba(255,106,19,.18), transparent 45%); }
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color:#fff; }
.page-hero p{ color:#b9c8e0; max-width:640px; margin:0 auto; font-size:1.12rem; }
.breadcrumbs{ font-size:.85rem; color:#8ea3c6; margin-bottom: 16px; }
.breadcrumbs a{ color:#b9c8e0; }
.breadcrumbs a:hover{ color:#fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb1cf; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color:#fff; margin-bottom: 14px; }
.site-footer .brand:hover { color:#fff; }
.footer-about p { color: #93a6c6; font-size: .95rem; max-width: 320px; }
.footer-col h4 { color:#fff; font-size: .95rem; text-transform: uppercase; letter-spacing:.08em; margin-bottom: 16px; }
.footer-col a { display:block; color:#9fb1cf; font-size:.95rem; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #7e92b4; }

/* utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.check-list li { display:flex; gap:11px; align-items:flex-start; padding:7px 0; color: var(--body); }
.check-list li svg { width:21px; height:21px; flex:none; stroke: #2bb673; margin-top:2px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-card, .hero-banner { max-width: 480px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--media-first { order: 1; } /* when stacked, image follows its heading/text */
  .split--media .media { min-height: 220px; padding: 30px; }
  .split--media .media svg { width: 110px; height: 110px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links.open .nav-menu-cta { display: block; }
  .nav-links.open .nav-menu-cta--primary {
    margin-top: 12px; padding: 13px 0; text-align: center; background: var(--accent);
    color: #fff; border-radius: 999px; border-bottom: none; font-weight: 700;
  }
  .nav-links.open .nav-menu-cta--primary:hover { background: var(--accent-600); color: #fff; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
