/*
Theme Name: MedLex
Theme URI: https://medlex.nl
Author: MedLex B.V.
Description: Rustig, verfijnd blokthema voor de praktijk van MedLex in Wassenaar. Teksten, foto's en tarieven zijn volledig aan te passen in de blokeditor.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medlex
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 24px; }
img { height: auto; max-width: 100%; }
::selection { background: var(--wp--preset--color--mist); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--wp--preset--color--blauw); }

/* ---------- Secties ---------- */
.mlx-section {
	padding-top: clamp(72px, 9vw, 120px);
	padding-bottom: clamp(72px, 9vw, 120px);
}
.mlx-section--compact {
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
}
.mlx-dark { background: var(--wp--preset--color--inkt); color: #F3F1EC; }
.mlx-dark :where(h1, h2, h3, h4, a) { color: #F3F1EC; }
.mlx-soft { background: var(--wp--preset--color--ijs); }
.mlx-white { background: var(--wp--preset--color--wit); border-top: 1px solid #E3DED5; border-bottom: 1px solid #E3DED5; }
.mlx-mist { background: var(--wp--preset--color--mist); }

/* ---------- Tekststijlen ---------- */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 1rem !important;
	font-size: 0.8125rem !important;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blauw);
}
.is-style-eyebrow::before {
	content: "";
	width: 40px;
	height: 1px;
	background: var(--wp--preset--color--lichtblauw);
	flex: none;
}
.mlx-dark .is-style-eyebrow { color: #A9C7DD; }
.is-style-eyebrow.mlx-plain::before { display: none; }

.is-style-lead {
	font-size: var(--wp--preset--font-size--large) !important;
	color: var(--wp--preset--color--tekst);
	max-width: 34em;
}
.mlx-muted { color: var(--wp--preset--color--tekst); }

/* ---------- Header ---------- */
.mlx-topbar {
	background: var(--wp--preset--color--inkt);
	color: #C9D6E0;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	padding-top: 10px;
	padding-bottom: 10px;
}
.mlx-topbar p { margin: 0; }
.mlx-topbar a { color: #C9D6E0; text-decoration: none; }
.mlx-topbar a:hover { color: #FFFFFF; }

.mlx-header {
	border-bottom: 1px solid #E3DED5;
	padding-top: 20px;
	padding-bottom: 20px;
	background: var(--wp--preset--color--creme);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .mlx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mlx-header { top: 46px; } }
.mlx-logo { margin: 0; }
.mlx-logo img { width: 168px; display: block; }
.mlx-header .wp-block-navigation { font-size: 0.9375rem; font-weight: 400; letter-spacing: 0.04em; gap: 2rem; }
.mlx-header .wp-block-navigation a { text-decoration: none; }
.mlx-header .wp-block-navigation a:hover { color: var(--wp--preset--color--blauw); }
.mlx-header .wp-block-button__link { padding: 0.95rem 1.5rem; }
.mlx-header__nav { gap: 2rem; }
@media (max-width: 900px) {
	.mlx-header .mlx-header__cta { display: none; }
	.mlx-logo img { width: 140px; }
}

/* ---------- Knoppen ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--inkt);
	border: 1px solid var(--wp--preset--color--inkt);
	padding: calc(1.15rem - 1px) calc(2.1rem - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--inkt);
	color: #FFFFFF;
}
.mlx-mist .wp-block-button__link { background: var(--wp--preset--color--inkt); }
.mlx-mist .wp-block-button__link:hover { background: var(--wp--preset--color--blauw); }
.mlx-textlink a {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--lichtblauw);
	padding-bottom: 2px;
}

/* ---------- Hero ---------- */
.mlx-hero .wp-block-columns { align-items: center; gap: clamp(40px, 6vw, 80px); }
.mlx-hero h1 { margin-top: 0; margin-bottom: 1.75rem; }
.mlx-hero .is-style-lead { margin-bottom: 2.5rem; }
.mlx-hero__media { position: relative; padding: 0 0 28px 28px; }
.mlx-hero__media::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 78%;
	height: 82%;
	background: var(--wp--preset--color--mist);
}
.mlx-hero__media .wp-block-image { position: relative; margin: 0; }
.mlx-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.mlx-stats {
	border-top: 1px solid var(--wp--preset--color--lijn);
	padding-top: 2rem;
	margin-top: clamp(56px, 7vw, 96px) !important;
}
.mlx-stats p { margin: 0; }
.mlx-stat {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.875rem;
	line-height: 1.2;
}
.mlx-stats .mlx-muted { font-size: 0.9375rem; }

/* ---------- Citaat ---------- */
.mlx-quote { text-align: center; }
.mlx-quote > * { max-width: 920px; margin-left: auto !important; margin-right: auto !important; }
.mlx-quote::before {
	content: "";
	display: block;
	width: 2px;
	height: 48px;
	background: var(--wp--preset--color--lichtblauw);
	margin: 0 auto 40px;
}
.mlx-quote__text {
	font-family: var(--wp--preset--font-family--cormorant);
	font-style: italic;
	font-size: clamp(1.75rem, 3.2vw, 2.625rem);
	line-height: 1.3;
	margin-bottom: 2rem;
}
.mlx-quote .is-style-eyebrow { justify-content: center; }
.mlx-quote .is-style-eyebrow::before { display: none; }

/* ---------- Sectiekop met intro ---------- */
.mlx-intro { align-items: flex-end; margin-bottom: clamp(40px, 5vw, 56px) !important; }
.mlx-intro h2 { margin: 0; }
.mlx-intro p:last-child { margin-bottom: 0; }

/* ---------- Behandelingen (rijen) ---------- */
.mlx-rows { border-top: 1px solid var(--wp--preset--color--lijn); }
.mlx-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr) auto;
	gap: 16px 48px;
	align-items: baseline;
	padding: 40px 0;
	border-bottom: 1px solid var(--wp--preset--color--lijn);
	margin: 0 !important;
}
.mlx-row > * { margin: 0 !important; }
.mlx-row__num {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.375rem;
	color: var(--wp--preset--color--blauw);
}
.mlx-row h3 { font-size: clamp(1.75rem, 2.4vw, 2.125rem); }
.mlx-row p { color: var(--wp--preset--color--tekst); font-size: 1.0625rem; }
.mlx-row .mlx-textlink { white-space: nowrap; }
@media (max-width: 900px) {
	.mlx-row { grid-template-columns: 48px minmax(0, 1fr); }
	.mlx-row > :nth-child(n+3) { grid-column: 2; }
}
.mlx-badge {
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
	padding: 2px 10px;
	background: var(--wp--preset--color--mist);
	color: #2F5873;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.8;
}

/* ---------- Stappen en kwaliteit ---------- */
.mlx-steps, .mlx-features { gap: 40px 48px; }
.mlx-step { border-top: 2px solid var(--wp--preset--color--lichtblauw); padding-top: 24px; }
.mlx-feature { border-top: 1px solid var(--wp--preset--color--lijn); padding-top: 24px; position: relative; }
.mlx-feature::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--wp--preset--color--lichtblauw);
}
.mlx-step > *, .mlx-feature > * { margin-top: 0 !important; }
.mlx-step h3, .mlx-feature h3 { font-size: 1.625rem; margin-bottom: 0.5rem; }
.mlx-step p:not(.is-style-eyebrow), .mlx-feature p { color: var(--wp--preset--color--tekst); font-size: 1rem; }
.mlx-step .is-style-eyebrow { font-size: 0.75rem !important; margin-bottom: 0.5rem !important; }
.mlx-step .is-style-eyebrow::before { display: none; }
@media (min-width: 782px) and (max-width: 1100px) {
	.mlx-steps, .mlx-features { flex-wrap: wrap !important; }
	.mlx-steps > .wp-block-column, .mlx-features > .wp-block-column { flex-basis: calc(50% - 48px) !important; }
}

