/*
 * ArboMaatwerk shared UI refinements
 * Centralises button, spacing, CTA, FAQ and responsive behaviour.
 */

/* Consistent, readable buttons */
.btn {
  white-space: nowrap;
  text-wrap: nowrap;
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.faq summary:focus-visible {
  outline: 3px solid #80b895;
  outline-offset: 3px;
}

/* WhatsApp is intentionally available on every page. */
.direct-contact-actions {
  display: flex !important;
}

/* Shorter, calmer primary navigation. */
@media (min-width: 1181px) {
  header nav,
  header nav.has-contact-item {
    width: min(100%, 660px) !important;
    display: flex !important;
    justify-content: center !important;
    gap: clamp(10px, 1vw, 14px) !important;
  }

  header nav a {
    width: auto !important;
    flex: 0 0 auto !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  header nav,
  header nav.has-contact-item {
    width: min(100%, 650px) !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 9px !important;
  }

  header nav a {
    width: auto !important;
    flex: 0 0 auto !important;
    font-size: 13.5px !important;
  }
}

.knowledge-overview-link {
  margin: 24px 0 0;
}

.knowledge-overview-link a {
  color: var(--green, #0f3f1c);
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 981px) {
  header nav a.active {
    color: var(--green, #0f3f1c) !important;
    border-bottom-width: 3px !important;
  }
}

/* A calmer vertical rhythm between page sections */
main > section:not(.hero) {
  padding-block: 60px;
}

main > section + section:not(.hero) {
  border-top: 0;
}

/* CTA component */
.cta {
  padding-block: 52px 64px !important;
}

.cta .cta-box {
  gap: clamp(28px, 5vw, 64px);
}

.cta .cta-box > div:first-child {
  flex: 1 1 680px;
  min-width: 0;
}

.cta .cta-box .btn {
  flex: 0 0 auto;
  min-width: 190px;
  padding-inline: 28px;
}

/* Native, accessible FAQ accordions with a clearer affordance */
.faq {
  gap: 12px;
}

.faq details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line, #e6ecea);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(6, 31, 59, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq details:hover,
.faq details[open] {
  border-color: rgba(15, 63, 28, 0.28);
  box-shadow: 0 10px 28px rgba(6, 31, 59, 0.07);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 17px 58px 17px 20px;
  color: var(--blue, #061f3b);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft2, #eef5f2);
  color: var(--green, #0f3f1c);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > p {
  margin: 0;
  padding: 0 58px 20px 20px;
  color: var(--muted, #64748b);
  line-height: 1.7;
}

@media (max-width: 980px) {
  main > section:not(.hero) {
    padding-block: 50px;
  }

  .cta .cta-box .btn {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  main > section:not(.hero) {
    padding-block: 42px !important;
  }

  .cta {
    padding-block: 36px 46px !important;
  }

  .cta .cta-box {
    gap: 22px !important;
  }

  .cta .cta-box > div:first-child {
    flex: 0 1 auto;
  }

  .cta .cta-box .btn {
    width: 100% !important;
    min-width: 0;
    white-space: normal;
    text-wrap: balance;
  }

  .faq summary {
    min-height: 58px;
    padding: 15px 54px 15px 17px;
    font-size: 16px;
  }

  .faq summary::after {
    right: 14px;
  }

  .faq details > p {
    padding: 0 17px 18px;
  }

  /* Keep the compact WhatsApp action clear of footer links. */
  footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .direct-contact-actions {
    z-index: 90 !important;
  }

  .direct-contact-actions {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .faq details,
  .direct-contact-action {
    transition: none !important;
  }
}


/* BKV-model vacancy flow: clear owner, process and conversion path */
.application-process{padding:18px 0 0!important}
.application-process ol{list-style:none!important;padding:0!important;margin:18px 0 0!important;display:grid;gap:12px;counter-reset:steps}
.application-process li{counter-increment:steps;display:grid;grid-template-columns:38px 1fr;column-gap:12px;align-items:start;padding:15px;border:1px solid #e6ecea;border-radius:18px;background:#f8fbfa;color:#334155!important}
.application-process li:before{content:counter(steps);grid-row:1 / span 2;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0f3f1c;color:#fff;font-weight:900}
.application-process li strong{color:#061f3b}.application-process li span{font-size:15px;color:#64748b}
.sidebar-back-link{margin:12px 0 0;text-align:center;font-size:14px}.sidebar-back-link a{color:#475569;text-decoration:underline;text-underline-offset:3px}
.vacancy-date{display:inline-flex;align-items:center;font-size:13px;font-weight:800;color:#64748b}
@media(max-width:640px){.application-process li{grid-template-columns:34px 1fr;padding:13px}.application-process li:before{width:30px;height:30px}}

/* Subtle, one-time staggered reveals for selected process and benefit groups. */
.motion-ready .stagger-reveal > .stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .58s ease, transform .58s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

.motion-ready .stagger-reveal > .stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .stagger-reveal > .stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 2026-08-07: homepage route-afbeelding volledig zichtbaar op mobiel/tablet */
@media (max-width:850px){
  .home-route-card{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    overflow:visible!important;
    padding:8px!important;
  }
  .home-route-card picture{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    overflow:visible!important;
  }
  .home-route-card img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    clip-path:none!important;
    transform:none!important;
    animation:none!important;
  }
}


/* 2026-08-07: extra-brede desktopweergave */
@media (min-width: 1600px) {
  .container,
  header .container.nav,
  header .nav {
    width: calc(100% - 96px) !important;
    max-width: 1560px !important;
  }

  header .container.nav,
  header .nav {
    grid-template-columns: 220px minmax(0, 1fr) 112px !important;
  }

  header nav,
  header nav.has-contact-item {
    width: min(100%, 900px) !important;
    gap: clamp(14px, 1.2vw, 24px) !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 700px) minmax(480px, 620px) !important;
    gap: clamp(64px, 6vw, 110px) !important;
    justify-content: space-between !important;
  }

  .home-route-card {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    justify-self: end !important;
  }

  .cards,
  .split,
  .steps,
  .benefits-grid,
  .vacancy-grid,
  .vacancies-grid,
  .jobs-grid,
  .audience-grid,
  .values-grid {
    width: 100%;
  }

  .section-head p,
  .lead,
  .content-card p,
  .panel p,
  .card p {
    max-width: 76ch;
  }
}

@media (min-width: 2100px) {
  .container,
  header .container.nav,
  header .nav {
    width: calc(100% - 128px) !important;
    max-width: 1840px !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 760px) minmax(520px, 660px) !important;
    gap: 120px !important;
    justify-content: space-between !important;
  }

  .home-route-card {
    width: min(100%, 660px) !important;
    max-width: 660px !important;
  }
}
