/**
 * Minden szó varázsige — Divi 5 Global Design Foundation v0.1
 *
 * Canonical source implementation. No legacy child-theme CSS or JavaScript
 * is carried into this file.
 */

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/CormorantGaramond-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/CormorantGaramond-SemiBold.ttf") format("truetype");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/Inter-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/Inter-Medium.ttf") format("truetype");
}

@font-face {
	font-family: "Cormorant Infant";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/CormorantInfant-Regular.ttf") format("truetype");
}

:root {
	/* Colors */
	--msv-d5-color-brand-deep-indigo: #1e2238;
	--msv-d5-color-brand-secondary-indigo: #262b45;
	--msv-d5-color-surface-warm-ivory: #f2eee6;
	--msv-d5-color-text-secondary: #cfcac1;
	--msv-d5-color-accent-silver: #c9ced6;
	--msv-d5-color-light-focus: #e6ebf2;
	--msv-d5-color-text-primary: var(--msv-d5-color-brand-deep-indigo);
	--msv-d5-color-text-on-dark: var(--msv-d5-color-surface-warm-ivory);

	/* Fonts */
	--msv-d5-font-display: "Cormorant Garamond", Georgia, serif;
	--msv-d5-font-body: "Inter", Arial, sans-serif;
	--msv-d5-font-brand-line: "Cormorant Infant", Georgia, serif;

	/* Layout */
	--msv-d5-content-max: 1200px;
	--msv-d5-reading-max: 680px;
	--msv-d5-quote-max: 1000px;
	--msv-d5-gutter-desktop: 48px;
	--msv-d5-gutter-tablet: 48px;
	--msv-d5-gutter-mobile: 24px;

	/* Spacing */
	--msv-d5-space-4: 4px;
	--msv-d5-space-8: 8px;
	--msv-d5-space-12: 12px;
	--msv-d5-space-16: 16px;
	--msv-d5-space-24: 24px;
	--msv-d5-space-32: 32px;
	--msv-d5-space-48: 48px;
	--msv-d5-space-64: 64px;
	--msv-d5-space-80: 80px;
	--msv-d5-space-96: 96px;
	--msv-d5-space-128: 128px;
	--msv-d5-space-144: 144px;
	--msv-d5-section-space: var(--msv-d5-space-128);
	--msv-d5-section-space-emphasis: var(--msv-d5-space-144);
	--msv-d5-component-space: var(--msv-d5-space-32);

	/* Buttons */
	--msv-d5-button-radius: 4px;
	--msv-d5-button-border: 1px;
	--msv-d5-button-padding-y: 14px;
	--msv-d5-button-padding-x: 28px;
	--msv-d5-button-transition: 200ms ease;
}

