/* ============================================
   SignaalBewaking — Main Stylesheet v3
   Premium dark theme, red accent, professional
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #333; line-height: 1.65; background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }

/* --- WP Block Theme Overrides --- */
.wp-site-blocks { padding-top: 0 !important; padding-bottom: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-block-post-content { max-width: none !important; padding: 0 !important; }
.wp-block-post-content > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-group.sb-header { max-width: none !important; margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; overflow: visible !important; display: flex !important; align-items: center !important; justify-content: space-between !important; }
.wp-block-group.sb-header.is-layout-flow { overflow: visible !important; display: flex !important; }
.wp-block-template-part { overflow: visible !important; }
.wp-block-group.sb-footer { max-width: none !important; margin: 0 !important; }
body { --wp--style--root--padding-left: 0px !important; --wp--style--root--padding-right: 0px !important; --wp--style--root--padding-top: 0px !important; --wp--style--root--padding-bottom: 0px !important; font-size: 1rem !important; }
.has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }

/* Kill WordPress block gaps that create white lines between sections */
main.wp-block-group { --wp--style--block-gap: 0px !important; gap: 0 !important; }
main.wp-block-group.is-layout-constrained > * { margin-top: 0 !important; margin-bottom: 0 !important; }
main.wp-block-group.is-layout-constrained > * + * { margin-top: 0 !important; }
main.wp-block-group > .wp-block-html { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
main.wp-block-group > .wp-block-query { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-group:where(.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
}

/* Force full-width for hero, usp-bar, dark/gray sections */
.sb-hero, .sb-usp-bar, .sb-section--dark, .sb-section--gray, .sb-section--gradient, .sb-cta-section {
  width: 100vw !important; max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important; margin-right: calc(-50vw + 50%) !important;
}
.is-layout-constrained .sb-hero,
.is-layout-constrained .sb-usp-bar,
.is-layout-constrained .sb-section--dark,
.is-layout-constrained .sb-section--gray,
.is-layout-constrained .sb-section--gradient,
.is-layout-constrained .sb-cta-section {
  width: 100vw !important; max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important; margin-right: calc(-50vw + 50%) !important;
}

/* --- Variables --- */
:root {
  --sb-red: #D00A2B;
  --sb-red-dark: #a80822;
  --sb-red-light: #ff1a3d;
  --sb-red-glow: rgba(208,10,43,0.25);
  --sb-navy: #0A2C3D;
  --sb-navy-light: #0e3a50;
  --sb-navy-dark: #071e2b;
  --sb-navy-deeper: #051520;
  --sb-blue: #6EC1E4;
  --sb-green: #10b981;
  --sb-text: #2d3748;
  --sb-text-light: #718096;
  --sb-gray-bg: #f7f8fa;
  --sb-border: #e2e8f0;
  --sb-white: #ffffff;
  --sb-radius: 16px;
  --sb-radius-sm: 10px;
  --sb-shadow: 0 4px 20px rgba(10,44,61,0.06);
  --sb-shadow-md: 0 8px 30px rgba(10,44,61,0.1);
  --sb-shadow-lg: 0 16px 48px rgba(10,44,61,0.14);
  --sb-shadow-xl: 0 24px 64px rgba(10,44,61,0.18);
  --sb-transition: all .3s cubic-bezier(.4,0,.2,1);
  --sb-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --sb-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Scroll Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sb-animate { transition: opacity .7s var(--sb-ease-out), transform .7s var(--sb-ease-out); }
.js .sb-animate { opacity: 0; transform: translateY(30px); }
.js .sb-animate.sb-visible, .sb-animate.sb-visible { opacity: 1; transform: translateY(0); }
.sb-animate-delay-1 { transition-delay: .1s; }
.sb-animate-delay-2 { transition-delay: .2s; }
.sb-animate-delay-3 { transition-delay: .3s; }
.sb-animate-delay-4 { transition-delay: .4s; }

/* --- Header --- */
.sb-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px) saturate(1.8); -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: var(--sb-transition);
  overflow: visible !important;
}
.sb-header--scrolled {
  height: 64px;
  box-shadow: 0 4px 32px rgba(10,44,61,0.1);
  border-bottom-color: transparent;
}
.sb-logo { height: auto; max-height: 72px; width: auto; max-width: 280px; object-fit: contain; transition: var(--sb-transition); }
.sb-header--scrolled .sb-logo { max-height: 52px; }

/* --- Navigation --- */
.sb-nav { display: flex; align-items: center; }
.sb-nav-list { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.sb-nav-item { position: relative; }
.sb-nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 0.5rem 0.9rem; font-size: 0.9rem; font-weight: 500;
  color: var(--sb-navy); transition: var(--sb-transition);
  position: relative;
}
.sb-nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 2px; background: var(--sb-red); border-radius: 1px;
  transform: scaleX(0); transition: transform .25s ease;
}
.sb-nav-link:hover::after, .sb-nav-item.current-menu-item > .sb-nav-link::after { transform: scaleX(1); }
.sb-nav-link:hover { color: var(--sb-red); }
.sb-chevron { transition: transform .25s; }
.sb-nav-item:hover .sb-chevron { transform: rotate(180deg); }

/* Dropdown */
.sb-dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 240px;
  background: var(--sb-white); border-radius: 12px;
  box-shadow: var(--sb-shadow-lg);
  padding: 0.75rem 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--sb-ease-out);
  border: 1px solid var(--sb-border);
}
.sb-nav-item:hover > .sb-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sb-dropdown .sb-nav-link { padding: 0.6rem 1.25rem; font-size: 0.88rem; }
.sb-dropdown .sb-nav-link::after { display: none; }
.sb-dropdown .sb-nav-link:hover { background: var(--sb-gray-bg); color: var(--sb-red); }

