/* ============================================================
   The Brainbox² — landing/marketing page styles
   ============================================================
   Nav, hero, sections, testimonial slider, footer. Everything the
   PUBLIC pages share and the two apps do not.

   Extracted 2026-07-30 from an inline <style> block that was
   duplicated byte-for-byte in index.html and en/index.html. It is
   also what /werkkaarte needs — the new page linked only brand.css
   and rendered completely unstyled, which is what forced the split.

   Loaded by: index.html, en/index.html, werkkaarte.html.
   brand.css holds the DESIGN SYSTEM (tokens, buttons, inputs) and is
   shared with app.html/personeel.html; this file is landing-only.
   Add a rule here and it lands on all three public pages at once.
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background .3s, box-shadow .3s, padding .3s;
    padding: 15px 0;
    background: transparent;
  }

  .nav.scrolled {
    padding: 9px 0;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 4px 16px rgba(34, 38, 50, .10);
    border-bottom: 1px solid #F1F2F4;
  }

  .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(18px, 5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 30px);
  }

  .nav-link {
    text-decoration: none;
    color: #444B5A;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 4px;
    transition: color .15s;
  }

  .nav-link:hover {
    color: #EE5592;
  }

  .brandmark {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex: none;
  }

  .brandmark span {
    font-family: var(--font-chunk);
    font-size: 1.32rem;
    letter-spacing: .5px;
    color: #58585A;
    line-height: 1;
    padding-top: 3px;
  }

  .hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    border: 1.5px solid #D6D9DE;
    background: #fff;
    cursor: pointer;
    color: #222632;
  }

  .mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #F1F2F4;
    box-shadow: 0 12px 24px rgba(34, 38, 50, .10);
    padding: 14px clamp(18px, 5vw, 48px) 22px;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    text-decoration: none;
    color: #222632;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 13px 8px;
    border-radius: 10px;
  }

  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  .class-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
  }

  .class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(34, 38, 50, .12);
  }

  .contact-tile {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    transition: transform .18s, box-shadow .18s;
  }

  .contact-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(34, 38, 50, .10);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .92fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .hero-grid--spotlight {
    grid-template-columns: .95fr 1.05fr;
  }

  .stats-grid,
  .classes-grid,
  .about-grid,
  .testi-grid,
  .contact-grid,
  .footer-grid {
    display: grid;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 40px);
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
  }

  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .about-grid {
    grid-template-columns: .85fr 1.05fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
  }

  .testi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .testi-slider {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
  }

  .testi-slides {
    position: relative;
    overflow: hidden;
    transition: min-height .5s ease;
  }

  .testi-slide {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 22px;
    padding: 30px 28px;
    border: 1px solid #F1F2F4;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform .9s cubic-bezier(.65, .05, .36, 1), opacity .6s ease;
    pointer-events: none;
  }

  .testi-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
  }

  .testi-slide.is-leaving {
    opacity: 0;
    transform: translateX(100%);
    z-index: 1;
  }

  .testi-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
  }

  .testi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #E5E7EB;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
  }

  .testi-dot:hover {
    background: #D7D9DE;
  }

  .testi-dot.is-active {
    background: #EE5592;
    transform: scale(1.25);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  @media (max-width:880px) {
    .nav-links {
      display: none;
    }

    .hamburger {
      display: inline-flex;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .classes-grid {
      grid-template-columns: 1fr;
    }

    .testi-grid {
      grid-template-columns: 1fr;
    }

    .footer-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .benefits-grid {
      grid-template-columns: 1fr;
    }

    .steps-grid {
      grid-template-columns: 1fr 1fr;
    }

    /* centre all section headings on phone/tablet single-column view */
    #top h1,
    h2.bx-chunk {
      text-align: center;
    }
  }

  @media (max-width:560px) {
    .stats-grid {
      grid-template-columns: 1fr 1fr;
    }

    .stats-grid > :nth-child(3) {
      grid-column: 1 / -1;
    }

    .steps-grid {
      grid-template-columns: 1fr;
    }
  }

  @keyframes bxsway {
    0% {
      transform: rotate(-1.5deg);
    }

    50% {
      transform: rotate(1.5deg);
    }

    100% {
      transform: rotate(-1.5deg);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    [style*="bxsway"] {
      animation: none !important;
    }

    .testi-slide {
      transition: none;
    }
  }
