/* Responsive — component rules moved from style.css, in original order. */

@media (max-width: 960px) {
    .section-columns {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 960px) {
    .problems ul {
        margin-block: 0;
    }

    .posts .wrapper {
        padding-inline: 3dvw;
        gap: 40px;
    }

    .posts .post-content {
        padding: 40px;
    }
}

@media (max-width:600px) {
    .bs-think {
        margin: 28px 0;
    }

    .bs-think__box {
        height: 56px;
        padding: 0 16px;
        gap: 10px;
        font-size: 16px;
    }

    .bs-think__drop {
        padding: 20px 6px 6px;
    }

    .bs-think__row {
        padding: 10px;
        gap: 12px;
    }

    .bs-think__row--top {
        height: 84px;
    }

    .bs-think__logo {
        width: 34px;
        height: 34px;
    }

    .bs-think__txt b {
        font-size: 15.5px;
    }

    .bs-think__sub {
        font-size: 13px;
        white-space: normal;
        line-height: 1.35;
    }

    .bs-think.is-on .bs-think__sub {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bs-think.is-on .bs-think__badge {
        display: none;
    }
}

@media (prefers-reduced-motion:reduce) {
    .bs-think * {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 960px) {
    .projects .section-columns:nth-child(n) {
        flex-direction: column;
    }

    .projects .section-columns > * {
        flex: 0 0 auto;
    }

    .project-content {
        justify-content: flex-start;
    }

    .project-quote {
        padding-top: 0;
    }

    .project-footer {
        margin-top: 0;
    }
}

@media (max-width: 960px) {
    .faq .wrapper {
        padding-inline: 80px;
    }
}

@media (max-width: 600px) {
    .faq .wrapper {
        padding-inline: 40px;
    }
}

@media (max-width: 960px) {
    .cta {
        /* Minimaal 64px: de kleinere avatar (40px omhoog) blijft 24px binnen de sectie. */
        padding-top: max(calc(var(--section-block-padding) - 20px), 64px);
    }

    .cta-card {
        padding: 120px 48px 80px;
    }

    .cta-card::before {
        width: 120px;
        height: 120px;
        transform: translate(-50%, -40px);
    }
}

@media (max-width: 600px) {
    .cta-card {
        padding: 112px 48px 64px;
    }
}

@media (max-width: 768px) {
    .newsletter .newsletter-frame {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .newsletter .form input[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .contact-grid {
        gap: 64px;
    }
}

@media (max-width: 600px) {
    .contact-grid {
        gap: 56px;
    }

    .contact-intro {
        gap: 24px;
    }

    .contact-side {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-person img {
        width: 64px;
        height: 64px;
    }

    .contact-form {
        gap: 32px;
    }

    .contact-option {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .contact-option small {
        margin-left: 30px;
    }
}

@media (max-width: 600px) {

    .check-lead .check-button {
        width: 100%;
    }

    .check-chain {
        gap: 6px;
    }

    .check-chain-item {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal *,
    .mobile-menu,
    .mobile-menu li,
    .mobile-menu a,
    .menu-toggle span {
        transition: none !important;
    }
}

@media (max-width: 600px) {

    .check-progress-track {
        margin-bottom: 38px;
    }

    .check-answer {
        min-height: 68px;
        padding: 14px 16px;
    }

    .check-result-summary {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .check-score {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
    }

    .check-meeting-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .check-meeting-inline {
        gap: 18px;
    }
}

@media (max-width: 700px) {
    .modal {
        --modal-padding: 20px;
        --modal-padding-block: 24px;
        padding: 0;
    }

    .modal-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .modal-title .label::before {
        display: none;
    }

    .modal-dialog {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }
}

/* ==========================================================================
   Aanvullende responsive regels per onderdeel
   ========================================================================== */

@media (max-width:960px) {
    .card {
        padding: 48px 32px;
    }

    .card .card-badge {
        left: 32px;
    }

    .card-large {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pricings .cards {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .card-best {
        order: -1;
    }

    .addons-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width:600px) {
    .card, .card-large-plan, .offer {
        padding: 40px 24px;
    }

    .card .card-badge {
        left: 24px;
    }
}

/* Contact — Groeiplan CTA */

@media (max-width: 600px) {
    .contact-groeiplan .cta-card {
        padding-inline: 24px;
    }
}

/* ==========================================================================
   Mobile navigation
   ========================================================================== */

@media (max-width: 768px) {
    .header {
        z-index: 200;
    }

    .header > .wrapper {
        position: relative;
        z-index: 2;
        padding-inline: 20px;
    }

    .header .logo {
        position: relative;
        z-index: 2;
    }

    .header .logo img {
        width: clamp(128px, 34vw, 170px);
    }

    .header-nav {
        display: none;
    }

    .header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-contact {
        white-space: nowrap;
    }

    .button.header-rating {
        gap: 6px;
        padding-inline: 12px;
    }

    /* Even hoog als de Contact-knop ernaast (regelhoogte + padding van de kleine button). */
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        width: calc(var(--font-size-small) * 1.3 + 20px);
        height: calc(var(--font-size-small) * 1.3 + 20px);
        padding: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: var(--color-white);
        position: relative;
        z-index: 2;
    }

    .menu-toggle span {
        display: block;
        width: 21px;
        height: 1px;
        background: currentColor;
        border-radius: 2px;
        transition: transform 0.3s ease;
    }

    .header.menu-open .menu-toggle span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .header.menu-open .menu-toggle span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }

    /* Het menu hangt onder de aankondigingsbalk en vouwt van boven naar beneden open.
       Dicht gaat het omgekeerd: eerst de items weg, dan klapt het menu omhoog. */
    .mobile-menu {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 75vh;
        height: 75dvh;
        min-height: 300px;
        align-items: center;
        justify-content: center;
        background: var(--color-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        pointer-events: none;
        transition: clip-path 0.45s cubic-bezier(0.76, 0, 0.24, 1) 0.15s, visibility 0s 0.6s;
    }

    .header.menu-open .mobile-menu {
        clip-path: inset(0 0 -100px 0);
        visibility: visible;
        pointer-events: auto;
        transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s;
    }

    .mobile-menu li {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.2s ease, transform 0.25s ease;
    }

    .mobile-menu li:nth-child(1) {
        transition-delay: 0.15s;
    }

    .mobile-menu li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .mobile-menu li:nth-child(3) {
        transition-delay: 0.05s;
    }

    .header.menu-open .mobile-menu li {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease 0.35s, transform 0.9s var(--ease-soft) 0.35s;
    }

    .header.menu-open .mobile-menu li:nth-child(2) {
        transition-delay: 0.41s;
    }

    .header.menu-open .mobile-menu li:nth-child(3) {
        transition-delay: 0.47s;
    }

    .header.menu-open .mobile-menu li:nth-child(4) {
        transition-delay: 0.53s;
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(20px, 4dvh, 36px);
        padding: 40px 20px 24px;
        text-align: center;
    }

    .mobile-menu a {
        display: inline-block;
        font-size: clamp(28px, 7vw, 42px);
        line-height: 1.2;
        letter-spacing: -0.035em;
        color: var(--color-white);
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus-visible {
        color: var(--color-brand-soft);
        transform: translateY(-2px);
    }
}

/* Signup cards */
@media (max-width: 960px) {
    .newsletter .section-columns {
        flex-direction: column;
        gap: 24px;
    }
}
@media (max-width: 600px) {
    .newsletter .newsletter-frame {
        padding: 32px 24px;
    }
    .newsletter .form {
        flex-direction: column;
    }
    .newsletter .form button.button {
        width: 100%;
    }
    .newsletter .form input[type="email"], .newsletter .form input[type="tel"] {
        width: 100%;
    }
}

/* ========================================================================
   Mobile polish — shared layout and navigation
   ======================================================================== */
.header-nav a[aria-current="page"]:not(.button) {
    color: var(--color-brand-soft);
}
.header-nav a[aria-current="page"].button,
.header-contact[aria-current="page"] {
    background: var(--color-brand);
    color: #fff;
}
.mobile-menu a[aria-current="page"] {
    color: var(--color-brand-soft);
}
.menu-toggle:focus-visible, .header a:focus-visible {
    outline: 2px solid #9ca7ff;
    outline-offset: 5px;
}

@media (max-width: 960px) {
  .wrapper {
      padding-inline: clamp(20px, 5vw, 40px);
  }
  .section-columns, .projects .section-columns:nth-child(odd), .projects .section-columns:nth-child(even) {
      flex-direction: column;
      gap: clamp(28px, 6vw, 56px);
  }
  .section-columns > *, .project-figure, .project-content {
      min-width: 0;
      width: 100%;
  }
  .project-content {
      padding-block: 0;
      gap: 28px;
  }
  .project-figure, .problems .wrapper .figure {
      max-height: 680px;
  }

  .problems {
      padding-bottom: clamp(72px, 12vw, 130px);
  }
  .contact-side {
      grid-template-columns: 1fr;
      gap: 24px;
  }
  .contact-block {
      min-width: 0;
  }
}
/* Hero: onder 1024px komt de proof onder de knoppen, voordat ze tegen elkaar aan lopen.
   De lijn verbindt alleen knoppen en proof op één rij, dus gestapeld valt hij weg. */
@media (max-width: 1023px) {
    .hero .details {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 768px) {
  :root {
      --font-size-h1: clamp(38px, 9.5vw, 60px);
      --font-size-h2: clamp(32px, 8vw, 48px);
      --font-size-h3: clamp(28px, 7vw, 42px);
  }
  .header {
      padding: 16px 0;
  }
  .header > .wrapper {
      gap: 12px;
  }
  .header .logo {
      min-width: 0;
  }
  .header .logo img {
      max-width: 100%;
  }
  .mobile-menu {
      max-height: 100dvh;
      overflow-y: auto;
  }
  .hero-content .wrapper {
      gap: clamp(18px, 4vw, 28px);
  }
  .hero-content h1, .page-hero-01 h1, .page-hero-02 h1 {
      overflow-wrap: break-word;
  }
  .page-hero-01 h1 br {
      display: none;
  }
  .modal-body > h2 br {
      display: none;
  }
  .hero-content p {
      max-width: 650px;
  }
  .hero .details {
      align-items: stretch;
  }
    .buttons {
      flex-wrap: wrap;
      flex-direction: column;
      gap: 12px;
  }
  .buttons .button {
      width: 100%;
      padding: 15px 18px;
  }
  .hero .details .proof {
      align-self: flex-start;
  }
  .contact-grid {
      gap: 48px;
  }
  .contact-block {
      padding: clamp(24px, 5vw, 36px);
  }
  .contact-person {
      min-width: 0;
  }
  .contact-person > div:last-child {
      min-width: 0;
      overflow-wrap: anywhere;
  }
  .contact-person a {
      overflow-wrap: anywhere;
  }
  .problems .wrapper .content {
      gap: 24px;
  }
  .problems ul {
      margin-block: 12px;
      gap: 20px;
  }
  .problems span {
      padding: 22px;
  }
  .newsletter .newsletter-frame {
      min-width: 0;
  }
  .newsletter .form {
      min-width: 0;
  }
  .newsletter .form input[type="email"], .newsletter .form input[type="tel"] {
      min-width: 0;
      max-width: 100%;
  }
}
@media (max-width: 480px) {
  .wrapper {
      padding-inline: 20px;
  }
  .header > .wrapper {
      padding-inline: 20px;
  }
  .header-mobile-actions {
      gap: 8px;
      flex-shrink: 0;
  }
  .hero-content h1 {
      font-size: clamp(34px, 9.3vw, 46px);
      line-height: 1.12;
  }
  .hero-content p {
      font-size: clamp(15px, 3.8vw, 18px);
      line-height: 1.5;
  }
  .hero-content .wrapper {
      gap: 18px;
  }
  .hero .details {
      gap: 18px;
  }
  .hero .details .buttons {
      flex-direction: column;
  }
  .hero .details .buttons .button {
      width: 100%;
      flex: 0 0 auto;
      min-height: 56px;
  }
  .hero .details .proof {
      font-size: 13px;
  }
  .contact-person {
      gap: 16px;
  }
  .contact-person img {
      width: 64px;
      height: 64px;
  }
  .contact-block .button {
      max-width: 100%;
  }
  .project-figure, .problems .wrapper .figure {
      aspect-ratio: 4 / 5;
  }
  .newsletter .newsletter-frame {
      padding: 28px 22px;
  }
  .newsletter .newsletter-frame .content h4 {
      font-size: clamp(25px, 7vw, 32px);
  }
  .newsletter .newsletter-frame .form input[type="email"], .newsletter .newsletter-frame .form input[type="tel"] {
      font-size: 16px;
  }
}
@media (max-width: 360px) {
  .header .logo img {
      width: 120px;
  }
  .header-contact {
      padding-inline: 11px;
  }
  .hero-content h1 {
      font-size: 32px;
  }
  .hero .details .proof .text {
      font-size: 12px;
  }
}

/* Let the home hero grow on short mobile screens instead of clipping CTAs. */
@media (max-width: 768px) {
  .hero {
      position: relative;
      inset: auto;
      height: auto;
      min-height: 100svh;
      min-height: 100dvh;
      display: flex;
      align-items: flex-end;
  }
  /* Met de aankondigingsbalk erboven past de hero precies in het scherm. */
  .announce ~ .hero {
      min-height: calc(100svh - var(--announce-height));
      min-height: calc(100dvh - var(--announce-height));
  }
  .hero > figure {
      position: absolute;
      inset: 0;
  }
  /* Op mobiel alleen een verloop onder de tekst; de bovenkant van de foto blijft helder. */
  .hero > figure::after {
      background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.45) 60%, transparent 80%);
  }
  .hero .wrapper::before {
      content: none;
  }
  .hero-content {
      position: relative;
      bottom: auto;
      padding-top: 120px;
      padding-bottom: clamp(24px, 5dvh, 52px);
  }
}

/* Werkwijze: 'Zo werkt het' (onder 1024px onder elkaar) */
@media (max-width: 1023px) {
    .offer { grid-template-columns: 1fr; }
    .bs-steps { grid-template-columns: 1fr; gap: 20px; }
    .bs-step { aspect-ratio: auto; padding: 32px 24px; }
    .bs-step::before { margin-bottom: 12px; }
    .bs-step:nth-child(n) { transform: none; }
}

/* Hero-knoppen: op de kleinste telefoons onder elkaar, vanaf 390px naast elkaar.
   Tot 640px met korte tekst en zonder minutenlabel, daarboven past de volledige tekst. */
.button-short {
    display: none;
}

@media (min-width: 390px) and (max-width: 768px) {
    .hero .details .buttons {
        flex-direction: row;
    }

    .hero .details .buttons .button {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        white-space: nowrap;
    }
}

@media (min-width: 390px) and (max-width: 639px) {
    .hero .buttons .button-full,
    .hero .buttons .button-label {
        display: none;
    }

    .hero .buttons .button-short {
        display: inline;
    }
}

/* Verhaal: gestapeld staat de foto gewoon boven de tekst. */
@media (max-width: 960px) {
    .story-figure {
        position: relative;
        top: auto;
        flex: 1;
        width: 100%;
        height: auto;
        margin-inline-end: 0;
    }

    .story-content .story-lead {
        margin-top: 0;
    }
}

/* Hero-intro en paginatitels: regelafbrekingen blijven staan tot en met iPhone 16 Pro (402px),
   zodat ze zo lang mogelijk op twee (titels) of drie (intro) regels blijven. */
/* Kleine telefoons: compactere beoordeling zodat het logo zo min mogelijk krimpt. */
@media (max-width: 389px) {
    .button.header-rating {
        padding-inline: 10px;
    }
}

@media (max-width: 401px) {
    .hero-content p br,
    .page-hero-02 h1 br {
        display: none;
    }
}
