/* ============================================================
   ISATIS, Site Header (Theme Builder template)
   Sticky, transparent op de hero (over de slideshow), wit zodra je scrolt.
   ============================================================ */

@import url('./globals.css');

/* Default state: transparent over hero, text wit. Fixed op top:0 (geen top bar meer). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
/* Scrolled state: witte glas-look, dark text */
.site-header.is-scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--e-global-color-border);
  box-shadow: 0 4px 24px -16px rgba(15,26,46,0.18);
}

/* Push page-content onder de fixed header zodat hero niet erachter "verdwijnt", n.v.t.
   omdat de hero juist BEDOELD is om onder de transparante header door te lopen. */

.site-header__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.site-header__logo    { justify-self: start; }
.site-nav             { justify-self: center; }
.site-header__actions { justify-self: end; }

/* ============================================================
   MEGA BACKDROP, dimt de rest van de pagina als een mega menu open is
   ============================================================ */
.mega-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,26,46,0.45);
  z-index: 48;                /* onder mega-menu (49) en header (50) */
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.site-header.mega-open ~ .mega-backdrop {
  opacity: 1; visibility: visible;
}

/* Logo, wit op de hero, kleur bij scrolled */
.site-header__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header__logo img {
  height: 28px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: filter .25s ease;
}
.site-header.is-scrolled .site-header__logo img { filter: none; }

/* Primary nav, center column van het 3-koloms grid (margin auto niet nodig) */
.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav__link {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  color: #fff; text-decoration: none;
  position: relative; padding: 8px 2px;
  transition: color .25s ease;
  background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.site-header.is-scrolled .site-nav__link { color: var(--e-global-color-text); }
/* Force dark text als mega-menu open is, ook zonder scroll (anders is wit op wit onleesbaar) */
.site-header.mega-open .site-nav__link { color: var(--e-global-color-text); }

.site-nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--e-global-color-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease, background .25s ease;
}
.site-header.is-scrolled .site-nav__link::after { background: var(--e-global-color-primary); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after,
.site-nav__link--active::after { transform: scaleX(1); }

/* Mega trigger button styling, visueel identiek aan een nav-link */
.site-nav__item--mega { position: static; display: inline-flex; align-items: center; }
.site-nav__trigger { font: inherit; }
.site-nav__chevron {
  width: 12px; height: 12px;
  transition: transform .2s ease;
}
.site-nav__item--mega .site-nav__trigger[aria-expanded="true"] .site-nav__chevron {
  transform: rotate(180deg);
}

/* ============================================================
   MEGA MENU
   Wit paneel onder header, volledige breedte, max-width 1200 binnenin.
   ============================================================ */
.mega-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--e-global-color-border);
  box-shadow: 0 16px 40px -20px rgba(15,26,46,0.18);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 49;
}
.mega-menu.is-open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}

.mega-menu__inner {
  max-width: 1400px; margin: 0 auto; padding: 40px var(--gutter) 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px;
}

.mega-menu__col-title {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--e-global-color-text-mute);
  margin: 0 0 16px;
}

.mega-menu__list { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px; }
.mega-menu__list a {
  display: block; padding: 10px 12px; margin: 0 -12px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  color: var(--e-global-color-text); text-decoration: none;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.mega-menu__list a:hover {
  background: var(--e-global-color-bg-soft);
  color: var(--e-global-color-primary);
}

/* Industries variant, ZICHT-stijl strips: donkere intro-kolom + 6 verticale image-strips
   die uitschuiven op hover en de andere comprimeren via flex-grow. */
.mega-menu--strips .mega-menu__inner {
  display: block;
  padding: 0;
  max-width: none;
}
.industries-strips {
  /* Langer zodat het menu de hero CTA's afdekt + ~20px onder hen uitkomt */
  display: flex; height: 500px; gap: 0;
}

/* Witte intro-kolom links, heading + body, geen donkere achtergrond.
   padding-left: 20px lijnt de heading exact uit met de site-header logo. */
.industries-strips__intro {
  flex: 0 0 auto;
  width: calc(max(var(--gutter), (100vw - 1400px) / 2 + var(--gutter)) + 260px);
  background: #fff;
  color: var(--e-global-color-text);
  padding: 36px 28px 36px max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: flex-start;
  border-right: 1px solid var(--e-global-color-border);
}
.industries-strips__intro-title {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(20px, 1.4vw, 24px); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--e-global-color-text);
  margin: 0 0 16px;
}
.industries-strips__intro-text {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 14px; line-height: 1.55;
  color: var(--e-global-color-text-dim);
  margin: 0;
}

