/* =====================================================================
   ICYPEED LOGISTICS — "Ice & Velocity" Design System
   Hand-authored CSS. No framework runtime. Fast on any device.
   Palette: arctic white + ice blue accent + brand red for energy/CTA.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink & neutrals */
  --ink:        #0A1A2F;   /* primary text — deep navy */
  --ink-soft:   #33465C;
  --muted:      #6E7F99;   /* brand slate */
  --line:       #E3ECF4;   /* hairline borders */
  --line-2:     #D4E1EC;
  --frost:      #F4F8FC;   /* arctic tint surface */
  --frost-2:    #EAF2F9;
  --surface:    #FFFFFF;

  /* Ice blue accent family */
  --ice:        #00A8E6;
  --ice-deep:   #0072BC;
  --ice-bright: #37C6F4;
  --ice-050:    #E8F7FE;
  --ice-100:    #D2EEFC;
  --sky:        #015EEA;
  --cyan:       #00C0FA;

  /* Brand red — energy / CTA */
  --red:        #FF1D25;
  --red-deep:   #DC0810;
  --red-050:    #FFECEC;

  /* Status */
  --go:         #17B26A;   /* delivered */
  --amber:      #F5A524;   /* in transit */

  /* Gradients */
  --grad-ice:   linear-gradient(135deg, #00C0FA 0%, #0084E0 55%, #015EEA 100%);
  --grad-ice-soft: linear-gradient(135deg, #E8F7FE 0%, #F4F8FC 100%);
  --grad-red:   linear-gradient(135deg, #FF3A34 0%, #FF1D25 55%, #DC0810 100%);
  --grad-ink:   linear-gradient(165deg, #0A1A2F 0%, #10233B 60%, #0B2A4A 100%);

  /* Type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadows — cool-tinted, not gray */
  --sh-xs: 0 1px 2px rgba(10, 26, 47, .05);
  --sh-sm: 0 4px 14px rgba(16, 51, 84, .06);
  --sh-md: 0 12px 34px rgba(16, 51, 84, .09);
  --sh-lg: 0 30px 70px rgba(16, 51, 84, .14);
  --sh-ice: 0 18px 44px rgba(0, 132, 224, .22);
  --sh-red: 0 16px 38px rgba(255, 29, 37, .26);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --nav-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ice-100); color: var(--ink); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }

.display   { font-size: clamp(2.7rem, 6.2vw, 5.1rem); line-height: .98; letter-spacing: -.035em; }
.h1        { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h2        { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.h3        { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead      { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); line-height: 1.55; font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ice-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-ice); }
.eyebrow.on-dark { color: var(--ice-bright); }
.eyebrow.centered { justify-content: center; }

.text-grad { background: var(--grad-ice); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-red  { color: var(--red); }

/* ---------- 4. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1360px; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }
.center { text-align: center; }
.max-60 { max-width: 60ch; }
.mx-auto { margin-inline: auto; }
.stack-sm > * + * { margin-top: .75rem; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--grad-red); color: #fff; box-shadow: var(--sh-red); }
.btn-red:hover { box-shadow: 0 20px 46px rgba(255, 29, 37, .34); }
.btn-red:hover svg { transform: translateX(4px); }

.btn-ink { background: var(--ink); color: #fff; box-shadow: var(--sh-md); }
.btn-ink:hover { background: #0d233d; }
.btn-ink:hover svg { transform: translateX(4px); }

.btn-ice { background: var(--grad-ice); color: #fff; box-shadow: var(--sh-ice); }
.btn-ice:hover svg { transform: translateX(4px); }

.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice-deep); box-shadow: var(--sh-sm); }
.btn-ghost.on-dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ice-deep);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: #fff; box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), var(--sh-sm); }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.34rem; letter-spacing: -.03em; color: var(--ink); }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .word { display: inline-flex; align-items: baseline; }
.brand .word .dot { color: var(--red); }
.brand-logo { height: 36px; width: auto; display: block; }
.footer-brand .brand-logo { height: 42px; }
@media (max-width: 480px) { .brand-logo { height: 30px; } }

/* Logo: full-colour logo everywhere in the header (solid white bar); white logo only in the dark footer */
.brand-logo--white { display: none; }
.footer-brand .brand-logo--color { display: none; }
.footer-brand .brand-logo--white { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 500; font-size: .96rem; color: var(--ink-soft);
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--ink); background: var(--frost-2); }
.nav a.active { color: var(--ice-deep); }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--grad-ice);
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 22px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav, .header-cta .btn-quote { display: none; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; padding: 30px var(--gutter) 40px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu .btn { margin-top: 26px; }
}
@media (min-width: 981px) { .mobile-menu { display: none; } }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-ice); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-ice-soft); color: var(--ice-deep); margin-bottom: 22px;
  border: 1px solid var(--ice-100); transition: transform .4s var(--ease);
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .link-arrow { margin-top: 18px; }

/* ---------- 8. Sections & motifs ---------- */
.bg-frost { background: var(--frost); }
.bg-ink { background: var(--ink); color: #E8EEF6; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .lead, .bg-ink p { color: #A9BDD4; }

.eyebrow-row { display: flex; align-items: center; gap: 16px; }

/* Stat */
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stat .num .unit { color: var(--ice); }
.stat .label { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.bg-ink .stat .num { color: #fff; } .bg-ink .stat .label { color: #91A6C0; }

/* Divider tick motif */
.tick { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- 9. Reveal animation (JS-driven) ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.is-in .reveal, .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--ink); color: #A9BDD4; padding-top: clamp(64px, 8vw, 96px); }
.site-footer a { color: #A9BDD4; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; color: #8EA3BC; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; font-size: .96rem; }
.footer-office { margin-bottom: 18px; }
.footer-office strong { color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.footer-office span { font-size: .88rem; color: #8EA3BC; display: block; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .87rem; color: #7C93AE; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: background .25s, transform .25s; }
.social-row a:hover { background: var(--ice); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- 11. Utility ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--ice-050); color: var(--ice-deep); font-size: .82rem; font-weight: 600; border: 1px solid var(--ice-100);
}
.badge.red { background: var(--red-050); color: var(--red-deep); border-color: #ffd4d4; }
.badge .tick { width: 7px; height: 7px; }
.pill-check { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.pill-check svg { width: 20px; height: 20px; color: var(--go); flex: none; }

.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(37,211,102,.4);
  transition: transform .3s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn, .card, .card-icon { transition: none; } }

/* ---------- 12. Small-screen refinements ---------- */
@media (max-width: 460px) {
  .display { font-size: clamp(2rem, 9.2vw, 2.7rem); line-height: 1.02; }
  .h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .hero-meta { gap: 16px; }
  .hero-meta .stat .num { font-size: 1.5rem; }
  .btn-lg { padding: 15px 26px; font-size: 1rem; }
  .hero-cta-row .btn-lg { width: 100%; }
  .hero-cta-row { gap: 12px; }
}
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .hero-meta .divider { display: none; }
}
