/* ============================================================
   JIAZC — Global Import & Export Trade
   Shared stylesheet · design system + components
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — deep blue + vivid amber */
  --blue-900: #061b48;
  --blue-800: #0a2a6b;
  --blue-700: #123a8f;
  --blue-600: #1f4fd6;
  --blue-500: #3a6bf0;
  --blue-100: #e7eefc;
  --blue-50:  #f3f6fe;

  --amber-600: #e0700a;
  --amber-500: #f5800a;
  --amber-400: #ffb02e;
  --amber-100: #fff1da;

  --ink:       #14213a;
  --ink-soft:  #43506b;
  --muted:     #6b7896;
  --line:      #e3e8f2;
  --line-soft: #eef1f8;
  --bg:        #ffffff;
  --bg-alt:    #f6f8fd;
  --bg-deep:   #061b48;
  --white:     #ffffff;
  --ok:        #16a34a;
  --err:       #dc2626;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0a2a6b 0%, #1f4fd6 60%, #123a8f 100%);
  --grad-amber: linear-gradient(135deg, #ffb02e 0%, #f5800a 100%);
  --grad-hero:  linear-gradient(120deg, rgba(6,27,72,0.94) 0%, rgba(18,58,143,0.86) 45%, rgba(31,79,214,0.74) 100%);
  --grad-soft:  linear-gradient(180deg, #f6f8fd 0%, #ffffff 100%);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-xs:   0.78rem;
  --fs-sm:   0.88rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.35rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  3.75rem;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radius + shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(6,27,72,0.06), 0 2px 6px rgba(6,27,72,0.05);
  --sh-md: 0 6px 20px rgba(6,27,72,0.08), 0 2px 6px rgba(6,27,72,0.05);
  --sh-lg: 0 18px 50px rgba(6,27,72,0.14), 0 6px 16px rgba(6,27,72,0.08);
  --sh-amber: 0 10px 26px rgba(245,128,10,0.32);
  --sh-blue: 0 10px 26px rgba(31,79,214,0.28);

  --maxw: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }
p { color: var(--ink-soft); }

/* ---------- A11y focus ---------- */
:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--blue-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  z-index: 1200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-soft { background: var(--grad-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-amber);
  border-radius: 2px;
}
.section-head { max-width: 680px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(1.7rem, 4vw, var(--fs-2xl)); margin-bottom: var(--sp-3); }
.section-sub { font-size: var(--fs-md); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-amber); color: #2a1500; box-shadow: var(--sh-amber); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(245,128,10,0.42); }
.btn-secondary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); }
.btn-secondary:hover { transform: translateY(-3px); background: var(--blue-700); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-700); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: var(--fs-base); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--blue-700);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--amber-600); gap: 12px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--sh-md); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: var(--sp-2); }
.nav-list a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-list a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-list a[aria-current="page"] { color: var(--blue-700); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 2px;
  height: 3px;
  background: var(--grad-amber);
  border-radius: 3px;
}

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
}
.lang-toggle button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.header-cta { display: inline-flex; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  border: 1px solid var(--line);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.2px;
  background: var(--blue-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--grad-brand);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grad-hero),
    url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1600&q=70");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(255,176,46,0.22), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(58,107,240,0.3), transparent 60%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-9) 0 var(--sp-8);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-5);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-400); box-shadow: 0 0 0 4px rgba(255,176,46,0.25); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.4vw, var(--fs-4xl));
  margin-bottom: var(--sp-5);
}
.hero h1 .accent { color: var(--amber-400); }
.hero-sub {
  color: rgba(255,255,255,0.86);
  font-size: var(--fs-md);
  max-width: 540px;
  margin-bottom: var(--sp-6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: #fff;
}
.hero-stat .num span { color: var(--amber-400); }
.hero-stat .label { font-size: var(--fs-xs); color: rgba(255,255,255,0.72); letter-spacing: 0.02em; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-lg);
}
.hero-card h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.hero-cat-list { display: grid; gap: var(--sp-3); }
.hero-cat {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: rgba(255,255,255,0.94);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-cat:hover { transform: translateX(6px); box-shadow: var(--sh-md); }
.hero-cat .ico {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-cat .ico svg { width: 26px; height: 26px; }
.hero-cat .t { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--fs-sm); }
.hero-cat .d { font-size: var(--fs-xs); color: var(--muted); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--grad-brand);
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 80% at 90% 0%, rgba(255,176,46,0.2), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(58,107,240,0.34), transparent 60%);
}
.page-hero-inner { padding: var(--sp-8) 0; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, var(--fs-3xl)); margin-bottom: var(--sp-4); }
.page-hero p { color: rgba(255,255,255,0.85); font-size: var(--fs-md); }
.breadcrumb { display: flex; gap: 8px; font-size: var(--fs-xs); color: rgba(255,255,255,0.7); margin-bottom: var(--sp-4); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--amber-400); }
.breadcrumb .sep { opacity: 0.5; }