/* Rij van 6 strips, vult de resterende beschikbare breedte */
.industries-strips__list {
  flex: 1; display: flex; gap: 0;
}

/* Individuele strip, flex-grow 1 default; op hover wordt deze 1.5x zo breed
   (1.67 / (5 + 1.67) ≈ 25% van totaal = 1.5× de baseline van 16.67%).
   Smoother transition (.6s) zodat de breedte-expansie minder snel voelt. */
.industry-strip {
  position: relative; display: block;
  flex-grow: 1; flex-basis: 0;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  transition: flex-grow .6s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}
.industries-strips__list .industry-strip:hover,
.industries-strips__list .industry-strip:focus-visible { flex-grow: 1.67; }

.industry-strip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  /* Geen scale op hover, de strip-expansie geeft al voldoende beweging */
  transition: filter .35s ease;
  filter: brightness(.72);
}
/* Donkerdere default overlay zodat de titel scherp leesbaar blijft op alle foto's */
.industry-strip__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(15,26,46,0.45) 0%,
    rgba(15,26,46,0.78) 100%);
  transition: background .35s ease;
}

.industry-strip__title {
  position: absolute; top: 22px; left: 20px;
  /* geen right-constraint, geen wrap, overflow wordt geclipt door .industry-strip overflow:hidden */
  white-space: nowrap;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(18px, 1.4vw, 22px); line-height: 1.1; letter-spacing: -0.01em;
  color: #fff;
  z-index: 2;
}

.industry-strip__footer {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  display: flex; align-items: center;
  z-index: 2;
}

/* Arrow is een uitbreidbare pill-button: bevat icoon + (op hover) typewriter text */
.industry-strip__arrow {
  display: inline-flex; align-items: center;
  gap: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  transition: gap .25s ease, padding .25s ease, border-color .25s ease, background .25s ease;
}
.industry-strip__arrow svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Tekst leeft IN de button, typt zichzelf in via max-width met step-timing */
.industry-strip__cta-text {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  transition: max-width .45s steps(11, end);
}

.industry-strip:hover .industry-strip__arrow,
.industry-strip:focus-visible .industry-strip__arrow {
  gap: 8px;
  padding-right: 14px;
  border-color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.18);
}
.industry-strip:hover .industry-strip__cta-text,
.industry-strip:focus-visible .industry-strip__cta-text {
  max-width: 110px;
  transition: max-width .5s steps(11, end) .1s;
}

/* Hover-detail per strip, geen scale, alleen brightness + lichtere overlay */
.industry-strip:hover img,
.industry-strip:focus-visible img {
  filter: brightness(1);
}
.industry-strip:hover .industry-strip__overlay,
.industry-strip:focus-visible .industry-strip__overlay {
  background: linear-gradient(to bottom,
    rgba(15,26,46,0.10) 0%,
    rgba(15,26,46,0.50) 100%);
}
.industry-strip:hover .industry-strip__arrow,
.industry-strip:focus-visible .industry-strip__arrow {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.85);
  transform: translateX(2px);
}

/* Wanneer mega open is, force header naar witte/scrolled look voor leesbaarheid */
.site-header.mega-open {
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--e-global-color-border);
}
.site-header.mega-open .site-header__logo img { filter: none; }
.site-header.mega-open .site-nav__link::after { background: var(--e-global-color-primary); }

/* Right side: CTA (ghost/outline, past bij de gecentreerde nav) */
.site-header__actions { display: flex; align-items: center; gap: 16px; }

