/*
Theme Name: Photobooth Hasselt
Theme URI: https://photoboothhasselt.be
Author: Photobooth Hasselt
Description: Blokthema voor Photobooth Hasselt: photobooth verhuur in Hasselt en Limburg.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: photobooth-hasselt
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wp-site-blocks > * { margin-block-start: 0; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

h1, h2, .pbh-display, .pbh-display-klein, .pbh-prijs { font-stretch: 118%; }
h1, .pbh-display { font-weight: 900; font-stretch: 125%; letter-spacing: -0.025em; line-height: 0.95; }
h2 { letter-spacing: -0.02em; }
h3 { font-stretch: 105%; }
p { max-width: 68ch; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--zwart);
	outline-offset: 3px;
}
.has-rood-background-color :where(a, button):focus-visible,
.has-zwart-background-color :where(a, button):focus-visible { outline-color: var(--wp--preset--color--wit); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 2px solid currentColor;
	padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--wit); color: var(--wp--preset--color--zwart); }
.has-wit-background-color.wp-block-button__link:hover { background: var(--wp--preset--color--zwart) !important; color: var(--wp--preset--color--wit) !important; }

/* ---------- Header ---------- */
.pbh-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--wp--preset--color--wit);
	border-bottom: 1px solid var(--wp--preset--color--lijn);
}
.admin-bar .pbh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pbh-header { top: 46px; } }
.pbh-header .wp-block-navigation a { text-decoration: none; }
.pbh-header .wp-block-navigation a:hover { color: var(--wp--preset--color--rood); }
.pbh-logo img { display: block; height: auto; }
.wp-block-navigation__responsive-container:not(.is-menu-open) .pbh-nav-offerte { display: none; }
.wp-block-navigation__responsive-container.is-menu-open { font-size: 1.5rem; font-weight: 800; }
@media (max-width: 599px) {
	.pbh-header .pbh-header-cta { display: none; }
	.pbh-optielijst { grid-template-columns: 1fr !important; }
	.pbh-logo img { width: 150px !important; }
}

/* ---------- Hero ---------- */
.pbh-hero { overflow: hidden; }
.pbh-hero .pbh-display { font-size: clamp(3rem, 8.4vw, 7.25rem); margin: 0; }
.pbh-hero .pbh-lead { margin-top: 1.75rem; max-width: 34ch; line-height: 1.45; }
.pbh-hero-knoppen { margin-top: 2rem; }
.pbh-hero-noot { margin-top: 1.25rem; opacity: 0.9; }

