/*
Theme Name: Anita Hammer
Theme URI: https://www.anitahammer.nl/
Author: Wouter
Description: Eigen blokthema (FSE) voor anitahammer.nl — traumasensitief onderwijs, training, advies en ondersteuning.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
Version: 0.3.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anitahammer
*/

html {
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
	background-color: #faf5e5;
	background-image: radial-gradient(ellipse 1400px 900px at 50% -10%, rgba(220, 165, 74, 0.10), transparent 60%),
		radial-gradient(ellipse 1200px 800px at 100% 100%, rgba(143, 163, 174, 0.10), transparent 60%);
	background-attachment: fixed;
}

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 40;
	background-color: #faf5e5;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}
.ah-footer > * {
	/* wideSize (1680px) min. de 2 × 56px binnenruimte van de secties, zodat de footer gelijk uitlijnt. */
	max-width: 1568px;
	margin-inline: auto;
}
.ah-footer a {
	color: #faf5e5;
	text-decoration: none;
}
.ah-footer a:hover,
.ah-footer a:focus-visible {
	color: #dca54a;
}
.ah-footer-bottom {
	border-top: 1px solid rgba(250, 245, 229, 0.14);
	margin-top: 28px;
	padding-top: 20px;
	color: #c9b99c;
}
.ah-footer-bottom p {
	margin: 0;
}
.ah-footer-bottom a {
	color: #c9b99c;
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 600px) {
	.ah-footer {
		padding: 36px 20px 24px 20px !important;
	}
	.ah-footer-top,
	.ah-footer-bottom {
		flex-direction: column;
		justify-content: center !important;
		text-align: center;
	}
	.ah-footer-nav .wp-block-navigation__container {
		justify-content: center;
	}
}

/* Afwisselende achtergrond per sectie. De inhoud blijft max. 1680px breed; via
   box-shadow + clip-path loopt alleen de kleur door tot de vensterranden. */
#aanbod,
#over-mij,
#contact {
	background-color: rgba(201, 185, 156, 0.2);
	box-shadow: 0 0 0 100vmax rgba(201, 185, 156, 0.2);
	clip-path: inset(0 -100vmax);
}

a {
	transition: color .15s ease;
}

.wp-block-button__link {
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #0f172a;
	color: #faf5e5;
}

.ah-submit {
	transition: transform .15s ease, box-shadow .15s ease;
}
.ah-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

/* Honeypot van het contactformulier: onzichtbaar voor mensen, wel in de HTML. */
.ah-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ah-form-notice {
	margin: 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
}
.ah-form-notice--ok {
	background: #eef5ec;
	border: 1px solid #9cc29a;
	color: #23452a;
}
.ah-form-notice--fout {
	background: #fbeeea;
	border: 1px solid #d9a497;
	color: #6b2a1d;
}

.ah-form input:focus,
.ah-form textarea:focus {
	outline: 2px solid #dca54a;
	outline-offset: 1px;
	border-color: #dca54a;
}