.site-header__cta {
  display: inline-flex; align-items: center; justify-content: flex-end;
  gap: 0; overflow: hidden; box-sizing: border-box; white-space: nowrap;
  width: 40px; height: 40px; border-radius: 12px; padding: 0 12px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff; text-decoration: none;
  transition: width .35s cubic-bezier(.4,0,.2,1), gap .35s cubic-bezier(.4,0,.2,1), border-color .2s ease, color .2s ease;
  flex-shrink: 0; will-change: width;
}
.site-header__cta:hover {
  width: 162px; gap: 8px;
}

.site-header.is-scrolled .site-header__cta,
.site-header.mega-open .site-header__cta {
  border-color: var(--e-global-color-primary);
  color: var(--e-global-color-primary);
}

.site-header__cta-text {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  white-space: nowrap; color: currentColor;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.site-header__cta:hover .site-header__cta-text {
  max-width: 130px; opacity: 1;
}
.site-header__cta-icon {
  width: 16px; height: 16px; flex-shrink: 0; flex-grow: 0;
}

/* Mobile toggle */
.site-header__toggle {
  display: none; background: none; border: none; padding: 8px;
  align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  margin-right: -8px;          /* icoonrand exact op de gutter, net als het logo links */
  color: #fff; cursor: pointer;
  transition: color .25s ease;
}
.site-header.is-scrolled .site-header__toggle { color: var(--e-global-color-text); }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-header__toggle { display: inline-flex; }
  /* Nav verborgen: schakel van 3-koloms grid naar flex zodat logo links en
     hamburger gegarandeerd rechts staan (het grid overflowt op smalle schermen). */
  .site-header__inner { display: flex; justify-content: space-between; gap: 16px; }
  /* Touch heeft geen hover: de CTA is hier een vast 44x44 icoon-knop i.p.v. een
     uitklappende knop, zodat de tap-target voldoet aan de 44px-richtlijn. */
  .site-header__cta { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .site-header__cta:hover { width: 44px; gap: 0; }
  .site-header__cta:hover .site-header__cta-text { max-width: 0; opacity: 0; }
}

/* ============================================================
   MOBILE MENU — witte menukaart + gedimde backdrop
   Spec: docs/superpowers/specs/2026-07-02-mobile-menu-card-design.md
   Open/close: .is-open op #mobile-menu (JS). Alleen transform/opacity;
   verborgen staat via visibility (géén display:none, anders geen animatie).
   ============================================================ */
/* Consistente box-metrics binnen de component (site heeft geen globale reset) */
.mobile-menu, .mobile-menu *, .mobile-menu *::before, .mobile-menu *::after { box-sizing: border-box; }

.mobile-menu {
  position: fixed; z-index: 70;
  /* longhand-fallbacks eerst: oudere iOS-Safari kent 'inset' niet */
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  visibility: hidden;
  transition: visibility 0s linear .3s;   /* pas verbergen als de kaart-fade klaar is */
}
.mobile-menu.is-open { visibility: visible; transition-delay: 0s; }

/* Pagina erachter scrolt niet mee zolang het menu open is */
body.mobile-menu-lock { overflow: hidden; overscroll-behavior: none; }

.mobile-menu__backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(15,26,46,0.45);
  opacity: 0;
  /* Constante blur; alleen opacity animeert (backdrop-filter transitions zijn
     onbetrouwbaar op iOS en de blur fadet vanzelf mee met de opacity). */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity .2s ease;
}
.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
  transition: opacity .25s ease;
}

/* Zolang het menu open is: glas-effect van de gescrolde header uit.
   Overlappende backdrop-filters (header .is-scrolled + menu-backdrop) breken
   elkaar in WebKit — dáárom deed de blur het niet na scrollen. De header is
   toch onzichtbaar achter de backdrop. */
