/* ============================================================
   RTM Fulfilment - gedeelde styling
   Modern Tech Minimal · ink/royal/azure palette
   ============================================================ */

:root {
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --canvas: #FAFBFC;
  --white: #FFFFFF;
  --royal: #1D4ED8;
  --royal-dark: #1E40AF;
  --azure: #60A5FA;
  --ice: #DBEAFE;
  --ice-soft: #EFF6FF;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
  --shadow-lg: 0 1px 2px rgba(15,23,42,0.04), 0 24px 48px rgba(15,23,42,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--royal); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--royal); }

.gradient-text {
  background: linear-gradient(90deg, var(--royal) 0%, var(--azure) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--slate-500); line-height: 1.6; max-width: 620px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 500; font-size: 15px;
  cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--royal); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--slate-200); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 8px 0; }
.btn-ghost:hover { color: var(--royal); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HEADER ============ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 252, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--slate-200);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* ===== Homepage: header loopt vloeiend over in de foto - donkere fade-down ===== */
body[data-page="home"]:not(.scrolled) header.site {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.50) 50%, rgba(15, 23, 42, 0.20) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}
/* Op mobiel: SOLIDE donker paneel als menubalk - duidelijk zichtbaar, geen fade */
@media (max-width: 980px) {
  body[data-page="home"]:not(.scrolled) header.site {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}
body[data-page="home"]:not(.scrolled) header.site .logo {
  color: var(--white);
}
body[data-page="home"]:not(.scrolled) header.site .logo-mark {
  background: linear-gradient(135deg, var(--royal) 0%, var(--azure) 100%);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 4px 10px rgba(29,78,216,0.30);
}
body[data-page="home"]:not(.scrolled) header.site nav.primary a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}
body[data-page="home"]:not(.scrolled) header.site nav.primary a:hover,
body[data-page="home"]:not(.scrolled) header.site nav.primary a.active {
  color: var(--white);
}
body[data-page="home"]:not(.scrolled) header.site nav.primary .nav-arrow { color: rgba(255,255,255,0.70); }
/* Dropdown-menu items moeten altijd donker zijn (witte achtergrond) */
body[data-page="home"]:not(.scrolled) header.site nav.primary .nav-dropdown-menu a {
  color: var(--slate-700) !important;
  text-shadow: none !important;
}
body[data-page="home"]:not(.scrolled) header.site nav.primary .nav-dropdown-menu a:hover {
  color: var(--ink) !important;
  background: var(--slate-100);
}
body[data-page="home"]:not(.scrolled) header.site nav.primary .nav-dropdown-menu a.featured {
  color: var(--royal) !important;
}
body[data-page="home"]:not(.scrolled) header.site nav.primary .nav-dropdown-menu a.featured:hover {
  color: var(--royal-dark) !important;
  background: var(--ice-soft);
}
body[data-page="home"]:not(.scrolled) header.site .header-cta .lang,
body[data-page="home"]:not(.scrolled) header.site .header-cta .login {
  color: rgba(255, 255, 255, 0.86);
}
body[data-page="home"]:not(.scrolled) header.site .header-cta .login:hover {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}
body[data-page="home"]:not(.scrolled) header.site .header-cta .demo-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
}
body[data-page="home"]:not(.scrolled) header.site .header-cta .demo-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}
body[data-page="home"]:not(.scrolled) header.site .header-cta .demo-btn svg { color: var(--azure); }
body[data-page="home"]:not(.scrolled) header.site .header-cta .btn-primary {
  background: var(--white);
  color: var(--ink);
}
body[data-page="home"]:not(.scrolled) header.site .header-cta .btn-primary:hover {
  background: var(--ice);
  color: var(--ink);
}
/* Hamburger streepjes wit op donkere glass-header */
body[data-page="home"]:not(.scrolled) .hamburger span { background: var(--white); }
/* Mobile menu dropdown: ALTIJD solid donker blauw, ook op homepage (geen hero doorschijnen) */
body[data-page="home"]:not(.scrolled) .mobile-menu {
  background: #0B1220 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-page="home"]:not(.scrolled) .mobile-nav a {
  color: rgba(255,255,255,0.92);
  border-bottom-color: rgba(255,255,255,0.10);
}
body[data-page="home"]:not(.scrolled) .mobile-nav-cta {
  background: rgba(255,255,255,0.10) !important;
  color: var(--white) !important;
}
body[data-page="home"]:not(.scrolled) .mobile-nav-cta-primary {
  background: var(--white) !important;
  color: var(--ink) !important;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0; }
