/* ==========================================================================
   WordPress-aanvullingen op main.css
   ========================================================================== */

/* Pagina's zonder Elementor */
.va-page-hero { background: var(--ink); }
.va-content { max-width: 78ch; }
.va-content > * + * { margin-top: 1.1em; }
.va-content h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-top: 1.4em; }
.va-content h3 { font-size: 1.5rem; margin-top: 1.3em; }
.va-content a { color: var(--orange-text); }
.va-content img { border-radius: var(--radius-sm); }
.va-content .wp-block-button__link { background: var(--orange); color: #111; border-radius: 999px; font-weight: 700; padding: 14px 26px; text-decoration: none; }
.va-posts { list-style: none; padding: 0; display: grid; gap: 28px; }
.va-posts a { text-decoration: none; }
.alignwide { max-width: min(1200px, 100%); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Productpagina: omschrijving uit de editor */
.pd-prose h2, .pd-prose h3 { font-size: 1.375rem; margin-top: 1.6em; }
.pd-prose ul, .pd-prose ol { color: var(--text-muted); }

/* Admin-balk: vaste header eronder */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 960px) { .admin-bar .nav { inset: calc(66px + 46px) 0 0 0; } }

/* Bescherming tegen globale Elementor-stijlen op thema-onderdelen */
html body .btn { font-family: var(--font); }
html body .btn--primary { color: #111; }
html body .site-header .nav a { color: #d9d6d2; }
html body .site-header .nav a:hover, html body .site-header .nav a[aria-current="page"] { color: #fff; }
@media (max-width: 960px) { html body .site-header .nav a { color: #fff; } html body .site-header .nav a[aria-current="page"] { color: var(--orange); } }
html body .site-footer a { color: inherit; }
html body .site-footer a:hover { color: var(--orange); }
html body .site-footer a.btn--primary { color: #111; }
html body .site-footer a.btn--ghost { color: #fff; }
html body .site-footer h3 { color: #fff; }
html body .chip, html body .quote-add, html body .catalog-machine button { font-family: var(--font); }
html body .cat-card__title a { color: inherit; }

/* Productpagina: uitvoeringentabel en veelgestelde vragen */
.pd-tabel { margin: 0; padding: clamp(16px, 2.5vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.shot--tabel { aspect-ratio: auto; background: #fff; cursor: zoom-in; }
.shot--tabel img { width: 100%; height: auto; object-fit: contain; }
.shot--tabel::after { content: "⤢"; font-size: 1.1rem; }
.pd-legenda { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-muted); font-size: .9375rem; }
.pd-legenda li { display: inline-flex; align-items: center; gap: 8px; }
.pd-legenda li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--steel); }
.pd-legenda .is-blauw::before { background: #1a73c9; }
.pd-legenda .is-rood::before { background: #e3262b; }
.pd-legenda .is-zwart::before { background: #111; }
.pd-legenda .is-oranje::before { background: var(--orange); }
.pd-legenda .is-geen::before { display: none; }
.pd-faq { display: grid; gap: 12px; }
.pd-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.section--white .pd-faq details { background: var(--paper); }
.pd-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1.0625rem; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #111; font-weight: 800; transition: transform .25s var(--ease); }
.pd-faq details[open] summary::after { transform: rotate(45deg); }
.pd-faq details p { padding: 0 22px 20px; color: var(--text-muted); }

/* WhatsApp-knoppen in header, footer en catalogus */
html body a.btn[href*="wa.me"] { --bg: #25d366; --fg: #0b2e17; --bd: #25d366; color: #0b2e17; }
html body a.btn[href*="wa.me"]:hover { --bg: #1ebe5b; --bd: #1ebe5b; color: #0b2e17; }
html body .site-footer a.btn[href*="wa.me"] { color: #0b2e17; }

/* Belknop in de header (vervangt het offertelijst-icoon) */
.call-link { background: var(--orange); color: #111; }
.call-link:hover { background: #fff; color: #111; }
.call-link svg { width: 20px; height: 20px; }

/* Catalogus op de telefoon: twee producten naast elkaar, compacter */
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card__media { padding: 10px; }
  .cat-card__body { padding: 12px 12px 14px; gap: 6px; }
  .cat-card__cat { font-size: .625rem; letter-spacing: .06em; }
  .cat-card__title { font-size: 1rem; }
  .cat-card__specs { font-size: .75rem; }
  .cat-card__actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .cat-card__actions .link-arrow { justify-content: center; }
  .cat-card .quote-add { justify-content: center; min-height: 40px; padding: 6px 10px; font-size: .8125rem; }
}

/* Mobiel menu: het glas-effect (backdrop-filter) maakt de header het kader voor het menu,
   waardoor het menu maar zo hoog werd als de header. Op mobiel daarom zonder dat effect. */
@media (max-width: 960px) {
  .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 13, 13, .98); }
  .nav { height: calc(100vh - 66px); height: calc(100dvh - 66px); }
  .admin-bar .nav { height: calc(100dvh - 66px - 46px); }
}
@media (max-width: 960px) {
  .nav .nav__mobile-extra .btn {
    display: inline-flex; justify-content: center; padding: 16px 24px; font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
    border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  }
  .nav .nav__mobile-extra .btn--primary { color: #111; }
  .nav .nav__mobile-extra p a, .nav .nav__mobile-extra p { font-size: 1rem; border: 0; padding: 0; }
}