body.mobile-menu-lock .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mobile-menu__card {
  position: absolute;
  /* vaste fallbacks eerst: oudere iOS-Safari kent max() niet en liet de
     kaart daardoor op top=0 zonder afmetingen achter */
  top: 12px; left: 12px; right: 12px;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  display: flex; flex-direction: column;
  max-height: calc(100vh - 24px);          /* fallback voor oudere iOS */
  max-height: calc(100dvh - 24px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px -24px rgba(15,26,46,0.35);
  overflow: hidden;                         /* radius clipt de scroll-area */
  opacity: 0;
  transform: translateY(-16px) scale(0.97);
  transform-origin: top center;
  transition: opacity .22s ease, transform .22s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu.is-open .mobile-menu__card {
  opacity: 1;
  transform: none;
  transition: opacity .36s ease, transform .36s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Kop: logo + sluitknop, scrollt niet mee */
.mobile-menu__top {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 14px 10px 24px;   /* ✕ heeft eigen tap-padding; oogt als 24px rondom */
}
.mobile-menu__logo { display: inline-flex; align-items: center; }
.mobile-menu__logo img { height: 24px; width: auto; display: block; }
.mobile-menu__close {
  background: none; border: 0; cursor: pointer; padding: 0;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--e-global-color-text);
}
/* Sluitknop morpht van hamburger naar kruisje tijdens het openen (en terug bij
   sluiten): dicht = twee horizontale balkjes, open = het kruis zoals getekend. */
.mobile-menu__close svg line {
  transform-origin: 12px 12px;
  transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu:not(.is-open) .mobile-menu__close svg line:first-child { transform: translateY(-4px) rotate(45deg); }
.mobile-menu:not(.is-open) .mobile-menu__close svg line:last-child { transform: translateY(4px) rotate(-45deg); }

/* Scrollgebied: nav + CTA */
.mobile-menu__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 24px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}

.mobile-menu__nav { display: flex; flex-direction: column; }


/* Top-level items: uppercase en ruim */
.mobile-menu__link,
.mobile-menu__trigger {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--e-global-color-text); text-decoration: none;
  background: none; border: 0; cursor: pointer; text-align: left;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; min-height: 44px;
}
.mobile-menu__chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--e-global-color-text-mute);
  transition: transform .25s ease;
}
.mobile-menu__item.is-open .mobile-menu__chevron { transform: rotate(180deg); }

/* Dunne scheidingslijnen tussen de top-level items */
.mobile-menu__nav > * { border-bottom: 1px solid var(--e-global-color-border); }
.mobile-menu__nav > *:last-child { border-bottom: 0; }


/* Staggered reveal bij openen; bij sluiten snel en zonder delay */
.mobile-menu__nav > *,
.mobile-menu__cta {
  opacity: 0; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
}
.mobile-menu.is-open .mobile-menu__nav > *,
.mobile-menu.is-open .mobile-menu__cta {
  opacity: 1; transform: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu.is-open .mobile-menu__nav > *:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu__nav > *:nth-child(2) { transition-delay: .11s; }
.mobile-menu.is-open .mobile-menu__nav > *:nth-child(3) { transition-delay: .14s; }
.mobile-menu.is-open .mobile-menu__nav > *:nth-child(4) { transition-delay: .17s; }
.mobile-menu.is-open .mobile-menu__nav > *:nth-child(5) { transition-delay: .20s; }
.mobile-menu.is-open .mobile-menu__nav > *:nth-child(6) { transition-delay: .23s; }
.mobile-menu.is-open .mobile-menu__nav > *:nth-child(7) { transition-delay: .26s; }
.mobile-menu.is-open .mobile-menu__cta { transition-delay: .3s; }

/* Accordion: hoogte animeert via grid-rows (0fr → 1fr), geen hoogtemeting nodig */
.mobile-menu__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu__item.is-open .mobile-menu__panel { grid-template-rows: 1fr; }
.mobile-menu__panel-inner {
  min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding-left: 12px;
  visibility: hidden;                /* dichte panelen uit de tab-volgorde */
  opacity: 0;
  transition: opacity .18s ease, visibility 0s linear .32s;
}
.mobile-menu__item.is-open .mobile-menu__panel-inner {
  visibility: visible; opacity: 1;
  transition: opacity .25s ease .06s, visibility 0s;
}
.mobile-menu__panel-inner > :last-child { margin-bottom: 12px; }

.mobile-menu__panel-inner h5 {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--e-global-color-text-mute);
  margin: 12px 0 4px;
}
.mobile-menu__panel-inner a {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  color: var(--e-global-color-text); text-decoration: none;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0; min-height: 44px;
}
.mobile-menu__panel-inner a:hover { color: var(--e-global-color-primary); }
.mobile-menu__panel-inner .num {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--e-global-color-text-mute);
  min-width: 26px;
}
.mobile-menu__panel-inner a.mobile-menu__all {
  gap: 6px; font-weight: 600;
  color: var(--e-global-color-primary);
}
.mobile-menu__all svg { width: 14px; height: 14px; flex-shrink: 0; }

