/*
Theme Name: Mulligan
Template: manifold-theme
Description: Mulligan — a project child theme built on the Manifold parent. Design lives in theme.json; snippets in functions.php.
Requires Manifold: 1.0
Version: 1.0.9
Text Domain: mulligan-child
*/

/*
 * Design tokens live in theme.json (colors, type, spacing, radius, shadow).
 * This file holds only what a token can't express: component styles, block
 * style variations, and the small hover micro-motions from the spec.
 */

/* NOTE: WordPress kebab-cases preset slugs when it emits CSS variables, so the
 * `2xl` / `3xl` / `4xl` sizes exist as --wp--preset--font-size--2-xl / 3-xl /
 * 4-xl (and classes .has-2-xl-font-size …). Always reference the hyphenated
 * form — the plain form is undefined and silently falls back to 16px. */
/* --- Site logo ------------------------------------------------------------ */
/* The Mulligan logo is an SVG with a viewBox but no intrinsic width/height, so
 * WordPress emits the <img> with height="0" and it collapses to 200×0. Force a
 * real height so the browser derives it from the viewBox ratio. */
.wp-block-site-logo img,
.wp-block-site-logo .custom-logo {
	width: 200px;
	height: auto;
	max-width: 100%;
}

/* --- Primary navigation ---------------------------------------------------- */
/* Dropdown panel: white card, quiet Mist hairline, soft shadow, rounded. */
.site-navbar .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base);
	border: none !important; /* override core's default rgba(0,0,0,.15) border */
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	min-width: 26rem;
	margin-top: 0.75rem; /* nudge the panel down from the navbar */
	/* Dropdown effect: slide down + fade in (core toggles the opacity/visibility). */
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}
/* Invisible bridge across the gap so hover doesn't drop when moving to the panel. */
.site-navbar .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	top: -0.75rem;
	left: 0;
	right: 0;
	height: 0.75rem;
}
.site-navbar .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container,
.site-navbar .wp-block-navigation-item:focus-within > .wp-block-navigation__submenu-container,
.site-navbar .wp-block-navigation-submenu[aria-expanded="true"] > .wp-block-navigation__submenu-container {
	transform: translateY(0);
}

/* Each item is a single column: title over description (never side by side).
 * The whole row highlights pale-blue (Mist) on hover. */
.site-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	width: 100%;
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--md);
	transition: background-color 0.15s ease;
}
.site-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.site-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	background-color: var(--wp--custom--color--mist);
}

/* Two-line items: Nunito title + muted description (core renders the
 * description span when a nav item has one). */
.site-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--snug);
	color: var(--wp--preset--color--primary);
}
.site-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: 0.75rem; /* 12px */
	line-height: var(--wp--custom--line-height--base);
	color: var(--wp--preset--color--muted);
	white-space: nowrap; /* keep the description on one row */
}

/* Footer link: "VEZI TOT CONCEPT →" — uppercase, divided from the items,
 * points to the same parent page as the top-level item. */
.site-navbar .wp-block-navigation__submenu-container .submenu-cta {
	margin-top: var(--wp--preset--spacing--20);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--custom--color--mist);
}
.site-navbar .wp-block-navigation__submenu-container .submenu-cta .wp-block-navigation-item__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem; /* 11px */
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
}

/* Chevron rotates (with animation) when its submenu opens. */
.site-navbar .wp-block-navigation__submenu-icon {
	transition: transform 0.2s ease;
}
.site-navbar .wp-block-navigation-item:hover > .wp-block-navigation__submenu-icon,
.site-navbar .wp-block-navigation-item:hover > a .wp-block-navigation__submenu-icon,
.site-navbar .wp-block-navigation-item:focus-within > .wp-block-navigation__submenu-icon,
.site-navbar .wp-block-navigation-item:focus-within > a .wp-block-navigation__submenu-icon,
.site-navbar .wp-block-navigation-submenu[aria-expanded="true"] .wp-block-navigation__submenu-icon {
	transform: rotate(180deg);
}

/* Top-level simple links fade to Muted on hover (Noutăți / Despre / Contact).
 * Submenu parents keep Royal Blue — their feedback is the opening panel +
 * rotating chevron. */
.site-navbar .wp-block-navigation__container > .wp-block-navigation-item:not(.wp-block-navigation-submenu) > .wp-block-navigation-item__content {
	transition: color 0.15s ease;
}
.site-navbar .wp-block-navigation__container > .wp-block-navigation-item:not(.wp-block-navigation-submenu) > .wp-block-navigation-item__content:hover,
.site-navbar .wp-block-navigation__container > .wp-block-navigation-item:not(.wp-block-navigation-submenu) > .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--muted);
}

/* --- Eyebrow -------------------------------------------------------------- */
/* 0.6875rem · 700 · uppercase · tracking .18em · Nunito Sans. The `--line`
 * modifier adds the short leading rule seen in the spec (“— CONCEPT”). */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	color: var(--wp--preset--color--primary);
}
.eyebrow--line::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background-color: currentColor;
}

/* --- Prose paragraph (block style) --------------------------------------- */
/* Long-form body: Source Serif 4, larger, softer navy. Applied per-paragraph
 * via the “Prose” block style so general UI text stays Nunito Sans. */
.wp-block-paragraph.is-style-prose,
.is-style-prose p {
	font-family: var(--wp--preset--font-family--prose);
	font-size: 1.125rem;
	line-height: var(--wp--custom--line-height--prose);
	color: var(--wp--custom--color--prose);
}

/* --- Ghost button -------------------------------------------------------- */
/* Outline variation: transparent fill, quiet Mist border, primary text, pill.
 * Fills to primary on hover. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--pill);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--primary);
}

/* --- CTA micro-motion ---------------------------------------------------- */
/* “Doar micro-motion”: the button lifts 2px on hover. */
.wp-block-button__link {
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* --- Card (block style) -------------------------------------------------- */
/* White surface, 16px radius, quiet Mist hairline, soft card shadow. */
.is-style-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	padding: var(--wp--preset--spacing--50);
}

/* --- Photo radii helpers ------------------------------------------------- */
.hero-photo   { border-radius: var(--wp--custom--radius--hero-photo); overflow: hidden; }
.hero-ledge   { border-radius: var(--wp--custom--radius--hero-ledge); overflow: hidden; }
.photo-label  { border-radius: var(--wp--custom--radius--photo-label); }

/* --- Section rhythm ------------------------------------------------------ */
/* Opt-in vertical padding token (5rem → 6rem) for full-width sections. */
.section-y {
	padding-block: var(--wp--custom--spacing--section-y);
}

/* --- Footer ---------------------------------------------------------------- */
/* Deep-navy footer. Headings are white; links + soft text are near-white
 * (Mist) and brighten to white on hover. */