/* Mega Dropdown */
.sb-mega-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(12px);
  min-width: 680px; max-width: 780px;
  background: var(--sb-white); border-radius: 16px;
  box-shadow: var(--sb-shadow-xl); border: 1px solid var(--sb-border);
  padding: 1.5rem 1.75rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  opacity: 0; visibility: hidden;
  transition: all .3s var(--sb-ease-out);
}
.sb-nav-item:hover > .sb-mega-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.sb-mega-label {
  display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--sb-red); margin-bottom: 0.6rem; padding-left: 2px;
}
.sb-mega-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-mega-links a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 0.45rem 0.5rem; font-size: 0.85rem; font-weight: 400;
  color: var(--sb-navy); border-radius: 6px; transition: all .2s;
}
.sb-mega-links a strong { font-size: 0.84rem; font-weight: 600; color: var(--sb-navy); }
.sb-mega-links a small { font-size: 0.72rem; font-weight: 400; color: var(--sb-text-light); line-height: 1.3; }
.sb-mega-links a:hover { background: var(--sb-gray-bg); }
.sb-mega-links a:hover strong { color: var(--sb-red); }
.sb-mega-all {
  display: inline-block; margin-top: 1rem; font-size: 0.82rem; font-weight: 600;
  color: var(--sb-red); padding: 0.4rem 0.5rem; border-radius: 6px;
  transition: all .2s;
}
.sb-mega-all:hover { background: rgba(208,10,43,0.06); }

/* CTA Button (nav) */
.sb-nav-cta {
  display: inline-flex; align-items: center;
  padding: 0.6rem 1.4rem; margin-left: 0.75rem;
  background: var(--sb-red); color: var(--sb-white) !important;
  border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  transition: var(--sb-transition);
  box-shadow: 0 2px 12px var(--sb-red-glow);
}
.sb-nav-cta:hover {
  background: var(--sb-red-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--sb-red-glow);
  color: var(--sb-white) !important;
}

/* Mobile toggle */
.sb-menu-toggle {
  display: none; background: none; border: 1px solid var(--sb-border);
  border-radius: 8px; cursor: pointer; padding: 6px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.sb-menu-toggle:active { background: var(--sb-gray-bg); }
.sb-menu-toggle svg { width: 24px; height: 24px; stroke: var(--sb-navy); stroke-width: 2.5; }

/* --- Hero Section --- */
.sb-hero {
  position: relative; min-height: clamp(70vh, 80vw, 90vh);
  display: flex; align-items: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  margin-top: 80px; overflow: hidden;
}
.sb-hero--short { min-height: clamp(45vh, 50vw, 55vh); }
.sb-hero--tall { min-height: clamp(70vh, 80vw, 90vh); }
.sb-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 25%;
}
.sb-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,44,61,0.15) 0%, rgba(10,44,61,0.55) 100%);
}
/* Subtle animated grain overlay for depth */
.sb-hero__bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sb-hero__content {
  max-width: min(56ch, 65%); color: var(--sb-white); position: relative; z-index: 2;
  animation: slideInLeft .8s var(--sb-ease-out);
}
.sb-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.4rem 1rem; margin-bottom: 1.25rem;
  background: rgba(208,10,43,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(208,10,43,0.25); border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.9);
}
.sb-hero__badge svg { color: var(--sb-red); }
.sb-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800;
  line-height: 1.08; margin-bottom: 1.25rem;
  color: var(--sb-white); letter-spacing: -0.025em;
}
.sb-hero__title span { color: var(--sb-red); }
.sb-hero__subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 400;
  line-height: 1.7; margin-bottom: 2rem; opacity: 0.88;
  color: var(--sb-white);
}
.sb-hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}

/* Hero stats panel (glassmorphism) */
.sb-hero__stats {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 2rem;
  animation: slideInRight .8s var(--sb-ease-out) .2s both;
}
.sb-hero__stat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 0.6rem 0;
}
.sb-hero__stat-row + .sb-hero__stat-row { border-top: 1px solid rgba(255,255,255,0.08); }
.sb-hero__stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-hero__stat-value { font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.1; }
.sb-hero__stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* --- Buttons --- */
.sb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: var(--sb-transition);
  text-decoration: none; line-height: 1.2;
}
.sb-btn--primary {
  background: var(--sb-red); color: var(--sb-white);
  box-shadow: 0 4px 16px var(--sb-red-glow);
}
.sb-btn--primary:hover {
  background: var(--sb-red-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--sb-red-glow); color: var(--sb-white);
}
.sb-btn--outline { background: transparent; color: var(--sb-red); border-color: var(--sb-red); }
.sb-btn--outline:hover { background: var(--sb-red); color: var(--sb-white); transform: translateY(-2px); }
.sb-btn--white { background: var(--sb-white); color: var(--sb-navy); border-color: var(--sb-white); }
.sb-btn--white:hover { background: #f0f4f8; transform: translateY(-2px); color: var(--sb-navy); box-shadow: var(--sb-shadow-md); }
.sb-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.sb-btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); color: #fff; }
.sb-btn--lg { padding: 1rem 2.4rem; font-size: 1.05rem; border-radius: 12px; }
.sb-btn--sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

/* --- USP Bar --- */
.sb-usp-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3.5rem;
  padding: 1.15rem 1.5rem;
  background: linear-gradient(90deg, var(--sb-navy-dark) 0%, var(--sb-navy) 50%, var(--sb-navy-dark) 100%);
  color: var(--sb-white); font-size: 0.88rem; font-weight: 500;
}
.sb-usp-bar__item { display: flex; align-items: center; gap: 0.5rem; }
.sb-usp-bar__icon { color: var(--sb-green); flex-shrink: 0; }

/* --- Section Utilities --- */
.sb-section {
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 1140px; margin: 0 auto;
}
.sb-section--wide { max-width: 1320px; }
.sb-section--narrow { max-width: 900px; }
.sb-section--gray {
  background: var(--sb-gray-bg); max-width: 100%;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}
.sb-section--gray .sb-section__inner { max-width: 1140px; margin: 0 auto; }
.sb-section--dark {
  background: var(--sb-navy); color: var(--sb-white); max-width: 100%;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}
