/* =========================================================
   Meander Media — aanvullende styling
   (globale kleuren/typografie staan in theme.json)
   ========================================================= */

:root {
	--mm-pink: #DC116F;
	--mm-heading: #575756;
	--mm-text: #747373;
	--mm-light: #F1F1F1;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Herbruikbare container: zelfde breedte als de content-blokken */
.mm-container {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---------- Header ---------- */
:root {
	--mm-topbar-h: 40px;
}
/* Offset-sticky: de header plakt, maar geschoven over de topbalk-hoogte,
   zodat de grijze topbalk wegscrolt en de navigatiebalk aan de top blijft.
   De sticky staat op de template-part-wrapper (die de volledige pagina omspant;
   de binnenste .mm-header zou sticky begrenzen tot z'n eigen hoogte). */
header.wp-block-template-part {
	position: sticky;
	top: calc(-1 * var(--mm-topbar-h));
	z-index: 100;
}
/* Grijze topbalk boven de header. */
.mm-topbar {
	height: var(--mm-topbar-h);
	background: #f5f5f5;
	display: flex;
	align-items: center;
}
.mm-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.mm-topbar-phone {
	color: #777777;
	font-size: 14px;
}
.mm-topbar-social {
	display: inline-flex;
	align-items: center;
	color: #777777;
	transition: color .15s;
}
.mm-topbar-social:hover {
	color: var(--mm-pink);
}
/* Navigatiebalk (wit) — geen blockGap boven, sluit strak op de topbalk aan. */
.mm-navbar {
	margin-top: 0 !important;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.mm-header .wp-block-site-logo img {
	max-height: 100px;
	width: auto;
}
.mm-header .wp-block-navigation {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: 14px;
}
.mm-header .wp-block-navigation a {
	color: var(--mm-heading);
	text-decoration: none;
}
.mm-header .wp-block-navigation a:hover,
.mm-header .wp-block-navigation .current-menu-item a {
	color: var(--mm-pink);
}
/* Dropdown-submenu (bv. onder Expertise) */
.mm-header .wp-block-navigation .wp-block-navigation-submenu {
	position: relative;
}
/* Open op hover/focus via CSS (niet afhankelijk van de JS Interactivity-API). */
.mm-header .wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-container,
.mm-header .wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-container {
	visibility: visible;
	opacity: 1;
}
.mm-header .wp-block-navigation .wp-block-navigation__submenu-container {
	position: absolute;
	/* Val onder de hele header. De afstand (item-onderkant → header-onderkant)
	   wordt door JS in --mm-gap gezet, zodat het klopt bij elke header-hoogte. */
	top: calc(100% + var(--mm-gap, 29px));
	/* Links uitlijnen onder het item (core's rechts-uitlijning overrulen). */
	left: 0 !important;
	right: auto !important;
	min-width: 250px;
	padding: 8px 0;
	background: #fff;
	border: 0;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 500;
}
/* Onzichtbare brug over het gat, zodat het submenu open blijft
   als je de muis van het item naar het submenu beweegt. */
.mm-header .wp-block-navigation .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(-1 * var(--mm-gap, 29px) - 2px);
	height: calc(var(--mm-gap, 29px) + 2px);
}
.mm-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 20px;
}
.mm-header .wp-block-navigation__submenu-container .wp-block-navigation-item {
	display: block;
}
.mm-header .wp-block-navigation__submenu-container a:hover {
	color: var(--mm-pink);
}

/* ---------- Ruimte boven de content ---------- */
/* Pagina's zonder hero: meer ruimte tussen de header en het eerste blok. */
main.wp-block-group {
	padding-top: 64px;
}
/* Alle hero's strak tegen de header (geen ruimte erboven). */
body:has(.mm-hero) main.wp-block-group,
body:has(.mm-page-hero) main.wp-block-group,
body:has(.mm-contact-hero) main.wp-block-group {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Expertise-subpagina's: de paginatitel (h1) even licht als de tussenkopjes. */
.mm-expertise-sub h1 {
	font-weight: 600;
}

/* ---------- Hero / cover ---------- */
.mm-hero {
	color: #fff;
}
.mm-hero h1,
.mm-hero h2 {
	color: #fff !important;
}
/* Geen overlay op de hero's — toon de afbeelding onbewerkt. */
.mm-hero .wp-block-cover__background {
	display: none;
}
.mm-hero h1 {
	text-align: left;
	width: 66.66666667%;
	margin-left: 0 !important;
	margin-right: auto !important;
	font-size: clamp(28px, 4vw, 42px);
	text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

/* Introsectie onder de hero-band: tekst + knoppen naast elkaar
   (verticale ruimte komt van de omliggende #f8f8f8 group) */
.mm-intro {
	margin: 0;
}
/* Grijze band strak tegen de hero erboven (geen blockGap-ruimte). */
.mm-intro-band {
	margin-top: 0 !important;
}
.mm-intro p {
	color: var(--mm-text);
	margin: 0;
}
.mm-intro .wp-block-buttons {
	margin-top: 0;
}

@media (max-width: 781px) {
	/* Onder elkaar op mobiel, knoppen weer met wat ruimte erboven */
	.mm-intro .wp-block-buttons {
		margin-top: 1.4rem;
	}
}

/* ---------- Pagina-hero (gekleurde band met titel, bv. Over mij) ---------- */
.mm-page-hero h1 {
	margin: 0;
	color: #fff;
}
/* Contact-hero: witte titel op de gekleurde band. */
.mm-contact-hero h1 {
	margin: 0;
	color: #ffffff !important;
}
/* Strak tegen de header: alleen op pagina's mét een page-hero de
   ruimte boven <main> weghalen (andere pagina's blijven ongemoeid). */
main:has(.mm-page-hero) {
	margin-top: 0;
}
/* ... en juist meer ruimte tussen de hero en het eerste blok eronder. */
.mm-page-hero + .mm-over-intro {
	margin-top: 64px;
}
/* Meer ruimte tussen de intro (tekst/foto) en de sectie "Tanden erin". */
.mm-over-intro + .mm-container {
	margin-top: 56px;
}
/* Op de page-hero-pagina (Over mij) de testimonials-band strak tegen de footer. */
body:has(.mm-page-hero) footer.wp-block-template-part,
body:has(.mm-page-hero) .mm-footer {
	margin-top: 0;
}

/* ---------- Knoppen ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--mm-pink);
	border: 2px solid var(--mm-pink);
	background: transparent;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: #fff;
	background: #333333;
	border-color: #333333;
}

/* ---------- Koppen ---------- */
.wp-block-heading.is-style-mm-accent {
	color: var(--mm-pink);
}

/* Lead-kop: een titelblok zonder hoofdletters, voor introzinnen */
.wp-block-heading.mm-lead {
	text-transform: none;
	letter-spacing: normal;
	font-weight: 700;
	font-size: clamp(21px, 2.6vw, 27px);
	line-height: 1.35;
	color: var(--mm-heading);
}

/* Sectie-kop met streepje eronder (zoals op de originele site) */
.mm-section-title {
	position: relative;
	padding-bottom: .5rem;
	margin-bottom: 1.5rem;
}

/* ---------- Expertise iconen ---------- */
.mm-icon-box img {
	max-width: 90px;
	height: auto;
	transition: all 0.2s ease;
	transform-style: preserve-3d;
}
.mm-icon-box:hover img {
	transform: rotate(-3deg);
}
.mm-icon-box h2,
.mm-icon-box h3 {
	font-size: 16px;
}
.mm-icon-box .wp-block-image,
.mm-icon-box a {
	text-decoration: none;
}
.mm-icon-box h3 a {
	color: var(--mm-heading);
}
.mm-icon-box:hover h3 a {
	color: var(--mm-pink);
}

/* ---------- Projecten / portfolio ---------- */
.mm-portfolio .wp-block-image img,
.mm-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mm-tile {
	overflow: hidden;
	background: #fff;
}
.mm-tile figcaption,
.mm-tile .wp-element-caption {
	color: var(--mm-heading);
	font-weight: 700;
	font-size: 15px;
	text-align: left;
}
.wp-block-gallery.mm-portfolio figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 100%);
}

/* Laatste projecten: hover-effect zoals de portfolio op de site
   (roze overlay #DC116F met de titel + lichte inzoom van de foto) */
.mm-projects .mm-tile {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
}
.mm-projects .mm-tile .wp-block-image {
	margin: 0;
}
.mm-projects .mm-tile img {
	transition: transform .6s ease;
}
.mm-projects .mm-tile:hover img {
	transform: scale(1.08);
}
.mm-projects .mm-tile > .wp-block-heading {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
	display: flex;
	align-items: flex-start;
	padding: 25px 80px 25px 25px;
	background: var(--mm-pink);
	color: #fff !important;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.7;
	text-transform: none;
	letter-spacing: normal;
	opacity: 0;
	transition: opacity .3s ease;
	/* Klik gaat door de overlay heen naar de gelinkte afbeelding eronder. */
	pointer-events: none;
}
.mm-projects .mm-tile:hover > .wp-block-heading {
	opacity: .94;
}
/* Plus-icoon linksonder (verschijnt met de overlay op hover).
   Het minti-icoonfont ontbreekt in dit thema, dus tekenen we de plus zelf. */
.mm-projects .mm-tile > .wp-block-heading .icon-minti-plus {
	position: absolute;
	left: 25px;
	bottom: 25px;
	width: 22px;
	height: 22px;
	opacity: .7;
	font-style: normal;
}
.mm-projects .mm-tile > .wp-block-heading .icon-minti-plus::before,
.mm-projects .mm-tile > .wp-block-heading .icon-minti-plus::after {
	content: "";
	position: absolute;
	background: #fff;
}
.mm-projects .mm-tile > .wp-block-heading .icon-minti-plus::before {
	left: 50%;
	top: 0;
	width: 2px;
	height: 100%;
	transform: translateX(-50%);
}
.mm-projects .mm-tile > .wp-block-heading .icon-minti-plus::after {
	top: 50%;
	left: 0;
	height: 2px;
	width: 100%;
	transform: translateY(-50%);
}

/* Blog-lijst: 1 item per rij, datum links met scheidingslijn (zoals de site). */
.mm-blog-row {
	gap: 0 !important;
	border-bottom: 1px solid #efefef;
	padding-bottom: 40px;
	margin-bottom: 44px;
}
.mm-blog-row:last-of-type {
	border-bottom: 0;
}
.mm-blog-date {
	flex: 0 0 64px !important;
	border-right: 1px solid #efefef;
	text-align: center;
	padding-right: 16px;
}
.mm-blog-date .mm-month {
	margin: 0;
	font-size: 19px;
	text-transform: uppercase;
	color: #999;
	line-height: 1.2;
}
.mm-blog-date .mm-day {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	color: #999;
	line-height: 1.1;
}
.mm-blog-body {
	padding-left: 26px;
}
.mm-blog-body .wp-block-image {
	margin: 0 0 1.2rem;
	width: 100%;
}
.mm-blog-body .wp-block-image a {
	display: block;
}
.mm-blog-body .wp-block-image img {
	width: 100%;
	height: auto;
}

/* Blog-lijst: de foto blijft altijd in beeld (geen bedekkende hover-overlay). */
.mm-blog-thumb {
	overflow: hidden;
	border-radius: 2px;
}
.mm-blog-thumb .mm-plus {
	display: none;
}

/* Detail-foto (blogbericht): zelfde roze hover, maar met een vergrootglas-icoon. */
.mm-single .wp-block-post-featured-image {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	cursor: pointer;
}
.mm-single .wp-block-post-featured-image img {
	display: block;
	transition: transform .6s ease;
}
.mm-single .wp-block-post-featured-image:hover img {
	transform: scale(1.06);
}
.mm-single .wp-block-post-featured-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--mm-pink);
	opacity: 0;
	transition: opacity .3s ease;
}
.mm-single .wp-block-post-featured-image:hover::before {
	opacity: .94;
}
.mm-single .wp-block-post-featured-image::after {
	content: "\f002"; /* FontAwesome: vergrootglas (fa-search) */
	font-family: "FontAwesome";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	color: #fff;
	font-size: 42px;
	opacity: 0;
	transition: opacity .3s ease;
}
.mm-single .wp-block-post-featured-image:hover::after {
	opacity: 1;
}