/* CTA: full-width, primary, zelfde radius als de desktop-CTA.
   Pijl in witte inset-square rechts (brand-stijl .btn--primary op home);
   gelijke padding links/rechts houdt de tekst exact gecentreerd. */
.mobile-menu__cta {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-top: 16px; padding: 12px 44px;   /* ~42px hoog, zelfde inset als .btn */
  background: var(--e-global-color-primary);
  color: #fff; text-decoration: none;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  border-radius: 12px;
}
.mobile-menu__cta::after {
  content: '';
  position: absolute; right: 5px; top: 50%;
  width: 32px; height: 32px;
  transform: translateY(-50%);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338C4EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  border-radius: 8px;
}
.mobile-menu__cta:active { background: #1FA7CC; }

/* Kleinere schermen: iets compactere kaart-marges */
@media (max-width: 420px) {
  .mobile-menu__top { padding-left: 20px; }
  .mobile-menu__scroll { padding-left: 20px; padding-right: 20px; }
}

/* Reduced motion: alleen een fade, geen beweging of stagger */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__card,
  .mobile-menu__nav > *,
  .mobile-menu__cta {
    transform: none !important;
    transition: opacity .2s ease !important;
    transition-delay: 0s !important;
  }
  .mobile-menu__panel { transition: none; }
  .mobile-menu__panel-inner { transition: opacity .15s ease; }
  .mobile-menu__chevron { transition: none; }
  .mobile-menu__close svg line { transition: none; transform: none !important; }
}

/* Desktop: menukaart bestaat niet */
@media (min-width: 1025px) {
  .mobile-menu { display: none; }
}

@media (max-width: 1024px) {
  .mega-menu { display: none; }
}

/* ============================================================
   PHONE (<=640px) — refine header chrome
   Desktop nav already hidden + hamburger shown at <=1024px above.
   ============================================================ */
@media (max-width: 640px) {
  /* Tighter header bar so logo + hamburger fit small viewports */
  .site-header__inner { padding: 12px 16px; gap: 12px; }
  .site-header__logo img { height: 24px; }

  /* Geen glas-blur op de gescrolde header op telefoon: het afbreken van die
     backdrop-filter bij het openen van het menu kostte Safari ±1s, waardoor
     de menu-blur te laat kwam. De bijna-witte achtergrond blijft. */
  .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255,255,255,0.97);
  }

  /* Hide the expanding desktop "Schedule a call" CTA on phones;
     the call-to-action lives inside the mobile menu card instead. */
  .site-header__actions .site-header__cta { display: none; }

  /* Larger, easier tap target for the hamburger; keep icon flush to the gutter */
  .site-header__toggle { padding: 10px; margin-right: -10px; }
}

/* ════════════════════════════════════════════════════════
   SERVICES MEGA-MENU — rich rounded card (promo + 3 categories)
   Keeps class="mega-menu" (open/close logic) + adds .mega-svc.
   ════════════════════════════════════════════════════════ */
