/* ==========================================================================
   SV Commerce — Global E-commerce & Integrated Market Solutions
   Brand palette derived from the SV Commerce logo (antique gold + deep ink)
   ========================================================================== */

:root {
  --navy-950: #060d18;
  --navy-900: #0a1525;
  --navy-800: #0f1d33;
  --navy-700: #162944;
  --navy-600: #22385a;

  --gold: #b8975a;
  --gold-light: #dcc38e;
  --gold-pale: #efe2c2;
  --gold-deep: #8c6e37;
  --gold-glow: #f3dda6;

  --cream: #f8f4ec;
  --cream-2: #f1eadb;
  --paper: #fffdf8;
  --white: #ffffff;

  --ink: #1c2620;
  --text: #454a45;
  --muted: #7a7e76;
  --line: #e6dcc7;
  --line-dark: rgba(220, 195, 142, 0.18);

  --grad-gold: linear-gradient(135deg, #e6cf9b 0%, #c4a364 48%, #9a7a40 100%);
  --grad-gold-text: linear-gradient(180deg, #f6e6bd 0%, #dcc38e 45%, #b8975a 100%);

  --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
  --shadow: 0 22px 44px -22px rgba(15, 29, 51, 0.3);
  --shadow-lg: 0 40px 80px -30px rgba(6, 13, 24, 0.55);

  --radius: 14px;
  --radius-sm: 8px;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .6em; line-height: 1.18; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold-light); }

.h-display { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.08; }
h2, .h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h3, .h3 { font-size: 1.45rem; }
.lead { font-size: 1.12rem; color: var(--text); }
.text-gold {
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }

.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 6px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn-gold { background: var(--grad-gold); color: var(--navy-900); box-shadow: 0 10px 24px -12px rgba(184, 151, 90, .9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(184, 151, 90, .95), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-outline { border-color: rgba(220, 195, 142, .55); color: var(--gold-pale); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: var(--gold-light); background: rgba(220, 195, 142, .1); color: #fff; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-sm { padding: 10px 18px; font-size: .86rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem;
  color: var(--gold-deep); transition: gap .25s ease, color .25s;
}
.link-arrow .ico { width: 18px; height: 18px; }
.link-arrow:hover { gap: 12px; color: var(--ink); }

/* ---------- Top bar & Header ---------- */
.topbar { background: var(--navy-950); color: rgba(239, 226, 194, .75); font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 38px; }
.topbar a:hover { color: var(--gold-light); }
.topbar-items { display: flex; gap: 26px; align-items: center; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ico { width: 15px; height: 15px; color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(230, 220, 199, .7);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(10, 21, 37, .35); }
.site-header .container, .topbar .container { max-width: 1340px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { height: 46px; width: auto; display: block; }
.brand-name { font-family: var(--sans); font-size: 1.62rem; font-weight: 600; letter-spacing: -.025em; color: #1e2a21; line-height: 1; white-space: nowrap; }

.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav .nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; font-size: .91rem; font-weight: 500; color: var(--ink); white-space: nowrap;
  border: 0; background: none; position: relative; transition: color .2s;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--gold-deep); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link .ico { width: 15px; height: 15px; transition: transform .25s; }
.has-dropdown:hover .nav-link .ico, .has-dropdown.open .nav-link .ico { transform: rotate(180deg); }
.sub-toggle { display: none; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 340px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 8px; transition: background .2s; }
.dropdown a:hover { background: var(--cream); }
.dropdown .d-ico {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--cream-2); color: var(--gold-deep);
}
.dropdown .d-ico .ico { width: 20px; height: 20px; }
.dropdown strong { display: block; font-size: .92rem; color: var(--ink); font-weight: 600; line-height: 1.3; }
.dropdown small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); align-items: center; justify-content: center;
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 80px 0; }
.bg-cream { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-900); color: rgba(239, 226, 194, .78); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.texture {
  background-image:
    radial-gradient(rgba(184, 151, 90, .09) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #13284a 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: rgba(239, 226, 194, .85);
  padding: 120px 0 190px;
  min-height: 720px; display: flex; align-items: center;
}
.hero-map { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-map svg { width: 125%; max-width: 1700px; min-width: 1100px; height: auto; opacity: .95; transform: translateY(10px); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 42% at 50% 46%, rgba(6, 13, 24, .78) 0%, rgba(6, 13, 24, .35) 60%, transparent 100%),
    linear-gradient(180deg, rgba(6, 13, 24, .35) 0%, transparent 25%, transparent 70%, rgba(6, 13, 24, .6) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 920px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero .lead { color: rgba(239, 226, 194, .88); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 46px; font-size: .84rem; color: rgba(239, 226, 194, .7); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .ico { width: 17px; height: 17px; color: var(--gold-light); }

/* Feature cards overlapping hero */
.feature-strip { position: relative; z-index: 3; margin-top: -120px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  position: relative; background: linear-gradient(180deg, #fffdf8 0%, #f8f1e2 100%);
  border: 1px solid rgba(184, 151, 90, .35); border-radius: var(--radius);
  padding: 34px 28px 30px; box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  display: flex; flex-direction: column;
}
.feature-card::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(184, 151, 90, .18); border-radius: 10px; pointer-events: none;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.feature-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.feature-card p { font-size: .93rem; color: var(--text); flex: 1; }

.icon-badge {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-gold); color: var(--navy-900); margin-bottom: 22px;
  box-shadow: 0 10px 20px -10px rgba(140, 110, 55, .8), inset 0 1px 0 rgba(255,255,255,.4);
}
.icon-badge .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.icon-badge.outline { background: transparent; border: 1px solid rgba(184, 151, 90, .5); color: var(--gold-deep); box-shadow: none; }
.bg-navy .icon-badge.outline, .on-dark .icon-badge.outline { color: var(--gold-light); border-color: rgba(220, 195, 142, .4); }

/* ---------- Generic cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(184, 151, 90, .55); }
.card h3 { font-size: 1.3rem; }
.card p { font-size: .95rem; }
.card .link-arrow { margin-top: 6px; }
.card-dark {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 32px 28px;
  transition: border-color .3s, transform .3s, background .3s;
}
.card-dark:hover { border-color: rgba(220, 195, 142, .45); transform: translateY(-4px); background: rgba(255,255,255,.05); }
.card-dark h3, .card-dark h4 { color: #fff; }

.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: .97rem; }
.check-list .ico { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; stroke-width: 2; }
.bg-navy .check-list li { color: rgba(239, 226, 194, .85); }

.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); background: var(--cream-2); padding: 6px 12px; border-radius: 30px; }

/* ---------- Split media blocks ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.split-media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: 0; opacity: .55;
}
.split.reverse .split-media::before { inset: 22px 22px -22px -22px; }
.media-badge {
  position: absolute; z-index: 2; left: -28px; bottom: 34px;
  background: var(--navy-900); color: #fff; border-radius: 12px; padding: 18px 22px;
  box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; border: 1px solid var(--line-dark);
}
.media-badge .ico { width: 34px; height: 34px; color: var(--gold-light); }
.media-badge strong { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-light); line-height: 1; display: block; }
.media-badge span { font-size: .8rem; color: rgba(239, 226, 194, .8); line-height: 1.35; display: block; }
.split.reverse .media-badge { left: auto; right: -28px; }

/* ---------- Process (order lifecycle) ---------- */
.process { position: relative; }
.process-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; margin-bottom: 44px; }
.process-steps::before {
  content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 36px; height: 2px; background: var(--line);
}
.process-progress {
  position: absolute; left: 8.33%; top: 36px; height: 2px; background: var(--grad-gold); width: 0; transition: width .6s ease; z-index: 1;
}
.process-step {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: none; border: 0; padding: 0 8px; color: var(--muted);
}
.process-step .p-ico {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--line); color: var(--gold-deep);
  transition: all .4s ease; position: relative;
}
.process-step .p-ico .ico { width: 28px; height: 28px; }
.process-step .p-num {
  position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-light); font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--cream);
}
.process-step .p-title { margin-top: 16px; font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.process-step .p-sub { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.process-step.done .p-ico { border-color: var(--gold); }
.process-step.is-active .p-ico { background: var(--grad-gold); color: var(--navy-900); border-color: transparent; transform: scale(1.08); box-shadow: 0 16px 30px -12px rgba(140, 110, 55, .9); }
.process-step:hover .p-ico { border-color: var(--gold); }

.process-panels { position: relative; }
.process-panel {
  display: none; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 44px 48px;
  box-shadow: var(--shadow);
}
.process-panel.is-active { display: grid; animation: fadeUp .5s ease both; }
.process-panel h3 { font-size: 1.7rem; }
.process-panel .p-kicker { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 10px; }
.process-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.process-controls { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.process-controls button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: grid; place-items: center; transition: all .2s;
}
.process-controls button:hover { border-color: var(--gold); color: var(--gold-deep); }
.process-controls .ico { width: 18px; height: 18px; }
.process-controls .prev .ico { transform: rotate(180deg); }

/* ---------- Network / distribution centers ---------- */
.network { overflow: hidden; }
.network-map { position: relative; margin: 10px auto 50px; max-width: 1100px; }
.network-map svg { width: 100%; height: auto; }
.hub-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.hub-card {
  border: 1px solid var(--line-dark); border-radius: 12px; padding: 22px 20px; background: rgba(255,255,255,.03);
  transition: border-color .3s, background .3s, transform .3s; cursor: default;
}
.hub-card:hover, .hub-card.hl { border-color: rgba(220, 195, 142, .55); background: rgba(220, 195, 142, .07); transform: translateY(-4px); }
.hub-card .hub-region { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hub-card h4 { color: #fff; margin: 8px 0 6px; font-size: 1.02rem; }
.hub-card p { font-size: .84rem; margin: 0; color: rgba(239, 226, 194, .7); line-height: 1.55; }
.hub-card .hq { display: inline-block; margin-left: 6px; font-size: .62rem; padding: 2px 7px; border-radius: 20px; background: var(--grad-gold); color: var(--navy-900); letter-spacing: .1em; vertical-align: 2px; }

/* World map (SVG rendered by worldmap.js) */
.world-map { display: block; }
.world-map .wm-dots { fill: none; stroke: rgba(220, 195, 142, .32); stroke-width: 2.7; stroke-linecap: round; }
.world-map .wm-route { fill: none; stroke: rgba(220, 195, 142, .32); stroke-width: .8; stroke-dasharray: 2 4; }
.world-map .wm-trunk { fill: none; stroke: rgba(226, 202, 148, .5); stroke-width: 1.3; }
.world-map .wm-comet { fill: none; stroke: var(--gold-glow); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(243, 221, 166, .9)); }
.world-map .wm-dest { fill: var(--gold-light); animation: twinkle 3.4s ease-in-out infinite; }
.world-map .wm-hub .core { fill: var(--gold-glow); stroke: var(--navy-900); stroke-width: 1.5; }
.world-map .wm-hub .ring { fill: none; stroke: var(--gold-light); stroke-width: 1; }
.world-map .wm-hub .pulse { fill: none; stroke: var(--gold-light); stroke-width: 1.2; }
.world-map .wm-hub.is-hq .core { fill: #fff; }
.world-map .wm-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; fill: #fff; paint-order: stroke; stroke: rgba(6, 13, 24, .85); stroke-width: 4px; }
.world-map .wm-label-sub { font-family: var(--sans); font-size: 9px; letter-spacing: .14em; fill: var(--gold-light); paint-order: stroke; stroke: rgba(6, 13, 24, .85); stroke-width: 4px; }
.world-map[data-worldmap="light"] .wm-dots { stroke: rgba(15, 29, 51, .2); }
.world-map[data-worldmap="light"] .wm-route { stroke: rgba(140, 110, 55, .45); }
.world-map[data-worldmap="light"] .wm-trunk { stroke: rgba(140, 110, 55, .65); }
.world-map[data-worldmap="light"] .wm-comet { stroke: var(--gold-deep); filter: none; }
.world-map[data-worldmap="light"] .wm-dest { fill: var(--gold-deep); }
.world-map[data-worldmap="light"] .wm-hub .core { fill: var(--gold); stroke: #fff; }
.world-map[data-worldmap="light"] .wm-hub .ring, .world-map[data-worldmap="light"] .wm-hub .pulse { stroke: var(--gold-deep); }
.world-map[data-worldmap="light"] .wm-label { fill: var(--ink); stroke: rgba(255,255,255,.9); }
.world-map[data-worldmap="light"] .wm-label-sub { fill: var(--gold-deep); stroke: rgba(255,255,255,.9); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 10px 24px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--line-dark); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.3rem); font-weight: 600; line-height: 1.1; }
.stat span { display: block; font-size: .88rem; letter-spacing: .04em; margin-top: 8px; color: rgba(239, 226, 194, .75); }
.bg-cream .stat + .stat::before { background: var(--line); }
.bg-cream .stat span { color: var(--muted); }

/* ---------- Image tiles ---------- */
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,13,24,0) 25%, rgba(6,13,24,.88) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile-body { padding: 30px; }
.tile-body h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.tile-body p { color: rgba(255,255,255,.82); font-size: .93rem; margin: 0; }
.tile .tag { background: rgba(220, 195, 142, .2); color: var(--gold-pale); backdrop-filter: blur(6px); margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 110px 0; color: #fff; isolation: isolate; text-align: center; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,13,24,.94) 0%, rgba(10,21,37,.8) 55%, rgba(10,21,37,.6) 100%); }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto 18px; }
.cta-band p { color: rgba(239, 226, 194, .85); max-width: 620px; margin: 0 auto 34px; font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; padding: 120px 0 110px; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6,13,24,.95) 0%, rgba(10,21,37,.85) 45%, rgba(10,21,37,.45) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); max-width: 760px; }
.page-hero p { max-width: 620px; font-size: 1.12rem; color: rgba(239, 226, 194, .88); margin-bottom: 30px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: rgba(239, 226, 194, .7); margin-bottom: 26px; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { opacity: .5; }

/* Sub-navigation cards (anchors) */
.anchor-nav { position: relative; z-index: 3; margin-top: -54px; }
.anchor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.anchor-grid a { display: flex; gap: 14px; align-items: center; padding: 26px 24px; transition: background .25s; position: relative; }
.anchor-grid a + a { border-left: 1px solid var(--line); }
.anchor-grid a:hover { background: var(--cream); }
.anchor-grid a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-gold); transform: scaleX(0); transition: transform .35s; transform-origin: left; }
.anchor-grid a:hover::after { transform: scaleX(1); }
.anchor-grid .d-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--gold-deep); flex-shrink: 0; }
.anchor-grid strong { display: block; color: var(--ink); font-size: .96rem; line-height: 1.3; }
.anchor-grid small { color: var(--muted); font-size: .8rem; }

