/* Aanvullingen voor WordPress: losse pagina's, werk-pagina's en WordPress-eigen klassen. De basis staat in main.css. */

/* Verborgen is verborgen, ook als een klasse display: grid of flex zet (bijvoorbeeld .thanks) */
[hidden] { display: none !important; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 6px; }

/* Portfolio: kaarten zijn links naar de werk-pagina */
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link[hidden] { display: none; }
.grid .card-link:nth-child(3n+1) .photo { rotate: calc(-1.2deg * var(--tilt)); }
.grid .card-link:nth-child(3n+2) .photo { rotate: calc(1deg * var(--tilt)); }
.grid .card-link:nth-child(3n) .photo { rotate: calc(-.4deg * var(--tilt)); }
.grid .card-link:hover .photo, .grid .card-link:focus-visible .photo { rotate: 0deg; }
.filters a.chip { text-decoration: none; display: inline-block; }

/* Formulier */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--ink); border-left: 3px solid var(--red); padding: 10px 14px; border-radius: 4px; }
.form-error[hidden] { display: none; }

/* Losse pagina's en werk-pagina's */
.page-head { padding-block: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: var(--display-weight); }
.page-head .lead { margin-top: 12px; }
.page-body { padding-block: 32px clamp(56px, 8vw, 96px); }
.prose { max-width: 40em; }
.prose > * + * { margin-top: 1em; }
.prose img { max-width: 100%; height: auto; }
.prose a { color: var(--blue); }

.werk-single .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.werk-single .photo { --ar: auto; }
.werk-single .photo .img { aspect-ratio: auto; }
.werk-single .photo .img img { height: auto; }
.werk-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0; font-size: .95rem; }
.werk-meta dt { color: var(--ink-soft); }
.werk-meta dd { margin: 0; }
.werk-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 26px 20px; margin-top: 40px; }
.werk-steps .photo { --ar: 4/5; padding: 8px 8px 34px; }
.werk-single .spin { margin-top: 32px; }
.werk-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }
@media (max-width: 820px) { .werk-single .wrap { grid-template-columns: 1fr; } }

.pagination { margin-top: 40px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--chip-on); color: var(--on-chip-on); border-color: var(--chip-on); }

/* Menu uit WordPress in de kop */
.site-head nav.main ul { list-style: none; margin: 0; padding: 0; display: contents; }
.site-head nav.main li { display: contents; }
.custom-logo { max-height: 84px; width: auto; }

