/**
 * FYZIOHOLISTIKA — BASE
 */

:root {
	--fyzio-green-950: #143326;
	--fyzio-green-900: #183d2c;
	--fyzio-green-800: #24523b;
	--fyzio-green-700: #2f6a4d;
	--fyzio-green-500: #6e9a78;
	--fyzio-action: #5f9853;
	--fyzio-action-hover: #4f8547;
	--fyzio-action-soft: #dfe9bd;
	--fyzio-heading-rule: #5b9655;
	--fyzio-heading-font: Georgia, "Times New Roman", serif;
	--fyzio-cream-100: #f1ebdf;
	--fyzio-cream-50: #faf8f2;
	--fyzio-white: #fffdf9;
	--fyzio-text: #24352d;
	--fyzio-text-soft: #5c6b63;
	--fyzio-radius-sm: 16px;
	--fyzio-radius-md: 28px;
	--fyzio-radius-lg: 42px;
	--fyzio-content-width: 1220px;
}

html {
	scroll-behavior: smooth;
}

body.fyzio-template {
	margin: 0 !important;
	background: var(--fyzio-cream-50);
	color: var(--fyzio-text);
}

.fyzio-site,
.fyzio-site * {
	box-sizing: border-box;
}

.fyzio-site {
	position: relative;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--fyzio-text);
	background: var(--fyzio-cream-50);
}

.fyzio-site img {
	display: block;
	max-width: 100%;
}

.fyzio-site a {
	text-decoration: none;
}

.fyzio-site p {
	margin: 0 0 1.2em;
	font-size: 1.04rem;
	line-height: 1.78;
}

.fyzio-site h1,
.fyzio-site h2,
.fyzio-site h3 {
	margin-top: 0;
	color: var(--fyzio-green-900);
	font-family: var(--fyzio-heading-font);
	letter-spacing: -0.025em;
}

.fyzio-site h1,
.fyzio-site h2 {
	font-weight: 400;
}

.fyzio-site h2 {
	line-height: 1.08;
}

.fyzio-site h2::after {
	content: "";
	display: block;
	width: 72px;
	height: 2px;
	margin-top: .9rem;
	border-radius: 20px;
	background: var(--fyzio-heading-rule);
}

.fyzio-site h3 {
	font-size: 1.12rem;
	line-height: 1.35;
	font-weight: 600;
}

.fyzio-shell {
	width: min(calc(100% - 48px), var(--fyzio-content-width));
	margin-inline: auto;
}

.fyzio-button,
.fyzio-text-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 50px;
	padding: .8rem 1.75rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .045em;
	text-transform: uppercase;
	text-decoration: none;
	transition:
		transform .2s ease,
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease,
		box-shadow .2s ease;
}

.fyzio-button {
	border: 1px solid var(--fyzio-action);
	background: var(--fyzio-action);
	color: #fff;
	box-shadow: 0 10px 24px rgba(54,111,55,.10);
}

.fyzio-button:hover,
.fyzio-button:focus-visible {
	transform: translateY(-1px);
	border-color: var(--fyzio-action-hover);
	background: var(--fyzio-action-hover);
	color: #fff;
}

.fyzio-button--light {
	border-color: var(--fyzio-action);
	background: var(--fyzio-action);
	color: #fff;
}

.fyzio-button--light:hover,
.fyzio-button--light:focus-visible {
	border-color: var(--fyzio-action-hover);
	background: var(--fyzio-action-hover);
	color: #fff;
}

.fyzio-text-link {
	border: 1px solid var(--fyzio-action);
	background: rgba(255,255,255,.58);
	color: var(--fyzio-green-900);
	box-shadow: none;
}

.fyzio-text-link:hover,
.fyzio-text-link:focus-visible {
	transform: translateY(-1px);
	border-color: var(--fyzio-action-hover);
	background: rgba(255,255,255,.88);
	color: var(--fyzio-green-900);
}

.fyzio-text-link--light {
	border-color: rgba(255,255,255,.74);
	background: rgba(10,45,31,.10);
	color: #fff;
}

.fyzio-text-link--light:hover,
.fyzio-text-link--light:focus-visible {
	border-color: #fff;
	background: rgba(255,255,255,.10);
	color: #fff;
}

.fyzio-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.2rem;
	margin-top: 2rem;
}

.fyzio-section {
	position: relative;
	padding: 5.25rem 0;
}

.fyzio-section-heading {
	max-width: 840px;
	margin: 0 auto 2.9rem;
	text-align: center;
}

.fyzio-section-heading--left {
	margin-left: 0;
	text-align: left;
}

.fyzio-section-heading h2 {
	margin-bottom: 1rem;
	font-size: clamp(2.05rem, 3.35vw, 3.5rem);
	line-height: 1.08;
}

.fyzio-section-heading h2 em {
	font-size: .78em;
	font-weight: 400;
}