/* Sharebox (deel-knoppen met tooltip) onder een blogbericht. */
.sharebox {
	margin-top: 2.5rem;
}
.sharebox ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.sharebox li {
	margin: 0;
}
.sharebox a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	background: none;
	color: #747373;
	text-decoration: underline;
	font-size: 14px;
	transition: color .15s;
}
.sharebox a:hover {
	color: var(--mm-pink);
}

/* Lightbox voor de uitgelichte foto op blogberichten. */
.mm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0, 0, 0, .85);
	opacity: 0;
	transition: opacity .25s ease;
	cursor: zoom-out;
}
.mm-lightbox.is-open {
	opacity: 1;
}
.mm-lightbox img {
	max-width: 92vw;
	max-height: 92vh;
	width: auto;
	height: auto;
	box-shadow: 0 12px 44px rgba(0, 0, 0, .5);
	cursor: default;
}
.mm-lightbox-close {
	position: absolute;
	top: 18px;
	right: 26px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
	transition: opacity .15s;
}
.mm-lightbox-close:hover {
	opacity: 1;
}
.sharebox .fa {
	font-size: 15px;
}
/* Tooltip */
.sharebox a[data-tip]::after {
	content: attr(data-tip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	background: #333;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
	padding: 6px 8px;
	border-radius: 3px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}
.sharebox a[data-tip]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(2px);
	border: 5px solid transparent;
	border-top-color: #333;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}
.sharebox a[data-tip]:hover::after,
.sharebox a[data-tip]:hover::before {
	opacity: 1;
}
.mm-blog-body h2 {
	margin: 0 0 .6rem;
}
.mm-blog-body h2 a {
	color: var(--mm-heading);
	text-decoration: none;
}
.mm-blog-body h2 a:hover {
	color: var(--mm-pink);
}
.mm-blog-body p {
	margin: 0;
}

/* ---------- Portfolio-filters ---------- */
.mm-portfolio-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin: 1.5rem 0 2.2rem;
}
.mm-portfolio-filters button {
	border: 0;
	background: none;
	padding: 4px 2px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--mm-heading);
	transition: color .15s;
}
.mm-portfolio-filters button:hover,
.mm-portfolio-filters button.is-active {
	color: var(--mm-pink);
}

