/*
 * Components — Junto Media
 * Universele componenten. Secties en design staan in style.css.
 */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 16px;
  background: var(--pink);
  color: #fff;
  z-index: 100000;
}

/* ==========================================================================
 * THEME TOAST — subtiele melding bij dark/light toggle
 *
 * Verschijnt rechtsonder bij theme-switch click, blijft 2.5s, fadet weg.
 * Bekijk JS in navigation.js, HTML in header.php (alleen op pagina's met
 * de theme-switch knop).
 * ========================================================================== */
.theme-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.theme-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.theme-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

/* Lichte modus: toast meekleuren met de hybrid look */
.is-hybrid .theme-toast {
  background: #fff;
  border-color: var(--light-border);
  color: var(--light-text);
}

@media (max-width: 640px) {
  .theme-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
  }
}

/* ==========================================================================
 * STAT SYMBOL (universeel — pink kleuring voor + % wk etc binnen cijfers,
 * gebruikt door jm_pink_symbols() helper)
 * ========================================================================== */
.stat-sym {
  color: var(--pink);
}

/* ==========================================================================
 * BREADCRUMB (universeel — gebruikt op interne pagina's, cases, etc.)
 * ========================================================================== */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
/* In lightmode is var(--border) (#1e1e1e) hard tegen lichte bg — subtieler.
   Plus een top-border voor symmetrie met dark (waar de header-nav-bottom
   visueel als top-lijn dient; in light is de header transparent). */
.is-hybrid .breadcrumb {
  border-top: 1px solid var(--light-border);
  border-bottom-color: var(--light-border);
}
.breadcrumb__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-num);
}
.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--pink);
}
.breadcrumb__sep {
  color: var(--text-faint);
}
.breadcrumb__current {
  color: var(--pink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .breadcrumb__inner {
    padding: 0 24px;
  }
}

/* ==========================================================================
 * CTA FINAL (universeel — gebruikt op dienst, subdienst, team, over-ons,
 * contact, cases. De .cta-bg/.cta-content/.cta-lbl/.cta-title staan al in
 * style.css; deze wrapper geeft de positionering + padding.)
 * ========================================================================== */
.cta-final {
  padding: 160px var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.cta-final .cta-title {
  font-size: clamp(40px, 6vw, 80px);
  margin-bottom: 16px;
}
.cta-final .cta-sub {
  font-size: 16px;
  color: var(--text-faint);
  margin-bottom: 48px;
}
.cta-final .cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-final__btn {
  font-size: 15px;
  padding: 18px 44px;
}
.cta-final__ghost {
  font-size: 15px;
  background: none;
  border: none;
  cursor: none;
  font-family: inherit;
  color: var(--text);
}

@media (max-width: 720px) {
  .cta-final {
    padding: 96px 24px;
  }
}

/* ==========================================================================
 * SECTION (page, index, 404)
 * ========================================================================== */
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-header__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  line-height: 1;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section--white {
  background: var(--dark);
}

/* Section met lichte achtergrond — voor tekst-zware pagina's (legal,
   blog content, etc). Page-content kleuren binnen draaien automatisch om. */
.section--light {
  background: var(--light-bg);
  border-bottom: 1px solid var(--light-border);
  color: var(--light-text);
}
.section--light .page-content { color: var(--light-muted); }
.section--light .page-content h2,
.section--light .page-content h3,
.section--light .page-content h4 { color: var(--light-text); }
.section--light .page-content strong { color: var(--light-text); }
.section--light .page-content blockquote {
  color: var(--light-muted);
  border-left-color: var(--pink);
}
.section--light .page-content hr { border-top-color: var(--light-border); }
.section--light .page-content th,
.section--light .page-content td { border-color: var(--light-border); }
.section--light .page-content th {
  background: var(--light-bg2);
  color: var(--light-text);
}
.section--light .page-pagination {
  border-top-color: var(--light-border);
  color: var(--light-text-num);
}
.section--light .page-pagination > span:first-child { color: var(--light-text); }
.section--light .page-pagination a { color: var(--light-text-num); }
.section--light .page-pagination a span,
.section--light .page-pagination > span:not(:first-child) > span {
  border-color: var(--light-border);
}

.page-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 40px 0 16px;
}
.page-content h2 { font-size: 28px; }
.page-content h3 { font-size: 22px; }
.page-content h4 { font-size: 18px; font-weight: 700; margin-top: 32px; }
.page-content p {
  margin-bottom: 16px;
}
.page-content a {
  color: var(--pink);
  text-decoration: underline;
}
.page-content a:hover {
  text-decoration: none;
}
.page-content strong { color: var(--text); font-weight: 600; }
.page-content em { font-style: italic; }
.page-content ul,
.page-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
  list-style: revert;
}
.page-content li { margin-bottom: 8px; }
.page-content li > ul,
.page-content li > ol { margin-top: 8px; }
.page-content blockquote {
  border-left: 3px solid var(--pink);
  padding: 4px 0 4px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}
