/* ============================================================
   MBI-ICT — Corporate website styles
   Inspired by Demcon: sober, technical, engineering aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy:        #000080;
  --navy-deep:   #00005a;
  --navy-mid:    #1a1a9f;
  --lavender:    #9999cd;
  --lavender-lt: #cccce6;
  --lavender-bg: #f0f0f8;
  --accent:      #00b8a9;   /* signaal-teal voor CTA/security */
  --accent-dark: #009488;
  --ink:         #14142b;
  --muted:       #5a5a72;
  --line:        #e3e3ee;
  --bg:          #ffffff;
  --bg-alt:      #f7f7fb;
  --white:       #ffffff;
  --radius:      4px;
  --maxw:        1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }
p  { color: var(--muted); }
a  { color: var(--navy); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 38px; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  border: none; background: #fff; padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .15s;
}
.lang-switch button.active { background: var(--navy); color: #fff; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #00005a 0%, #000080 55%, #1a1a9f 100%);
  color: #fff; padding: 110px 0 96px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; z-index: 0;
  background: radial-gradient(circle, rgba(0,184,169,.18) 0%, transparent 65%);
  pointer-events: none;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .7; }
.hero-inner { position: relative; z-index: 3; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .hl { color: var(--accent); }
.hero p { color: rgba(255,255,255,.82); font-size: 19px; max-width: 600px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 48px; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge b { font-size: 28px; font-weight: 800; color: #fff; }
.hero-badge span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- Logo blocks decoration ---------- */
.blocks { display: inline-flex; gap: 3px; }
.blocks i { width: 12px; height: 12px; display: block; }

/* ---------- Service grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: all .2s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.card:hover { box-shadow: 0 12px 32px rgba(0,0,80,.09); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 46px; height: 46px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--lavender-bg); border-radius: var(--radius); color: var(--navy);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 14px; }
.card .more { font-size: 14px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 5px; }
.card .more::after { content: '\2192'; transition: transform .15s; }
.card:hover .more::after { transform: translateX(3px); }

/* Service card accent for AI */
.card.card-ai::before { background: var(--accent); }
.card.card-ai .icon { background: rgba(0,184,169,.12); color: var(--accent-dark); }
.card.card-ai .more { color: var(--accent-dark); }

/* ---------- Section header ---------- */
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { font-size: 17px; margin-top: 12px; }

/* ---------- Markets (image cards, Demcon-style) ---------- */
.market {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end;
  background: var(--navy); cursor: pointer; transition: all .3s ease;
}
.market img.m-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease; z-index: 1;
}
.market::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,90,.15) 0%, rgba(0,0,80,.55) 55%, rgba(0,0,60,.92) 100%);
  transition: background .3s ease;
}
.market:hover img.m-bg { transform: scale(1.06); }
.market:hover::after { background: linear-gradient(180deg, rgba(0,0,90,.25) 0%, rgba(0,0,80,.65) 55%, rgba(0,0,60,.95) 100%); }
.market .m-content { position: relative; z-index: 3; padding: 26px; color: #fff; width: 100%; }
.market .m-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; }
.market h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.market p { font-size: 14px; color: rgba(255,255,255,.85); }
.market .m-arrow {
  position: absolute; top: 22px; right: 22px; z-index: 3; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: translateX(-6px); transition: all .3s ease;
}
.market:hover .m-arrow { opacity: 1; transform: none; }
.markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.markets-grid .market:first-child { grid-column: span 2; }
@media (max-width: 900px) { .markets-grid { grid-template-columns: 1fr; } .markets-grid .market:first-child { grid-column: span 1; } }