body {
	background: var(--msv-d5-color-surface-warm-ivory);
	color: var(--msv-d5-color-text-primary);
	font-family: var(--msv-d5-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
}

body,
button,
input,
select,
textarea {
	font-family: var(--msv-d5-font-body);
}

h1,
h2,
h3,
h4,
.msv-d5-heading {
	color: currentcolor;
	font-family: var(--msv-d5-font-display);
	font-weight: 400;
	margin-block: 0;
}

h1,
.msv-d5-h1 {
	font-size: 80px;
	line-height: 1.04;
	letter-spacing: -0.02em;
}

h2,
.msv-d5-h2 {
	font-size: 52px;
	line-height: 1.08;
	letter-spacing: -0.015em;
}

h3,
.msv-d5-h3 {
	font-size: 34px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

h4,
.msv-d5-h4 {
	font-size: 26px;
	line-height: 1.2;
}

/*
 * Divi's legacy typography rules can target headings with class selectors.
 * This deliberately narrow target-foundation override keeps the canonical
 * display family and weights authoritative without copying or cleaning legacy
 * theme CSS.
 */
body.et_divi_theme h1,
body.et_divi_theme .msv-d5-h1 {
	font-family: var(--msv-d5-font-display) !important;
	font-size: 80px !important;
	font-weight: 400 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.02em !important;
}

body.et_divi_theme h2,
body.et_divi_theme .msv-d5-h2 {
	font-family: var(--msv-d5-font-display) !important;
	font-size: 52px !important;
	font-weight: 400 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.015em !important;
}

body.et_divi_theme h3,
body.et_divi_theme .msv-d5-h3 {
	font-family: var(--msv-d5-font-display) !important;
	font-size: 34px !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.01em !important;
}

body.et_divi_theme h4,
body.et_divi_theme .msv-d5-h4 {
	font-family: var(--msv-d5-font-display) !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
}

/*
 * R4 runtime compatibility override.
 * Divi prints its legacy global body-font rule after the child stylesheet.
 * Keep the approved Inter body system authoritative without modifying legacy
 * Divi configuration or changing any design token.
 */
body.et_divi_theme {
	font-family: var(--msv-d5-font-body) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
}

body.et_divi_theme input,
body.et_divi_theme select,
body.et_divi_theme textarea {
	font-family: var(--msv-d5-font-body) !important;
}

p {
	margin-block: 0;
}

.msv-d5-lead {
	font-family: var(--msv-d5-font-body);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.55;
}

.msv-d5-meta,
.msv-d5-small {
	font-family: var(--msv-d5-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.msv-d5-section-label {
	color: var(--msv-d5-color-accent-silver);
	font-family: var(--msv-d5-font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.msv-d5-brand-line {
	font-family: var(--msv-d5-font-brand-line);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

.msv-d5-nav {
	font-family: var(--msv-d5-font-body);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.msv-d5-button,
.et_pb_button.msv-d5-button {
	align-items: center;
	background: transparent;
	border: var(--msv-d5-button-border) solid var(--msv-d5-color-accent-silver);
	border-radius: var(--msv-d5-button-radius);
	box-shadow: none;
	color: var(--msv-d5-color-text-on-dark);
	display: inline-flex;
	font-family: var(--msv-d5-font-body);
	font-size: 15px;
	font-weight: 500;
	justify-content: center;
	letter-spacing: 0.02em;
	line-height: 1.2;
	min-height: 48px;
	padding: var(--msv-d5-button-padding-y) var(--msv-d5-button-padding-x);
	text-decoration: none;
	transition: background-color var(--msv-d5-button-transition),
		border-color var(--msv-d5-button-transition),
		color var(--msv-d5-button-transition);
}

.msv-d5-button:hover,
.msv-d5-button:focus-visible,
.et_pb_button.msv-d5-button:hover,
.et_pb_button.msv-d5-button:focus-visible {
	background: rgba(230, 235, 242, 0.08);
	border-color: var(--msv-d5-color-light-focus);
	color: var(--msv-d5-color-text-on-dark);
}

.msv-d5-button--secondary {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--msv-d5-color-accent-silver);
	gap: var(--msv-d5-space-12);
	padding: var(--msv-d5-space-12) 0;
}

.msv-d5-button--secondary::after {
	background: currentcolor;
	content: "";
	display: inline-block;
	height: 1px;
	transition: width 180ms ease;
	width: 18px;
}

.msv-d5-button--secondary:hover,
.msv-d5-button--secondary:focus-visible {
	background: transparent;
	border-color: transparent;
	color: var(--msv-d5-color-text-on-dark);
}

.msv-d5-button--secondary:hover::after,
.msv-d5-button--secondary:focus-visible::after {
	width: 26px;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--msv-d5-color-light-focus);
	outline-offset: 3px;
}

.msv-d5-container {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: calc(var(--msv-d5-content-max) + (var(--msv-d5-gutter-desktop) * 2));
	padding-inline: var(--msv-d5-gutter-desktop);
	width: 100%;
}

.msv-d5-reading-width {
	max-width: var(--msv-d5-reading-max);
}

.msv-d5-quote-width {
	max-width: var(--msv-d5-quote-max);
}

.msv-d5-section {
	padding-block: var(--msv-d5-section-space);
}

.msv-d5-section--emphasis {
	padding-block: var(--msv-d5-section-space-emphasis);
}

.msv-d5-stack > * + * {
	margin-top: var(--msv-d5-component-space);
}

.msv-d5-stack--tight > * + * {
	margin-top: var(--msv-d5-space-16);
}

.msv-d5-surface-dark {
	background: var(--msv-d5-color-brand-deep-indigo);
	color: var(--msv-d5-color-text-on-dark);
}

.msv-d5-surface-secondary {
	background: var(--msv-d5-color-brand-secondary-indigo);
	color: var(--msv-d5-color-text-on-dark);
}

.msv-d5-surface-ivory {
	background: var(--msv-d5-color-surface-warm-ivory);
	color: var(--msv-d5-color-text-primary);
}

.msv-d5-qa-swatch-grid {
	display: grid;
	gap: var(--msv-d5-space-16);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.msv-d5-qa-swatch {
	border: 1px solid var(--msv-d5-color-accent-silver);
	min-height: 128px;
	padding: var(--msv-d5-space-24);
}

@media (max-width: 980px) {
	:root {
		--msv-d5-section-space: var(--msv-d5-space-96);
		--msv-d5-section-space-emphasis: var(--msv-d5-space-96);
		--msv-d5-component-space: 28px;
	}

	h1,
	.msv-d5-h1 {
		font-size: 64px;
	}

	h2,
	.msv-d5-h2 {
		font-size: 44px;
	}

	h3,
	.msv-d5-h3 {
		font-size: 32px;
	}

	body.et_divi_theme h1,
	body.et_divi_theme .msv-d5-h1 {
		font-size: 64px !important;
	}

	body.et_divi_theme h2,
	body.et_divi_theme .msv-d5-h2 {
		font-size: 44px !important;
	}

	body.et_divi_theme h3,
	body.et_divi_theme .msv-d5-h3 {
		font-size: 32px !important;
	}

	.msv-d5-lead {
		font-size: 20px;
	}

	.msv-d5-container {
		max-width: calc(var(--msv-d5-content-max) + (var(--msv-d5-gutter-tablet) * 2));
		padding-inline: var(--msv-d5-gutter-tablet);
	}
}

@media (max-width: 767px) {
	:root {
		--msv-d5-section-space: 72px;
		--msv-d5-section-space-emphasis: 88px;
		--msv-d5-component-space: 24px;
	}

	body.et_divi_theme {
		font-size: 17px !important;
	}

	h1,
	.msv-d5-h1 {
		font-size: 52px;
		line-height: 1.04;
	}

	h2,
	.msv-d5-h2 {
		font-size: 38px;
		line-height: 1.1;
	}

	h3,
	.msv-d5-h3 {
		font-size: 30px;
		line-height: 1.18;
	}

	h4,
	.msv-d5-h4 {
		font-size: 24px;
	}

	body.et_divi_theme h1,
	body.et_divi_theme .msv-d5-h1 {
		font-size: 52px !important;
		line-height: 1.04 !important;
	}

	body.et_divi_theme h2,
	body.et_divi_theme .msv-d5-h2 {
		font-size: 38px !important;
		line-height: 1.1 !important;
	}

	body.et_divi_theme h3,
	body.et_divi_theme .msv-d5-h3 {
		font-size: 30px !important;
		line-height: 1.18 !important;
	}

	body.et_divi_theme h4,
	body.et_divi_theme .msv-d5-h4 {
		font-size: 24px !important;
	}

	.msv-d5-lead {
		font-size: 19px;
	}

	.msv-d5-container {
		max-width: calc(var(--msv-d5-content-max) + (var(--msv-d5-gutter-mobile) * 2));
		padding-inline: var(--msv-d5-gutter-mobile);
	}

	.msv-d5-qa-swatch-grid {
		grid-template-columns: 1fr;
	}

	.msv-d5-button {
		width: 100%;
	}

	.msv-d5-button--secondary {
		justify-content: flex-start;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