.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.page-content th,
.page-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.page-content th {
  background: var(--dark2);
  color: var(--text);
  font-weight: 700;
}

/* wp_link_pages — multi-page content navigatie */
.page-pagination {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.page-pagination > span:first-child { color: var(--text); margin-right: 8px; }
.page-pagination a span,
.page-pagination > span:not(:first-child) > span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.page-pagination a { text-decoration: none; color: var(--text-muted); }
.page-pagination a:hover span { border-color: var(--pink); color: var(--pink); }
.page-pagination > span:not(:first-child) > span { border-color: var(--pink); color: var(--pink); }

/* Posts (index) */
.post {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.post:first-child {
  padding-top: 0;
}
.post__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.post__title a:hover {
  color: var(--pink);
}
.post__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
 * 404 — Creatieve foutpagina
 * Groot outline "404" als visuele anker met drift-animatie, gecentreerde
 * tekst met homepage-hero stijl gestapelde headline.
 * ========================================================================== */
.e404 {
  min-height: calc(100vh - 240px);
  padding: 80px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.e404__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(220px, 38vw, 560px);
  font-weight: 900;
  letter-spacing: -16px;
  line-height: 0.9;
  -webkit-text-stroke: 2px var(--muted2);
  color: transparent;
  user-select: none;
  pointer-events: none;
  animation: e404-float 8s ease-in-out infinite;
}

@keyframes e404-float {
  0%, 100% { transform: translateY(-8px); }
  50%     { transform: translateY(8px); }
}

.e404__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.e404__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 32px;
}
.e404__tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--pink);
}

.e404__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 32px;
}
.e404__title-accent  { color: var(--pink); }
.e404__title-outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}
.e404__title-dot { color: var(--pink); }

.e404__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-faint);
  max-width: 480px;
  margin: 0 auto 40px;
}

.e404__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.e404__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.e404__link:hover { color: var(--pink); }

.e404__url {
  margin-top: 56px;
  font-size: 11px;
  color: var(--text-num);
  letter-spacing: 0.5px;
}
.e404__url code {
  background: var(--dark2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-left: 4px;
  font-family: ui-monospace, monospace;
  color: var(--text-faint);
}

/* Hybrid mode — meekleurt met de lichte modus */
.is-hybrid .e404__num            { -webkit-text-stroke-color: var(--light-border); }
.is-hybrid .e404__title          { color: var(--light-text); }
.is-hybrid .e404__title-outline  { -webkit-text-stroke-color: var(--light-text); }
.is-hybrid .e404__body           { color: var(--light-muted); }
.is-hybrid .e404__link           { color: var(--light-muted); }
.is-hybrid .e404__url            { color: var(--light-text-num); }
.is-hybrid .e404__url code {
  background: #fff;
  border-color: var(--light-border);
  color: var(--light-text);
}

@media (max-width: 640px) {
  .e404           { padding: 64px 24px; min-height: calc(100vh - 160px); }
  .e404__num      { font-size: clamp(160px, 50vw, 280px); letter-spacing: -8px; }
  .e404__title    { font-size: clamp(40px, 12vw, 64px); letter-spacing: -2px; }
}

/* Legacy 404 placeholder — niet meer gebruikt, kept voor backward compat */
.section--404 {
  text-align: center;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* .btn--primary verwijderd: dode CSS — nergens in templates gebruikt.
   Alle primary buttons gebruiken `.btn-primary` (zie style.css:89). */

/* ==========================================================================
 * FAQ (globaal component — gebruikt op meerdere pagina's)
 * ========================================================================== */
.faq {
  padding: var(--section-pad-y) 0;
  border-bottom: 1px solid var(--border);
}
.faq__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  overflow: visible;
}
.faq__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  align-self: start;
}
.faq__title {
  margin-bottom: 48px;
}
.faq__list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  gap: 16px;
  transition: color 0.2s;
  background: none;
  border: none;
  color: inherit;
  width: 100%;
  text-align: left;
}
.faq-item__q:hover {
  color: var(--pink);
}
.faq-item__icon {
  font-size: 20px;
  color: var(--pink);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item__a {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-faint);
  padding-bottom: 22px;
  display: none;
}
.faq-item.open .faq-item__a {
  display: block;
}
.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