/* Nieuwe logo image (PNG met transparante achtergrond) */
.logo-img-wrap { display: inline-flex; align-items: center; padding: 0; background: transparent; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-img-footer { height: 56px; }
/* Logo blijft in eigen kleuren - geen filter inversie meer */
@media (max-width: 980px) {
  .logo-img { height: 36px; }
  .logo-img-footer { height: 48px; }
}
nav.primary { display: flex; gap: 28px; }
nav.primary a { color: var(--slate-700); font-weight: 500; font-size: 14.5px; transition: color 0.15s; }
nav.primary a:hover, nav.primary a.active { color: var(--ink); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .phone { font-size: 14px; color: var(--slate-500); font-weight: 500; }
.header-cta .phone:hover { color: var(--ink); }
.header-cta .lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate-700); font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.header-cta .lang svg { border-radius: 2px; }
.header-cta .login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--slate-700); font-weight: 500; transition: all 0.15s; }
.header-cta .login:hover { color: var(--ink); background: var(--slate-100); }
.header-cta .demo-btn { font-size: 14px; padding: 10px 16px; gap: 6px; }
.header-cta .demo-btn svg { color: var(--royal); }
.header-cta .btn-primary { font-size: 14px; padding: 10px 18px; }

/* ============ SECTIONS ============ */
section { padding: 100px 0; }
section.tight { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 20px; }

/* ============ PAGE HERO (innerlijke hero voor sub-pagina's) ============ */
.page-hero { position: relative; padding: 100px 0 60px; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--ice) 0%, transparent 60%);
  z-index: 0; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 28px; margin-bottom: 24px; max-width: 900px; }
.page-hero .lead { margin-bottom: 32px; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--slate-500); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--slate-400); }

/* ============ MARQUEE ============ */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.marquee-track { display: flex; gap: 72px; align-items: center; width: max-content; animation: scroll-left 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 36px; width: auto; flex-shrink: 0; transition: transform 0.25s; }
.marquee-track img:hover { transform: scale(1.08); }
.marquee-track.lg img { height: 52px; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 36px)); }
}
@keyframes scroll-right {
  from { transform: translateX(calc(-50% - 36px)); }
  to { transform: translateX(0); }
}
.marquee-track.reverse { animation-name: scroll-right; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============ CARDS & TILES ============ */
.card {
  background: var(--white); padding: 32px 28px;
  border: 1px solid var(--slate-200); border-radius: var(--radius-md);
  transition: all 0.25s; position: relative;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .ic {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--ice-soft); color: var(--royal);
  display: grid; place-items: center; margin-bottom: 24px;
}
.card .ic svg { width: 22px; height: 22px; stroke-width: 1.5; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--slate-500); line-height: 1.6; }
.card .more { display: inline-flex; margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--ink); align-items: center; gap: 4px; }
.card .more::after { content: '→'; transition: transform 0.2s; }
.card:hover .more::after { transform: translateX(3px); }

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