.mega-menu.mega-svc { padding: 0; }   /* full-width white panel (base look) */
.mega-svc__inner {
  max-width: 1400px; margin: 0 auto; padding: 38px var(--gutter);
  display: grid; grid-template-columns: 0.4fr 1fr; gap: 22px 36px;
  grid-template-areas: "promo cols" "promo cta"; align-items: stretch;
}
.mega-svc__promo { grid-area: promo; }
.mega-svc__cols { grid-area: cols; }
.mega-svc__cta-bar { grid-area: cta; }
/* full-width CTA bar under the menu */
.mega-svc__cta-bar {
  border-top: 1px solid var(--e-global-color-border); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.mega-svc__cta-title {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; color: var(--e-global-color-text); margin: 0 0 5px;
}
.mega-svc__cta-sub {
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5;
  color: var(--e-global-color-text-dim); margin: 0;
}
/* A — promo panel (accent cyan) */
.mega-svc__promo { position: relative; border-radius: 0; overflow: hidden; min-height: 320px; display: flex; }
.mega-svc__promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-svc__promo-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,26,46,0.9) 0%, rgba(15,26,46,0.45) 48%, rgba(15,26,46,0.12) 100%); }
.mega-svc__promo-content { position: relative; z-index: 1; margin-top: auto; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.mega-svc__promo-title {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; color: #fff; margin: 0;
}
.mega-svc__promo-text {
  font-family: 'Inter', sans-serif; font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,0.9); margin: 0;
}
/* device mockup: laptop + phone (CSS frames, img placeholders) */
.mega-svc__devices { position: relative; margin-top: auto; padding: 22px 6px 14px; }
.mega-svc__laptop { position: relative; width: 84%; margin: 0 auto 0 0; }
.mega-svc__laptop-screen {
  border: 4px solid #16202f; border-radius: 10px 10px 2px 2px;
  aspect-ratio: 16 / 10; overflow: hidden; background: #fff;
}
.mega-svc__laptop-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-svc__laptop-base {
  width: 118%; height: 9px; margin-left: -9%;
  background: linear-gradient(#e9edf3, #cdd5e0); border-radius: 0 0 8px 8px;
}
.mega-svc__phone {
  position: absolute; left: 0; bottom: -4%; width: 27%;
  border: 3px solid #16202f; border-radius: 13px; overflow: hidden;
  background: #fff; aspect-ratio: 9 / 18;
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.5);
}
.mega-svc__phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* B — 3 category columns */
.mega-svc__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mega-svc__cat-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--e-global-color-border);
}
.mega-svc__cat-title {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px;
  letter-spacing: 0.02em; color: var(--e-global-color-text); margin: 0;
}
.mega-svc__list { list-style: none; margin: 0; padding: 0; }
.mega-svc__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--e-global-color-text-dim); text-decoration: none;
  transition: color .15s ease;
  padding-top: 13px; padding-bottom: 13px;
}
.mega-svc__list a svg {
  width: 15px; height: 15px; flex-shrink: 0; color: var(--e-global-color-primary);
  opacity: 0; transition: transform .2s ease, opacity .15s ease;
}
.mega-svc__list a:hover { color: var(--e-global-color-primary); }
.mega-svc__list a:hover svg { transform: translateX(4px); opacity: 1; }
/* tablet: promo on top, columns below */
@media (max-width: 1024px) {
  .mega-svc__inner { grid-template-columns: 1fr; }
  .mega-svc__promo { flex-direction: row; align-items: center; gap: 18px; }
  .mega-svc__promo-text { flex: 1; }
  .mega-svc__devices { display: none; }
}

/* promo CTA */
.mega-svc__cta { margin-top: 2px; }
.mega-svc__cta-text {
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5;
  color: var(--e-global-color-text-dim); margin: 0 0 10px;
}
.mega-svc__cta-btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--e-global-color-primary); color: #fff; text-decoration: none;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  transition: background .2s ease;
}
.mega-svc__cta-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.mega-svc__cta-btn:hover { background: #1FA7CC; }
.mega-svc__cta-btn:hover svg { transform: translateX(3px); }