/* FAQ team blok */
.faq-team {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--dark2);
  border: 1px solid var(--border);
}
.faq-team__avatars {
  display: flex;
}
.faq-team__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--dark);
  margin-left: -8px;
}
.faq-team__avatar:first-child {
  margin-left: 0;
}
.faq-team__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fallback: als geen aparte avatar geüpload is, scale de full-body foto. */
.faq-team__avatar--full img {
  object-position: center top;
  transform: scale(1.6);
  transform-origin: center top;
}
.faq-team__text {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  position: relative;
}
.faq-team__text strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.faq-team__status {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

/* FAQ CTA box */
.faq-cta {
  background: #0d0d0d;
  border: 1px solid var(--border);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}
.faq-cta__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.faq-cta__title span {
  color: var(--pink);
}
.faq-cta__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-faint);
  margin-bottom: 40px;
}
.faq-cta__btn {
  display: inline-block;
  margin-bottom: 12px;
}
.faq-cta__meta {
  font-size: 11px;
  color: var(--text-num);
  margin-top: 12px;
}

/* FAQ responsive */
@media (max-width: 1024px) {
  .faq__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .faq__sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .faq {
    padding: var(--section-pad-y-sm) 0;
  }
  .faq-team {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .faq-team__text {
    width: 100%;
  }
  .faq-team__status {
    position: static;
    display: inline-block;
    margin-top: 8px;
  }
  .faq-cta {
    padding: 32px 24px;
    min-height: auto;
  }
}

/* ==========================================================================
 * BEDANKT — post-formulier landing
 * ========================================================================== */
.bedankt {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}
.bedankt__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--pad);
    text-align: center;
}
.bedankt__check {
    margin: 0 auto 32px;
    display: inline-flex;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(196, 0, 88, 0.1);
    align-items: center;
    justify-content: center;
    animation: bedankt-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.bedankt__check svg {
    width: 56px;
    height: 56px;
}
@keyframes bedankt-pop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.bedankt__tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 16px;
}
.bedankt__titel {
    font-family: var(--font-heading);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text);
    margin: 0 0 20px;
    text-transform: none;
}
.bedankt__sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-faint);
    margin: 0 0 40px;
}
.bedankt__info {
    margin: 0 auto 40px;
    padding: 28px 32px;
    max-width: 480px;
    background: var(--dark-card);
    border: var(--card-border);
    border-radius: var(--card-radius);
    text-align: left;
}
.bedankt__info-titel {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pink);
    margin: 0 0 16px;
}
.bedankt__info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bedankt__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 10px;
}
.bedankt__info-list li:last-child {
    margin-bottom: 0;
}
.bedankt__info-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(196, 0, 88, 0.12);
    color: var(--pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.bedankt__actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .bedankt {
        min-height: 60vh;
        padding: var(--section-pad-y-sm) 0;
    }
    .bedankt__check {
        width: 64px;
        height: 64px;
    }
    .bedankt__check svg {
        width: 44px;
        height: 44px;
    }
    .bedankt__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Light mode */
.homepage-v2.is-hybrid .bedankt__titel {
    color: var(--light-text);
}
.homepage-v2.is-hybrid .bedankt__sub,
.homepage-v2.is-hybrid .bedankt__info-list li {
    color: var(--light-muted);
}
.homepage-v2.is-hybrid .bedankt__info {
    background: var(--card-bg-light);
    border-color: var(--light-border);
    box-shadow: var(--card-shadow-light);
}
.homepage-v2.is-hybrid .bedankt__info-list li {
    color: var(--light-text);
}
