/* =====================================================
   VIS Networks — Global Stylesheet (theme, reset, layout)
   Shared across every page. Header & footer have their own
   files: header.css and footer.css. Each page also loads
   its own page-specific stylesheet.
   ===================================================== */

:root {
  --red:        #d90429;
  --red-dark:   #9d0208;
  --red-soft:   #ffe5ea;
  --ink:        #14142b;
  --ink-soft:   #2b2b40;
  --muted:      #5a5a72;
  --bg:         #ffffff;
  --bg-soft:    #f5f7fa;
  --bg-dark:    #0f1020;
  --line:       #e6e8ee;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 10px 30px rgba(20, 20, 43, 0.08);
  --shadow-lg:  0 20px 50px rgba(20, 20, 43, 0.14);
  --container:  1200px;
  --font:       'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.section { padding: 90px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--bg-dark); color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title .accent { color: var(--red); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(217, 4, 41, .28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--red); color: #fff; }
.btn-arrow::after { content: "→"; font-weight: 700; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

.icon-badge {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #14142b 0%, #2a1030 60%, #5a0716 100%);
  color: #fff;
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,4,41,.45), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
.page-hero p { margin-top: 14px; max-width: 640px; color: rgba(255,255,255,.8); font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.cta-band p { margin: 14px auto 28px; max-width: 560px; opacity: .92; }

/* ---------- Animations on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .page-hero { padding: 116px 0 56px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 22px; }
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 40px 0; }
  .section-head { margin-bottom: 32px; }
  .page-hero { padding: 100px 0 46px; }
  .page-hero p { font-size: 1rem; }
  .lead { font-size: 1.05rem; }
  /* full-width, comfortable tap targets on phones */
  .hero-actions .btn,
  .cta-band .btn { width: 100%; justify-content: center; }
  .btn { padding: 14px 22px; }
}
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .section-title { font-size: 1.6rem; }
  .eyebrow { font-size: .72rem; }
}