.site-footer .footer-heading {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--base);
	margin-bottom: var(--wp--preset--spacing--20);
}
.site-footer a {
	color: var(--wp--custom--color--mist);
	text-decoration: none;
	transition: color 0.15s ease;
}
.site-footer a:hover,
.site-footer a:focus {
	color: var(--wp--preset--color--base);
}
.site-footer .footer-soft {
	color: var(--wp--custom--color--mist);
}
/* Legal bar divided by a faint hairline off the base (white) colour. */
.site-footer .footer-legal {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 15%, transparent);
}
/* Brand logo inverted to a crisp white mark on the navy footer. */
.site-footer .footer-logo img {
	width: 180px;
	filter: brightness(0) invert(1);
}

/* Footer menu links at 14px (headings + tagline keep their own sizes). */
.site-footer .wp-block-column p:not(.footer-heading):not(.footer-soft) {
	font-size: var(--wp--preset--font-size--sm);
}

/* --- Home hero ------------------------------------------------------------- */
/* Layout (2026-10-26 redesign): a navy band with a two-column row — eyebrow +
 * headline left, lead + CTAs right — then a full-bleed photo with the stats
 * overlaid bottom-left. On phones the photo moves ABOVE the text (flex order)
 * and the stats sit inside the navy band under a rule. The hero is a plain
 * Group (not a Cover) so the photo is a normal, replaceable Image block.
 * --mf-header-h is kept for the sticky header; the hero no longer uses it. */
:root {
	--mf-header-h: 141px;
	--mf-root-pad: var(--wp--style--root--padding-left, clamp(1.25rem, 5vw, 5rem));
}
.home-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	color: var(--wp--preset--color--base);
	/* Match the header's boxed row: root padding on the full-bleed band, then a
	 * 1280 (wide) inner row — so the hero content lines up with the logo. */
	padding-inline: var(--mf-root-pad);
	padding-block: 0;
}
.home-hero > * {
	margin-block: 0 !important; /* no flow-layout block gaps between the parts */
}
.home-hero .hero-row {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
	padding-block: var(--wp--preset--spacing--80);
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--70);
	align-items: end;
}
.home-hero .hero-inner > *,
.home-hero .hero-side > * {
	margin-left: 0 !important;
	margin-right: auto !important;
	text-align: left;
}
.home-hero .hero-inner > * + *,
.home-hero .hero-side > * + * {
	margin-top: var(--wp--preset--spacing--50) !important;
}
.home-hero .hero-inner > .hero-title {
	margin-top: var(--wp--preset--spacing--30) !important; /* keep the eyebrow tight to the title */
}
.home-hero .eyebrow {
	color: color-mix(in srgb, var(--wp--preset--color--base) 72%, transparent);
}
/* Headline — white with an accent second line (the "white on Royal Blue" case). */
.home-hero .hero-title {
	color: var(--wp--preset--color--base);
	font-size: clamp(2.5rem, 1.75rem + 3.5vw, 4.5rem); /* 40px floor keeps "Terapie manuală" on one line at 390px */
	line-height: var(--wp--custom--line-height--tight);
	margin: 0;
}
.home-hero .hero-title-accent {
	display: block;
	color: var(--wp--preset--color--accent);
}
.home-hero .hero-lead {
	max-width: 42ch;
	color: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
}
/* CTAs on dark: primary = white pill + navy text; ghost = white outline. */
.home-hero .hero-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}
.home-hero .hero-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}
.home-hero .hero-cta .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--base);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent);
}
.home-hero .hero-cta .is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--base);
}
/* The rule only separates CTAs from stats on phones. */
.home-hero .hero-rule {
	display: none;
	border: none;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 22%, transparent);
	width: 100%;
	max-width: none;
}
/* Photo: full-bleed (undo the band's root padding), cinematic ratio, with a
 * soft navy fade at the foot so the overlaid stats stay legible. */