/* Portfolio-grid: tegels klikbaar (afbeelding vult de tegel). */
.mm-portfolio-grid .mm-tile .wp-block-image,
.mm-portfolio-grid .mm-tile .wp-block-image a,
.mm-portfolio-grid .mm-tile img {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- Portfolio-detail (project) ---------- */
.mm-project-tagline {
	font-weight: 600;
	color: var(--mm-heading);
	margin-top: -.25rem;
}

/* ---------- Citaten / testimonials slider ---------- */
.mm-slider {
	position: relative;
	overflow: hidden;
}
.mm-testimonials {
	display: flex;
	gap: 0;
	transition: transform .5s ease;
}
.mm-testimonials > .wp-block-quote {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 4px 24px;
	border: 0;
	background: transparent;
	text-align: center;
	font-style: normal;
}
.mm-testimonials > .wp-block-quote p {
	font-style: italic;
	color: var(--mm-text);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.6;
	max-width: 820px;
	margin: 0 auto 1.1rem;
	cursor: grab;
}
.mm-testimonials.is-dragging {
	user-select: none;
}
.mm-testimonials.is-dragging > .wp-block-quote p {
	cursor: grabbing;
}
.mm-testimonials > .wp-block-quote p::before {
	content: "\2018";
}
.mm-testimonials > .wp-block-quote p::after {
	content: "\2019";
}
.mm-testimonials > .wp-block-quote cite {
	color: #747373;
	font-weight: 700;
	font-style: normal;
	font-size: 18px;
	line-height: 1;
}
.mm-testimonials > .wp-block-quote cite::before {
	content: "- ";
}

/* Bolletjes */
.mm-slider-dots {
	display: flex;
	gap: 0;
	justify-content: center;
	margin-top: 1.6rem;
}
.mm-dot {
	width: 10px;
	height: 10px;
	margin: 0 4px;
	padding: 0;
	opacity: 0.5;
	border: 2px solid #999999;
	background: transparent;
	display: block;
	cursor: pointer;
	-webkit-backface-visibility: visible;
	transition: opacity 200ms ease;
	border-radius: 30px;
}
.mm-dot.is-active {
	background: #999999;
	opacity: 1;
}

@media (max-width: 600px) {
	.mm-testimonials > .wp-block-quote { padding: 4px 12px; }
}

/* ---------- Footer ---------- */
.mm-footer {
	margin-top: 80px;
	color: var(--mm-text);
	font-size: 15px;
}
.mm-footer h2,
.mm-footer h3 {
	font-size: 15px;
	letter-spacing: .05em;
	color: var(--mm-heading);
}
.mm-footer a {
	color: var(--mm-text);
	text-decoration: none;
}
.mm-footer a:hover {
	color: var(--mm-pink);
}
.mm-footer .mm-footer-bottom {
	border-top: 1px solid #dcdcdc;
	font-size: 13px;
}

/* Rij 2: legal-balk (#d5d5d5) — strak tegen rij 1 (geen blockGap) */
.mm-footer-legal {
	margin-top: 0 !important;
	font-size: 18px;
}
.mm-footer-legal .mm-container {
	gap: 8px 16px;
}
.mm-footer-legal .mm-legal {
	margin: 0;
	line-height: 1.7;
}
.mm-footer-legal .wp-block-social-links {
	margin: 0 0 0 auto;
}

/* ---------- Contact ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfcfcf;
	background: #fff;
	font: inherit;
	color: var(--mm-heading);
	margin-bottom: 12px;
}
.wpcf7 input[type="submit"] {
	background: var(--mm-pink);
	color: #fff;
	border: 0;
	padding: 14px 28px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: .03em;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover {
	background: var(--mm-heading);
}

/* ---------- Mobiel menu ---------- */
.mm-menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
	color: var(--mm-heading);
}

@media (max-width: 781px) {
	.mm-menu-toggle {
		display: inline-flex;
	}
	.mm-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}
}