.ah-testimonial-card {
	background: #23394a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-top: 3px solid var(--ah-accent, #dca54a);
	border-radius: 12px;
	padding: 22px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.ah-testimonial-card {
	display: flex;
	flex-direction: column;
}
#ah-rotator-quote {
	margin-top: 0;
}
.ah-t-quote::before,
#ah-rotator-quote::before,
.ah-t-quote::after,
#ah-rotator-quote::after {
	font-family: var(--wp--preset--font-family--heading);
	color: #dca54a;
	font-size: 1.6em;
	line-height: 0;
	vertical-align: -0.38em;
}
.ah-t-quote::before,
#ah-rotator-quote::before {
	content: "\201C";
	margin-right: 3px;
}
.ah-t-quote::after,
#ah-rotator-quote::after {
	content: "\201D";
	margin-left: 3px;
}
.ah-t-quote {
	margin: 0 0 16px 0;
	font-size: 14px;
	line-height: 1.6;
}
.ah-t-author {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: auto 0 0 0;
	font-style: normal;
}
.ah-t-author strong {
	color: #faf5e5;
	font-size: 14px;
	font-weight: 600;
}
.ah-t-author span {
	color: #c9b99c;
	font-size: 13px;
}
#ah-rotator-cite.ah-t-author strong {
	font-size: 1rem;
}
#ah-rotator-cite.ah-t-author span {
	font-size: 0.9rem;
}
.ah-grid-3 > div:nth-child(1) { --ah-accent: #dca54a; }
.ah-grid-3 > div:nth-child(2) { --ah-accent: #8fa3ae; }
.ah-grid-3 > div:nth-child(3) { --ah-accent: #c9b99c; }
.ah-grid-3 > div:nth-child(4) { --ah-accent: #a89583; }
.ah-grid-3 > div:nth-child(5) { --ah-accent: #dca54a; }
.ah-grid-3 > div:nth-child(6) { --ah-accent: #8fa3ae; }

.ah-photo-frame > * {
	display: block;
	width: 100%;
	border-radius: 16px;
	box-shadow: 0 28px 56px rgba(15, 23, 42, 0.32), 0 8px 20px rgba(15, 23, 42, 0.18);
}

/* Trainingsfoto's die rechts in de Over mij-tekst zweven. */
.ah-inline-photo {
	float: right;
	width: 220px;
	margin: 6px 0 20px 32px;
}
.ah-inline-photo > img {
	height: auto;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.26), 0 4px 12px rgba(15, 23, 42, 0.14);
}

.ah-intro {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}
.ah-intro > blockquote {
	flex: 0 0 38%;
}
.ah-intro > div {
	flex: 1 1 0;
	min-width: 0;
}

.ah-depth {
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
}

.ah-glow {
	position: relative;
}
.ah-glow::before {
	content: "";
	position: absolute;
	inset: -20%;
	background: radial-gradient(ellipse closest-side, rgba(220, 165, 74, 0.28), rgba(143, 163, 174, 0.16) 55%, transparent 75%);
	filter: blur(6px);
	z-index: 0;
}
.ah-glow > * {
	position: relative;
	z-index: 1;
}

.ah-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 780px) {
	.ah-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.ah-grid-3 {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	a,
	.wp-block-button__link,
	.ah-submit {
		transition: none;
	}
}

/* Scroll-reveal: alleen actief als reveal.js een `ah-js-reveal` class op
   <html> heeft gezet (progressive enhancement — zonder JS of bij
   prefers-reduced-motion blijft alles gewoon meteen zichtbaar). */
.ah-js-reveal .ah-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}
.ah-js-reveal .ah-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.ah-js-reveal .ah-grid-3 .ah-testimonial-card {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .5s ease, transform .5s ease;
}
.ah-js-reveal .ah-grid-3.is-visible .ah-testimonial-card {
	opacity: 1;
	transform: none;
}
.ah-grid-3 > div:nth-child(1) { transition-delay: 0ms; }
.ah-grid-3 > div:nth-child(2) { transition-delay: 90ms; }
.ah-grid-3 > div:nth-child(3) { transition-delay: 180ms; }
.ah-grid-3 > div:nth-child(4) { transition-delay: 270ms; }
.ah-grid-3 > div:nth-child(5) { transition-delay: 360ms; }
.ah-grid-3 > div:nth-child(6) { transition-delay: 450ms; }

/* Zachte idle-beweging op de puzzel-illustratie in de hero. */
@keyframes ah-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
.ah-glow img {
	animation: ah-float 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.ah-glow img {
		animation: none;
	}
}

/* Roulerende uitgelichte ervaring. */
#ah-rotator {
	transition: opacity .45s ease;
	cursor: default;
}
#ah-rotator.is-fading {
	opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
	#ah-rotator {
		transition: none;
	}
}

/* Mobiele schaling: de secties gebruiken vaste desktop-waarden voor padding
   en lettergrootte (inline styles, dus !important nodig om te overschrijven).
   Zonder dit werd bv. de roulerende quote (1.5rem) op een smal scherm
   tientallen regels hoog, met een enorme lege pagina als gevolg. */
@media (max-width: 600px) {
	#hero,
	#aanbod,
	#over-mij,
	#ervaringen,
	#contact {
		padding-left: 20px !important;
		padding-right: 20px !important;
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}
	.ah-inline-photo {
		float: none;
		width: 70%;
		max-width: 260px;
		margin: 8px auto 24px;
	}

	#aanbod .wp-block-column {
		padding: 28px 24px !important;
	}

	#over-mij .ah-photo-frame {
		position: static !important;
		margin-bottom: 24px !important;
	}

	.ah-intro {
		flex-direction: column !important;
		gap: 16px !important;
	}
	.ah-intro > blockquote {
		flex: none !important;
	}

	#aanbod h2,
	#over-mij h2,
	#ervaringen h2,
	#contact h2 {
		font-size: 1.875rem !important;
	}
	#aanbod h3 {
		font-size: 1.125rem !important;
	}
	#aanbod h3 + p {
		font-size: 0.9rem !important;
	}

	#ah-rotator-quote {
		font-size: 1.125rem !important;
	}

	.ah-grid-3 {
		gap: 16px !important;
	}
	.ah-testimonial-card {
		padding: 16px !important;
	}

	.ah-form,
	.ah-contact-card {
		padding: 24px !important;
	}

	.wp-block-post-content > .wp-block-columns.alignwide {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
	.has-xx-large-font-size {
		font-size: 2.25rem !important;
	}
	.ah-services {
		flex-direction: column !important;
	}
	.ah-service {
		flex: none !important;
	}
	.ah-service-summary {
		padding: 28px 24px !important;
	}
	.ah-service-detail {
		padding: 0 24px 28px 24px !important;
	}
	/* De horizontale "tab"-inkrimping is alleen bedoeld voor de brede
	   rij-indeling op desktop; op mobiel (al gestapeld) teaser/hint
	   gewoon zichtbaar houden op niet-geopende kaarten. */
	.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-teaser,
	.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-hint {
		max-height: 120px !important;
		opacity: 1 !important;
	}
	.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-teaser {
		margin-top: 6px !important;
	}
	.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-hint {
		margin-top: 14px !important;
	}
	.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-summary {
		padding: 28px 24px !important;
	}
}