/* ============================================================
   TRUST / LOGO BAR
   ============================================================ */
.trust-bar { padding: var(--sp-6) 0; border-bottom: 1px solid var(--line-soft); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-5); }
.trust-label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.trust-items { display: flex; flex-wrap: wrap; gap: var(--sp-6); }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.trust-item svg { width: 22px; height: 22px; color: var(--blue-600); }

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--blue-100); }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); color: var(--blue-700); }
.stat-card .num span { color: var(--amber-500); }
.stat-card .label { color: var(--muted); font-size: var(--fs-sm); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cards-grid { display: grid; gap: var(--sp-5); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.cat-card .media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--grad-brand);
  overflow: hidden;
}
.cat-card .media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.5s var(--ease);
}
.cat-card:hover .media img { transform: scale(1.06); }
.cat-card .media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,27,72,0.05), rgba(6,27,72,0.55));
}
.cat-card .badge-ico {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  box-shadow: var(--sh-sm);
}
.cat-card .badge-ico svg { width: 28px; height: 28px; }
.cat-card .body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.cat-card p { font-size: var(--fs-sm); margin-bottom: var(--sp-4); flex: 1; }
.cat-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-4); }
.tag {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* Image-failure fallback: branded media containers keep their
   gradient background; add a subtle dot texture + logo glyph so a
   missing remote image still reads as an intentional placeholder. */
.cat-card .media[data-img-failed],
.split-media[data-img-failed],
.product-media[data-img-failed],
.mission-media[data-img-failed] {
  background-image:
    radial-gradient(rgba(255,255,255,0.16) 1.5px, transparent 1.6px),
    var(--grad-brand);
  background-size: 18px 18px, cover;
  background-position: center, center;
}
.cat-card .media[data-img-failed]::before,
.split-media[data-img-failed]::before,
.product-media[data-img-failed]::before,
.mission-media[data-img-failed]::before {
  content: "JIAZC";
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.5);
}

/* Color accents per category icon bg */
.ico-apparel { background: linear-gradient(135deg,#eaf0ff,#dbe6ff); color: var(--blue-600); }
.ico-toys    { background: linear-gradient(135deg,#fff1da,#ffe2b3); color: var(--amber-600); }
.ico-sport   { background: linear-gradient(135deg,#e3f7ee,#cdeede); color: #119a5b; }

/* ============================================================
   FEATURE / WHY-US
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.feature .ico {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
  box-shadow: var(--sh-blue);
}
.feature .ico svg { width: 28px; height: 28px; color: #fff; }
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.feature p { font-size: var(--fs-sm); }

/* Split feature (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--grad-brand);
  aspect-ratio: 4/3;
  position: relative;
}
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.check-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-size: var(--fs-sm); }
.check-list li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ok); margin-top: 2px; }
.check-list li strong { color: var(--ink); font-family: var(--font-display); }

/* ============================================================
   GLOBAL REACH BAND
   ============================================================ */
.reach {
  position: relative;
  color: #fff;
  background: var(--bg-deep);
  isolation: isolate;
  overflow: hidden;
}
.reach::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 80% 20%, rgba(31,79,214,0.4), transparent 60%),
    radial-gradient(40% 60% at 15% 90%, rgba(245,128,10,0.22), transparent 60%);
}
.reach-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-8); align-items: center; }
.reach h2 { color: #fff; font-size: clamp(1.7rem,4vw,var(--fs-2xl)); margin-bottom: var(--sp-4); }
.reach p { color: rgba(255,255,255,0.82); margin-bottom: var(--sp-5); }
.reach-stats { display: flex; gap: var(--sp-7); flex-wrap: wrap; }
.reach-stats .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--amber-400); }
.reach-stats .label { font-size: var(--fs-xs); color: rgba(255,255,255,0.7); }
.map-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.map-wrap svg { width: 100%; height: auto; }

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); position: relative; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: #fff;
  background: var(--grad-amber);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
  box-shadow: var(--sh-amber);
}
.step .ico { margin-bottom: var(--sp-3); }
.step .ico svg { width: 30px; height: 30px; color: var(--blue-600); }
.step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 80% at 85% 10%, rgba(255,176,46,0.28), transparent 60%),
    radial-gradient(40% 80% at 10% 90%, rgba(58,107,240,0.4), transparent 60%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem,4vw,var(--fs-2xl)); margin-bottom: var(--sp-4); max-width: 680px; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: var(--sp-6); max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.product-block { padding: var(--sp-8) 0; border-bottom: 1px solid var(--line-soft); }
.product-block:last-child { border-bottom: none; }
.product-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.product-split.reverse .product-media { order: 2; }
.product-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/3;
  position: relative;
  background: var(--grad-brand);
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-media .pill {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,0.95);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--blue-800);
  box-shadow: var(--sh-sm);
}
.product-media .pill svg { width: 20px; height: 20px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.spec {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.spec svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue-600); }
.spec .t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.spec .d { font-size: var(--fs-xs); color: var(--muted); }