/* ---------- Over ---------- */
.mlx-about .wp-block-columns { align-items: center; gap: clamp(40px, 6vw, 80px); }
.mlx-portrait { margin: 0; }
.mlx-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mlx-credentials {
	list-style: none;
	padding: 0;
	margin-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--lijn);
	font-size: 1rem;
}
.mlx-credentials li { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--lijn); }

/* ---------- Tarieven ---------- */
.mlx-prices { margin: 0; }
.mlx-prices table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--wp--preset--color--inkt); }
.mlx-prices td { border: 0; border-bottom: 1px solid var(--wp--preset--color--lijn); padding: 22px 0; }
.mlx-prices td:last-child {
	text-align: right;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.375rem;
	white-space: nowrap;
	padding-left: 16px;
}
.mlx-prices figcaption { color: var(--wp--preset--color--tekst); font-size: 0.9375rem; text-align: left; margin-top: 1rem; }

/* ---------- Afspraak ---------- */
.mlx-cta .wp-block-columns { align-items: center; }
.mlx-cta h2 { margin: 0 0 0.5rem; }
.mlx-cta p { color: #2F4555; margin: 0; }
.mlx-cta .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .mlx-cta .wp-block-buttons { justify-content: flex-start; } }

/* ---------- Contact ---------- */
.mlx-contact .wp-block-columns { gap: clamp(40px, 5vw, 56px); }
.mlx-contact-item p { margin: 0; }
.mlx-contact-item .is-style-eyebrow { margin-bottom: 0.5rem !important; }
.mlx-contact-item .is-style-eyebrow::before { display: none; }
.mlx-place { margin: 0; }
.mlx-place img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Footer ---------- */
.mlx-footer { font-size: 0.9375rem; color: #B9C6D0; padding-top: 72px; padding-bottom: 32px; }
.mlx-footer a { color: #B9C6D0; }
.mlx-footer a:hover { color: #FFFFFF; }
.mlx-footer .mlx-logo img { width: 150px; }
.mlx-footer p { margin: 0 0 0.35rem; }
.mlx-footer strong { color: #FFFFFF; font-weight: 400; }
.mlx-footer__bottom {
	border-top: 1px solid #34424D;
	margin-top: 48px !important;
	padding-top: 24px;
	font-size: 0.8125rem;
	color: #8FA0AD;
}

/* ---------- Gewone pagina's ---------- */
.mlx-page-title { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 1rem; }
.mlx-page-title h1 { font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.mlx-prose > :not(.alignfull):not(.alignwide) { max-width: 760px; }
.mlx-prose { padding-bottom: clamp(56px, 7vw, 96px); }

/* ---------- Mobiel menu ---------- */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--creme);
	padding: 32px 24px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.75rem;
	gap: 1rem;
}

/* ---------- Kopruimte binnen secties ---------- */
.mlx-section > h2.wp-block-heading { margin-top: 0; margin-bottom: clamp(40px, 5vw, 64px); }
.mlx-section .wp-block-column > h2.wp-block-heading { margin-top: 0; margin-bottom: 1.5rem; }
.mlx-contact .wp-block-column > * + * { margin-top: 1.75rem; }