/* ---------- IT/OT band ---------- */
.band { background: var(--navy); color: #fff; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.82); }
.itot-visual {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  margin-top: 40px;
}
.itot-col { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 28px; }
.itot-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.itot-col ul { list-style: none; }
.itot-col li { font-size: 14px; color: rgba(255,255,255,.78); padding: 5px 0; padding-left: 18px; position: relative; }
.itot-col li::before { content: '\2013'; position: absolute; left: 0; color: var(--accent); }
.itot-bridge {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px;
}

/* ---------- Security ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cred {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff;
  border-left: 4px solid var(--accent);
}
.cred b { display: block; font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.cred span { font-size: 14px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; }
.stat b { display: block; font-size: 40px; font-weight: 800; color: var(--navy); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Cases ---------- */
.case {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: all .2s;
}
.case:hover { box-shadow: 0 12px 32px rgba(0,0,80,.09); transform: translateY(-3px); }
.case-top { height: 120px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); position: relative; overflow: hidden; }
.case-top::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.case-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.case-body { padding: 24px; }
.case-body h3 { font-size: 17px; margin-bottom: 8px; }
.case-body p { font-size: 14px; }

/* ---------- Contact / Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; margin-bottom: 16px; display: none; }
.form-msg.ok { background: #dcfce7; color: #15803d; display: block; }
.form-msg.err { background: #fee2e2; color: #b91c1c; display: block; }

.contact-info { }
.contact-info h3 { margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .ci-icon { width: 22px; height: 22px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.contact-item b { display: block; font-size: 14px; color: var(--ink); }
.contact-item span, .contact-item a { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand img { height: 40px; margin-bottom: 18px; background: #fff; padding: 8px 12px; border-radius: var(--radius); display: block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Fallback: if JS/observer doesn't run, still show content */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .creds, .stats, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .itot-visual { grid-template-columns: 1fr; }
  .itot-bridge { margin: 0 auto; transform: rotate(90deg); }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* Mobile header: hide the big CTA button, keep hamburger + lang switch */
@media (max-width: 720px) {
  .nav-actions .btn-primary { display: none; }
  .brand img { height: 32px; }
  .nav { height: 64px; }
  .nav-links { top: 64px; }
  .nav-actions { gap: 10px; }
  /* Show CTA inside the mobile menu instead */
  .nav-links li.nav-cta-mobile { display: block; }
  .nav-links li.nav-cta-mobile a { display: inline-block; background: var(--accent); color:#fff; padding: 10px 18px; border-radius: var(--radius); font-weight:600; }
}
@media (min-width: 721px) {
  .nav-links li.nav-cta-mobile { display: none; }
}
.hero-badges { gap: 18px 26px; }
@media (max-width: 480px) {
  .hero-badges { gap: 14px 20px; }
  .hero-badge b { font-size: 24px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
}

/* ============================================================
   INTERNAL PAGES (multi-page)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #00005a 0%, #000080 60%, #1a1a9f 100%);
  color: #fff; padding: 72px 0 60px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 14px; max-width: 780px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 18px; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; margin-bottom: 20px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,.4); }

.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 28px 0 10px; color: var(--navy); }
.prose p { margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.prose ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 15px; color: var(--muted); }
.prose ul li::before { content: '\2013'; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.prose strong { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-img { border-radius: var(--radius); overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.approach-steps { counter-reset: step; margin-top: 24px; }
.approach-step { display: flex; gap: 18px; margin-bottom: 20px; }
.approach-step .num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; counter-increment: step;
}
.approach-step .num::before { content: counter(step); }
.approach-step h4 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.approach-step p { font-size: 14px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { background: var(--lavender-bg); color: var(--navy); border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 600; }

.related { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 40px; }
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }

.svc-list-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: all .2s; margin-bottom: 16px;
}
.svc-list-item:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,80,.08); }
.svc-list-item .icon { width: 52px; height: 52px; background: var(--lavender-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.svc-list-item .icon svg { width: 26px; height: 26px; }
.svc-list-item h3 { margin-bottom: 6px; }
.svc-list-item p { font-size: 14px; margin: 0; }
.svc-list-item .go { color: var(--navy); font-weight: 700; font-size: 20px; }
@media (max-width: 700px){ .svc-list-item{ grid-template-columns: auto 1fr; } .svc-list-item .go{ display:none; } }