/* Uitklapbare Aanbod-diensten (Training/Ondersteuning/Advies). */
.ah-services {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	margin-top: 28px;
}
.ah-service {
	flex: 1 1 0%;
	min-width: 0;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.20);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, flex-grow .45s ease, flex-basis .45s ease;
}
.ah-service:hover {
	transform: translateY(-4px);
	box-shadow: 0 28px 54px rgba(15, 23, 42, 0.30);
}
/* Op brede schermen: het geopende vak groeit horizontaal, de andere twee
   krimpen tot smalle tabs i.p.v. dat alles smal naar beneden openklapt. */
.ah-services.has-open .ah-service {
	flex: 0.55 1 0%;
}
.ah-services.has-open .ah-service.is-expanded {
	flex: 3.2 1 0%;
}
.ah-services.has-open .ah-service.is-expanded:hover {
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.ah-service {
		transition: none;
	}
	.ah-service:hover {
		transform: none;
	}
}
.ah-service-summary {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 40px 32px;
	cursor: pointer;
	list-style: none;
}
.ah-service-summary::-webkit-details-marker {
	display: none;
}
.ah-service-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}
.ah-service-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem;
	overflow-wrap: break-word;
	hyphens: auto;
}
.ah-service-tagline,
.ah-service-teaser,
.ah-service-hint {
	max-height: 120px;
	overflow: hidden;
	transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.ah-service-tagline {
	font-size: 0.85rem;
	font-style: italic;
	opacity: 0.8;
	overflow-wrap: break-word;
	hyphens: auto;
}
.ah-service-teaser {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-top: 6px;
}
.ah-service-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
/* Smalle tabs (het dicht vak terwijl een ander open staat): teaser/hint
   wegvallen, alleen icoon + titel blijven staan. */
.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-teaser,
.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-hint {
	max-height: 0;
	opacity: 0;
	margin-top: 0 !important;
}
.ah-services.has-open .ah-service:not(.is-expanded) .ah-service-summary {
	padding: 32px 18px;
}
@media (prefers-reduced-motion: reduce) {
	.ah-service-tagline,
	.ah-service-teaser,
	.ah-service-hint {
		transition: none;
	}
}
.ah-service-hint .ah-hint-open {
	display: none;
}
details[open] > summary .ah-service-hint .ah-hint-closed {
	display: none;
}
details[open] > summary .ah-service-hint .ah-hint-open {
	display: inline;
}
.ah-service-hint svg {
	flex-shrink: 0;
	transition: transform .2s ease;
}
details[open] > summary .ah-service-hint svg {
	transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
	.ah-service-hint svg {
		transition: none;
	}
}
.ah-service-icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	position: relative;
	margin-top: 2px;
}
.ah-service-icon::before,
.ah-service-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
}
.ah-service-icon::before {
	width: 11px;
	height: 2px;
}
.ah-service-icon::after {
	width: 2px;
	height: 11px;
	transition: transform .2s ease, opacity .2s ease;
}
details[open] > .ah-service-summary .ah-service-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}
.ah-service-detail {
	padding: 0 32px 40px 32px;
}
.ah-service {
	position: relative;
}
.ah-service-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	background: transparent;
	color: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: .75;
	transition: opacity .15s ease, transform .15s ease;
}
.ah-service-close:hover,
.ah-service-close:focus-visible {
	opacity: 1;
	transform: rotate(90deg);
}
@media (min-width: 601px) {
	.ah-service.is-expanded .ah-service-detail {
		cursor: pointer;
	}
}
.ah-service-detail p {
	margin: 0 0 14px 0;
	line-height: 1.7;
}
.ah-service-detail p:last-child {
	margin-bottom: 0;
}
.ah-service-sub {
	font-weight: 600;
	text-decoration: underline;
	margin-bottom: 18px !important;
}
.ah-service-detail a {
	color: inherit;
}
details[open] > .ah-service-detail {
	animation: ah-service-expand .3s ease;
}
@keyframes ah-service-expand {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	details[open] > .ah-service-detail {
		animation: none;
	}
	.ah-service-icon::after {
		transition: none;
	}
}