/* Werk-venster (overlay) */
.werk-dialog { border: 0; padding: 0; background: transparent; max-width: min(1040px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
.werk-dialog::backdrop { background: rgba(30, 26, 34, .55); backdrop-filter: blur(3px); }
.werk-dialog[open] { animation: wd-in .35s cubic-bezier(.2,.9,.3,1.1); }
@keyframes wd-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.wd-inner { position: relative; background: var(--paper); border-radius: max(10px, var(--radius)); padding: clamp(18px, 4vw, 40px); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.wd-main { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.wd-photo { rotate: calc(-1deg * var(--tilt)); }
.wd-photo .img { aspect-ratio: auto; }
.wd-photo .img img { height: auto; max-height: 70dvh; object-fit: contain; background: var(--paper-2); }
.wd-text h2 { margin-top: 2px; }
.wd-text .btn { margin-top: 8px; }
.wd-steps { margin-top: 36px; }
.wd-steps .werk-steps { margin-top: 12px; }
.wd-close { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.wd-close:hover { border-color: var(--ink); }
.wd-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.wd-nav [hidden] { display: none; }
.thumbs a.thumb { display: block; cursor: zoom-in; }
.card-link { cursor: zoom-in; }
.mk-card:not(.front) { cursor: pointer; }
@media (max-width: 760px) { .wd-main { grid-template-columns: 1fr; } .wd-inner { padding-top: 56px; } }

/* Logo-afbeelding in de kop */
.logo-img { display: inline-flex; align-items: center; }
.logo-img img { height: 92px; width: auto; display: block; }
@media (max-width: 760px) { .logo-img img { height: 60px; } .custom-logo { max-height: 60px; } }
.werk-dialog:focus, .werk-dialog:focus-visible { outline: none; }

/* Polaroid-vergroting: grote foto over de site, met schaduw over de rest */
.lightbox { border: 0; padding: 0; background: transparent; overflow: visible; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; inset: 0; display: grid; place-items: center; }
.lightbox:not([open]) { display: none; }
.lightbox:focus, .lightbox:focus-visible { outline: none; }
.lightbox::backdrop { background: rgba(24, 20, 28, .72); backdrop-filter: blur(4px); }
.lightbox[open]::backdrop { animation: lb-fade .3s ease; }
@keyframes lb-fade { from { opacity: 0; } }
.lb-photo { position: relative; margin: 0; background: var(--card); padding: 14px 14px 64px; border-radius: max(4px, calc(var(--radius) * .6)); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 40px 90px -20px rgba(0,0,0,.75); rotate: calc(-1.6deg * var(--tilt, 1)); max-width: calc(100vw - 32px); }
.lb-photo img { display: block; width: min(1100px, calc(100vw - 60px), calc((100dvh - 150px) * var(--ar, 1))); height: auto; aspect-ratio: var(--ar, 1); object-fit: cover; border-radius: calc(var(--radius) * .4); background: var(--paper-2); }
.lb-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; font-family: var(--font-hand); font-style: var(--hand-style); font-weight: var(--hand-weight); font-size: calc(1.6rem * var(--hand-scale)); color: var(--ink); line-height: 1.1; }
.lb-photo::before { content: ""; display: var(--tape-show, block); position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; translate: -50% 0; rotate: 3deg; background: repeating-linear-gradient(-45deg, rgba(246,196,67,.75) 0 8px, rgba(246,196,67,.55) 8px 16px); }
.lightbox[open] .lb-photo { animation: lb-in .45s cubic-bezier(.2,.9,.3,1.15); }
@keyframes lb-in { from { opacity: 0; transform: translateY(30px) scale(.86) rotate(4deg); } }
.lb-photo.is-swap { animation: lb-swap .35s cubic-bezier(.2,.9,.3,1.1); }
@keyframes lb-swap { from { opacity: .2; transform: translateX(calc(var(--dir, 1) * 40px)) rotate(calc(var(--dir, 1) * 3deg)); } }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #222; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(0,0,0,.5); }
.lb-btn:hover { background: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-btn[hidden] { display: none; }
.lb-count { position: fixed; bottom: 16px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.85); font-size: .85rem; letter-spacing: .06em; }
a.thumb[data-lightbox] { display: block; cursor: zoom-in; }
@media (max-width: 760px) { .lb-prev, .lb-next { top: auto; bottom: 14px; translate: none; } .lb-photo { padding: 10px 10px 52px; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] .lb-photo, .lb-photo.is-swap, .lightbox[open]::backdrop { animation: none; } }

/* Melding bovenaan (bijvoorbeeld sluiting in december) */
.notice-bar { background: color-mix(in srgb, #F6C443 42%, var(--card)); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, #F6C443 60%, var(--line)); font-size: .92rem; line-height: 1.4; }
.notice-bar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.notice-bar p { margin: 0; flex: 1; }
.notice-bar strong { font-weight: 700; }
.notice-star { color: var(--red); font-size: 1.1rem; flex: none; }
.notice-close { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 1rem; cursor: pointer; opacity: .75; }
.notice-close:hover, .notice-close:focus-visible { opacity: 1; background: rgba(0,0,0,.07); }
.notice-bar[hidden] { display: none; }
:root[data-skin="vrolijk"] .notice-bar { background: #F7DE77; }
:root[data-skin="warm"] .notice-bar { background: color-mix(in srgb, var(--red) 16%, var(--card)); border-bottom-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.notice-note { margin: 0 0 18px; padding: 12px 14px; border-radius: max(6px, calc(var(--radius) * .6)); background: color-mix(in srgb, var(--yellow, #F6C443) 22%, var(--card)); border-left: 3px solid var(--yellow, #F6C443); font-size: .95rem; }
@media (max-width: 760px) { .notice-bar { font-size: .85rem; } .notice-bar .wrap { gap: 8px; padding-block: 8px; } }

/* Voettekst: © en bedrijfsgegevens; juridische vensters */
.legal-line { margin-top: 36px; }
.legal-line p { border-top: 1px solid var(--line); padding-top: 18px; font-size: .82rem; color: var(--ink-soft); }
.legal-line a { color: inherit; }
.legal-dialog { max-width: min(760px, calc(100vw - 24px)); }
.legal-dialog h2 { margin: 0 44px 18px 0; }
.legal-dialog .prose { max-width: none; font-size: .97rem; }
.legal-dialog .prose h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-dialog .prose ul { padding-left: 1.2em; }
.legal-dialog .prose li + li { margin-top: .35em; }
.form-privacy { font-size: .82rem; color: var(--ink-soft); margin-top: -8px; }
.form-privacy a { color: inherit; }

/* Feedback nov 2026: inleiding in alinea's, prijs als verwijzing */
.hero .lead + .lead { margin-top: 12px; }
.kraam-item p + p { margin-top: -4px; }
a.from { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.from:hover { text-decoration-thickness: 2px; }