.home-hero .hero-photo {
	position: relative;
	width: auto;
	margin-inline: calc(-1 * var(--mf-root-pad)) !important;
	border-radius: 0; /* full-bleed on desktop; the generic .hero-photo rule above rounds all corners */
	overflow: hidden;
}
.home-hero .hero-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 10;
	min-height: 24rem;
	max-height: 80vh;
	object-fit: cover;
	object-position: center 35%;
}
.home-hero .hero-photo::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 45%;
	background: linear-gradient(to top, color-mix(in srgb, var(--wp--custom--color--navy-900) 72%, transparent), transparent);
	pointer-events: none;
}
/* Stats: absolutely positioned over the foot of the photo, aligned to the row. */
.home-hero .hero-stats-band {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--wp--preset--spacing--60);
	z-index: 1;
	padding-inline: var(--mf-root-pad);
}
.home-hero .hero-stats {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start; /* core's flex group centres items; keep tops aligned when a label wraps */
	gap: var(--wp--preset--spacing--70);
}
.home-hero .hero-stat > * + * {
	margin-top: var(--wp--preset--spacing--20) !important;
}
.home-hero .hero-stat-num {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--3-xl);
	line-height: 1;
	color: var(--wp--preset--color--base);
	margin: 0;
}
.home-hero .hero-stat-label {
	font-size: var(--wp--preset--font-size--sm);
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: color-mix(in srgb, var(--wp--preset--color--base) 62%, transparent);
	margin: 0;
}
@media (max-width: 781px) {
	.home-hero .hero-photo {
		order: -1; /* photo first, then the navy text band */
		border-radius: 0 0 var(--wp--custom--radius--hero-photo) var(--wp--custom--radius--hero-photo);
	}
	.home-hero .hero-photo img {
		aspect-ratio: 6 / 5;
		min-height: 0;
		max-height: none;
	}
	.home-hero .hero-photo::after {
		display: none;
	}
	.home-hero .hero-row {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--wp--preset--spacing--50);
		padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	}
	.home-hero .hero-side > * {
		margin-right: 0 !important;
	}
	.home-hero .hero-cta .wp-block-button {
		width: 100%;
	}
	.home-hero .hero-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
	.home-hero .hero-rule {
		display: block;
		width: 100% !important; /* beat core's 100px default separator width */
		max-width: var(--wp--style--global--wide-size);
		margin: 0 auto var(--wp--preset--spacing--50) !important;
	}
	.home-hero .hero-stats-band {
		position: static;
		padding: 0 0 var(--wp--preset--spacing--60);
	}
	.home-hero .hero-stats {
		gap: var(--wp--preset--spacing--40);
		justify-content: space-between;
	}
	.home-hero .hero-stat {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* --- Prose pages: heading rhythm ----------------------------------------- */
/* Page content (legal pages, any long-form page) gets one uniform block gap
 * from core's flow layout, so a chapter title sits equidistant from the text
 * above and below. Open up the space ABOVE a heading and tighten it BELOW.
 * Core sets the gap as margin-block-start on `* + *`, so both rules target
 * that: the heading itself, and whatever follows it. */
.wp-block-post-content > * + h2,
.wp-block-post-content > * + h3 {
	margin-block-start: var(--wp--preset--spacing--60);
}
.wp-block-post-content > h2 + *,
.wp-block-post-content > h3 + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* --- Sticky, shrinking, translucent header -------------------------------- */
/* Sticky must sit on the template-part wrapper (a tall-page child), not the
 * inner .site-header. JS toggles .is-scrolled on .site-header past a threshold. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
/* No block-spacing gap above the footer — it sits flush to the last section. */
footer.wp-block-template-part {
	margin-top: 0;
}
.site-header .site-topbar {
	max-height: 5rem;
	overflow: hidden;
	transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
}
.site-header .site-navbar {
	transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header .wp-block-site-logo img {
	transition: width 0.25s ease;
}
/* Scrolled: collapse the announcement bar, shrink the navbar + logo, frost it.
 * padding-block needs !important — the topbar carries inline padding from the
 * block markup, which a plain rule can't override, so ~16px lingered as a gap. */
.site-header.is-scrolled .site-topbar {
	max-height: 0;
	padding-block: 0 !important;
	border: 0;
	opacity: 0;
}
.site-header.is-scrolled .site-navbar {
	/* Kill the flow block-gap that sat between the (now-collapsed) topbar and
	   the navbar — otherwise a ~16px gap lingers above the navbar. */
	margin-block-start: 0 !important;
	padding-block: var(--wp--preset--spacing--20);
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 6px 24px color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}
.site-header.is-scrolled .wp-block-site-logo img {
	width: 150px;
}

/* --- Home: De ce Mulligan (concept + cards) ------------------------------- */
.home-concept .concept-title {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
	line-height: var(--wp--custom--line-height--tight);
	margin: 0;
}
.concept-cards .wp-block-column {
	display: flex;
}
.concept-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--60);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
/* Kill the constrained-layout auto margins (which would center the flex items)
 * so card content stays left-aligned; pin the link to the bottom. */
.concept-card > * {
	margin: 0 !important;
}
.concept-card:hover {
	box-shadow: var(--wp--custom--shadow--card);
	transform: translateY(-3px);
}
.concept-card .card-num {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	color: var(--wp--preset--color--primary);
}
.concept-card h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--2-xl);
}
.concept-card .card-desc {
	margin: 0;
	font-family: var(--wp--preset--font-family--prose);
	color: var(--wp--custom--color--prose);
}
.concept-card > .card-link {
	margin-top: auto !important; /* pin to the bottom of the card */
	padding-top: var(--wp--preset--spacing--30);
}
.concept-card .card-link a {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.concept-card .card-link a:hover {
	color: var(--wp--preset--color--secondary);
}

/* --- Home: CTA cursuri RO (royal-blue band) ------------------------------- */
.home-cta .eyebrow {
	color: color-mix(in srgb, var(--wp--preset--color--base) 68%, transparent);
}
.home-cta .cta-title {
	margin: 0;
	color: var(--wp--preset--color--base);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	line-height: var(--wp--custom--line-height--tight);
}
.home-cta .cta-lead {
	color: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent);
}
/* Frosted status panel */
.cta-card {
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 16%, transparent);
	border-radius: 1.5rem;
	padding: var(--wp--preset--spacing--60);
}
.cta-card .cta-status {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
	color: color-mix(in srgb, var(--wp--preset--color--base) 58%, transparent);
}
.cta-card .cta-count {
	margin: 0;
	color: var(--wp--preset--color--base);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--lg);
}
.cta-card .cta-dot {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 12%, transparent);
}
.cta-card .cta-dot::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background-color: var(--wp--preset--color--base);
}
.cta-card .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}
.cta-card .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}
.cta-card .cta-more {
	margin: 0;
	text-align: center;
}
.cta-card .cta-more a {
	font-size: var(--wp--preset--font-size--sm);
	color: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent);
	text-decoration: none;
}
.cta-card .cta-more a:hover {
	color: var(--wp--preset--color--base);
}

/* --- Home: Cursurile noastre (course query) ------------------------------- */
.home-courses .courses-title {
	margin: 0;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
	line-height: var(--wp--custom--line-height--tight);
}
.home-courses .course-grid {
	gap: var(--wp--preset--spacing--50);
}
/* The card is a constrained-layout group; stop it centering/shrinking its
 * children (media + body) so they fill the card full-width. */
.home-courses .course-card > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}
.course-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--photo-label);
	transition: box-shadow 0.2s ease;
}
/* Shadow is the hover state; no shadow at rest. */
.course-card:hover {
	box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent);
}
.course-card .course-media {
	position: relative;
	flex: 0 0 auto; /* keep the aspect-ratio height inside the flex-column card */
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	/* placeholder shown if a course has no featured image yet */
	background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 16%, var(--wp--preset--color--base)) 0%, var(--wp--custom--color--mist) 100%);
}
.course-card .course-photo,
.course-card .course-photo img {
	margin: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.course-card .course-badge {
	position: absolute;
	top: var(--wp--preset--spacing--40);
	left: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--base);
	border-radius: 9999px;
	padding: 0.35rem 0.9rem;
}
.course-card .course-badge p {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--primary);
}
.course-card .course-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50);
}
/* Left-align body content (override constrained-layout centering) + pin foot. */
.home-courses .course-body > * {
	margin: 0 !important;
}
.home-courses .course-body > .course-foot {
	margin-top: auto !important;
}
.course-card .course-date {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--primary);
}
.course-card .course-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--2-xl);
}
.course-card .course-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.course-card .course-formator {
	margin: 0;
	color: var(--wp--preset--color--muted);
}
.course-card .course-formator::before {
	content: "Formator: ";
}
.course-card .course-rule {
	margin: var(--wp--preset--spacing--20) 0 0;
	border: none;
	border-top: 1px solid var(--wp--custom--color--mist);
	/* override core's default-separator width (0,3,0 specificity) */
	width: 100% !important;
	max-width: none !important;
}
.course-card .course-foot {
	margin-top: auto;
}
.course-card .course-duration {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}
.course-card .course-detalii {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.course-card .course-detalii:hover {
	color: var(--wp--preset--color--secondary);
}

/* --- Interior page hero + shared bits ------------------------------------- */
.page-hero {
	color: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--80);
	padding-bottom: calc(var(--wp--preset--spacing--80) + var(--wp--preset--spacing--50));
}
/* Keep page-hero-inner as the wide (1280) box; left-align its items flush to the
 * box edge (= the logo) and cap their width, with generous spacing. */