/* Solution rows */
.solution-row { padding: 90px 0; border-bottom: 1px solid var(--line); }
.solution-row:last-child { border-bottom: 0; }
.solution-num { font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: .7; margin-bottom: 8px; }

/* ---------- Chevron flow (supply chain) ---------- */
.chevrons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 40px; }
.chevron {
  position: relative; border: 0; padding: 22px 30px 22px 46px; text-align: left; color: var(--navy-900);
  background: var(--cream-2); font-weight: 600; font-size: 1.02rem;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%);
  transition: background .3s, color .3s; display: flex; align-items: center; gap: 12px;
}
.chevron:first-child { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); padding-left: 28px; border-radius: 8px 0 0 8px; }
.chevron .ico { width: 22px; height: 22px; color: var(--gold-deep); }
.chevron small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chevron:hover { background: var(--gold-pale); }
.chevron.is-active { background: var(--grad-gold); }
.chevron.is-active .ico, .chevron.is-active small { color: var(--navy-900); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .45s ease both; }

/* ---------- Mock console (dashboards) ---------- */
.console {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden; font-family: var(--sans); color: var(--ink);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--navy-900); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a63; display: block; }
.console-bar i:nth-child(1) { background: #d0806d; } .console-bar i:nth-child(2) { background: #d9b968; } .console-bar i:nth-child(3) { background: #7fb38a; }
.console-bar span { color: rgba(239, 226, 194, .7); font-size: .78rem; margin-left: 10px; letter-spacing: .04em; }
.console-body { display: grid; grid-template-columns: 170px 1fr; min-height: 340px; }
.console-side { background: var(--cream); border-right: 1px solid var(--line); padding: 18px 12px; font-size: .8rem; }
.console-side div { padding: 8px 12px; border-radius: 6px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.console-side div.on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.console-side .ico { width: 15px; height: 15px; }
.console-main { padding: 20px 22px; }
.console-main h5 { margin: 0 0 14px; font-size: .9rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.console-main h5 span { font-size: .7rem; font-weight: 500; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kpi small { display: block; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi b { font-size: 1.08rem; display: block; margin-top: 2px; }
.kpi em { font-style: normal; font-size: .68rem; color: #3f8a5a; font-weight: 600; }
.chart-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.order-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.order-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.order-table td { padding: 10px; border-bottom: 1px solid #f1ece0; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-new { background: #eef2f8; color: #3b5b8c; }
.s-proc { background: #fbf3e2; color: #9a7322; }
.s-check { background: #f3eefa; color: #6b4fa1; }
.s-pick { background: #fdf0ea; color: #b25a32; }
.s-ship { background: #e9f5ee; color: #2f7a4d; }
.console-note { font-size: .74rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- Flow diagram (order management) ---------- */
.flow { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: center; gap: 10px; }
.flow-node {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; text-align: center; min-width: 130px;
  box-shadow: var(--shadow-sm); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.flow-node:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.flow-node .ico { width: 26px; height: 26px; color: var(--gold-deep); margin: 0 auto 8px; display: block; }
.flow-node strong { display: block; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.flow-node small { font-size: .75rem; color: var(--muted); }
.flow-node.dark { background: var(--navy-900); border-color: var(--navy-900); }
.flow-node.dark strong { color: #fff; } .flow-node.dark small { color: var(--gold-light); } .flow-node.dark .ico { color: var(--gold-light); }
.flow-arrow { color: var(--gold); display: grid; place-items: center; }
.flow.flow-inline { grid-template-columns: repeat(3, auto); justify-content: start; }
.flow-arrow .ico { width: 22px; height: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 46px 24px 0; font-family: var(--serif); font-size: 1.18rem; color: var(--ink); position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300;
  font-size: 1.6rem; color: var(--gold-deep); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--navy-900); border-radius: 18px; padding: 46px; box-shadow: var(--shadow-lg); color: rgba(239, 226, 194, .8); }
.form-card h2 { color: #fff; font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 8px; border: 1px solid rgba(220, 195, 142, .25); background: rgba(255,255,255,.05);
  color: #fff; padding: 14px 16px; font: inherit; font-size: .96rem; outline: none; transition: border-color .2s, background .2s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(239, 226, 194, .4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-light); background: rgba(255,255,255,.09); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e39a84; }
.field .err { display: none; font-size: .78rem; color: #f2b8a6; margin-top: 6px; }
.field.invalid .err { display: block; }
.form-note { font-size: .82rem; color: rgba(239, 226, 194, .6); margin: 16px 0 0; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 8px; font-size: .92rem; display: none; }
.form-status.show { display: block; background: rgba(220, 195, 142, .12); border: 1px solid rgba(220, 195, 142, .35); color: var(--gold-pale); }

.office-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.office-card iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(.35) sepia(.15); }
.office-body { padding: 34px; }
.office-body h3 { font-size: 1.5rem; }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; }
.info-row .d-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; }
.info-row .d-ico .ico { width: 20px; height: 20px; }
.info-row small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-row address, .info-row a, .info-row span { font-style: normal; color: var(--ink); font-size: .98rem; line-height: 1.55; }
.info-row a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(239, 226, 194, .65); font-size: .92rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-gold); opacity: .8; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding: 80px 0 56px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand svg { height: 44px; width: auto; }
.footer-brand span { font-family: var(--sans); font-size: 1.55rem; font-weight: 600; color: #fff; letter-spacing: -.025em; white-space: nowrap; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }
.footer-contact address { font-style: normal; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(220, 195, 142, .12); padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-gold); color: var(--navy-900); border: 0; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top .ico { transform: rotate(-90deg); width: 20px; height: 20px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; } .js .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav .nav-link { padding: 10px 9px; font-size: .88rem; }
  .main-nav .nav-link::after { left: 9px; right: 9px; }
  .header-cta .btn { padding: 10px 14px; }
}
@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .brand svg { height: 40px; }
  .brand-name { font-size: 1.42rem; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--nav-top, 112px); left: 0; right: 0; bottom: 0; background: var(--white);
    overflow-y: auto; padding: 16px 24px 40px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease, visibility .3s;
    border-top: 1px solid var(--line);
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav .nav-link { padding: 16px 4px; font-size: 1.02rem; flex: 1; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-link .ico { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--ink); }
  .sub-toggle .ico { width: 18px; height: 18px; transition: transform .25s; }
  .has-dropdown.open .sub-toggle .ico { transform: rotate(180deg); }
  .dropdown, .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
    position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 12px; display: none; flex-basis: 100%;
  }
  .has-dropdown.open .dropdown { display: block; }
  .topbar-items .hide-sm { display: none; }

  .feature-grid, .grid-4, .anchor-grid { grid-template-columns: repeat(2, 1fr); }
  .anchor-grid a:nth-child(3) { border-left: 0; }
  .anchor-grid a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 56px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .process-steps::before, .process-progress { display: none; }
  .flow { grid-template-columns: repeat(4, auto); }
  .flow .flow-arrow:nth-of-type(4) { display: none; }
}
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .split, .split.reverse, .contact-grid, .process-panel, .grid-2 { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media::before { inset: 14px -10px -14px 10px; }
  .split.reverse .split-media::before { inset: 14px 10px -14px -10px; }
  .media-badge, .split.reverse .media-badge { left: 14px; right: auto; bottom: 14px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .stat:nth-child(3)::before { display: none; }
  .chevrons { grid-template-columns: 1fr 1fr; }
  .chevron, .chevron:first-child { clip-path: none; border-radius: 8px; padding: 18px 20px; }
  .form-card { padding: 34px 26px; }
  .process-panel { padding: 30px 26px; gap: 26px; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { display: none; }
  .flow, .flow.flow-inline { grid-template-columns: 1fr; }
  .flow-arrow .ico { transform: rotate(90deg); }
  .flow .flow-arrow:nth-of-type(4) { display: grid; }
  .hero { padding: 100px 0 170px; min-height: 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .topbar { display: none; }
  .main-nav { top: var(--header-h); }
  .feature-grid, .grid-4, .grid-3, .anchor-grid, .hub-grid, .form-grid, .kpis { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .anchor-grid a + a { border-left: 0; border-top: 1px solid var(--line); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .header-cta .btn-quote { display: none; }
  .chevrons { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .hero-badges { gap: 14px; }
  .hero .eyebrow::before, .section-head .eyebrow::before, .section-head .eyebrow::after { display: none; }
  .tile { min-height: 340px; }
  .page-hero { padding: 90px 0 90px; }
  .office-body { padding: 24px; }
}
