/* "Over ons" page, scoped under .mf-about. Bands: hero, story, why, founder, CTA. */

.mf-about {
	font-family: var(--mf-font);
	color: var(--mf-ink);
	--mf-about-maxw: var(--mf-maxw);
	line-height: 1.6;
}

.mf-about *,
.mf-about *::before,
.mf-about *::after {
	box-sizing: border-box;
}

.mf-about__inner {
	max-width: var(--mf-about-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

.mf-about h2,
.mf-about h3 {
	font-family: var(--mf-font);
	color: var(--mf-navy);
	margin: 0;
	line-height: 1.2;
}

/* Theme paragraph reset — every override is the SAME specificity, so anything needing
   a margin must state it and sit after this rule. */
.mf-about p {
	margin: 0;
}


/* 1. Hero band */

.mf-about__hero {
	position: relative;
	background: var(--mf-hero-sky);
	padding: 88px 0 140px;
	overflow: hidden;
	text-align: center;
}

.mf-about__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mf-sky-3);
	margin-bottom: 18px;
}

/* max-width needs auto margins to stay centred; text-align only centres the lines. */
.mf-about__title {
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 800;
	margin: 0 auto 20px;
	max-width: 20ch;
	color: var(--mf-white);
}

/* Gap below is PADDING, not margin: a margin collapsed against the card grid. */
.mf-about__lead {
	font-size: clamp(16px, 2.2vw, 19px);
	line-height: 1.65;
	color: var(--mf-sky-2);
	max-width: none;
	margin: 0 auto;
	padding-bottom: 44px;
	text-align: center;
}

/* 4 intro cards — the band centres its text, the card interiors do not follow */
.mf-about__cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: initial;
}

.mf-about-card {
	background: var(--mf-card-bg);
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius);
	padding: 26px 22px;
	box-shadow: var(--mf-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mf-about-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--mf-shadow-hover);
}

.mf-about-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--mf-sky-2);
	margin-bottom: 16px;
}

.mf-about-card__icon svg {
	width: 24px;
	height: 24px;
	fill: var(--mf-dark-blue);
}

.mf-about-card__title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.mf-about-card__desc {
	font-size: 14.5px;
	color: var(--mf-muted);
}

/* curved divider at the bottom of the hero */
.mf-about__divider {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	line-height: 0;
	pointer-events: none;
}

.mf-about__divider svg {
	display: block;
	width: 100%;
	height: 80px;
}

.mf-about__divider path {
	fill: var(--mf-page-bg);
}

/* 2. Story band */

.mf-about__story {
	background: var(--mf-page-bg);
	padding: 24px 0 96px;
}

.mf-about__intro {
	text-align: center;
	max-width: 60ch;
	margin: 0 auto 64px;
}

.mf-about__intro h2 {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	margin-bottom: 8px;
}

.mf-about-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
	margin-bottom: clamp(56px, 8vw, 96px);
}

.mf-about-row:last-child {
	margin-bottom: 0;
}

/* alternate: even rows put the image first */
.mf-about-row--flip .mf-about-row__media {
	order: -1;
}

.mf-about-row__title {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	/* Carries the whole heading→text gap (.mf-about p zeroes the paragraph margin). */
	margin-bottom: 36px;
}

.mf-about-row__title::before {
	content: "";
	display: block;
	width: 44px;
	height: 4px;
	border-radius: 3px;
	background: var(--mf-blue);
	margin-bottom: 18px;
}

.mf-about-row__text {
	font-size: 18px;
	line-height: 1.7;
	color: var(--mf-ink);
}

.mf-about-row__text strong {
	color: var(--mf-navy);
}

.mf-about-row__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--mf-radius-lg);
	box-shadow: var(--mf-shadow-float);
}

/* Carousel */

.mf-about-carousel {
	position: relative;
	border-radius: var(--mf-radius-lg);
	overflow: hidden;
	box-shadow: var(--mf-shadow-float);
	aspect-ratio: 3 / 2;
	background: var(--mf-mid-blue);
}