.page-hero .page-hero-inner > * {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: 820px;
}
.page-hero .page-hero-inner > * + * {
	margin-top: var(--wp--preset--spacing--50) !important;
}
.page-hero .page-crumbs {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: color-mix(in srgb, var(--wp--preset--color--base) 65%, transparent);
}
.page-hero .page-crumbs a {
	color: inherit;
	text-decoration: none;
}
.page-hero .page-crumbs a:hover {
	color: var(--wp--preset--color--base);
}
.page-hero .page-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.35rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 30%, transparent);
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent);
}
.page-hero .page-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 9999px;
	background: var(--wp--preset--color--accent);
}
.page-hero .page-hero-title {
	margin: 0;
	color: var(--wp--preset--color--base);
	font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
	line-height: var(--wp--custom--line-height--tight);
}
.page-hero .page-hero-title .accent {
	color: var(--wp--preset--color--accent);
}
.page-hero .page-hero-lead {
	max-width: 48ch;
	color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
}
/* Hero content entrance: staggered rise + fade on load (reduced-motion is
 * neutralized by the parent's global animation guard). */
@keyframes mf-hero-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.page-hero .page-hero-inner > *,
.home-hero .hero-inner > *,
.home-hero .hero-side > * {
	animation: mf-hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero .page-hero-inner > *:nth-child(1),
.home-hero .hero-inner > *:nth-child(1) { animation-delay: 0.08s; }
.page-hero .page-hero-inner > *:nth-child(2),
.home-hero .hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
.page-hero .page-hero-inner > *:nth-child(3),
.home-hero .hero-inner > *:nth-child(3) { animation-delay: 0.28s; }
.page-hero .page-hero-inner > *:nth-child(4),
.home-hero .hero-inner > *:nth-child(4) { animation-delay: 0.38s; }
.page-hero .page-hero-inner > *:nth-child(5),
.home-hero .hero-inner > *:nth-child(5) { animation-delay: 0.48s; }
.page-hero .page-hero-inner > *:nth-child(6),
.home-hero .hero-inner > *:nth-child(6) { animation-delay: 0.58s; }
/* Curve the section after the hero up over it. */
.page-hero + .wp-block-group {
	position: relative;
	margin-top: -2.5rem;
	border-top-left-radius: 2.5rem;
	border-top-right-radius: 2.5rem;
}
/* Shared interior section title (left-aligned; override constrained centering). */
.section-title {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: none;
	font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem);
	line-height: var(--wp--custom--line-height--tight);
}
/* Concept page: card grid + pillar columns reuse .concept-card. */
.concept-grid .concept-card {
	height: 100%;
}
.pillar-cards .wp-block-column {
	display: flex;
}

/* Letter-badge cards (PILL / CROCKS). */
.letter-grid .concept-card {
	height: 100%;
}
/* Core's manual grids (columnCount/columnSpan) don't collapse on their own —
   stack the PILL/CROCKS cards on small screens. */
@media (max-width: 781px) {
	.letter-grid,
	.concept-grid {
		grid-template-columns: 1fr !important;
	}
	.letter-grid > .wp-block-group,
	.concept-grid > .wp-block-group {
		grid-column: auto !important;
	}
}
.letter-card .card-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
}

/* Decision-flow numbered steps. */
.flux-steps {
	max-width: 820px;
	margin-left: 0 !important;
	margin-right: auto !important;
}
.flux-steps > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}
.flux-step {
	align-items: flex-start !important;
}
.flux-step .flux-num {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}
.flux-step .flux-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--prose);
	color: var(--wp--custom--color--prose);
}
.flux-step .flux-text strong {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

/* Chronology timeline — bullets are beads on a single continuous rail. */
.timeline > .timeline-item {
	position: relative;
	max-width: 860px !important;
	margin: 0 !important;
	margin-right: auto !important;
	padding-left: 2.75rem;
	padding-bottom: var(--wp--preset--spacing--50);
}
.timeline > .timeline-item > * {
	margin: 0 !important;
	max-width: none !important;
}
.timeline > .timeline-item:last-child {
	padding-bottom: 0;
}
/* The rail: one 2px vertical line, unbroken between adjacent items,
   trimmed to start at the first bullet and end at the last bullet. */
.timeline > .timeline-item::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 0;
	bottom: 0;
	width: 2px;
	transform: translateX(-50%);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}
.timeline > .timeline-item:first-child::before {
	top: 11px;
}
.timeline > .timeline-item:last-child::before {
	bottom: auto;
	height: 11px;
}
/* The bullet, centered on the rail. */
.timeline > .timeline-item::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 4px;
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	transform: translateX(-50%);
	border-radius: 9999px;
	background: var(--wp--preset--color--surface);
	border: 3px solid var(--wp--preset--color--primary);
}
.timeline .timeline-year {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--primary);
}
.timeline .timeline-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl);
}
.timeline .timeline-desc {
	margin: 0;
	max-width: 62ch;
	font-family: var(--wp--preset--font-family--prose);
	color: var(--wp--custom--color--prose);
}

/* Techniques grid — two-column technique cards. */
.tech-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50);
}
.tech-grid > * {
	margin: 0 !important;
	max-width: none !important;
}
.tech-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--50);
}
.tech-card > * {
	margin: 0 !important;
	max-width: none !important;
}
.tech-card-head {
	align-items: baseline;
	gap: var(--wp--preset--spacing--30);
}
.tech-abbr {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--2-xl);
	line-height: 1.1;
}
.tech-region {
	margin: 0;
	text-align: right;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--muted);
}
.tech-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
}
.tech-desc {
	margin: 0;
	color: var(--wp--custom--color--prose);
}
.tech-card .tech-rule {
	margin: var(--wp--preset--spacing--20) 0;
	border: none;
	border-top: 1px solid var(--wp--custom--color--mist);
	background: none;
}
.tech-ex-label {
	margin: 0;
	color: var(--wp--preset--color--muted);
}
.tech-examples {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--custom--color--prose);
}
.tech-examples li {
	padding-left: 1rem;
	text-indent: -1rem;
}
.tech-examples li + li {
	margin-top: 0.35rem;
}
.tech-examples li::before {
	content: "· ";
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
@media (max-width: 781px) {
	.tech-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Cursuri — archive FAQ + single-course template
   ============================================================ */

/* FAQ accordion (archive). */
.faq-list > .faq-item {
	max-width: 860px !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}
.faq-item {
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--photo-label);
	background: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.faq-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--contrast);
}
.faq-item summary::-webkit-details-marker {
	display: none;
}
.faq-item summary::after {
	content: "+";
	color: var(--wp--preset--color--primary);
	font-size: 1.5em;
	line-height: 1;
	font-weight: 400;
}
.faq-item[open] summary::after {
	content: "–";
}
.faq-item summary + * {
	margin-top: var(--wp--preset--spacing--30);
}
.faq-item p {
	margin: 0;
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
}