/* ============ FORM ELEMENTS ============ */
.form-field { display: block; margin-bottom: 14px; }
.form-field .lbl { display: block; font-size: 12px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; letter-spacing: 0.01em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--slate-100);
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit; font-size: 14.5px;
  color: var(--ink); transition: all 0.15s;
  appearance: none; -webkit-appearance: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--slate-400); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--royal);
  box-shadow: 0 0 0 4px var(--ice-soft);
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============ STATS ============ */
.stats-wrap { width: 100%; padding: 60px 32px 0; }
.stats {
  max-width: 1600px; margin: 0 auto;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px clamp(28px, 4vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 60%);
}
.stat { position: relative; min-width: 0; }
.stat .num { font-family: 'Manrope', sans-serif; font-size: clamp(34px, 3.6vw, 50px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat .num sup { font-size: 0.42em; color: var(--azure); font-weight: 500; vertical-align: super; }
.stat .num .google-g { width: 0.7em; height: 0.7em; margin-left: 4px; vertical-align: baseline; flex-shrink: 0; align-self: center; }
.stat .label { margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,0.6); letter-spacing: 0.01em; line-height: 1.4; }

/* ============ FINAL CTA ============ */
.final-cta {
  background: linear-gradient(135deg, var(--ink) 0%, #1E3A8A 100%);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 100px 60px; position: relative; overflow: hidden;
  text-align: center;
}
.final-cta::before, .final-cta::after { content: ''; position: absolute; border-radius: 50%; }
.final-cta::before { top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(96,165,250,0.18) 0%, transparent 60%); }
.final-cta::after { bottom: -150px; left: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(29,78,216,0.15) 0%, transparent 60%); }
.final-cta * { position: relative; z-index: 1; }
.final-cta h2 { color: var(--white); max-width: 720px; margin: 0 auto 20px; }
.final-cta .lead { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 36px; }
.final-cta .btn-primary { background: var(--white); color: var(--ink); padding: 16px 32px; font-size: 16px; }
.final-cta .btn-primary:hover { background: var(--ice); }
.final-cta .btn-ghost { color: rgba(255,255,255,0.85); margin-left: 12px; }
.final-cta .btn-ghost:hover { color: var(--white); }

/* ============ FOOTER ============ */
footer.site {
  padding: 80px 0 32px;
  margin-top: 100px;
  background: linear-gradient(180deg, var(--ink) 0%, #0B1220 100%);
  color: rgba(255,255,255,0.85);
  border-top: none;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 60px; }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,0.9); margin: 16px 0 24px; max-width: 320px; line-height: 1.6; }
.footer-brand .social { display: flex; gap: 10px; }
.footer-brand .social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: all 0.2s; color: rgba(255,255,255,0.80); }
.footer-brand .social a:hover { background: var(--azure); color: var(--ink); }
/* Footer logo blijft in eigen kleuren */
.footer-col h5 { font-size: 16px; letter-spacing: -0.01em; color: #FFFFFF; font-weight: 700; margin-bottom: 18px; }
.footer-col h5.h5-mt { margin-top: 26px; }
.footer-partners { display: flex; flex-wrap: wrap; gap: 10px; max-width: 220px; }
.footer-partners .carrier-badge { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: block; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: #FFFFFF; }
.footer-col a:hover { color: var(--azure); }
.footer-col li { color: #FFFFFF; }
/* AI-tools blok in footer-brand (vraag het de AI / GEO) */
.footer-ai { margin-top: 28px; }
.footer-ai .footer-ai-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #FFFFFF; font-weight: 600; margin-bottom: 14px; }
.footer-ai .footer-ai-label svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--azure); }
.footer-ai .ai-links { display: flex; flex-wrap: wrap; gap: 8px; max-width: 340px; }
.footer-ai .ai-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.07); color: #FFFFFF; font-size: 13px; font-weight: 500; line-height: 1; transition: all 0.2s; }
.footer-ai .ai-link:hover { border-color: var(--azure); background: rgba(255,255,255,0.14); color: #FFFFFF; }
.footer-ai .ai-link .ai-arrow { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.75; transition: opacity 0.2s; }
.footer-ai .ai-link:hover .ai-arrow { opacity: 1; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.8); flex-wrap: wrap; gap: 16px; }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a { color: rgba(255,255,255,0.88); }
.footer-bottom a:hover { color: var(--white); }

/* ============ HAMBURGER + MOBILE MENU (Future-Fulfilment style) ============ */
.hamburger {
  display: none;
  width: 48px; height: 48px;
  padding: 0; border: none; background: transparent;
  cursor: pointer; position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  position: absolute; left: 12px;
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease, background-color .2s ease;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 30px; }
.hamburger.is-open span { background: var(--white); }
.hamburger.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0;
  top: 0; bottom: 0;
  background: #0B1220; /* diep navy zoals Future Fulfilment */
  z-index: 49; /* onder sticky header (50) zodat logo + hamburger zichtbaar blijven */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 88px 24px 32px; /* ruimte voor logo + hamburger in top-bar */
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Logo blijft zichtbaar boven de drawer */
.hamburger.is-open ~ * .logo,
body.menu-open header.site .logo { color: var(--white); }
body.menu-open header.site .logo-mark { background: var(--white); color: var(--ink); }