.sb-section--dark .sb-section__inner { max-width: 1140px; margin: 0 auto; }
.sb-section--gradient {
  background: linear-gradient(135deg, var(--sb-navy-dark) 0%, var(--sb-navy) 50%, var(--sb-navy-light) 100%);
  color: var(--sb-white); max-width: 100%;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.sb-section--gradient::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(208,10,43,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.sb-section--gradient .sb-section__inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }

.sb-section__header { text-align: center; margin-bottom: 3rem; }
.sb-section__title {
  font-size: clamp(1.75rem, 2.8vw, 2.6rem); font-weight: 800;
  color: var(--sb-navy); margin-bottom: 0.75rem; line-height: 1.12;
  letter-spacing: -0.02em;
}
.sb-section--dark .sb-section__title,
.sb-section--gradient .sb-section__title { color: var(--sb-white); }
.sb-section__subtitle {
  font-size: 1.08rem; color: var(--sb-text-light); max-width: 60ch;
  margin-bottom: 2.5rem; line-height: 1.7;
}
.sb-section--dark .sb-section__subtitle,
.sb-section--gradient .sb-section__subtitle { color: rgba(255,255,255,0.7); }
.sb-section__label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sb-red); margin-bottom: 0.6rem;
}
.sb-section--dark .sb-section__label { color: rgba(255,255,255,0.5); }

/* --- Card Grid --- */
.sb-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.sb-cards--2col { grid-template-columns: repeat(2, 1fr); }
.sb-cards--4col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sb-card {
  background: var(--sb-white); border-radius: var(--sb-radius); padding: 2rem 1.75rem;
  box-shadow: var(--sb-shadow);
  transition: var(--sb-transition);
  border: 1px solid var(--sb-border);
  position: relative; overflow: hidden;
}
.sb-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--sb-red), var(--sb-red-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--sb-ease-out);
}
.sb-card:hover::before { transform: scaleX(1); }
.sb-card:hover {
  box-shadow: var(--sb-shadow-lg);
  transform: translateY(-6px);
}
.sb-card__icon {
  width: 56px; height: 56px; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(208,10,43,0.08), rgba(208,10,43,0.04));
  border-radius: 14px; padding: 12px;
  color: var(--sb-red);
  transition: var(--sb-transition);
}
.sb-card:hover .sb-card__icon {
  background: linear-gradient(135deg, rgba(208,10,43,0.15), rgba(208,10,43,0.08));
  transform: scale(1.05);
}
.sb-card__icon svg { width: 32px; height: 32px; }
.sb-card__title {
  font-size: 1.15rem; font-weight: 700; color: var(--sb-navy);
  margin-bottom: 0.6rem; line-height: 1.3;
}
.sb-card__text { font-size: 0.92rem; color: var(--sb-text-light); line-height: 1.7; }
.sb-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1.25rem; color: var(--sb-red); font-weight: 600; font-size: 0.88rem;
  transition: gap .25s var(--sb-ease-out);
}
.sb-card__link:hover { gap: 12px; }

/* Feature card variant (with icon list) */
.sb-card--feature { padding: 2.25rem 2rem; }
.sb-card__features { list-style: none; padding: 0; margin: 1rem 0 0; }
.sb-card__features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 0.4rem 0; font-size: 0.9rem; color: var(--sb-text);
}
.sb-card__features li svg { color: var(--sb-green); flex-shrink: 0; margin-top: 2px; }

/* --- Process Steps --- */
.sb-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem; counter-reset: step; position: relative;
}
/* Connecting line between steps */
.sb-steps::before {
  content: ''; position: absolute; top: 36px; left: 15%; right: 15%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--sb-border), transparent);
  display: none;
}
@media (min-width: 769px) { .sb-steps::before { display: block; } }
.sb-step { text-align: center; counter-increment: step; position: relative; }
.sb-step__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, var(--sb-red), var(--sb-red-dark));
  color: var(--sb-white); font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px var(--sb-red-glow);
  transition: var(--sb-transition);
  position: relative; z-index: 1;
}
.sb-step:hover .sb-step__number { transform: scale(1.08); box-shadow: 0 8px 28px var(--sb-red-glow); }
.sb-step__number::before { content: counter(step); }
.sb-step__title { font-size: 1.15rem; font-weight: 700; color: var(--sb-navy); margin-bottom: 0.5rem; }
.sb-step__text { font-size: 0.9rem; color: var(--sb-text-light); max-width: 30ch; margin: 0 auto; line-height: 1.65; }