/* Single course — feature image tucked under the hero curve. */
.course-feature {
	background: var(--wp--preset--color--base);
	margin-top: -2.5rem;
	padding-top: var(--wp--preset--spacing--60);
	border-top-left-radius: 2.5rem;
	border-top-right-radius: 2.5rem;
	position: relative;
	z-index: 1;
}
.course-feature-figure {
	margin: 0 auto;
}
/* Hide the photo band entirely when a course has no featured image
   (the block renders nothing, but the section wrapper would still show). */
.course-feature:not(:has(img)) {
	display: none;
}
/* Block template pieces: "Formator:" is a presentational prefix on the
   bound field, hidden when the field is empty. */
.cs-formator::before {
	content: "Formator: ";
}
.cs-formator:empty {
	display: none;
}
.course-feature-figure img,
.course-feature-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--hero-photo);
}

/* Single course — next session + enrollment. */
.course-session {
	padding-block: var(--wp--preset--spacing--80);
}
.cs-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: var(--wp--preset--spacing--70);
	align-items: start;
}
.cs-main {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}
.cs-date {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--2-xl);
	line-height: 1.1;
}
.cs-place {
	margin: 0;
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
}
.cs-desc {
	max-width: 52ch;
	margin-top: var(--wp--preset--spacing--20);
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
}
.cs-desc p {
	margin: 0;
}
.cs-desc p + p {
	margin-top: var(--wp--preset--spacing--30);
}
.enroll-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--60);
	box-shadow: var(--wp--custom--shadow--card);
}
.enroll-card .eyebrow {
	color: var(--wp--preset--color--muted);
}
.enroll-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xl);
	color: var(--wp--preset--color--contrast);
}
.enroll-text {
	margin: 0;
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
	font-size: var(--wp--preset--font-size--sm);
}
.enroll-btn {
	margin-top: var(--wp--preset--spacing--20);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.enroll-note {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}
.enroll-card {
	border-top: 3px solid var(--wp--custom--color--mist);
}
.enroll-card.is-open {
	border-top-color: #1f8a5b;
}
.enroll-card.is-tbd {
	border-top-color: #d59227;
}
.enroll-card .eyebrow {
	color: var(--wp--preset--color--muted);
}
.enroll-card.is-open .eyebrow {
	color: #1f8a5b;
}
.enroll-card.is-tbd .eyebrow {
	color: #b26a00;
}

/* Single course — curriculum + objectives grids. */
.course-curr,
.course-obj {
	padding-block: var(--wp--preset--spacing--80);
}
.course-curr > .alignwide + .alignwide,
.course-obj > .alignwide + .alignwide {
	margin-top: var(--wp--preset--spacing--50);
}
.course-curr > .alignwide:first-child,
.course-obj > .alignwide:first-child {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
}
.curr-grid,
.obj-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50);
}
.curr-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--50);
}
.curr-num {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--primary);
}
.curr-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xl);
	color: var(--wp--preset--color--contrast);
}
.curr-desc {
	margin: 0;
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
}
.obj-grid {
	gap: var(--wp--preset--spacing--40);
}
.obj-item {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--photo-label);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.obj-check {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 0.85rem;
}
.obj-text {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--prose);
}

/* Single course — CTA band (raw-HTML two-column) + back link. */
.course-single .home-cta {
	padding-block: var(--wp--preset--spacing--80);
}
.home-cta .cta-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: var(--wp--preset--spacing--70);
	align-items: center;
}
.home-cta .cta-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
}
.course-back-wrap {
	padding-block: var(--wp--preset--spacing--50);
}
.course-back {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.course-back:hover {
	text-decoration: underline;
}
@media (max-width: 781px) {
	.cs-grid,
	.curr-grid,
	.obj-grid,
	.home-cta .cta-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Formatori — archive grid + single teacher
   ============================================================ */
.formator-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
	gap: var(--wp--preset--spacing--50);
	max-width: none;
}
.formator-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	color: inherit;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.formator-card:hover {
	box-shadow: var(--wp--custom--shadow--card);
	transform: translateY(-3px);
}
.formator-name-link {
	color: inherit;
	text-decoration: none;
}
.formator-name-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.formator-photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
}
.formator-photo.is-initials {
	display: grid;
	place-items: center;
	background: var(--wp--custom--color--mist);
}
.formator-photo.is-initials span {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(2.5rem, 6vw, 4rem);
	color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, #ffffff);
	letter-spacing: 0.04em;
}
.formator-photo.has-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.formator-body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--50);
}
.formator-loc {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--muted);
}
.formator-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xl);
	color: var(--wp--preset--color--primary);
}
.formator-spec {
	margin: 0;
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
}
.formator-rule {
	width: 100%;
	margin: var(--wp--preset--spacing--20) 0 0;
	border: none;
	border-top: 1px solid var(--wp--custom--color--mist);
}
.formator-exp {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

/* Single teacher. */
.formator-single {
	padding-block: var(--wp--preset--spacing--80);
}
.fs-grid {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	gap: var(--wp--preset--spacing--70);
	align-items: start;
}
.fs-media {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
	text-align: center;
}
.formator-photo--lg {
	aspect-ratio: 1;
	width: 200px;
	max-width: 70%;
	margin: 0 auto;
	border-radius: 9999px;
	overflow: hidden;
}
.formator-photo--lg.is-initials {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
}
.formator-photo--lg.is-initials span {
	font-size: clamp(2.75rem, 7vw, 3.75rem);
	color: var(--wp--preset--color--primary);
}
.formator-photo--lg.has-photo img {
	border-radius: 9999px;
}
.fs-accred .eyebrow {
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.35rem;
}
.fs-accred-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--contrast);
}
.fs-main {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--60);
}
.fs-bio {
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
	max-width: 60ch;
}
.fs-bio p {
	margin: 0;
}
.fs-bio p + p {
	margin-top: var(--wp--preset--spacing--30);
}
.fs-interese {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}
.interese-pills {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}
.interese-pills li {
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.4rem 1rem;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
}
@media (max-width: 781px) {
	.fs-grid {
		grid-template-columns: 1fr;
	}
	.formator-grid {
		grid-template-columns: 1fr;
	}
}