/* Terug-naar-boven-knop. */
#ah-back-to-top {
	position: fixed;
	right: 24px;
	bottom: calc(24px + var(--ah-lift, 0px));
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #dca54a;
	color: #0f172a;
	border: none;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
	z-index: 50;
}
#ah-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
#ah-back-to-top:hover {
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.32);
	transform: translateY(-3px);
}
@media (max-width: 600px) {
	#ah-back-to-top {
		right: 16px;
		bottom: calc(16px + var(--ah-lift, 0px));
		width: 44px;
		height: 44px;
	}
}
@media (prefers-reduced-motion: reduce) {
	#ah-back-to-top {
		transition: opacity .01s linear;
		transform: none;
	}
	#ah-back-to-top:hover {
		transform: none;
	}
}

/* Mobiel uitklapmenu (core navigation-overlay). Zonder dit erft het overlay
   de rechts-uitlijning van de desktopbalk, is de achtergrond wit en is de
   padding 0 (er is geen root padding in theme.json), waardoor de items tegen
   de schermrand staan en afgekapt worden. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--cream) !important;
	color: var(--wp--preset--color--ink) !important;
	padding: 24px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: 48px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 8px;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid #0f172a1a;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 12px 0 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
}

/* Contactknop: op desktop staat die los rechts in de header (.ah-header-contact),
   op mobiel onderaan in het uitklapmenu (.ah-nav-contact). Er is altijd maar één
   van de twee zichtbaar. 600px is het breekpunt van core voor overlayMenu "mobile". */
.ah-header-nav .ah-nav-contact {
	display: none;
}
.wp-block-navigation__responsive-container.is-menu-open .ah-nav-contact {
	display: flex;
	width: 100%;
	margin-top: 24px;
}
.wp-block-navigation__responsive-container.is-menu-open .ah-nav-contact .wp-block-button {
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .ah-nav-contact .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 20px;
	font-size: 18px;
}
/* Mobiel: compacte knop "Contact" in de headerbalk, vóór de hamburger. Op
   desktop verborgen (daar staat "Neem contact op"); onder 360px past hij niet
   naast logo + naam en staat hij alleen nog in het uitklapmenu. */
.ah-header-contact-mobile {
	display: none !important;
}
@media (max-width: 599px) {
	.ah-header-contact {
		display: none !important;
	}
	.ah-header {
		padding-left: 20px !important;
		padding-right: 20px !important;
		flex-wrap: nowrap !important;
		gap: 12px;
	}
	.ah-header > .wp-block-group:first-child {
		margin-right: auto;
		flex-wrap: nowrap;
		gap: 10px;
		white-space: nowrap;
	}
	.ah-header-contact-mobile {
		display: flex !important;
		order: 1;
	}
	/* Alleen het <nav> zelf: core zet de className ook op de <ul> erbinnen,
	   en die mag in het uitklapmenu niet achter de contactknop schuiven. */
	.ah-header > nav.ah-header-nav {
		order: 2;
	}
	.ah-header-contact-mobile .wp-block-button__link {
		padding: 7px 14px;
		font-size: 14px;
		white-space: nowrap;
	}
}
@media (max-width: 359px) {
	.ah-header-contact-mobile {
		display: none !important;
	}
}