/* ============================================================
   CAPABILITIES PAGE
   ============================================================ */
.trade-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.trade-table th, .trade-table td { padding: var(--sp-4) var(--sp-5); text-align: left; font-size: var(--fs-sm); }
.trade-table thead th { background: var(--blue-800); color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; }
.trade-table tbody tr { border-top: 1px solid var(--line); }
.trade-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.trade-table td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--blue-800); }

/* FAQ / accordion */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.faq-item[open] { box-shadow: var(--sh-md); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-50);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item summary .icon svg { width: 16px; height: 16px; color: var(--blue-600); }
.faq-item[open] summary .icon { transform: rotate(45deg); background: var(--grad-amber); }
.faq-item[open] summary .icon svg { color: #fff; }
.faq-item .answer { padding: 0 var(--sp-5) var(--sp-5); }
.faq-item .answer p { font-size: var(--fs-sm); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--sp-7); align-items: start; }
.contact-info { display: grid; gap: var(--sp-4); }
.info-card {
  display: flex;
  gap: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.info-card .ico {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  display: grid; place-items: center;
  box-shadow: var(--sh-blue);
}
.info-card .ico svg { width: 24px; height: 24px; color: #fff; }
.info-card h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.info-card p, .info-card a { font-size: var(--fs-md); color: var(--ink); font-weight: 600; font-family: var(--font-display); }
.info-card a:hover { color: var(--blue-700); }
.info-card .sub { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; font-family: var(--font-body); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, var(--sp-7));
  box-shadow: var(--sh-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(58,107,240,0.12);
}
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: var(--err);
  background: #fff5f5;
}
.field .error-msg {
  font-size: var(--fs-xs);
  color: var(--err);
  font-weight: 600;
  min-height: 1em;
  display: none;
}
.field .error-msg.show { display: block; }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); }

.form-success {
  display: none;
  align-items: center;
  gap: var(--sp-4);
  background: linear-gradient(135deg,#e8f8ef,#d6f3e4);
  border: 1px solid #b7e7cc;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  color: #0f6b3c;
  margin-bottom: var(--sp-5);
}
.form-success.show { display: flex; animation: pop 0.4s var(--ease); }
.form-success svg { width: 40px; height: 40px; flex-shrink: 0; color: var(--ok); }
.form-success h3 { color: #0f6b3c; font-size: var(--fs-md); margin-bottom: 2px; }
.form-success p { color: #18794a; font-size: var(--fs-sm); }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hours-list { display: grid; gap: var(--sp-2); }
.hours-list li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.hours-list .time { color: var(--muted); }

/* ============================================================
   VALUES (about)
   ============================================================ */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.value {
  display: flex; gap: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.value .ico { width: 50px; height: 50px; flex-shrink: 0; border-radius: var(--r-md); display: grid; place-items: center; background: var(--blue-50); }
.value .ico svg { width: 28px; height: 28px; color: var(--blue-600); }
.value h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.value p { font-size: var(--fs-sm); }

/* Timeline */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: var(--sp-6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: var(--sp-6); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) + 1px); top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-amber); box-shadow: 0 0 0 4px var(--amber-100);
}
.tl-item .year { font-family: var(--font-display); font-weight: 800; color: var(--blue-700); font-size: var(--fs-md); }
.tl-item h3 { font-size: var(--fs-md); margin: 4px 0; }
.tl-item p { font-size: var(--fs-sm); }

/* Mission split */
.mission-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/3;
  position: relative;
  background: var(--grad-brand);
}
.mission-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,0.78); padding-top: var(--sp-8); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer-brand img { height: 42px; filter: brightness(0) invert(1); margin-bottom: var(--sp-4); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: var(--sp-4); }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--amber-500); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: rgba(255,255,255,0.72); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--amber-400); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber-400); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: var(--sp-5) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
}
.footer-bottom a:hover { color: var(--amber-400); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero-visual { max-width: 520px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reach-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    padding: var(--sp-4);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    margin: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a { padding: 0.85rem 1rem; border-radius: var(--r-md); font-size: var(--fs-md); }
  .nav-list a[aria-current="page"] { background: var(--blue-50); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .header-cta { display: none; }
  .feature-grid, .cards-3, .cards-2, .value-grid { grid-template-columns: 1fr; }
  .split, .product-split, .product-split.reverse, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .product-split.reverse .product-media { order: 0; }
  .split-media, .mission-media, .product-media { order: -1; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.8rem, var(--maxw)); }
  .section { padding: var(--sp-8) 0; }
  .stats-grid, .steps, .form-grid, .spec-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--sp-5); }
  .hero-cta .btn { flex: 1; }
  .trade-table { display: block; overflow-x: auto; white-space: nowrap; }
  .footer-bottom { flex-direction: column; }
}