/* Clinical-key quote callout. */
.clinic-quote {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-left: 3px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--60);
}
.clinic-quote .clinic-quote-label {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--muted);
}
.clinic-quote .clinic-quote-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xl);
	line-height: var(--wp--custom--line-height--heading);
	color: var(--wp--preset--color--primary);
}
.clinic-quote .clinic-quote-cite {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

/* Indication ✓ / ✕ lists. */
.indic-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.indic-list li {
	position: relative;
	padding-left: 1.9rem;
	margin-block: 0.5rem;
}
.indic-list li::before {
	position: absolute;
	left: 0;
	font-weight: 700;
}
.indic-list.ok li::before {
	content: "✓";
	color: #1f8a5b;
}
.indic-list.no li::before {
	content: "✕";
	color: #c0392b;
}

/* --- Home: Stats band ----------------------------------------------------- */
.home-stats .stats-row {
	margin-block: 0;
}
.home-stats .stats-row .wp-block-column {
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
	border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
}
.home-stats .stats-row .wp-block-column:first-child {
	border-left: none;
}
.home-stats .stat-num {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
	line-height: 1;
	color: var(--wp--preset--color--base);
}
.home-stats .stat-label {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-size: var(--wp--preset--font-size--sm);
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
}

/* --- Home: Testimonial quote carousel ------------------------------------- */
.testimonial-carousel {
	max-width: 960px;
}
.testimonial-carousel .manifold-carousel__slide {
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-inline: var(--wp--preset--spacing--50);
}
.testimonial-carousel .quote-slide {
	margin: 0;
	max-width: 820px;
}
.testimonial-carousel .quote-mark {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4rem;
	line-height: 0.6;
	color: var(--wp--preset--color--primary);
	margin-bottom: var(--wp--preset--spacing--40);
}
.testimonial-carousel .quote-text {
	margin: 0 0 var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: clamp(1.4rem, 1rem + 1.7vw, 2.1rem);
	line-height: var(--wp--custom--line-height--snug);
	color: var(--wp--preset--color--primary);
}
.testimonial-carousel .quote-name {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}
.testimonial-carousel .quote-role {
	display: block;
	margin-top: 0.25rem;
	color: var(--wp--preset--color--muted);
}
/* Pill dots (override the parent's circular default). */
.testimonial-carousel .manifold-carousel__dots {
	margin-top: var(--wp--preset--spacing--60);
}
.testimonial-carousel .manifold-carousel__dot {
	width: 22px;
	height: 6px;
	border-radius: 9999px;
	background: var(--wp--custom--color--mist);
}
.testimonial-carousel .manifold-carousel__dot[aria-current="true"] {
	width: 30px;
	height: 6px;
	background: var(--wp--preset--color--primary);
}

/* --- Home: Testimoniale --------------------------------------------------- */
.home-testimonials .testimonials-title {
	margin: 0;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
	line-height: var(--wp--custom--line-height--tight);
}
.home-testimonials .testimonials-all {
	margin: 0;
}
.home-testimonials .testimonials-all a {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.home-testimonials .testimonials-all a:hover {
	color: var(--wp--preset--color--secondary);
}
.testimonial-cards .wp-block-column {
	display: flex;
}
.testimonial-card {
	flex: 1;
}
/* Placeholder video thumbnail with a centered play button. */
.testimonial-media {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--hero-photo);
	background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 18%, var(--wp--preset--color--base)) 0%, var(--wp--custom--color--mist) 100%);
}
.testimonial-media .play-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 9999px;
	background-color: var(--wp--preset--color--primary);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	transition: transform 0.2s ease;
}
.testimonial-media:hover .play-btn {
	transform: scale(1.08);
}
.testimonial-media .play-btn::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 3px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent var(--wp--preset--color--base);
}
.testimonial-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--primary);
}
.testimonial-role {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

/* --- Home: Fondator (despre concept) -------------------------------------- */
.home-founder .founder-media {
	position: relative;
}
/* Rounded portrait — no backdrop panel/shadow behind it. */
.home-founder .founder-photo {
	margin: 0;
}
.home-founder .founder-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--hero-photo);
}
/* Founder label — floats over the bottom of the portrait. */
.home-founder .founder-label {
	position: absolute;
	right: -1rem;
	bottom: -1.25rem;
	max-width: 66%;
	background-color: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--photo-label);
	box-shadow: var(--wp--custom--shadow--card);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.home-founder .founder-role {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--primary);
}
.home-founder .founder-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--primary);
}
.home-founder .founder-cred {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}
.home-founder .founder-title {
	margin: 0;
	font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem);
	line-height: var(--wp--custom--line-height--tight);
}

/* --- Evidență: hub grid, studii list, cazuri, FAQ ------------------------- */
/* Hub: three resource cards reuse .concept-card; collapse the 3-up grid down. */
.evid-grid .concept-card {
	height: 100%;
}

/* Studii cheie — client-managed Query Loop of the study CPT. */
.studii-list {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-left: 0 !important;
	margin-right: auto !important;
}
.studiu-row {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	transition: box-shadow 0.2s ease;
}
/* Kill the constrained-layout auto-centering so content sits flush to the
 * card's left padding (aligned to the boxed row), not centered inside it. */
.studiu-row > * {
	margin: 0 !important;
	max-width: none !important;
}
.studiu-row:hover {
	box-shadow: var(--wp--custom--shadow--card);
}
.studiu-meta {
	align-items: center;
}
.studiu-meta > * {
	margin: 0;
}
.studiu-an {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--muted);
}
.studiu-tip,
.studiu-zona {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	padding: 0.28rem 0.7rem;
	border-radius: var(--wp--custom--radius--pill);
	line-height: 1.2;
}
.studiu-tip {
	color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 12%, transparent);
}
.studiu-zona {
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface);
}
.studiu-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl);
	line-height: var(--wp--custom--line-height--heading);
	color: var(--wp--preset--color--primary);
}
.studiu-jurnal {
	margin: 0;
	font-style: italic;
	color: var(--wp--preset--color--muted);
}
.studiu-concluzie {
	margin: 0;
	font-family: var(--wp--preset--font-family--prose);
	color: var(--wp--custom--color--prose);
}
.studiu-concluzie::before {
	content: "Concluzie: ";
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
}
/* External-study link (ACF `link`). Bound button; hidden when no URL is set. */
.studiu-source {
	margin-top: var(--wp--preset--spacing--10) !important;
}
.studiu-source .wp-block-button__link {
	padding: 0;
	background: transparent;
	border-radius: 0;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}
.studiu-source .wp-block-button__link:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}
.studiu-source .wp-block-button__link[href="#"],
.studiu-source .wp-block-button__link[href=""] {
	display: none;
}

/* Cazuri clinice — anonymized case cards. */
.caz-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--60);
}
.caz-num {
	color: var(--wp--preset--color--secondary);
}
.caz-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl);
	line-height: var(--wp--custom--line-height--tight);
	color: var(--wp--preset--color--primary);
}
.caz-cols {
	gap: var(--wp--preset--spacing--60);
}
.caz-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--prose);
	color: var(--wp--custom--color--prose);
}