.mf-about-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
}

.mf-about-carousel__slide.is-active {
	opacity: 1;
}

.mf-about-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}

.mf-about-carousel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	display: flex;
	gap: 4px;
	justify-content: center;
	z-index: 2;
}

/* 22px button + transparent border = 8px visible dot on a finger-sized target. */
.mf-about-carousel__dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 7px solid transparent;
	background-clip: padding-box;
	padding: 0;
	background-color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.mf-about-carousel__dot.is-active {
	background-color: var(--mf-white);
	transform: scale(1.2);
}

/* 3. Waarom Mindfully */

.mf-about__why {
	position: relative;
	background: var(--mf-light-blue);
	padding: 96px 0;
}

.mf-about__why h2 {
	text-align: center;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	margin-bottom: 48px;
}

.mf-about__why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mf-about-feature {
	background: var(--mf-card-bg);
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius);
	padding: 30px 26px;
	box-shadow: var(--mf-shadow);
}

.mf-about-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--mf-tint);
	margin-bottom: 18px;
}

.mf-about-feature__icon svg {
	width: 26px;
	height: 26px;
	fill: var(--mf-blue);
}

.mf-about-feature__title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.mf-about-feature__desc {
	font-size: 15px;
	color: var(--mf-muted);
}

/* 4. Founder's message */

.mf-about__founder {
	background: var(--mf-page-bg);
	padding: 96px 0;
}

.mf-about-note {
	position: relative;
	max-width: 64ch;
	margin: 0 auto;
	background: var(--mf-card-bg);
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius-lg);
	box-shadow: var(--mf-shadow-float);
	padding: clamp(32px, 5vw, 56px) clamp(26px, 5vw, 64px);
}

/* a large, soft opening quote mark anchored top-left as a watermark */
.mf-about-note::before {
	content: "\201C";
	position: absolute;
	top: clamp(-18px, -1vw, -8px);
	left: clamp(16px, 3vw, 40px);
	font-size: clamp(80px, 12vw, 140px);
	line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
	color: var(--mf-tint);
	pointer-events: none;
	z-index: 0;
}

.mf-about-note__eyebrow {
	position: relative;
	z-index: 1;
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mf-blue);
	margin-bottom: 20px;
}

.mf-about-note__body {
	position: relative;
	z-index: 1;
	margin: 0;
	border: 0;
	padding: 0;
}

.mf-about-note__body p {
	font-size: clamp(16px, 2.1vw, 18.5px);
	line-height: 1.7;
	color: var(--mf-ink);
}

.mf-about-note__body p + p {
	margin-top: 18px;
}

.mf-about-note__sign {
	position: relative;
	z-index: 1;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--mf-line);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Brand font, not a cursive stack: script fonts differ per OS. */
.mf-about-note__signature {
	font-family: var(--mf-font);
	font-size: clamp(21px, 2.6vw, 26px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--mf-navy);
}

.mf-about-note__role {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--mf-muted);
}

/* 5. Closing CTA */

/* NOT --mf-dark-blue: the footer uses it, so the CTA would merge into the footer. */
.mf-about__cta {
	background: var(--mf-hero-sky);
	padding: 72px 0 84px;
	text-align: center;
}

.mf-about__cta h2 {
	color: var(--mf-white);
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	margin: 0 auto 14px;
	max-width: 24ch;
}

/* Padding, not margin — a margin collapsed against the actions row. */
.mf-about__cta-lead {
	color: var(--mf-sky-2);
	font-size: clamp(15px, 2.2vw, 17px);
	max-width: none;
	margin: 0 auto;
	padding-bottom: 36px;
	text-align: center;
}

.mf-about__cta-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

