/*
Theme Name: Bongersonline
Theme URI: https://bongersonline.nl
Author: Bongersonline
Description: Licht Bootstrap 5 thema voor bongersonline.nl met een kennisbank voor klant-handleidingen.
Version: 1.6.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bongersonline
*/

:root {
	--bo-primary: #1554d1;
	--bo-primary-dark: #0d3c9c;
	--bo-navy: #0b1f3a;
	--bo-soft: #eef3fd;
	--bo-border: #e3e8f0;
	--bo-text: #1d2433;
	--bo-muted: #5d6779;
	--bs-primary: #1554d1;
	--bs-primary-rgb: 21, 84, 209;
	--bs-link-color: #1554d1;
	--bs-link-color-rgb: 21, 84, 209;
	--bs-link-hover-color: #0d3c9c;
	--bs-body-color: #1d2433;
	--bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { color: var(--bo-text); background: #fff; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn-primary { --bs-btn-bg: var(--bo-primary); --bs-btn-border-color: var(--bo-primary); --bs-btn-hover-bg: var(--bo-primary-dark); --bs-btn-hover-border-color: var(--bo-primary-dark); --bs-btn-active-bg: var(--bo-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--bo-primary); --bs-btn-border-color: var(--bo-primary); --bs-btn-hover-bg: var(--bo-primary); --bs-btn-hover-border-color: var(--bo-primary); }
.btn:hover, .nav-link:hover, .card a:hover { text-decoration: none; }
.text-primary { color: var(--bo-primary) !important; }
.bg-soft { background: var(--bo-soft); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--bo-border); }
.site-header .navbar-brand { font-weight: 800; letter-spacing: -.02em; color: var(--bo-navy); font-size: 1.35rem; }
.site-header .navbar-brand span { color: var(--bo-primary); }
.site-header .custom-logo { max-height: 42px; width: auto; }
.site-header .nav-link { font-weight: 500; color: var(--bo-text); }
.site-header .nav-link:hover, .site-header .current-menu-item > .nav-link, .site-header .current_page_item > .nav-link { color: var(--bo-primary); }

.admin-bar .site-header.sticky-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.sticky-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.sticky-top { top: 0; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--bo-navy) 0%, #12356b 55%, var(--bo-primary) 100%); color: #fff; padding: 5rem 0 6rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 4vw, 3.1rem); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 640px; }
.hero-search { max-width: 640px; position: relative; z-index: 1; }
.hero-search .form-control { border: 0; padding: 1rem 1.25rem 1rem 3rem; font-size: 1.1rem; border-radius: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero-search .bi-search { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--bo-muted); font-size: 1.1rem; z-index: 2; }
.hero-search .btn { position: absolute; right: .45rem; top: .45rem; bottom: .45rem; border-radius: .65rem; padding: 0 1.25rem; z-index: 2; }

.page-hero { background: var(--bo-soft); border-bottom: 1px solid var(--bo-border); padding: 2.75rem 0; }
.page-hero h1 { font-weight: 800; letter-spacing: -.02em; color: var(--bo-navy); }
.breadcrumb { --bs-breadcrumb-divider-color: var(--bo-muted); font-size: .9rem; margin-bottom: .5rem; }
.breadcrumb a { color: var(--bo-muted); }

/* Homepage slider */
.home-slider .carousel-item { aspect-ratio: 1920 / 600; min-height: 360px; background: var(--bo-navy); position: relative; overflow: hidden; }
.home-slider .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-slider .slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,58,.82) 0%, rgba(11,31,58,.45) 50%, rgba(11,31,58,0) 85%); }
.home-slider .slide-caption { position: absolute; inset: 0 0 56px; display: flex; align-items: center; color: #fff; }
.home-slider .slide-title { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.7rem, 3.6vw, 3rem); max-width: 640px; margin-bottom: .75rem; }
.home-slider .slide-text { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 1.5rem; }
.home-slider .carousel-indicators { margin-bottom: 4.5rem; }
.home-slider .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; }
.home-slider .carousel-control-prev, .home-slider .carousel-control-next { width: 6%; bottom: 56px; }
.home-search { position: relative; z-index: 3; margin-top: -56px; }
.home-search .search-card { background: #fff; border-radius: 1.25rem; padding: 1.5rem 1.75rem; box-shadow: 0 18px 40px rgba(11,31,58,.14); border: 1px solid var(--bo-border); }
.home-search .hero-search .form-control { box-shadow: none; border: 1px solid var(--bo-border); background: #f8faff; }
.topics-wrap.topics-after-slider { margin-top: 2.5rem; }
@media (max-width: 575.98px) {
	.home-slider .carousel-item { min-height: 420px; }
	.home-slider .slide-overlay { background: linear-gradient(0deg, rgba(11,31,58,.85) 0%, rgba(11,31,58,.35) 70%); }
	.home-slider .slide-caption { align-items: flex-end; padding-bottom: 1.5rem; }
	.home-search .search-card { padding: 1.25rem; }
}

/* Telefoon-schermafbeeldingen in handleidingen */
.guide-content .wp-block-image.is-style-telefoon img, .guide-content figure.telefoon img { max-width: 300px; width: 100%; border-radius: 1.5rem; }
.guide-content .wp-block-image.aligncenter { text-align: center; }
.guide-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
.guide-content .wp-block-column { flex: 1 1 240px; }

/* Homepage: blokken uit de pagina "Home" */
.home-blocks > * + * { margin-top: 1.5rem; }
.home-blocks h2 { font-weight: 800; letter-spacing: -.02em; color: var(--bo-navy); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.home-blocks h3 { font-weight: 700; color: var(--bo-navy); font-size: 1.2rem; }
.home-blocks .lead, .home-blocks .is-style-intro { font-size: 1.15rem; color: var(--bo-muted); max-width: 720px; }
.home-blocks .wp-block-columns { display: flex; flex-wrap: wrap !important; gap: 1.5rem; margin-top: 2rem; margin-bottom: 0; }
.home-blocks .wp-block-column { flex: 1 1 230px !important; min-width: 0; }
.dienst-card h3 { hyphens: manual; overflow-wrap: normal; word-break: normal; }
.home-blocks .home-section + .home-section { margin-top: 4.5rem; }
.dienst-card { border: 1px solid var(--bo-border); border-radius: 1rem; padding: 5.25rem 1.5rem 1.5rem; height: 100%; position: relative; background: #fff; transition: transform .15s, box-shadow .15s; }
.dienst-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,31,58,.09); }
.dienst-card::before { font-family: "bootstrap-icons"; position: absolute; top: 1.5rem; left: 1.5rem; width: 52px; height: 52px; border-radius: .85rem; background: var(--bo-soft); color: var(--bo-primary); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; content: "\F52F"; }
.dienst-card.dienst-wifi::before { content: "\F61C"; }
.dienst-card.dienst-camera::before { content: "\F21F"; }
.dienst-card.dienst-microsoft::before { content: "\F65D"; }
.dienst-card.dienst-web::before { content: "\F3EF"; }
.dienst-card h3 { margin: 0 0 .5rem; }
.dienst-card p { color: var(--bo-muted); margin: 0; }
ul.is-style-vinkjes { list-style: none; padding-left: 0; }
ul.is-style-vinkjes li { position: relative; padding-left: 2rem; margin-bottom: .75rem; font-size: 1.05rem; }
ul.is-style-vinkjes li::before { font-family: "bootstrap-icons"; content: "\F26A"; position: absolute; left: 0; top: .05rem; color: var(--bo-primary); }
.home-helpdesk .topic-card h3 { font-size: 1.05rem; }

/* Topic cards */
.topics-wrap { margin-top: -3.25rem; position: relative; z-index: 2; }
.topic-card { border: 1px solid var(--bo-border); border-radius: 1rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; background: #fff; height: 100%; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,31,58,.09); border-color: #c9d6f2; }
.topic-icon { width: 52px; height: 52px; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center; background: var(--bo-soft); color: var(--bo-primary); font-size: 1.5rem; }
.topic-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--bo-navy); }
.topic-card .count { font-size: .85rem; color: var(--bo-muted); }
.stretched-link:hover { text-decoration: none; }

/* Guide list */
.guide-list .list-group-item { border-color: var(--bo-border); padding: 1rem 1.25rem; }
.guide-list .list-group-item:hover { background: #f8faff; }
.guide-list .guide-title { font-weight: 600; color: var(--bo-navy); }
.guide-list .guide-meta { font-size: .85rem; color: var(--bo-muted); }
.badge-topic { background: var(--bo-soft); color: var(--bo-primary); font-weight: 600; }

.section-title { font-weight: 800; letter-spacing: -.02em; color: var(--bo-navy); }

/* Single guide */
.guide-content { font-size: 1.06rem; line-height: 1.75; }
.guide-content h2 { font-weight: 750; font-size: 1.5rem; color: var(--bo-navy); margin-top: 2.5rem; margin-bottom: 1rem; scroll-margin-top: 90px; }
.guide-content h3 { font-weight: 700; font-size: 1.2rem; color: var(--bo-navy); margin-top: 1.75rem; scroll-margin-top: 90px; }
.guide-content img { max-width: 100%; height: auto; border-radius: .75rem; border: 1px solid var(--bo-border); box-shadow: 0 6px 18px rgba(11,31,58,.06); }
.guide-content figure { margin: 1.5rem 0; }
.guide-content figcaption { font-size: .9rem; color: var(--bo-muted); text-align: center; margin-top: .5rem; }
.guide-content code, .guide-content kbd { background: var(--bo-soft); color: var(--bo-navy); padding: .1em .4em; border-radius: .35rem; font-size: .92em; }
.guide-content strong { color: var(--bo-navy); }
.guide-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .97rem; }
.guide-content table td, .guide-content table th { border: 1px solid var(--bo-border); padding: .6rem .8rem; }
.guide-content table tr:nth-child(odd) td { background: #fafbfd; }

.toc { position: sticky; top: 90px; border: 1px solid var(--bo-border); border-radius: 1rem; padding: 1.25rem; }
.toc h6 { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--bo-muted); font-weight: 700; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li a { display: block; padding: .35rem 0 .35rem .75rem; border-left: 2px solid var(--bo-border); color: var(--bo-text); font-size: .93rem; }
.toc li a:hover, .toc li a.active { border-left-color: var(--bo-primary); color: var(--bo-primary); text-decoration: none; }

.help-cta { background: var(--bo-navy); color: #fff; border-radius: 1rem; }
.help-cta p { color: rgba(255,255,255,.8); }

/* Block styles: stappen */
ol.is-style-stappen { list-style: none; counter-reset: stap; padding-left: 0; margin: 1.5rem 0; }
ol.is-style-stappen > li { counter-increment: stap; position: relative; padding: 0 0 1.4rem 3.4rem; min-height: 2.4rem; }
ol.is-style-stappen > li::before { content: counter(stap); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--bo-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
ol.is-style-stappen > li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.3rem; bottom: .2rem; width: 2px; background: var(--bo-border); }

/* Block styles: meldingen */
.is-style-tip, .is-style-let-op, .is-style-info { border-radius: .85rem; padding: 1rem 1.25rem 1rem 3.2rem !important; margin: 1.5rem 0; position: relative; border: 1px solid; }
.is-style-tip::before, .is-style-let-op::before, .is-style-info::before { font-family: "bootstrap-icons"; position: absolute; left: 1.1rem; top: 1rem; font-size: 1.2rem; line-height: 1.5; }
.is-style-tip { background: #ecfbf3; border-color: #bfeccf; }
.is-style-tip::before { content: "\F46B"; color: #198754; }
.is-style-let-op { background: #fff7e8; border-color: #ffe0a3; }
.is-style-let-op::before { content: "\F33B"; color: #c77700; }
.is-style-info { background: var(--bo-soft); border-color: #cddbf7; }
.is-style-info::before { content: "\F431"; color: var(--bo-primary); }
.is-style-tip > *:last-child, .is-style-let-op > *:last-child, .is-style-info > *:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--bo-navy); color: rgba(255,255,255,.75); }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer .footer-brand { color: #fff; font-weight: 800; font-size: 1.25rem; }
.site-footer .footer-brand span { color: #7aa7ff; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .4rem; }

/* WP core */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.wp-block-image.size-full img { width: auto; }
.wp-block-button__link { background: var(--bo-primary); color: #fff; border-radius: .6rem; padding: .6rem 1.2rem; display: inline-block; }

@media print {
	.site-header, .site-footer, .toc-col, .help-cta, .no-print, .page-hero .breadcrumb { display: none !important; }
	.guide-content { font-size: 11pt; }
	.page-hero { background: none; border: 0; padding: 0 0 1rem; }
	a { color: inherit; }
}

/* ------------------------------------------------------------------
 * Rustiger ontwerp (v1.2)
 * ---------------------------------------------------------------- */
h1, h2, h3, .section-title, .hero h1, .page-hero h1, .home-blocks h2, .slide-title { font-weight: 700; letter-spacing: -.01em; }
.hero { background: var(--bo-navy); padding: 4rem 0 4.5rem; }
.hero::after { display: none; }
.hero .lead { color: rgba(255,255,255,.78); }
.page-hero { background: #f6f7f9; }
.rounded-4 { border-radius: .5rem !important; }
.topic-card, .dienst-card, .toc, .help-cta, .home-search .search-card, .search-card,
.is-style-tip, .is-style-let-op, .is-style-info { border-radius: .5rem; }
.topic-card:hover, .dienst-card:hover { transform: none; box-shadow: none; border-color: var(--bo-primary); }
.topic-icon { width: auto; height: auto; background: none; border-radius: 0; font-size: 1.6rem; }
.dienst-card { padding: 1.5rem; }
.dienst-card::before { position: static; display: block; width: auto; height: auto; background: none; border-radius: 0; font-size: 1.75rem; line-height: 1; margin-bottom: .9rem; text-align: left; }
.hero-search .form-control { border-radius: .5rem; box-shadow: none; }
.hero .hero-search .form-control { box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.hero-search .btn { border-radius: .4rem; }
.home-search .search-card { box-shadow: 0 6px 20px rgba(11,31,58,.08); }
.help-cta { background: var(--bo-navy); }
.btn-lg { font-size: 1.05rem; }

/* Footer-logo */
.footer-logo-img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }

/* Contactformulier (Contact Form 7) */
.wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: .75rem 1rem; border-radius: .5rem; font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #198754; background: #ecfbf3; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #c77700; background: #fff7e8; }
.wpcf7-not-valid-tip { font-size: .85rem; margin-top: .25rem; }
.wpcf7 .form-control, .wpcf7 .form-select { padding: .65rem .85rem; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.guide-content .wpcf7 { margin: 1.5rem 0 2rem; }
.small-note { font-size: .95rem; color: var(--bo-muted); }

/* Contactgegevens */
.bo-contactgegevens li { margin-bottom: .6rem; font-size: .97rem; }
.bo-contactgegevens li > a { display: inline-flex; align-items: baseline; overflow-wrap: anywhere; }
.bo-contactgegevens a { color: var(--bo-text); }
.bo-contactgegevens a:hover { color: var(--bo-primary); }
.bo-contactgegevens .bi { color: var(--bo-primary); }
.contact-gegevens { border: 1px solid var(--bo-border); border-radius: .5rem; padding: 1.5rem; background: #f6f7f9; }
.contact-gegevens h3 { font-size: 1.15rem; margin: 0 0 1rem; }
.site-footer .d-flex .bi { margin-top: .2rem; }

/* Projecten */
.project-card { border: 1px solid var(--bo-border); border-radius: .5rem; overflow: hidden; background: #fff; transition: border-color .15s; }
.project-card:hover { border-color: var(--bo-primary); }
.project-thumb { aspect-ratio: 4 / 3; background: #eef1f5; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.project-card:hover .project-thumb img { transform: scale(1.03); }
.project-thumb-empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #b7c0cc; font-size: 2.5rem; }
.project-filter .btn { border-radius: 2rem; padding-left: 1rem; padding-right: 1rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--bo-muted); }
.project-meta .bi { color: var(--bo-primary); }
.project-meta a { color: inherit; }
.project-hero-img { display: block; border-radius: .5rem; overflow: hidden; }
.project-hero-img img { width: 100%; height: auto; display: block; }
.project-gallery a { display: block; border-radius: .5rem; overflow: hidden; aspect-ratio: 1; background: #eef1f5; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.project-gallery a:hover img { transform: scale(1.04); }
.project-facts { border: 1px solid var(--bo-border); border-radius: .5rem; padding: 1.5rem; background: #f6f7f9; position: sticky; top: 90px; }
.project-facts dt { font-size: .82rem; color: var(--bo-muted); font-weight: 600; }
.project-facts dd { margin-bottom: .9rem; }
#projectLightbox .carousel-item img { width: auto; height: auto; max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: .35rem; }
#projectLightbox .modal-backdrop, .modal-backdrop.show { opacity: .85; }

/* Opdrachtgevers (logoband) */
.clients { border-top: 1px solid var(--bo-border); }
.client-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 72px; }
.client-logo img { max-height: 56px; max-width: 170px; width: auto; height: auto; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.client-logo:hover img, .client-logo:focus img { filter: none; opacity: 1; }
.clients-static { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3.5rem; }
.clients-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-track { display: flex; gap: 3.5rem; width: max-content; animation: bo-clients var(--bo-dur, 30s) linear infinite; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes bo-clients { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 1.75rem)); } }
@media (prefers-reduced-motion: reduce) {
	.clients-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
	.clients-track .is-dup { display: none; }
}

/* Projectfoto's: rand en schaduw zodat witte afbeeldingen niet wegvallen */
.project-hero-img { border: 1px solid var(--bo-border); background: #fff; box-shadow: 0 8px 24px rgba(11,31,58,.08); }
.project-gallery a { border: 1px solid var(--bo-border); box-shadow: 0 4px 14px rgba(11,31,58,.07); }
.project-thumb { border-bottom: 1px solid var(--bo-border); }
.project-card { box-shadow: 0 4px 14px rgba(11,31,58,.05); }