/* De fotostrip: het herkenbare stuk van de site. */
.pbh-hero-strip { display: flex; justify-content: center; }
.pbh-strip {
	--strip-w: clamp(180px, 20vw, 250px);
	width: var(--strip-w);
	padding: 12px 12px 0;
	background: #fff;
	color: var(--wp--preset--color--zwart);
	transform: rotate(4deg);
	box-shadow: 0 2px 0 rgba(0,0,0,.08), 18px 28px 0 var(--wp--preset--color--rood-donker);
	display: flex; flex-direction: column; gap: 10px;
	animation: pbh-print 1.6s cubic-bezier(.3,.7,.2,1) .3s both;
}
.pbh-strip > * { margin: 0 !important; }
.pbh-strip .wp-block-image img {
	display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	filter: grayscale(1) contrast(1.12) brightness(1.03);
}
.pbh-strip-onderschrift {
	font-stretch: 62%; font-weight: 700; font-size: 0.95rem;
	text-align: center; padding: 6px 0 12px; letter-spacing: 0.02em;
}
/* De strip rolt uit de printer: van boven naar onder zichtbaar. */
@keyframes pbh-print {
	from { clip-path: inset(-60px -60px 100% -60px); transform: rotate(4deg) translateY(-40px); }
	to   { clip-path: inset(-60px); transform: rotate(4deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .pbh-strip { animation: none; } }

@media (max-width: 781px) {
	.pbh-hero-strip { order: -1; justify-content: flex-start; padding-left: 0.5rem; }
	.pbh-strip { --strip-w: 140px; flex-direction: row; width: auto; padding: 8px; transform: rotate(-2deg); animation-name: pbh-print-m; }
	.pbh-strip .wp-block-image img { width: 72px; aspect-ratio: 1; }
	.pbh-strip-onderschrift { display: none; }
	@keyframes pbh-print-m {
		from { clip-path: inset(-60px 100% -60px -60px); transform: rotate(-2deg); }
		to   { clip-path: inset(-60px); transform: rotate(-2deg); }
	}
}

/* ---------- Intro + kenmerken ---------- */
.pbh-foto img { display: block; width: 100%; height: auto; border-radius: 4px; }
.pbh-intro .pbh-foto img { aspect-ratio: 4 / 5; object-fit: cover; }
.pbh-kenmerken { border-top: 2px solid var(--wp--preset--color--zwart); padding-top: 2rem; }
.pbh-kenmerken h3 { margin-bottom: 0.5rem; }
.pbh-kenmerken p { color: var(--wp--preset--color--grijs); margin-top: 0; }

/* ---------- Pakketten ---------- */
.pbh-sectiekop p { font-size: 1.25rem; opacity: .85; }
.pbh-pakket-rij { align-items: stretch !important; }
.pbh-pakket {
	background: var(--wp--preset--color--wit);
	color: var(--wp--preset--color--zwart);
	border-radius: 6px;
	padding: 2rem 1.75rem 1.75rem;
	display: flex; flex-direction: column;
}
.pbh-pakket > * { margin-block: 0; }
.pbh-pakket h3 { font-size: 1.125rem; font-weight: 700; font-stretch: 100%; }
.pbh-prijs { font-size: clamp(3rem, 5vw, 4.25rem); font-weight: 900; font-stretch: 125%; line-height: 1; margin-top: 0.5rem !important; letter-spacing: -0.03em; }
.pbh-duur { font-weight: 700; color: var(--wp--preset--color--rood); margin-top: 0.5rem !important; }
.pbh-pakket .wp-block-buttons { margin-top: auto !important; padding-top: 1.5rem; }
.pbh-pakket.is-uitgelicht { background: var(--wp--preset--color--rood); color: var(--wp--preset--color--wit); }
.pbh-pakket.is-uitgelicht .pbh-duur { color: var(--wp--preset--color--wit); }
.pbh-pakket.is-uitgelicht .wp-block-button__link { background: var(--wp--preset--color--wit); color: var(--wp--preset--color--zwart); }
.pbh-pakket.is-uitgelicht .wp-block-button__link:hover { background: var(--wp--preset--color--zwart); color: var(--wp--preset--color--wit); }

.pbh-check { list-style: none; padding: 0; margin-top: 1.5rem !important; border-top: 1px solid var(--wp--preset--color--lijn); }
.pbh-pakket.is-uitgelicht .pbh-check, .pbh-pakket.is-uitgelicht .pbh-check li { border-color: rgba(255,255,255,.35); }
.pbh-check li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--wp--preset--color--lijn); font-size: 1rem; }
.pbh-check li::before {
	content: ""; position: absolute; left: 0; top: 0.95rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--wp--preset--color--rood) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.pbh-pakket.is-uitgelicht .pbh-check li::before { background-color: var(--wp--preset--color--zwart); }
.pbh-check li.is-niet { color: var(--wp--preset--color--grijs); }
.pbh-check li.is-niet::before { background: transparent; border: 1.5px solid currentColor; box-sizing: border-box; }
.pbh-pakket.is-uitgelicht .pbh-check li.is-niet { color: rgba(255,255,255,.8); }
.pbh-pakket.is-uitgelicht .pbh-check li.is-niet::before { background: transparent; }

/* ---------- Opties ---------- */
@media (min-width: 782px) { .pbh-opties-kop { position: sticky; top: 7rem; align-self: flex-start; } }
.pbh-opties-kop .pbh-foto { margin-top: 2rem; }
.pbh-optielijst { gap: 0 2.5rem !important; }
.pbh-optie { border-top: 2px solid var(--wp--preset--color--zwart); padding: 1.25rem 0 1.75rem; }
.pbh-optie h3 { margin: 0 0 0.5rem; }
.pbh-optie p { margin: 0; color: var(--wp--preset--color--grijs); }