/* <a> elements: !important on every state so theme link/hover styles can't leak in. */
.mf-about__cta-btn,
.mf-about__cta-btn:link,
.mf-about__cta-btn:visited,
.mf-about__cta-btn:hover,
.mf-about__cta-btn:focus,
.mf-about__cta-btn:active {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px;
	padding: 12px 28px !important;
	border: none !important;
	border-radius: var(--mf-radius) !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.mf-about__cta-btn--primary,
.mf-about__cta-btn--primary:link,
.mf-about__cta-btn--primary:visited,
.mf-about__cta-btn--primary:hover,
.mf-about__cta-btn--primary:focus,
.mf-about__cta-btn--primary:active {
	background: var(--mf-blue) !important;
	color: var(--mf-white) !important;
	box-shadow: none !important;
}

.mf-about__cta-btn--primary:hover {
	background: var(--mf-blue-deep) !important;
	transform: translateY(-2px);
}

.mf-about__cta-btn--ghost,
.mf-about__cta-btn--ghost:link,
.mf-about__cta-btn--ghost:visited,
.mf-about__cta-btn--ghost:hover,
.mf-about__cta-btn--ghost:focus,
.mf-about__cta-btn--ghost:active {
	background: transparent !important;
	color: var(--mf-white) !important;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
}

.mf-about__cta-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: inset 0 0 0 2px var(--mf-white) !important;
	transform: translateY(-2px);
}

.mf-about__cta-btn:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.6) !important;
	outline-offset: 2px;
}

/* Responsive */

@media (max-width: 900px) {
	.mf-about__cards {
		grid-template-columns: repeat(2, 1fr);
	}

	/* One column kills the alternation; drop rows 1 and 3's media (keep the carousel). */
	.mf-about-row:not(.mf-about-row--flip) .mf-about-row__media {
		display: none;
	}

	.mf-about__why-grid {
		grid-template-columns: 1fr;
	}

	.mf-about-row {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	/* keep the image below the text on mobile regardless of desktop order */
	.mf-about-row--flip .mf-about-row__media {
		order: 0;
	}
}

@media (max-width: 520px) {
	.mf-about__hero {
		padding: 56px 0 110px;
	}

	.mf-about__inner {
		padding: 0 16px;
	}

	.mf-about__lead {
		padding-bottom: 32px;
	}

	.mf-about__cards {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mf-about-card:nth-child(n + 3) {
		display: none;
	}

	/* the descriptions are the tall part — the title + icon still scans */
	.mf-about-card__desc {
		display: none;
	}

	.mf-about-card {
		display: grid;
		grid-template-columns: 42px 1fr;
		column-gap: 14px;
		align-items: center;
		padding: 16px 18px;
	}

	.mf-about-card__icon {
		width: 42px;
		height: 42px;
		margin-bottom: 0;
	}

	.mf-about-card__icon svg {
		width: 22px;
		height: 22px;
	}

	.mf-about-card__title {
		margin-bottom: 0;
	}

	.mf-about__divider svg {
		height: 48px;
	}

	.mf-about__story {
		padding: 24px 0 72px;
	}

	.mf-about__intro {
		margin-bottom: 44px;
	}

	.mf-about-row {
		margin-bottom: 48px;
	}

	.mf-about__why {
		padding: 64px 0;
	}

	.mf-about__why h2 {
		margin-bottom: 32px;
	}

	.mf-about__founder {
		padding: 64px 0;
	}

	.mf-about-note__body p:not(.mf-about-note__lede):not(.mf-about-note__welcome) {
		display: none;
	}

	.mf-about__cta {
		padding: 56px 0;
	}

	/* stack the buttons, comfortably tappable but not full-bleed wide */
	.mf-about__cta-actions {
		flex-direction: column;
		gap: 12px;
	}

	.mf-about__cta-btn,
	.mf-about__cta-btn:link,
	.mf-about__cta-btn:visited,
	.mf-about__cta-btn:hover,
	.mf-about__cta-btn:focus,
	.mf-about__cta-btn:active {
		width: 100%;
		max-width: 340px;
	}
}