.mobile-nav {
  display: flex; flex-direction: column;
  max-width: 480px; margin: 0 auto;
  min-height: calc(100vh - 88px - 32px);
}
.mobile-nav a {
  display: block;
  padding: 18px 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.95);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  -webkit-tap-highlight-color: rgba(255,255,255,0.08);
  touch-action: manipulation;
  transition: color .15s ease, background .15s ease;
}
.mobile-nav a:hover,
.mobile-nav a:active { color: var(--white); background: rgba(255,255,255,0.04); }
.mobile-nav a.active { color: var(--azure); }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.10); margin: 24px 0 8px; }

/* Vlag-rij voor taal switcher in de drawer */
.mobile-nav-langrow {
  display: flex; justify-content: center; gap: 14px;
  margin: 20px 0 8px;
  border-bottom: none !important;
}
.mobile-nav-lang {
  display: inline-flex !important;
  align-items: center; gap: 8px;
  padding: 10px 14px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  border-bottom-color: rgba(255,255,255,0.14) !important;
  text-align: left !important;
}
.mobile-nav-lang svg { display: block; border-radius: 2px; flex-shrink: 0; }
.mobile-nav-lang.current {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28) !important;
  color: var(--white) !important;
}

/* Login als knop in de drawer */
.mobile-nav-login {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  gap: 10px;
  margin: 14px auto 0;
  padding: 14px 22px !important;
  border-radius: 999px;
  background: rgba(255,255,255,0.08) !important;
  color: var(--white) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-bottom-color: rgba(255,255,255,0.18) !important;
  max-width: 280px;
  text-align: center !important;
}
.mobile-nav-login:hover { background: rgba(255,255,255,0.14) !important; }

/* Hoofd-CTA: groot, primary kleur, onderaan */
.mobile-nav-cta-primary {
  margin-top: 18px;
  display: block;
  text-align: center;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: 17px !important;
  padding: 18px 28px !important;
  border-bottom: none !important;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--royal) 0%, var(--azure) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 10px 24px rgba(29,78,216,0.35);
}
.mobile-nav-cta-primary:hover {
  filter: brightness(1.08);
  background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 100%) !important;
}
.mobile-nav-cta {
  margin-top: 14px;
  text-align: center;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 14px 24px !important;
  border-bottom: none !important;
  background: rgba(255,255,255,0.08) !important;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.14);
}
.mobile-nav-cta:hover { background: rgba(255,255,255,0.14) !important; }