/* FAQ clinice — numbered question inside the shared .faq-item accordion. */
.faq-item summary .faq-q {
	display: flex;
	gap: 0.85rem;
	align-items: baseline;
}
.faq-item summary .faq-num {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
}

/* Shared "back to Evidență" link — flush to the boxed row, not centered. */
.evid-back {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: none;
}
.evid-back a {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.evid-back a:hover {
	color: var(--wp--preset--color--secondary);
}

@media (max-width: 900px) {
	.evid-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.site-navbar .wp-block-navigation__submenu-icon,
	.site-header .site-topbar,
	.site-header .site-navbar,
	.site-header .wp-block-site-logo img,
	.concept-card,
	.testimonial-media .play-btn {
		transition: none;
	}
	.wp-block-button__link:hover,
	.concept-card:hover,
	.testimonial-media:hover .play-btn {
		transform: none;
	}
}

/* --- Noutăți (blog): index grid + single article ------------------------- */
.noutati-grid {
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}
.noutati-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--photo-label);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.noutati-card > * {
	margin: 0 !important;
	max-width: none !important;
}
.noutati-card:hover {
	box-shadow: var(--wp--custom--shadow--card);
	transform: translateY(-3px);
}
.noutati-card .noutati-media {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 16%, var(--wp--preset--color--base)) 0%, var(--wp--custom--color--mist) 100%);
}
.noutati-photo,
.noutati-photo img {
	margin: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.noutati-cat {
	position: absolute;
	top: var(--wp--preset--spacing--40);
	left: var(--wp--preset--spacing--40);
	margin: 0;
	background-color: var(--wp--preset--color--base);
	border-radius: 9999px;
	padding: 0.35rem 0.9rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
}
.noutati-cat a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.noutati-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--50);
}
.noutati-body > * {
	margin: 0 !important;
}
.noutati-body > .noutati-more {
	margin-top: auto !important;
	padding-top: var(--wp--preset--spacing--20);
}
.noutati-date {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--muted);
}
.noutati-title {
	font-size: var(--wp--preset--font-size--xl);
	line-height: var(--wp--custom--line-height--tight);
}
.noutati-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.noutati-title a:hover {
	color: var(--wp--preset--color--secondary);
}
.noutati-excerpt {
	font-family: var(--wp--preset--font-family--prose);
	color: var(--wp--custom--color--prose);
}
.noutati-more {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.noutati-more:hover {
	color: var(--wp--preset--color--secondary);
}
.noutati-pagination {
	margin-top: var(--wp--preset--spacing--70);
	gap: var(--wp--preset--spacing--30);
}
.noutati-pagination .wp-block-query-pagination-numbers,
.noutati-pagination a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: none;
}
.noutati-pagination .current {
	color: var(--wp--preset--color--secondary);
}

/* Single article — category · date badge in the hero. */
.page-badge.nb {
	gap: 0.15rem;
}
.nb .wp-block-post-terms,
.nb .wp-block-post-date {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}
.nb a {
	color: inherit;
	text-decoration: none;
}
.nb-date::before {
	content: "·";
	margin: 0 0.4rem;
}
/* Featured image sits in the curved panel below the hero. */
.noutati-hero-img {
	margin: 0 auto;
}
.noutati-hero-img img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--hero-photo);
}
/* Article body — readable prose column, flush-left to the wide box. */
.noutati-content {
	max-width: 760px;
	margin-left: 0 !important;
	margin-right: auto !important;
}
.noutati-content > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}
.noutati-content p,
.noutati-content li {
	font-family: var(--wp--preset--font-family--prose);
	color: var(--wp--custom--color--prose);
}
.noutati-back {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: none;
}
.noutati-back a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.noutati-back a:hover {
	color: var(--wp--preset--color--secondary);
}

@media (max-width: 1024px) {
	.noutati-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 640px) {
	.noutati-grid {
		grid-template-columns: 1fr !important;
	}
}

/* --- Despre: mission highlights, value cards, stats ---------------------- */
.despre-mission .is-style-prose strong {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
}
.despre-values .concept-card {
	height: 100%;
	background-color: var(--wp--preset--color--base);
}
.despre-stats {
	row-gap: var(--wp--preset--spacing--60) !important;
}
.stat-tile > * {
	margin: 0 !important;
}
.stat-tile {
	border-top: 2px solid var(--wp--custom--color--mist);
	padding-top: var(--wp--preset--spacing--30);
}
.stat-num {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem);
	line-height: 1;
	color: var(--wp--preset--color--primary);
}
.stat-label {
	margin: var(--wp--preset--spacing--20) 0 0 !important;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--muted);
}

/* --- Contact: form + info cards ------------------------------------------ */
.contact-form-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--60);
}
/* The form itself is Fluent Forms ([fluentform id="3"]); these rules reskin
   its markup with the theme tokens. `.ff-half` is a container class set on the
   Nume/Email fields in the form editor (side-by-side on desktop). */
.contact-form-card .frm-fluent-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40);
}
/* FF wraps the fields in a <fieldset>; flatten it so the groups are the grid items. */
.contact-form-card .frm-fluent-form fieldset {
	display: contents;
	border: none;
	margin: 0;
	padding: 0;
}
/* The screen-reader legend would otherwise occupy the first grid cell. */
.contact-form-card .frm-fluent-form .ff_screen_reader_title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	margin: 0;
}
.contact-form-card .frm-fluent-form .ff-el-group {
	grid-column: 1 / -1;
	margin-bottom: 0;
}
.contact-form-card .frm-fluent-form .ff-el-group.ff-half {
	grid-column: span 1;
}
.contact-form-card .ff-el-input--label {
	margin-bottom: 0.4rem;
	padding: 0;
}
.contact-form-card .ff-el-input--label label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--muted);
}
.contact-form-card .ff-el-form-control {
	width: 100%;
	height: auto;
	padding: 0.7rem 0.9rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--base);
	line-height: var(--wp--custom--line-height--base);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--custom--color--mist);
	border-radius: var(--wp--custom--radius--md);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form-card textarea.ff-el-form-control {
	resize: vertical;
	min-height: 8rem;
}
.contact-form-card .ff-el-form-control:focus {
	outline: none;
	border-color: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--secondary) 18%, transparent);
}
.contact-form-card .ff_submit_btn_wrapper {
	margin: 0;
}
.contact-form-card .ff-btn-submit {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--base);
	border: none;
	border-radius: var(--wp--custom--radius--pill);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	cursor: pointer;
	transition: background 0.15s ease;
}
.contact-form-card .ff-btn-submit:hover,
.contact-form-card .ff-btn-submit:focus {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
}
.contact-form-card .ff-message-success {
	margin: 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--photo-label);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 30%, transparent);
	box-shadow: none;
}
.contact-form-card .ff-el-is-error .ff-el-form-control {
	border-color: color-mix(in srgb, #d33 50%, transparent);
}
.contact-form-card .error.text-danger,
.contact-form-card .ff-errors-in-stack {
	color: #8a1c1c;
	font-size: var(--wp--preset--font-size--sm);
}
.contact-info-card {
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 7%, var(--wp--preset--color--base));
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--50);
}
.contact-info-card > * {
	margin: 0 !important;
}
.contact-info-card .eyebrow {
	color: var(--wp--preset--color--muted);
}
.contact-info-value {
	margin: 0.4rem 0 0 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--primary);
}
.contact-info-value a {
	color: inherit;
	text-decoration: none;
}
.contact-info-value a:hover {
	color: var(--wp--preset--color--secondary);
}
.contact-info-sub {
	margin: 0.4rem 0 0 !important;
	color: var(--wp--custom--color--prose);
	font-family: var(--wp--preset--font-family--prose);
}

