/* ============================================================
   VERTEX Global Trade - Professional B2B Stylesheet
   ============================================================ */

:root {
  --navy-900: #0a1c33;
  --navy-800: #0f2745;
  --navy-700: #16355c;
  --navy-600: #1e4577;
  --gold-500: #c9a227;
  --gold-400: #d9b842;
  --gold-300: #e8cf7a;
  --ink-900: #14243a;
  --ink-700: #33445c;
  --ink-500: #5b6b80;
  --ink-400: #8695a8;
  --line: #e3e9f0;
  --bg-soft: #f5f8fc;
  --bg-softer: #fafcfe;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(15, 39, 69, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 39, 69, 0.10);
  --shadow-lg: 0 24px 70px rgba(10, 28, 51, 0.16);
  --radius: 10px;
  --maxw: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-500); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.section-lead {
  max-width: 640px;
  color: var(--ink-500);
  font-size: 1.05rem;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.32);
}
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline-dark { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: 0.06em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-weight: 800;
  font-size: 1.1rem;
}
.brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold-500);
  font-weight: 700;
  line-height: 1;
  margin-top: 3px;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-700); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 11px 22px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy-800); border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.14), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(79, 130, 194, 0.18), transparent 45%);
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 560px; height: 560px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255,255,255,0.02), 0 0 0 180px rgba(255,255,255,0.015);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding: 96px 0 100px;
}
.hero .eyebrow { color: var(--gold-400); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold-400); }
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-trust .item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 800;
}
.hero-trust .item span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h4 { color: var(--white); margin-bottom: 20px; font-size: 1.05rem; }
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}
.metric-row:last-child { border-bottom: none; }
.metric-row .label { color: rgba(255,255,255,0.7); }
.metric-row .value { color: var(--gold-400); font-weight: 700; }
.hero-badge {
  position: absolute;
  bottom: -26px; left: -22px;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 16px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  display: block;
  font-size: 2.1rem;
  color: var(--navy-800);
  font-weight: 800;
  line-height: 1.1;
}
.stat-item span {
  font-size: 0.84rem;
  color: var(--ink-500);
  letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* About intro */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.feature-list { margin-top: 28px; display: grid; gap: 16px; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 0.96rem; color: var(--ink-700);
}
.check {
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  background: rgba(201,162,39,0.15);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; margin-top: 2px;
}
.image-panel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
}
.image-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(255,255,255,0.04) 38px, rgba(255,255,255,0.04) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(255,255,255,0.04) 38px, rgba(255,255,255,0.04) 39px);
}
.image-panel .mono {
  position: relative; z-index: 2; color: rgba(255,255,255,0.9);
  font-size: 7rem; font-weight: 800; letter-spacing: -0.05em;
}
.image-panel .caption {
  position: absolute; left: 26px; bottom: 24px; z-index: 2;
  color: var(--gold-400); font-size: 0.8rem; letter-spacing: 0.15em; font-weight: 700;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.92rem; }

/* Product cards */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-thumb {
  height: 210px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-300);
  font-size: 3.4rem;
  position: relative;
}
.product-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 18px, rgba(255,255,255,0.03) 18px, rgba(255,255,255,0.03) 36px);
}
.product-thumb span { position: relative; z-index: 2; }
.product-body { padding: 24px; }
.product-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.product-body p { font-size: 0.88rem; margin-bottom: 16px; }
.product-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-500);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 20px; }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  font-weight: 800; font-size: 1rem; margin-bottom: 20px;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute; left: 60%; top: 46px; width: 80%; height: 1px;
  border-top: 2px dashed var(--line);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.quote-mark { color: var(--gold-400); font-size: 2.6rem; line-height: 1; font-family: Georgia, serif; }
.quote-card p { font-style: italic; color: var(--ink-700); margin: 12px 0 22px; font-size: 0.96rem; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.quote-author strong { display: block; font-size: 0.9rem; color: var(--ink-900); }
.quote-author span { font-size: 0.78rem; color: var(--ink-400); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -60px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.25);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; z-index: 2; flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,0.72); max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand .brand { color: var(--white); margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.03em; }
.footer-col a, .footer-col li {
  display: block; font-size: 0.88rem; color: rgba(255,255,255,0.62);
  margin-bottom: 11px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .visits { color: var(--gold-400); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: 8%; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.2);
}
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 620px; margin-top: 12px; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--ink-900); margin-bottom: 8px;
}
.form-group label .req { color: #c0392b; }
.form-control {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: inherit; font-size: 0.92rem;
  color: var(--ink-900);
  background: var(--bg-softer);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(30,69,119,0.1);
  background: var(--white);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.8rem; color: var(--ink-400); margin-top: 6px; }
.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-message.success { display: block; background: #eaf7ee; color: #1e7a3c; border: 1px solid #bfe3c9; }
.form-message.error { display: block; background: #fdecec; color: #a52828; border: 1px solid #f3c2c2; }
.form-message.info { display: block; background: #eef3fb; color: var(--navy-700); border: 1px solid #cfdcf0; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }

.info-list { display: grid; gap: 16px; margin-top: 26px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-radius: 8px;
}
.info-item .ico {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 8px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500); font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.info-item strong { display: block; color: var(--ink-900); font-size: 0.92rem; }
.info-item span, .info-item a { font-size: 0.88rem; color: var(--ink-500); }

/* ---------- Table (products page) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  background: var(--navy-800); color: var(--white);
  text-align: left; padding: 15px 18px; font-weight: 600;
  white-space: nowrap;
}
.data-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--ink-700); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table .pill {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: rgba(201,162,39,0.14); color: #8a6d12;
  font-size: 0.75rem; font-weight: 700;
}

/* ---------- Values ---------- */
.value-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.value-item:last-child { border-bottom: none; }
.value-item .num { color: var(--gold-500); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.1em; }
.value-item h3 { margin: 8px 0; }
.value-item p { font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 80px; }
  .hero-visual { max-width: 520px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .step::after { display: none; }
}
@media (max-width: 760px) {
  .main-nav, .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav.open a.active::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat-item:nth-child(2) { border-right: none; }
  .grid-3, .grid-4, .steps, .grid-2, .form-row { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; flex-wrap: wrap; }
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.lang-switch button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 11px;
  color: var(--ink-500);
  transition: background 0.2s, color 0.2s;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--navy-700); }
.lang-switch button.active {
  background: var(--navy-700);
  color: #fff;
}
@media (max-width: 760px) {
  .lang-switch button { padding: 7px 8px; font-size: 0.7rem; }
}