/* Header transparent maken zolang menu open is, zodat drawer doorloopt */
body.menu-open header.site {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.menu-open .hamburger span { background: var(--white); }

body.menu-open { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 980px) {
  /* header */
  .container, .container-wide { padding: 0 20px; }
  header.site .container { padding-top: 12px; padding-bottom: 12px; }
  nav.primary { display: none; }
  .header-cta { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: block; }

  /* layout grids */
  .stats { grid-template-columns: repeat(2, 1fr); padding: 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* sections */
  section { padding: 72px 0; }
  .page-hero { padding: 64px 0 40px; }
  .final-cta { padding: 72px 32px; border-radius: var(--radius-md); }

  /* typography ietsje rustiger */
  h1 { font-size: clamp(30px, 7vw, 44px); }
  h2 { font-size: clamp(26px, 6vw, 38px); }
}

@media (max-width: 640px) {
  /* container + section spacing */
  .container, .container-wide { padding: 0 16px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }

  /* header */
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; font-size: 12px; }

  /* hero */
  .page-hero { padding: 48px 0 32px; }

  /* stats - 1 kolom op echt smal */
  .stats { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; border-radius: var(--radius-md); }
  .stats-wrap { padding: 40px 16px 0; }
  .stat .num { font-size: clamp(30px, 9vw, 40px); }

  /* final CTA */
  .final-cta { padding: 56px 24px; }
  .final-cta .btn-ghost { display: block; margin: 16px auto 0; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .links { flex-wrap: wrap; }
  footer.site { padding: 56px 0 24px; margin-top: 64px; }

  /* forms */
  .form-row-2 { grid-template-columns: 1fr; }

  /* cards iets rustiger */
  .card { padding: 24px 22px; }

  /* typography */
  h1 { font-size: clamp(28px, 8vw, 38px); }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }

  /* buttons - grotere touch area */
  .btn { padding: 14px 22px; font-size: 15px; min-height: 48px; }
}

/* ============ TOUCH / TAP ENHANCEMENTS ============ */
@media (hover: none) and (pointer: coarse) {
  /* schakelt hover-effecten uit op touchscreens - voorkomt "sticky hover" issue waarbij 1e tap alleen :hover triggert */
  .btn:hover, .card:hover, nav.primary a:hover { transform: none; }
  /* alle interactieve elementen krijgen instant tap */
  a, button, .btn, .card { -webkit-tap-highlight-color: rgba(29,78,216,0.10); touch-action: manipulation; }
}

/* ============ BRAND PILLS (integration / carrier logos) ============ */
.logo-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 8px;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em;
  white-space: nowrap; line-height: 1;
  box-shadow: 0 1px 2px rgba(15,23,42,0.08);
  height: 36px;
  flex-shrink: 0;
}
.logo-pill.lg { padding: 12px 20px; font-size: 19px; height: 48px; }
/* Webshop platforms */
.logo-shopify       { background: #95BF47; color: #fff; }
.logo-woocommerce   { background: #7F54B3; color: #fff; }
.logo-magento       { background: #F26322; color: #fff; }
.logo-lightspeed    { background: #F1452D; color: #fff; }
.logo-prestashop    { background: #DF0067; color: #fff; }
.logo-mijnwebwinkel { background: #1A237E; color: #fff; }
.logo-afosto        { background: #00C6A2; color: #fff; }
.logo-ccvshop       { background: #C8102E; color: #fff; }
/* Marketplaces */
.logo-bol           { background: #0086D6; color: #fff; }
.logo-amazon        { background: #FF9900; color: #232F3E; }
/* Tools */
.logo-channelengine { background: #009DE0; color: #fff; }
.logo-plug-en-pay   { background: #5B21B6; color: #fff; }
.logo-channeldock   { background: #0F172A; color: #fff; }
/* Carriers */
.logo-postnl        { background: #FF6600; color: #fff; }
.logo-dhl           { background: #FFCC00; color: #D40511; }
.logo-dpd           { background: #DC0032; color: #fff; }
.logo-deutsche-post { background: #FFCC00; color: #000; }
.logo-gls           { background: #061AB1; color: #FFD100; }

/* ============ AUTHOR AVATAR (review-card) ============ */
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal) 0%, var(--azure) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 14.5px; letter-spacing: -0.01em;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(29,78,216,0.25);
}

/* iOS Safari: voorkom auto-zoom op input focus (font-size moet ≥16px) */
@media (max-width: 980px) {
  .form-field input, .form-field select, .form-field textarea,
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="search"], input[type="url"],
  select, textarea {
    font-size: 16px !important;
  }
}

/* ============ OFFERTE POPUP (slide-in bottom-right) ============ */
.offerte-popup {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1000;
  max-width: 340px;
  background: var(--white);
  border: 1px solid rgba(29,78,216,0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 56px rgba(15,23,42,0.18), 0 4px 12px rgba(15,23,42,0.08);
  padding: 22px 22px 20px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity .28s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.offerte-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.offerte-popup::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--royal) 0%, var(--azure) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.offerte-popup-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--royal);
  margin-bottom: 8px;
}
.offerte-popup-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--royal);
  animation: offertePulse 2s ease-out infinite;
}
@keyframes offertePulse {
  0% { box-shadow: 0 0 0 0 rgba(29,78,216,.55); }
  70% { box-shadow: 0 0 0 8px rgba(29,78,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,78,216,0); }
}
.offerte-popup strong {
  display: block;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: -.01em; line-height: 1.3;
  color: var(--ink);
  margin-bottom: 6px;
}
.offerte-popup p {
  font-size: 13.5px; line-height: 1.5; color: var(--slate-500);
  margin-bottom: 14px;
}
.offerte-popup-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--white) !important;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: background .18s ease, transform .18s ease;
}
.offerte-popup-cta:hover { background: var(--royal); transform: translateY(-1px); }
.offerte-popup-close {
  position: absolute; top: 6px; right: 6px;
  width: 44px; height: 44px;
  background: var(--slate-100); border: none; border-radius: 50%;
  color: var(--slate-700); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: rgba(15,23,42,0.12);
  touch-action: manipulation;
  z-index: 10;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}
.offerte-popup-close svg { pointer-events: none; width: 18px; height: 18px; }
.offerte-popup-close:hover { background: var(--slate-200); color: var(--ink); }
.offerte-popup-close:active { background: var(--slate-200); }
.offerte-popup-close svg { pointer-events: none; }

@media (max-width: 640px) {
  /* Popup op mobiel: bottom-left, kleiner, NIET over chat-knop bottom-right */
  .offerte-popup {
    left: 12px;
    right: auto;
    bottom: 86px; /* boven de chatbot fab */
    max-width: calc(100vw - 88px);
    padding: 20px 18px 18px;
  }
  .offerte-popup-close {
    width: 44px; height: 44px;
    top: 4px; right: 4px;
  }
  .offerte-popup-close svg { width: 18px; height: 18px; }
  .offerte-popup-cta { width: 100%; justify-content: center; padding: 14px 18px; }
}

/* ============ RTM Chatbot Widget ============ */
.bot-wrap {
  position: fixed; bottom: 22px; right: 22px;
  z-index: 40;  /* lager dan header (50), dus never over content/CTAs */
}
/* Op mobiel: chatbot kleiner en duidelijk uit weg van CTAs */
@media (max-width: 980px) {
  .bot-wrap { bottom: 16px; right: 16px; z-index: 40; }
}

/* --- Floating chat button --- */
.bot-fab {
  position: relative;
  display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0;
  background: linear-gradient(135deg, var(--royal, #1D4ED8) 0%, var(--azure, #60A5FA) 100%);
  color: #FFFFFF;
  border: none; cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35), 0 2px 6px rgba(15,23,42,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.25s ease;
  overflow: hidden;
  font: inherit;
}
.bot-fab .bot-fab-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bot-fab .bot-fab-label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14.5px;
  transition: max-width 0.3s ease, opacity 0.2s ease, padding 0.25s ease;
}
.bot-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.45), 0 4px 10px rgba(15,23,42,0.2);
  padding-right: 4px;
}
.bot-fab:hover .bot-fab-label { max-width: 160px; opacity: 1; padding-left: 12px; padding-right: 8px; }
.bot-fab:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.45); outline-offset: 3px; }
.bot-fab.open { transform: rotate(90deg); }
.bot-fab.open .bot-fab-label { max-width: 0; opacity: 0; padding: 0; }
.bot-fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  animation: botPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.bot-fab.open::before { animation: none; }
@keyframes botPulse {
  0%   { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}
.bot-fab-badge {
  position: absolute; top: 6px; right: 6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #EF4444; color: #FFFFFF;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* --- Het chat-paneel --- */
.bot-panel {
  position: absolute;
  bottom: 72px; right: 0;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(15,23,42,0.22), 0 4px 12px rgba(15,23,42,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
  pointer-events: none; /* belangrijk: panel mag GEEN clicks vangen tenzij open */
  visibility: hidden;
}
/* Respect het hidden HTML-attribuut volledig */
.bot-panel[hidden] { display: none !important; }
.bot-panel.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

/* Header */
.bot-head {
  background: linear-gradient(135deg, var(--ink, #0F172A) 0%, #1E3A8A 100%);
  color: #FFFFFF;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  position: relative; flex-shrink: 0;
}
.bot-head-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--royal, #1D4ED8) 0%, var(--azure, #60A5FA) 100%);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.bot-head-meta { flex: 1; min-width: 0; }
.bot-head-meta strong {
  display: block;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
}
.bot-head-meta small {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.72);
  margin-top: 2px;
}
.bot-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: botStatusPulse 2s ease-in-out infinite;
}
@keyframes botStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
.bot-head-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%;
  color: #FFFFFF; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.bot-head-close:hover { background: rgba(255,255,255,0.22); }
.bot-head-close:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }

/* Message stream */
.bot-stream {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 8px;
  background: #FAFBFC;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.bot-stream::-webkit-scrollbar { width: 6px; }
.bot-stream::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); border-radius: 999px; }

.bot-msg {
  display: flex; max-width: 88%;
  animation: botFadeIn 0.22s ease-out;
}
@keyframes botFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bot-msg-bot { align-self: flex-start; }
.bot-msg-user { align-self: flex-end; }

.bot-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px; line-height: 1.5;
  word-wrap: break-word;
}
.bot-msg-bot .bot-bubble {
  background: #FFFFFF;
  color: var(--ink, #0F172A);
  border: 1px solid var(--slate-200, #E2E8F0);
  border-bottom-left-radius: 4px;
}
.bot-msg-user .bot-bubble {
  background: linear-gradient(135deg, var(--royal, #1D4ED8) 0%, var(--azure, #60A5FA) 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}
.bot-bubble strong { font-weight: 700; }

/* Typing indicator */
.bot-typing .bot-bubble {
  display: inline-flex; gap: 4px; padding: 12px 16px;
}
.bot-typing .bot-bubble span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate-400, #94A3B8);
  animation: botTypeDot 1.2s infinite ease-in-out;
}
.bot-typing .bot-bubble span:nth-child(2) { animation-delay: 0.15s; }
.bot-typing .bot-bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes botTypeDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1); }
}

/* Quick replies */
.bot-replies {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--slate-100, #F1F5F9);
  background: #FFFFFF;
  flex-shrink: 0;
  max-height: 200px; overflow-y: auto;
}
.bot-qr {
  padding: 8px 14px;
  background: var(--slate-100, #F1F5F9);
  border: 1px solid var(--slate-200, #E2E8F0);
  border-radius: 999px;
  color: var(--ink, #0F172A);
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.bot-qr:hover {
  background: var(--ice, #DBEAFE);
  border-color: var(--royal, #1D4ED8);
  transform: translateY(-1px);
}
.bot-qr:focus-visible { outline: 2px solid var(--royal, #1D4ED8); outline-offset: 2px; }

/* Capture form (lead) */
.bot-capture {
  display: flex; gap: 8px; align-items: center;
  width: 100%;
}
.bot-capture input,
.bot-capture textarea {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--slate-200, #E2E8F0);
  border-radius: 12px;
  font: inherit; font-size: 14px;
  background: #FFFFFF;
  color: var(--ink, #0F172A);
  resize: none;
}
.bot-capture input:focus,
.bot-capture textarea:focus {
  outline: none; border-color: var(--royal, #1D4ED8);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.bot-capture-send {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--royal, #1D4ED8);
  border: none; border-radius: 50%;
  color: #FFFFFF; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bot-capture-send:hover { background: var(--royal-dark, #1E40AF); transform: scale(1.05); }
.bot-capture-send:focus-visible { outline: 2px solid var(--royal, #1D4ED8); outline-offset: 2px; }

/* Footer */
.bot-foot {
  padding: 8px 16px;
  border-top: 1px solid var(--slate-100, #F1F5F9);
  background: #FAFBFC;
  text-align: center;
  flex-shrink: 0;
}
.bot-foot small {
  font-size: 11px; color: var(--slate-500, #64748B);
}
.bot-foot a { color: var(--royal, #1D4ED8); font-weight: 500; }

@media (max-width: 640px) {
  .bot-wrap { bottom: 16px; right: 16px; }
  .bot-fab, .bot-fab .bot-fab-icon { width: 52px; height: 52px; }
  .bot-fab:hover .bot-fab-label { max-width: 0; opacity: 0; padding: 0; }
  .bot-fab:hover { padding-right: 0; }
  .bot-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 68px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bot-fab::before, .bot-status-dot, .bot-msg, .bot-typing .bot-bubble span { animation: none; }
  .bot-fab, .bot-panel, .bot-qr, .bot-capture-send { transition: none; }
}