/* ---------- Zo werkt het (echte volgorde, dus genummerd) ---------- */
.pbh-stappen {
	list-style: none; counter-reset: stap; padding: 0; margin-top: 2.5rem !important;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem;
}
.pbh-stappen li { counter-increment: stap; position: relative; padding-top: 0.25rem; color: #3d3d3d; }
.pbh-stappen li::before {
	content: counter(stap); display: block;
	font-size: 4.5rem; font-weight: 900; font-stretch: 125%; line-height: 1;
	color: var(--wp--preset--color--rood); margin-bottom: 0.75rem;
}
.pbh-stappen strong { display: block; font-size: 1.375rem; font-stretch: 105%; color: var(--wp--preset--color--zwart); margin-bottom: 0.35rem; line-height: 1.2; }

/* ---------- Oproep ---------- */
.pbh-cta .pbh-display-klein { font-weight: 900; font-stretch: 125%; font-size: clamp(2.25rem, 5vw, 4rem); }
@media (max-width: 781px) { .pbh-cta .wp-block-buttons { justify-content: flex-start !important; } }

/* ---------- Footer ---------- */
.pbh-footer { border-top: 6px solid var(--wp--preset--color--rood); }
.pbh-footer h3 { font-stretch: 100%; margin-bottom: 0.75rem; }
.pbh-footer-links { list-style: none; padding: 0; }
.pbh-footer-links li { margin: 0.35rem 0; }
.pbh-footer a { text-decoration: none; }
.pbh-footer a:hover { text-decoration: underline; }
.pbh-footer-bottom { border-top: 1px solid var(--wp--preset--color--lijn); }

/* ---------- Pagina's ---------- */
.pbh-page-title { font-weight: 900; font-stretch: 125%; }

/* ---------- Offerteformulier ---------- */
.pbh-form { display: grid; gap: 1.75rem; margin-top: 2rem; }
.pbh-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pbh-form legend { font-weight: 800; font-stretch: 112%; font-size: 1.375rem; margin-bottom: 0.75rem; padding: 0; }
.pbh-form p { margin: 0; max-width: none; }
.pbh-form label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.pbh-form input[type=text], .pbh-form input[type=email], .pbh-form input[type=tel], .pbh-form input[type=date], .pbh-form select, .pbh-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: inherit;
	padding: 0.75rem 0.9rem; border: 1.5px solid #9a9a9a; border-radius: 6px; background: #fff;
}
.pbh-form :is(input, select, textarea):focus { border-color: var(--wp--preset--color--zwart); }
.pbh-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.pbh-keuzes { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.6rem !important; }
.pbh-keuzes legend { grid-column: 1 / -1; }
.pbh-keuze { display: flex !important; align-items: center; gap: 0.6rem; font-weight: 500 !important; margin: 0 !important;
	border: 1.5px solid var(--wp--preset--color--lijn); border-radius: 6px; padding: 0.7rem 0.9rem; cursor: pointer; }
.pbh-keuze:has(input:checked) { border-color: var(--wp--preset--color--rood); background: var(--wp--preset--color--roze); }
.pbh-keuze input { accent-color: var(--wp--preset--color--rood); width: 1.1rem; height: 1.1rem; margin: 0; }
.pbh-form button { cursor: pointer; border: 0; }
.pbh-privacy { font-size: 0.9375rem; color: var(--wp--preset--color--grijs); }
.pbh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pbh-melding { border-radius: 6px; padding: 1rem 1.25rem; }
.pbh-melding p { margin: 0.25rem 0; }
.pbh-melding.is-ok { background: var(--wp--preset--color--roze); border-left: 6px solid var(--wp--preset--color--rood); }
.pbh-melding.is-fout { background: #fff1f1; border-left: 6px solid var(--wp--preset--color--rood-donker); }