/* --- Stats --- */
.sb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.sb-stat { text-align: center; padding: 1.5rem 1rem; }
.sb-stat__value {
  font-size: clamp(2.8rem, 4.5vw, 3.8rem); font-weight: 900;
  background: linear-gradient(135deg, var(--sb-red), var(--sb-red-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.sb-section--dark .sb-stat__value,
.sb-section--gradient .sb-stat__value {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sb-stat__label { font-size: 1rem; font-weight: 600; color: var(--sb-navy); margin-bottom: 0.3rem; }
.sb-stat__desc { font-size: 0.85rem; color: var(--sb-text-light); line-height: 1.5; }
.sb-section--dark .sb-stat__label { color: #fff; }
.sb-section--dark .sb-stat__desc { color: rgba(255,255,255,0.6); }

/* --- FAQ Accordion --- */
.sb-faq { max-width: 760px; margin: 0 auto; }
.sb-faq__item { border-bottom: 1px solid var(--sb-border); }
.sb-faq__question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1.25rem 0; background: none; border: none;
  font-size: 1rem; font-weight: 600; color: var(--sb-navy); cursor: pointer;
  text-align: left; transition: color .2s;
}
.sb-faq__question:hover { color: var(--sb-red); }
.sb-faq__icon { transition: transform .25s; flex-shrink: 0; }
.sb-faq__item.active .sb-faq__icon { transform: rotate(180deg); }
.sb-faq__answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--sb-ease-out); }
.sb-faq__item.active .sb-faq__answer { max-height: 600px; }
.sb-faq__answer p { padding: 0 0 1.25rem; font-size: 0.92rem; color: var(--sb-text-light); line-height: 1.7; }
details.sb-faq__item summary { list-style: none; }
details.sb-faq__item summary::-webkit-details-marker { display: none; }
details.sb-faq__item[open] .sb-faq__icon { transform: rotate(180deg); }
details.sb-faq__item .sb-faq__answer { max-height: none; }

/* --- CTA Section --- */
.sb-cta-section {
  background: linear-gradient(135deg, var(--sb-red-dark) 0%, var(--sb-red) 50%, #e8102f 100%);
  color: #fff; text-align: center;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.sb-cta-section::before {
  content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.sb-cta-section::after {
  content: ''; position: absolute; bottom: -50%; right: -10%; width: 50%; height: 200%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.sb-cta-section .sb-section__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.sb-cta-section h2 { color: #fff; font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 1rem; }
.sb-cta-section p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin-bottom: 2rem; }

/* --- Trust/Certification Badges --- */
.sb-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 2rem 0; }
.sb-trust__item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 1.5rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  min-width: 140px; transition: var(--sb-transition);
}
.sb-trust__item:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.sb-trust__icon { font-size: 1.5rem; }
.sb-trust__label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }

/* --- Content Grid (2-col layout) --- */
.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sb-grid--reverse > *:first-child { order: 2; }
.sb-grid--reverse > *:last-child { order: 1; }
.sb-grid__media {
  border-radius: var(--sb-radius); overflow: hidden;
  box-shadow: var(--sb-shadow-lg);
}
.sb-grid__media img { width: 100%; display: block; }
.sb-grid__placeholder {
  background: linear-gradient(135deg, var(--sb-gray-bg), #e8e8e8);
  border-radius: var(--sb-radius); min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sb-shadow);
}

/* --- Feature List (checkmark items) --- */
.sb-features { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.sb-features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 0.5rem 0; font-size: 0.95rem; color: var(--sb-text);
  line-height: 1.6;
}
.sb-features li svg { color: var(--sb-green); flex-shrink: 0; margin-top: 3px; }
.sb-section--dark .sb-features li { color: rgba(255,255,255,0.85); }

/* --- Testimonial --- */
.sb-testimonial {
  background: var(--sb-white); border-radius: var(--sb-radius);
  padding: 2.5rem; box-shadow: var(--sb-shadow-md);
  border: 1px solid var(--sb-border); position: relative;
}
.sb-testimonial::before {
  content: '"'; position: absolute; top: 1rem; left: 1.5rem;
  font-size: 4rem; font-weight: 800; color: var(--sb-red); opacity: 0.12;
  line-height: 1; font-family: Georgia, serif;
}
.sb-testimonial__text { font-size: 1.05rem; color: var(--sb-text); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.sb-testimonial__author { font-size: 0.88rem; font-weight: 600; color: var(--sb-navy); }
.sb-testimonial__role { font-size: 0.82rem; color: var(--sb-text-light); }

/* --- Footer --- */
.sb-footer {
  background: linear-gradient(180deg, var(--sb-navy) 0%, var(--sb-navy-deeper) 100%);
  color: rgba(255,255,255,0.75); padding: 0;
}

/* Brand bar (full-width logo + tagline row) */
.sb-footer__brand-bar {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sb-footer__brand-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.sb-footer__brand-left {
  display: flex; align-items: center; gap: 1.5rem; flex: 1; min-width: 280px;
}
.sb-footer__brand-left img { flex-shrink: 0; }
.sb-footer__brand-left p { font-size: 0.88rem; line-height: 1.6; color: rgba(255,255,255,0.6); margin: 0; max-width: 50ch; }
.sb-footer__brand-right { display: flex; align-items: center; }

/* 4-column link grid */
.sb-footer__columns {
  max-width: 1140px; margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 1rem;
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
}
.sb-footer__heading {
  font-size: 0.82rem; font-weight: 700; color: var(--sb-white);
  margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.sb-footer__links { list-style: none; padding: 0; }
.sb-footer__links li { margin-bottom: 0.6rem; font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.sb-footer__links a {
  color: rgba(255,255,255,0.55); font-size: 0.88rem;
  transition: var(--sb-transition); display: inline-block;
}
.sb-footer__links a:hover { color: var(--sb-white); transform: translateX(3px); }
.sb-footer__columns p { font-size: 0.88rem; margin-bottom: 0.4rem; }
.sb-footer__columns a { color: rgba(255,255,255,0.7); transition: var(--sb-transition); }
.sb-footer__columns a:hover { color: var(--sb-red); }
.sb-footer__hours { margin-top: 0.5rem; font-size: 0.8rem !important; color: rgba(255,255,255,0.45) !important; line-height: 1.5; }
.sb-footer__bottom {
  margin-top: 1rem; padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  max-width: 1140px; margin-left: auto; margin-right: auto;
}
.sb-footer__bottom a { color: rgba(255,255,255,0.35); }
.sb-footer__bottom a:hover { color: var(--sb-white); }

/* Social links */
.sb-social { display: flex; gap: 12px; margin-top: 1.25rem; }
.sb-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  transition: var(--sb-transition);
}
.sb-social a:hover { background: var(--sb-red); color: #fff; transform: translateY(-2px); }

/* --- Contact Form --- */
.sb-form { max-width: 600px; }
.sb-form label { display: block; font-weight: 600; color: var(--sb-navy); margin-bottom: 0.35rem; font-size: 0.88rem; }
.sb-form input, .sb-form textarea, .sb-form select {
  width: 100%; padding: 0.85rem 1.1rem; border: 1.5px solid var(--sb-border); border-radius: var(--sb-radius-sm);
  font-size: 0.92rem; font-family: inherit; margin-bottom: 1.25rem;
  transition: var(--sb-transition); background: var(--sb-white);
}
.sb-form input:focus, .sb-form textarea:focus, .sb-form select:focus {
  outline: none; border-color: var(--sb-red);
  box-shadow: 0 0 0 4px var(--sb-red-glow);
}
.sb-form textarea { resize: vertical; min-height: 140px; }

/* --- Utility --- */
.sb-text-center { text-align: center; }
.sb-text-red { color: var(--sb-red); }
.sb-text-white { color: #fff; }
.sb-mt-0 { margin-top: 0; }
.sb-mb-2 { margin-bottom: 2rem; }
.sb-mx-auto { margin-left: auto; margin-right: auto; }
.sb-max-60ch { max-width: 60ch; }
.sb-max-48ch { max-width: 48ch; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .sb-header { height: 64px; padding: 0 1rem; }
  .sb-hero { margin-top: 64px; min-height: 50vh; }
  .sb-hero--short { min-height: 32vh; }
  .sb-hero__content { max-width: 100%; animation: fadeInUp .6s var(--sb-ease-out); }
  .sb-hero__title { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .sb-hero__stats { margin-top: 2rem; animation: fadeInUp .6s var(--sb-ease-out) .3s both; }

  .sb-nav { display: none !important; }
  .sb-nav--open {
    display: flex !important; flex-direction: column; align-items: stretch;
    position: fixed; top: 64px; left: 0; right: 0;
    width: 100vw; height: calc(100vh - 64px); /* explicit — backdrop-filter on header breaks bottom:0 containing block */
    background: var(--sb-white); padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow-y: auto; z-index: 999;
    animation: slideInMobile .25s var(--sb-ease-out);
  }
  @keyframes slideInMobile {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .sb-nav--open .sb-nav-list { flex-direction: column; width: 100%; gap: 0; text-align: left; align-items: stretch; }
  .sb-nav--open .sb-nav-link {
    padding: 0.9rem 0; font-size: 1.1rem; font-weight: 600;
    border-bottom: 1px solid var(--sb-border); justify-content: flex-start;
  }
  .sb-nav--open .sb-nav-link::after { display: none; }
  .sb-nav--open .sb-chevron { transition: transform .25s; }
  .sb-nav--open .sb-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding-left: 1rem; border: none;
  }
  .sb-nav--open .sb-mega-dropdown {
    position: static !important; left: auto !important; top: auto !important;
    opacity: 0; visibility: hidden; transform: none !important;
    min-width: unset !important; max-width: 100% !important; width: 100% !important;
    display: none;
    grid-template-columns: 1fr; gap: 0.5rem;
    box-shadow: none; border: none; padding: 0.5rem 0 0.5rem 0.5rem;
    background: transparent; text-align: left; overflow: hidden;
    box-sizing: border-box;
  }
  .sb-nav--open .sb-mega-dropdown.sb-mega--open {
    display: grid; opacity: 1; visibility: visible;
  }
  .sb-nav--open .sb-mega-col { padding: 0.5rem 0; }
  .sb-nav--open .sb-mega-label { font-size: 0.7rem; margin-bottom: 0.3rem; }
  .sb-nav--open .sb-mega-links a {
    padding: 0.5rem 0; font-size: 0.95rem; display: flex; flex-direction: column; gap: 2px;
  }
  .sb-nav--open .sb-mega-links a strong { display: block; font-size: 0.95rem; color: var(--sb-navy); }
  .sb-nav--open .sb-mega-links a small { display: block; font-size: 0.78rem; color: var(--sb-text-gray, #666); font-weight: 400; }
  .sb-nav--open .sb-mega-all { margin-top: 0.5rem; }
  .sb-nav--open .sb-nav-cta { margin: 1rem 0 0; text-align: center; justify-content: center; }
  .sb-menu-toggle { display: flex; }

  /* ── Mobile: constrain ALL sections to viewport (100% not 100vw to avoid scrollbar width bug) ── */
  .sb-hero, .sb-section,
  .sb-usp-bar, .sb-section--dark, .sb-section--gray,
  .sb-section--gradient, .sb-cta-section,
  .is-layout-constrained .sb-hero,
  .is-layout-constrained .sb-section,
  .is-layout-constrained .sb-usp-bar,
  .is-layout-constrained .sb-section--dark,
  .is-layout-constrained .sb-section--gray,
  .is-layout-constrained .sb-section--gradient,
  .is-layout-constrained .sb-cta-section,
  .is-layout-flow .sb-hero,
  .is-layout-flow .sb-section,
  .is-layout-flow > section,
  section.sb-hero[style],
  section.sb-section[style],
  section[style*="overflow: hidden"],
  section[style*="padding:"],
  section[style*="padding: "] {
    width: 100% !important; max-width: 100% !important;
    margin-left: 0 !important; margin-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* ── Sections: force horizontal padding so content doesn't touch edges ── */
  .sb-hero,
  .is-layout-constrained .sb-hero,
  section.sb-hero[style] {
    padding: 2.5rem 1.25rem !important;
  }
  /* ── Sections with inline padding: ensure horizontal padding on mobile ── */
  section[style*="padding:80px 0"],
  section[style*="padding: 80px 0"],
  section[style*="padding:90px 0"],
  section[style*="padding: 90px 0"],
  section[style*="padding:100px 0"],
  section[style*="padding: 100px 0"],
  section[style*="padding:60px 0"],
  section[style*="padding: 60px 0"],
  section[style*="padding:70px 0"],
  section[style*="padding: 70px 0"] {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    overflow: hidden !important;
  }

  /* ── Hero children: constrain to parent ── */
  .sb-hero > *,
  .sb-hero__container,
  .sb-hero [style*="max-width"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .sb-hero h1,
  .sb-hero [style*="font-size: clamp"] {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  /* ── Inner containers: constrain with padding ── */
  section [style*="max-width:"],
  section [style*="max-width: "] {
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
  }

  /* ── Post content: prevent wider-than-viewport ── */
  .wp-block-post-content,
  .entry-content,
  .wp-site-blocks,
  main.wp-block-group {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .sb-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sb-grid--reverse > *:first-child { order: 1; }
  .sb-grid--reverse > *:last-child { order: 2; }
  .sb-footer__columns { grid-template-columns: 1fr 1fr !important; gap: 2rem; }
  .sb-footer__brand-left { flex-direction: column; align-items: flex-start; }
  .sb-footer__brand-inner { flex-direction: column; align-items: flex-start; }
  .sb-cards { grid-template-columns: 1fr; }
  .sb-cards--2col { grid-template-columns: 1fr; }
  .sb-steps { grid-template-columns: 1fr; }
  .sb-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .sb-trust { gap: 1rem; }
}

/* ─── Blog ─── */
.sb-blog-card {
  background: var(--sb-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: transform .25s var(--sb-ease-out), box-shadow .25s var(--sb-ease-out);
  display: flex;
  flex-direction: column;
}
.sb-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: rgba(208,10,43,0.3);
}
.sb-blog-card img,
.sb-blog-card .wp-post-image {
  width: 100%; height: 200px; object-fit: cover;
}
.sb-blog-card .wp-block-post-featured-image { margin: 0; }
.sb-blog-card .wp-block-post-featured-image img { border-radius: 0; margin: 0; }
.sb-blog-card .wp-block-post-terms { font-size: 0.75rem !important; }
.sb-blog-card .wp-block-post-title { font-size: 1.1rem !important; line-height: 1.35 !important; }
.sb-blog-card .wp-block-post-title a { color: #1b2b5f; text-decoration: none; }
.sb-blog-card .wp-block-post-title a:hover { color: #D00A2B; }
.sb-blog-card .wp-block-post-excerpt { font-size: 0.9rem !important; color: #666 !important; }
.sb-blog-card .wp-block-post-excerpt__more-text a { color: #D00A2B; font-weight: 600; text-decoration: none; }
.sb-blog-card .wp-block-post-date { font-size: 0.8rem !important; color: #999 !important; }
.sb-blog-card > .wp-block-group { flex: 1; display: flex; flex-direction: column; }
.sb-blog-card > .wp-block-group > .wp-block-group:last-child { margin-top: auto; }

/* Blog grid — WordPress query loop renders <ul><li> */
.sb-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0 20px; }
.sb-blog-wrap .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; padding: 0; margin: 0; }
.sb-blog-wrap .wp-block-post-template > li { list-style: none; }
.sb-blog-wrap .wp-block-query-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.sb-blog-wrap .wp-block-query-pagination-numbers .page-numbers {
  display: inline-block; padding: 8px 14px; border-radius: 6px; text-decoration: none;
  color: #1b2b5f; font-weight: 600; font-size: 0.9rem; border: 1px solid #e5e7eb;
}
.sb-blog-wrap .wp-block-query-pagination-numbers .page-numbers.current {
  background: #D00A2B; color: #fff; border-color: #D00A2B;
}
.sb-blog-wrap .wp-block-query-pagination-numbers .page-numbers:hover:not(.current) {
  background: #f1f5f9; border-color: #cbd5e1;
}

/* Blog featured post card */
.sb-featured-post {
  background: linear-gradient(135deg, #1b2b5f, #2d3f7a);
  border-radius: 16px; overflow: hidden; color: #fff; margin-bottom: 50px;
}
.sb-featured-post a { color: #fff; text-decoration: none; }
.sb-featured-post a:hover { opacity: 0.9; }

/* Category filter pills */
.sb-cat-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.sb-cat-pill {
  display: inline-block; padding: 8px 20px; border-radius: 9999px; font-size: 0.85rem;
  font-weight: 600; text-decoration: none; border: 1px solid #e5e7eb; color: #555;
  background: #fff; transition: all 0.2s;
}
.sb-cat-pill:hover, .sb-cat-pill--active { background: #D00A2B; color: #fff; border-color: #D00A2B; }

.sb-article { font-size: 1.05rem; line-height: 1.8; color: #444; }
.sb-article h2 { font-size: 1.6rem; font-weight: 700; color: #1b2b5f; margin: 2rem 0 1rem; }
.sb-article h3 { font-size: 1.3rem; font-weight: 600; color: #1b2b5f; margin: 1.5rem 0 0.75rem; }
.sb-article p { margin-bottom: 1.25rem; }
.sb-article ul, .sb-article ol { margin: 1rem 0 1.5rem 1.5rem; }
.sb-article li { margin-bottom: 0.5rem; }
.sb-article blockquote {
  border-left: 4px solid var(--sb-red);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: #f8f9fb; font-style: italic; color: #555;
}
.sb-article img { border-radius: 12px; margin: 1.5rem 0; }

@media (max-width: 768px) {
  .sb-blog-grid { grid-template-columns: 1fr; }
  .sb-blog-wrap .wp-block-post-template { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .sb-blog-wrap .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: 2-column service cards */
@media (min-width: 769px) and (max-width: 1024px) {
  .sb-diensten-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sb-inno-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .sb-apps-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .sb-usp-bar { flex-direction: column; align-items: center; gap: 0.75rem; padding: 1rem; }
  .sb-hero { padding: 2rem 1rem !important; }
  .sb-hero h1, .sb-hero [style*="font-size: clamp"] { font-size: 1.4rem !important; }
  .sb-hero__actions { flex-direction: column; }
  .sb-hero__actions .sb-btn { width: 100%; justify-content: center; }
  .sb-stats { grid-template-columns: 1fr; }
  .sb-cert-strip__inner { gap: 0.75rem; }
  .sb-cert-bar { gap: 1rem; }
  .sb-cert-badge { min-width: 100px; padding: 0.75rem 1rem; }
}

/* Mobile: Stack hero flex layout, stats, innovatie, apps */
@media (max-width: 768px) {
  /* Hero flex container */
  .sb-hero-flex { flex-direction: column !important; }
  .sb-hero-flex > div:first-child { max-width: 100% !important; }
  .sb-hero-stats-panel { min-width: unset !important; }

  /* Stats 4-col → 2-col */
  .sb-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Innovatie 2-col → 1-col */
  .sb-inno-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Diensten grid → 1 col */
  .sb-diensten-grid { grid-template-columns: 1fr !important; }

  /* Apps 3-col → 1-col */
  .sb-apps-grid { grid-template-columns: 1fr !important; }

  /* Testimonials → 1 col */
  .sb-quotes-grid { grid-template-columns: 1fr !important; }

  /* Why cards → 1 col */
  .sb-why-grid { grid-template-columns: 1fr !important; }

  /* Unique grid → 1 col */
  .sb-unique-grid { grid-template-columns: 1fr !important; }

  /* Onboarding 4-step → 2x2 */
  .sb-onboarding-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Homepage Inline Override Helpers --- */
/* These target inline-styled elements on the homepage (wp:html blocks) */

/* Service card links on homepage — add hover lift */
.sb-dienst-card {
  text-decoration: none; display: block;
  background: var(--sb-white); border-radius: var(--sb-radius);
  overflow: hidden; box-shadow: var(--sb-shadow);
  border: 1px solid var(--sb-border);
  transition: transform .3s var(--sb-ease-out), box-shadow .3s var(--sb-ease-out), border-color .3s;
}
.sb-dienst-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sb-shadow-lg);
  border-color: rgba(208,10,43,0.2);
}

/* Waarom-kaarten hover */
.sb-why-card {
  transition: transform .3s var(--sb-ease-out), box-shadow .3s var(--sb-ease-out);
}
.sb-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(27,43,95,0.1) !important;
}

/* Innovatie stat cards */
.sb-inno-stat {
  transition: transform .3s var(--sb-ease-out), box-shadow .3s var(--sb-ease-out);
}
.sb-inno-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(27,43,95,0.12) !important;
}

/* Testimonial cards */
.sb-quote-card {
  transition: transform .3s var(--sb-ease-out), box-shadow .3s var(--sb-ease-out);
}
.sb-quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(27,43,95,0.08) !important;
}

/* Platform app cards */
.sb-app-card {
  transition: transform .3s var(--sb-ease-out), box-shadow .3s var(--sb-ease-out);
}
.sb-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}

/* App store buttons hover */
.sb-app-btn {
  transition: all .2s var(--sb-ease-out) !important;
}
.sb-app-btn:hover {
  background: var(--sb-red) !important;
  transform: translateY(-1px);
}

/* CTA button hover improvements for inline-styled buttons */
.sb-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.sb-cta-ghost:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.7) !important;
  transform: translateY(-2px);
}

/* --- Certification Strip (footer) --- */
.sb-cert-strip {
  background: linear-gradient(180deg, rgba(5,21,32,0.6) 0%, transparent 100%);
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sb-cert-strip__inner {
  max-width: 1140px; margin: 0 auto;
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  justify-content: center; align-items: center;
  gap: 1.25rem;
}

/* --- Certification Logos Bar --- */
.sb-cert-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2.5rem; padding: 2rem 0;
}
.sb-cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 1.5rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  transition: var(--sb-transition); min-width: 120px;
}
.sb-cert-badge:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.sb-cert-badge__code {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.sb-cert-badge__name {
  font-size: 0.85rem; font-weight: 600; color: #fff; text-align: center;
}
.sb-cert-badge__icon {
  color: rgba(255,255,255,0.7);
}
.sb-cert-badge__label {
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.8);
  text-align: center; line-height: 1.4;
}

/* --- Animated Number Counter --- */
.sb-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --- Focus States (accessibility) --- */
.sb-btn:focus-visible,
.sb-nav-link:focus-visible,
.sb-nav-cta:focus-visible {
  outline: 2px solid var(--sb-red);
  outline-offset: 3px;
}

/* --- Skip to Content (accessibility) --- */
.sb-skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  background: var(--sb-red); color: #fff;
  padding: 0.75rem 1.5rem; font-weight: 600;
  transition: top .2s;
}
.sb-skip-link:focus { top: 0; }

/* --- Smooth image loading --- */
.sb-hero__bg {
  transition: opacity .5s var(--sb-ease-out);
}

/* --- Contact Form 7 Styling --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%; padding: 12px 15px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 1em; font-family: inherit; box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  border-color: #D00A2B; box-shadow: 0 0 0 3px rgba(208,10,43,0.1); outline: none;
}
.wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7 label { display: block; font-weight: 600; color: #1b2b5f; margin-bottom: 6px; font-size: 0.95em; }
.wpcf7 .required { color: #D00A2B; }
.wpcf7 p { margin-bottom: 18px; }
.wpcf7 input[type="submit"] {
  display: block; width: 100%; background: #D00A2B; color: #fff;
  padding: 14px 35px; border-radius: 8px; font-size: 1.05em; font-weight: 600;
  border: none; cursor: pointer; transition: background-color 0.2s;
}
.wpcf7 input[type="submit"]:hover { background: #b00824; }
.sb-cf7-row { display: flex; gap: 15px; flex-wrap: wrap; }
.sb-cf7-row > label { flex: 1; min-width: 150px; }
.wpcf7-response-output { border-radius: 8px !important; padding: 12px 16px !important; font-size: 0.95em; }
.wpcf7-not-valid-tip { color: #D00A2B; font-size: 0.85em; margin-top: 4px; }

/* ============================================
   Service Page Responsive Overrides
   Targets inline-styled grids that lack
   responsive CSS classes
   ============================================ */

/* --- Tablet: 769px – 1024px --- */
@media (min-width: 769px) and (max-width: 1024px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  [style*="gap:60px"], [style*="gap: 60px"] { gap: 2.5rem !important; }
}

/* --- Mobile: ≤ 768px --- */
@media (max-width: 768px) {

  /* ── ALL inline grids → single column ── */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 4-col → 2-col on mobile (1-col on small mobile below) */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Hide step arrows and connecting lines ── */
  [style*="position:absolute"][style*="right:-18px"],
  [style*="position:absolute"][style*="right: -18px"],
  [style*="position:absolute"][style*="height:3px"],
  [style*="position:absolute"][style*="height: 3px"] {
    display: none !important;
  }

  /* ── Grid border decorations (drone AI section etc.) ── */
  [style*="border-right: 2px solid"],
  [style*="border-right:2px solid"] {
    border-right: none !important;
  }

  /* ── Section padding: add horizontal padding to all service sections ── */
  section[style*="padding:80px"],  section[style*="padding: 80px"]  { padding: 3rem 1.25rem !important; }
  section[style*="padding:100px"], section[style*="padding: 100px"] { padding: 3rem 1.25rem !important; }
  section[style*="padding:90px"],  section[style*="padding: 90px"]  { padding: 3rem 1.25rem !important; }
  section[style*="padding:70px"],  section[style*="padding: 70px"]  { padding: 2.5rem 1.25rem !important; }

  /* ── Inner containers: width + padding ── */
  [style*="max-width:1140px"], [style*="max-width: 1140px"],
  [style*="max-width:1100px"], [style*="max-width: 1100px"],
  [style*="max-width:1000px"], [style*="max-width: 1000px"],
  [style*="max-width:960px"],  [style*="max-width: 960px"],
  [style*="max-width:900px"],  [style*="max-width: 900px"],
  [style*="max-width:800px"],  [style*="max-width: 800px"],
  [style*="max-width:760px"],  [style*="max-width: 760px"],
  [style*="max-width:750px"],  [style*="max-width: 750px"],
  [style*="max-width:700px"],  [style*="max-width: 700px"],
  [style*="max-width:680px"],  [style*="max-width: 680px"],
  [style*="max-width:600px"],  [style*="max-width: 600px"] {
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  /* ── All inline-padded containers ── */
  [style*="padding:0 20px"], [style*="padding: 0 20px"],
  [style*="padding:0 24px"], [style*="padding: 0 24px"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* ── AKP infographic: 5-col grid → stacked ── */
  [style*="1fr auto 1fr auto 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  [style*="1fr auto 1fr auto 1fr"] > div[style*="padding-top"] {
    display: none !important;
  }
  [style*="1fr auto 1fr auto 1fr"] div[style*="width:120px"][style*="height:120px"] {
    width: 80px !important;
    height: 80px !important;
  }
  [style*="1fr auto 1fr auto 1fr"] div[style*="width:120px"] svg {
    width: 36px !important;
    height: 36px !important;
  }

  /* ── Timeline steps: narrower on mobile ── */
  [style*="padding-left:100px"] {
    padding-left: 56px !important;
    padding-right: 4px !important;
    max-width: 100% !important;
  }
  [style*="padding-left:100px"] [style*="left:80px"] {
    left: 36px !important;
  }
  [style*="padding-left:100px"] [style*="left:-24px"] {
    left: -12px !important;
  }
  [style*="padding-left:100px"] [style*="width:56px"][style*="height:56px"] {
    width: 36px !important;
    height: 36px !important;
  }
  [style*="padding-left:100px"] [style*="width:56px"] svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* ── 5-step timeline: stack icon above card on mobile ── */
  /* Hide vertical connection line */
  [style*="position:absolute"][style*="left:40px"][style*="width:4px"] {
    display: none !important;
  }
  /* Step rows: stack vertically */
  [style*="display:flex"][style*="gap:28px"][style*="align-items:flex-start"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }
  /* Icon boxes: shrink */
  [style*="flex-shrink:0"][style*="width:80px"][style*="height:80px"] {
    width: 56px !important;
    height: 56px !important;
  }
  [style*="flex-shrink:0"][style*="width:80px"] svg {
    width: 28px !important;
    height: 28px !important;
  }
  /* Cards: reduce padding, full width */
  [style*="padding:28px 32px"] {
    padding: 16px 18px !important;
    width: 100% !important;
  }
  /* Step badge + title: wrap if needed */
  [style*="padding:28px 32px"] [style*="display:flex"][style*="gap:10px"] {
    flex-wrap: wrap !important;
  }

  /* ── Comparison table: hide desktop grid, show mobile cards ── */
  [data-desktop-comparison="true"] {
    display: none !important;
  }
  [data-mobile-comparison="true"] {
    display: block !important;
  }

  /* ── AKP icons: ensure enough text width ── */
  [style*="1fr auto 1fr auto 1fr"] > div[style*="text-align:center"] {
    padding: 0 8px !important;
    max-width: 300px !important;
  }
  [style*="1fr auto 1fr auto 1fr"] > div[style*="text-align:center"] p {
    hyphens: none !important;
    word-break: normal !important;
  }

  /* ── Voordelen cards: 2-col → 1-col ── */
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Voordeel card: reduce padding + stack icon/text */
  [style*="padding:36px"] {
    padding: 20px !important;
  }
  /* Icon box in voordeel card: shrink */
  [style*="width:72px"][style*="height:72px"] {
    width: 48px !important;
    height: 48px !important;
  }

  /* ── "Voor wie" cards: 3-col → 1-col ── */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Privacy grid: 2-col → 1-col ── */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:40px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ── CTA dual cards: 2-col → 1-col ── */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:20px"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Force text wrapping everywhere ── */
  section, section * {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    -webkit-hyphens: auto !important;
    hyphens: auto !important;
  }

  /* ── Prevent page-level horizontal overflow ── */
  html, body {
    overflow-x: hidden !important;
  }
  .wp-block-post-content > .wp-block-html,
  .wp-block-post-content > .wp-block-html > * {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* ── Reduce large gaps everywhere ── */
  [style*="gap:60px"], [style*="gap: 60px"] { gap: 1.5rem !important; }
  [style*="gap:56px"], [style*="gap: 56px"] { gap: 1.5rem !important; }
  [style*="gap:50px"], [style*="gap: 50px"] { gap: 1.25rem !important; }
  [style*="gap:48px"], [style*="gap: 48px"] { gap: 1.25rem !important; }
  [style*="gap:45px"], [style*="gap: 45px"] { gap: 1.25rem !important; }
  [style*="gap:40px"], [style*="gap: 40px"] { gap: 1.25rem !important; }
  [style*="gap:32px"], [style*="gap: 32px"] { gap: 1rem !important; }
  [style*="gap:30px"], [style*="gap: 30px"] { gap: 1rem !important; }
  [style*="gap:25px"], [style*="gap: 25px"] { gap: 1rem !important; }

  /* ── 4-col grids → 2-col on tablet, 1-col at 480px ── */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* ── Comparison table: 4-col → scroll or stack ── */
  [style*="grid-template-columns:1.5fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr 1fr 1fr"] {
    grid-template-columns: 1.2fr 1fr 1fr 1fr !important;
    font-size: 0.78rem !important;
  }
  [style*="grid-template-columns:1.5fr 1fr 1fr 1fr"] > div,
  [style*="grid-template-columns: 1.5fr 1fr 1fr 1fr"] > div {
    padding: 10px 6px !important;
  }

  /* ── Large headings scale down ── */
  [style*="font-size:2.2rem"], [style*="font-size: 2.2rem"],
  [style*="font-size:2.1rem"], [style*="font-size: 2.1rem"] {
    font-size: 1.5rem !important;
  }
  [style*="font-size:2rem"],   [style*="font-size: 2rem"] {
    font-size: 1.35rem !important;
  }
  [style*="font-size:1.3rem"], [style*="font-size: 1.3rem"] {
    font-size: 1.05rem !important;
  }

  /* ── Flex containers: wrap on mobile ── */
  [style*="display:flex"][style*="gap:32px"],
  [style*="display:flex"][style*="gap: 32px"],
  [style*="display: flex"][style*="gap:32px"],
  [style*="display: flex"][style*="gap: 32px"] {
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  /* ── Inline images: prevent overflow ── */
  img[style*="width:"], img[style*="width: "] {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ── Tables: horizontal scroll ── */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* --- Small Mobile: ≤ 480px --- */
@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Even smaller heading sizes */
  [style*="font-size:2.2rem"], [style*="font-size: 2.2rem"],
  [style*="font-size:2.1rem"], [style*="font-size: 2.1rem"],
  [style*="font-size:2rem"],   [style*="font-size: 2rem"] {
    font-size: 1.25rem !important;
  }
}