.fyzio-eyebrow,
.fyzio-kicker {
	margin-bottom: .8rem !important;
	color: var(--fyzio-green-700);
	font-size: .72rem !important;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.fyzio-eyebrow--light {
	color: rgba(255,255,255,.8);
}

.fyzio-heading-rule,
.fyzio-accent-line {
	display: none;
}

.fyzio-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
	align-items: center;
	gap: clamp(3rem, 5.5vw, 5.8rem);
}

.fyzio-split--image-first {
	grid-template-columns: minmax(340px, .92fr) minmax(0, 1fr);
}

.fyzio-copy {
	max-width: 680px;
}

.fyzio-photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--fyzio-radius-md);
	background: rgba(255,255,255,.55);
	box-shadow: 0 24px 60px rgba(38, 68, 51, .10);
}

.fyzio-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fyzio-photo--portrait {
	aspect-ratio: 4 / 5;
	max-width: 490px;
	justify-self: end;
}

.fyzio-photo--wide {
	aspect-ratio: 4 / 5;
	max-width: 500px;
}

@media (max-width: 860px) {
	.fyzio-shell {
		width: min(calc(100% - 32px), var(--fyzio-content-width));
	}

	.fyzio-section {
		padding: 4.25rem 0;
	}

	.fyzio-split,
	.fyzio-split--image-first {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.fyzio-photo--portrait,
	.fyzio-photo--wide {
		justify-self: stretch;
		max-width: none;
		aspect-ratio: 4 / 3;
	}

	.fyzio-section-heading--left {
		text-align: center;
		margin-inline: auto;
	}
}

/* =========================================================
 * V3.2 — GLOBÁLNÍ JAZYK NADPISŮ A TLAČÍTEK
 * Reference: původní přírodní návrh webu.
 * ======================================================= */

.fyzio-section-heading:not(.fyzio-section-heading--left) h2::after {
	margin-left: auto;
	margin-right: auto;
}

.fyzio-page-hero h1,
.fyzio-hero h1,
.fyzio-home-cta h2,
.fyzio-page-cta h2 {
	font-family: var(--fyzio-heading-font);
	font-weight: 400;
	letter-spacing: -0.025em;
}

/* H2 v tmavých CTA mají stejnou linku jako reference, jen světlou. */
.fyzio-home-cta h2::after,
.fyzio-page-cta h2::after {
	background: rgba(255,255,255,.72);
}

/* Core Gutenberg buttons mimo specifické homepage wrappery. */
.fyzio-site .wp-block-button:not(.fyzio-text-link-block) .wp-block-button__link {
	min-height: 50px;
	padding: .8rem 1.75rem;
	border: 1px solid var(--fyzio-action);
	border-radius: 999px;
	background: var(--fyzio-action);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .045em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: 0 10px 24px rgba(54,111,55,.10);
}

.fyzio-site .wp-block-button:not(.fyzio-text-link-block) .wp-block-button__link:hover,
.fyzio-site .wp-block-button:not(.fyzio-text-link-block) .wp-block-button__link:focus-visible {
	border-color: var(--fyzio-action-hover);
	background: var(--fyzio-action-hover);
	color: #fff;
}

@media (max-width: 680px) {
	.fyzio-button,
	.fyzio-text-link,
	.fyzio-site .wp-block-button .wp-block-button__link {
		min-height: 48px;
		padding: .75rem 1.45rem;
		font-size: .74rem;
	}
}



/* =========================================================
 * V4.1 — ZPĚT NAHORU
 * Návrat starší zelené šipky.
 * ======================================================= */

.fyzio-scroll-top {
	position: fixed;
	z-index: 9990;
	right: 18px;
	bottom: 18px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #43b536;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	box-shadow: 0 6px 18px rgba(28,82,33,.14);
	transition:
		opacity .18s ease,
		visibility .18s ease,
		transform .18s ease,
		background .18s ease;
}

.fyzio-scroll-top::before {
	content: "";
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateY(2px) rotate(45deg);
}

.fyzio-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fyzio-scroll-top:hover,
.fyzio-scroll-top:focus-visible {
	background: var(--fyzio-action-hover);
	outline: none;
}

@media (max-width: 680px) {
	.fyzio-scroll-top {
		right: 12px;
		bottom: 12px;
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fyzio-scroll-top {
		transition: none;
	}
}


/* =========================================================
 * V4.2.2 — ASTRA SCROLL-TOP MARKUP PRYČ
 * ======================================================= */

/*
 * Po odpojení Astra CSS zůstával v DOM její vlastní scroll-to-top prvek.
 * Bez původního CSS se vykreslil jako bílá lišta s černou šipkou.
 * Používáme vlastní zelenou .fyzio-scroll-top, takže Astra prvek skrýváme.
 */
#ast-scroll-top,
.ast-scroll-top-icon,
.ast-scroll-to-top-right,
.ast-scroll-to-top-left,
.ast-scroll-top {
	display: none !important;
}
