/* =========================================================
   Ventro Management — Design System
   Corporate B2B palette: white / navy / charcoal
   Typeface: Inter
   ========================================================= */

:root {
  /* Color */
  --bg: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-navy: #1E3A8A;
  --bg-navy-deep: #16296b;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-on-navy: #FFFFFF;
  --text-on-navy-muted: #C7D2EE;
  --navy: #1E3A8A;
  --navy-hover: #16296b;
  --slate: #3B82F6;
  --slate-tint: #EFF4FE;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.10), 0 2px 8px rgba(17, 24, 39, 0.06);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}

/* ---------- Typography scale ---------- */
h1, .h1 { font-size: clamp(2.25rem, 3.6vw, 3.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.lede { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.65; }
.body-text { color: var(--text-secondary); font-size: 1rem; }
.text-secondary { color: var(--text-secondary); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-alt { background: var(--bg-secondary); }
.section-navy { background: var(--navy); color: var(--text-on-navy); }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-6) 0; }
}

.header-block { max-width: 680px; margin-bottom: var(--space-5); }
.header-block.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy); background: var(--slate-tint); }
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy:hover { background: var(--text-on-navy-muted); }
.btn-ghost-on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-on-navy:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }
.cta-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 32px; height: 32px; }
.icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--slate-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.icon-wrap.on-navy { background: rgba(255,255,255,0.12); }
.icon-wrap.on-navy .icon { stroke: #fff; }
.client-logo { height: 46px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: var(--space-2); display: block; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: var(--space-2); }
.brand-logo { height: 44px; width: auto; display: block; }
.footer-col .brand-logo { height: 44px; }
.nav-links {
  display: flex; align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-primary);
  padding: 6px 0; position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none; border: none; padding: 8px;
  color: var(--text-primary);
}
.nav-toggle .icon { stroke: var(--text-primary); }

@media (max-width: 1240px) {
  .nav-links {
    position: fixed; top: 73px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column; align-items: flex-start;
    padding: var(--space-3);
    gap: var(--space-1);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 14px 8px; border-bottom: 1px solid var(--border); white-space: normal; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  padding: 12px 16px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(17,24,39,0.08);
}
@media (max-width: 640px) {
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: var(--space-2); }
.hero .lede { margin-bottom: var(--space-4); max-width: 560px; }
.hero-visual {
  border-radius: var(--radius-lg);
  background: var(--navy);
  aspect-ratio: 4/3.1;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual svg { width: 70%; height: 70%; }
.photo-placeholder {
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px dashed var(--border-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-align: center;
  padding: var(--space-3);
}
.photo-placeholder .icon { stroke: var(--text-secondary); width: 28px; height: 28px; }
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-2); }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Stats ---------- */
.stats-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--space-4) var(--space-2); text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n+1) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { margin-top: 0; }
.card-link { margin-top: var(--space-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.card-link .icon { width: 16px; height: 16px; }

.division-card { display: flex; flex-direction: column; height: 100%; }

/* ---------- Process / steps ---------- */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); counter-reset: step; }
@media (max-width: 960px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-list { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  padding: var(--space-3) var(--space-2) var(--space-2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.process-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.85rem;
  margin-bottom: var(--space-2);
}
.process-connector {
  display: none;
}
@media (min-width: 961px) {
  .process-list { position: relative; }
}

/* Vertical flow (used on Import & Distribution page) */
.flow-list { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.flow-step:last-child { border-bottom: none; }
.flow-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--slate-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Lists with check icons ---------- */
.check-list { display: flex; flex-direction: column; gap: var(--space-2); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; stroke: var(--navy); margin-top: 2px; }

.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 9px 16px;
  background: var(--slate-tint);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.field .hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--slate-tint); }
textarea { resize: vertical; min-height: 110px; }
fieldset { border: none; padding: 0; margin: 0 0 var(--space-2); }
legend { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (max-width: 640px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-item { display: flex; align-items: center; gap: 8px; }
.checkbox-item input { width: auto; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: var(--space-3) 0; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1rem; color: var(--text-primary);
}
.faq-question .icon { transition: transform 0.2s ease; stroke: var(--navy); width: 20px; height: 20px; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  color: var(--text-secondary);
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: var(--space-3); }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 900px) { .cta-split { grid-template-columns: 1fr; } }
.cta-split-item { padding: var(--space-3); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); }
.cta-split-item h3 { color: #fff; margin-bottom: 8px; }
.cta-split-item p { color: var(--text-on-navy-muted); margin-bottom: var(--space-2); }

/* ---------- Timeline (Past Experience) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 140px 1fr; gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 8px; } }
.timeline-tag { font-weight: 700; color: var(--navy); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.footer-top { padding: var(--space-6) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-primary); margin-bottom: var(--space-2); }
.footer-col a, .footer-col p { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-3) 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.825rem; color: var(--text-secondary);
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.divider { height: 1px; background: var(--border); border: none; margin: var(--space-5) 0; }
.note-callout {
  background: var(--slate-tint);
  border: 1px solid #cfe0fc;
  border-radius: var(--radius);
  padding: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-primary);
}
