/*
 * Blok: Contact (template-parts/contact-blok.php).
 * Witte kaart: links titel, tekst en tekstlinks (e-mail, formulier); rechts een vak in de tint van het onderwerp met
 * één oranje belknop en de openingstijden, net als "Liever bellen?" op de contactpagina.
 */

/* Het blok reageert op zijn eigen breedte (ook op halve breedte naast een ander blok), niet op die van het scherm. */
.blok-contact-blok > .site-container { container-type: inline-size; }

.blok-contact { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; background: var(--swo-color-card); border: 1px solid var(--blok-lijn); border-radius: 18px; box-shadow: 0 2px 10px rgba(70, 45, 20, .05); }
.blok-contact.heeft-bellen { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }

/* Links */
.blok-contact__hoofd { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 36px 40px; }
.blok-contact__foto { width: 84px; height: 84px; margin-bottom: 6px; object-fit: cover; border: 4px solid var(--blok-tint-sterk); border-radius: 50%; }
.blok-contact__titel { margin: 0; color: var(--swo-color-heading); font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.blok-contact__intro { max-width: 560px; margin: 0; color: var(--blok-tekst); font-size: 19px; line-height: 1.6; }
.blok-contact__persoon { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; color: var(--swo-color-heading); font-size: 18px; line-height: 1.5; }
.blok-contact__persoon span { color: var(--blok-zacht); }
.blok-contact__persoon span::before { margin-right: 10px; content: "·"; }

.blok-contact__wegen { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 12px 0 0; padding: 0; list-style: none; }
.blok-contact__weg { display: inline-flex; min-height: 48px; align-items: center; gap: 12px; color: var(--swo-color-heading); font-size: 18px; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .2s ease; overflow-wrap: anywhere; }
.blok-contact__weg:hover { color: var(--swo-color-heading); text-decoration-color: var(--blok-accent); }
.blok-contact__weg:focus-visible { outline: 3px solid var(--swo-color-focus); outline-offset: 3px; border-radius: 6px; }
.blok-contact__weg-icoon { display: inline-flex; flex: none; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--blok-accent); background: var(--blok-tint); border-radius: 50%; transition: background-color .2s ease, color .2s ease; }
.blok-contact__weg-icoon svg { width: 20px; height: 20px; }
.blok-contact__weg:hover .blok-contact__weg-icoon { color: #FFFFFF; background: var(--blok-accent); }
.blok-contact__weg-pijl { flex: none; width: 18px; height: 18px; color: var(--blok-accent); transition: transform .2s var(--blok-ease); }
.blok-contact__weg:hover .blok-contact__weg-pijl { transform: translateX(3px); }

/* Rechts: bellen */
.blok-contact__bellen {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 32px 34px;
	background:
		radial-gradient(circle at calc(100% + 30px) -30px, color-mix(in srgb, var(--blok-accent) 16%, #FFFFFF) 0 110px, transparent 111px),
		var(--blok-tint);
}
/* Icoon links, titel ernaast op één rij */
.blok-contact__bellen-kop { display: flex; align-items: center; gap: 14px; }
.blok-contact__bellen-kop .blok-contact__bellen-icoon { order: -1; }
.blok-contact__bellen-icoon { display: inline-flex; flex: none; width: 52px; height: 52px; align-items: center; justify-content: center; color: var(--blok-accent); background: var(--swo-color-card); border-radius: 50%; box-shadow: 0 4px 12px rgba(70, 45, 20, .08); }
.blok-contact__bellen-icoon svg { width: 26px; height: 26px; }
.blok-contact__bellen-titel { margin: 0; color: var(--swo-color-heading); font-size: 22px; font-weight: 800; line-height: 1.3; }
.blok-contact__bellen-knop { width: 100%; min-height: 56px; font-size: 19px; }
.blok-contact__uren { margin: 0; color: var(--blok-tekst); font-size: 16px; line-height: 1.5; }

@container (max-width: 760px) {
	.blok-contact.heeft-bellen { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.blok-contact__hoofd { padding: 28px 24px 24px; }
	.blok-contact__bellen { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.blok-contact__weg, .blok-contact__weg-icoon, .blok-contact__weg-pijl { transition: none; }
	.blok-contact__weg:hover .blok-contact__weg-pijl { transform: none; }
}

@media (forced-colors: active) {
	.blok-contact { border-color: CanvasText; }
	.blok-contact__weg-icoon, .blok-contact__bellen-icoon { border: 1px solid CanvasText; }
}