@media (max-width: 781px) {
	.contact-form-card .frm-fluent-form {
		grid-template-columns: 1fr;
	}
	.contact-form-card .frm-fluent-form .ff-el-group.ff-half {
		grid-column: 1 / -1;
	}
	.despre-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* ============================================================
   Homepage — layout feedback (2026-08-20)
   Client review pass. Also mirrored live via Global Styles
   custom CSS on mulligan.ro (clear that DB copy after deploy).
   ============================================================ */

/* CTA (Cursuri RO): give the left column uniform spacing between
   eyebrow/title/lead. The DB-seeded page doesn't carry .cta-main,
   so target the column structurally. */
.home-cta .wp-block-columns > .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--50);
}
.home-cta .wp-block-columns > .wp-block-column:first-child > * {
	margin-block: 0;
}
.home-cta .cta-main {
	gap: var(--wp--preset--spacing--50);
}

/* CTA status box: more vertical space. */
.cta-card {
	padding-block: var(--wp--preset--spacing--70);
}

/* Stats band: a bordered inner box sitting on the full-bleed navy band. */
.home-stats {
	padding-block: var(--wp--preset--spacing--60);
	padding-inline: var(--wp--preset--spacing--50);
}
.home-stats .stats-row {
	max-width: 1280px;
	margin-inline: auto;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 24%, transparent);
	border-radius: 1.5rem;
}

/* Header CTA button: 12px text. */
.site-navbar .wp-block-buttons .wp-block-button__link {
	font-size: 0.75rem;
}

@media (max-width: 781px) {
	/* Header CTA button hidden on mobile (logo + hamburger only). */
	.site-navbar .wp-block-buttons {
		display: none;
	}

	/* Nav overlay opened only a sliver when scrolled: the navbar's
	   backdrop-filter creates a containing block that traps the fixed
	   overlay. Drop it on mobile; solid bg instead of the frost. */
	.site-header.is-scrolled .site-navbar {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background-color: var(--wp--preset--color--base);
	}

	/* Overlay: inset the close button off the top-right corner. */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		top: 1.5rem !important;
		right: 1.5rem !important;
	}

	/* Overlay list: full-width, left-aligned rows (WP centers them), with a bit
	   more breathing room from the device edges. */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch !important;
		padding-inline: 2rem;
		padding-top: 4.5rem;
		/* The menu is two list blocks (submenu items + plain Despre/Contact);
		   the wrapper gap must equal the in-list row gap or the rhythm breaks. */
		gap: 12px !important;
	}
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch !important;
		width: 100%;
		gap: 12px !important;
		row-gap: 12px !important;
	}
	/* Top-level row: the link and the chevron toggle sit side by side; the
	   submenu list wraps to its own full-width row below (flex-wrap). */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		display: flex;
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start !important;
		width: 100%;
		text-align: left;
		/* Chevron-less items (Despre, Contact) must match the 2.25rem row
		   height the chevron button gives the others — keeps the pitch even. */
		min-height: 2.25rem;
	}
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		flex: 1 1 auto !important;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		text-align: left;
	}
	/* Show the chevron toggle button (WP hides it in the overlay). The link
	   navigates; the chevron opens the submenu. Rotate on .mf-open, NOT on WP's
	   aria-expanded (WP force-opens every submenu when the overlay opens). */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon {
		display: flex !important;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 2.25rem;
		height: 2.25rem;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		color: inherit;
		cursor: pointer;
		transform: none !important; /* WP rotates the button on aria; we don't */
	}
	/* Drive the chevron only off .mf-open (WP force-opens all submenus in the
	   overlay, so its aria-based rotation is wrong here). Reset both the button
	   and the svg, rotate just the svg when open. */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon svg {
		width: 1.1rem;
		height: 1.1rem;
		transition: transform 0.2s ease;
		transform: none !important;
		transform-origin: center;
	}
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu.mf-open > .wp-block-navigation__submenu-icon svg {
		transform: rotate(180deg) !important;
	}
	/* The submenu list wraps to its own full-width row below the parent. */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container {
		flex: 0 0 100%;
	}
	/* Submenu items: keep the two-line title/description, left-aligned. */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		align-items: flex-start !important;
		text-align: left;
		width: 100%;
		padding-inline-start: 0 !important;
	}

	/* Accordion — collapsed by default, opened via the .mf-open class that
	   menu-accordion.js toggles. (WP force-opens every submenu when the overlay
	   opens, so we can't key on aria-expanded; we drive display ourselves.) */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation__submenu-container {
		display: none !important;
	}
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu.mf-open > .wp-block-navigation__submenu-container {
		display: block !important;
	}

	/* Submenu = flat divider, full-width, aligned to the parent's left edge. */
	.site-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		position: static;
		width: 100%;
		list-style: none;
		background: transparent;
		box-shadow: none;
		border: none !important;
		border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent) !important;
		border-radius: 0;
		min-width: 0;
		margin: 0 !important;
		padding: var(--wp--preset--spacing--20) 0 !important;
		padding-inline-start: 0 !important;
		transform: none;
	}

	/* Founder: space between the portrait and the text that follows. */
	.home-founder .wp-block-columns {
		gap: var(--wp--preset--spacing--70);
	}
	.home-founder .founder-media {
		margin-bottom: var(--wp--preset--spacing--50);
	}

	/* Stats numbers centered, dividers stack. */
	.home-stats .stats-row .wp-block-column {
		text-align: center;
		border-left: none;
		border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 18%, transparent);
	}
	.home-stats .stats-row .wp-block-column:first-child {
		border-top: none;
	}
}
