/*
Theme Name: Farma Moruša
Theme URI: https://farmamorusa.sk/
Description: Child téma Blocksy pre Farmu Moruša, rodinnú farmu z Horehronia. Farby, písma, vyšívané ikony, ornament a stránky v identite značky.
Author: Radka Polkorábová
Template: blocksy
Version: 1.2.7
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: farma-morusa
License: GPL-2.0-or-later
*/

/*
 * Smer „Vyšívaný dvor“: veľa vzduchu, centrované úvody sekcií, popisky ako „• horehronie •“ v logu,
 * kurzíva Lora na zvýraznené slová, vyšívané stehy (prerušované čiary) namiesto rámikov,
 * ornament z kosoštvorcov ako hrana sekcií a výrazné plochy moruše a žĺtka.
 */
:root {
	--fm-morusa: #5B2340;
	--fm-morusa-900: #3F1830;
	--fm-zltok: #EFA23B;
	--fm-zltok-hover: #F5B85F;
	--fm-lan: #EADFCB;
	--fm-krem: #F7F1E6;
	--fm-biela: #FFFCF6;
	--fm-uhlik: #262220;
	--fm-text: #3A3430;
	--fm-grafit: #5E5650;
	--fm-linka: #CDBE9F;
	--fm-nadpis: "Montserrat", "Segoe UI", Arial, sans-serif;
	--fm-telo: "Lora", Georgia, "Times New Roman", serif;
	--fm-wide: 1160px;
	--fm-narrow: 760px;
	--fm-gutter: clamp(24px, 5vw, 56px);
	--fm-space: clamp(5rem, 11vw, 9.5rem);
}

:root:root {
	--theme-palette-color-1: #5B2340;
	--theme-palette-color-2: #3F1830;
	--theme-palette-color-3: #3A3430;
	--theme-palette-color-4: #262220;
	--theme-palette-color-5: #CDBE9F;
	--theme-palette-color-6: #EADFCB;
	--theme-palette-color-7: #F7F1E6;
	--theme-palette-color-8: #FFFCF6;
}

body {
	background: var(--fm-krem);
	color: var(--fm-text);
	font-family: var(--fm-telo);
	font-size: 1.125rem;
	line-height: 1.75;
}

h1, h2, h3, h4, .wp-block-heading,
.wp-block-button__link, .fm-eyebrow, .fm-more, .fm-bignum, .fm-phone, .fm-quote,
.wp-block-table th, .ct-menu-link, .site-title {
	font-family: var(--fm-nadpis);
}

h1, h2, h3, .wp-block-heading {
	color: var(--fm-uhlik);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.04; margin: 0 0 1.5rem; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 1.5rem; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .75rem; }
p { margin: 0 0 1.1em; }
a { color: var(--fm-morusa); text-underline-offset: .2em; }
a:hover { color: var(--fm-morusa-900); }

/* Kurzíva Lora na zvýraznené slová – ako „poctivo, domáco, s láskou“ v manuáli */
h1 em, h2 em, .fm-quote em {
	font-family: var(--fm-telo);
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--fm-morusa);
}

/* Popisky v štýle „• horehronie •“ z loga */
.fm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .8em;
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: .05em;
	color: var(--fm-morusa);
	margin: 0 0 1.25rem;
}
.fm-eyebrow::before,
.fm-eyebrow::after {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--fm-zltok);
	transform: rotate(45deg);
	flex: none;
}
.fm-lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.65; max-width: 34em; }
.fm-small { font-size: .95rem; color: var(--fm-grafit); }
.fm-center { text-align: center; }

/* ---------- Sekcie ---------- */
.fm-section {
	padding: var(--fm-space) var(--fm-gutter);
	box-sizing: border-box;
	margin: 0;
}
.fm-section > *,
.fm-section.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--fm-wide);
	margin-left: auto;
	margin-right: auto;
}
.fm-section.fm-narrow > * { max-width: var(--fm-narrow); }
.fm-section > * + * { margin-top: clamp(2.5rem, 5vw, 4rem); }
.is-center { text-align: center; }
.is-center .fm-lead { margin-left: auto; margin-right: auto; }
.wp-block-buttons.is-center { justify-content: center; }

.fm-intro { margin-bottom: clamp(3rem, 6vw, 5rem); }
.fm-intro > :last-child { margin-bottom: 0; }
.fm-intro.is-center h2, .fm-intro.is-center h1 { max-width: 17em; margin-left: auto; margin-right: auto; }

.fm-lan { background: var(--fm-lan); }
.fm-morusa { background: var(--fm-morusa); }

/* Tmavé plochy */
.fm-on-dark { color: #EFE6D8; }
.fm-on-dark h1, .fm-on-dark h2, .fm-on-dark h3 { color: var(--fm-biela); }
.fm-on-dark h1 em, .fm-on-dark h2 em, .fm-on-dark .fm-quote em { color: var(--fm-zltok); }
.fm-on-dark .fm-eyebrow { color: var(--fm-krem); }
.fm-on-dark a:not(.wp-block-button__link) { color: var(--fm-zltok); }

/* ---------- Tlačidlá ---------- */
body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.25rem; }
body .wp-block-button__link,
body .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fm-morusa);
	color: var(--fm-biela);
	border: 2px solid var(--fm-morusa);
	border-radius: 2px;
	padding: 1em 1.9em;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.2;
	text-decoration: none;
	min-height: 52px;
	box-sizing: border-box;
	transition: background .2s, color .2s, border-color .2s;
}
body .wp-block-button__link:hover { background: var(--fm-morusa-900); border-color: var(--fm-morusa-900); color: var(--fm-biela); }
body .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--fm-morusa); }
body .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--fm-morusa); color: var(--fm-biela); }
body .fm-on-dark .wp-block-button__link { background: var(--fm-zltok); border-color: var(--fm-zltok); color: var(--fm-uhlik); }
body .fm-on-dark .wp-block-button__link:hover { background: var(--fm-zltok-hover); border-color: var(--fm-zltok-hover); color: var(--fm-uhlik); }
body .fm-on-dark .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--fm-krem); color: var(--fm-krem); }
body .fm-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--fm-krem); color: var(--fm-morusa); }
body .fm-yolk .wp-block-button__link { background: var(--fm-morusa); border-color: var(--fm-morusa); color: var(--fm-biela); }
body .fm-yolk .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--fm-uhlik); color: var(--fm-uhlik); }
body .fm-yolk .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--fm-uhlik); color: var(--fm-zltok); }

.fm-more {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px dashed currentColor;
	padding-bottom: .3em;
}
.fm-more::after { content: ""; width: 6px; height: 6px; background: var(--fm-zltok); transform: rotate(45deg); }

/* ---------- Úvodná fotka ---------- */
.fm-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(94vh, 900px);
	padding: clamp(8rem, 14vw, 10rem) var(--fm-gutter) clamp(6rem, 12vw, 9rem);
	text-align: center;
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
	background: var(--fm-morusa-900);
}
.fm-hero > .fm-hero-bg { position: absolute; inset: 0; margin: 0; z-index: 0; max-width: none; }
.fm-hero > .fm-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(30, 14, 24, .55) 0%, rgba(30, 14, 24, .30) 38%, rgba(30, 14, 24, .72) 100%);
}
.fm-hero-in { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; }
.fm-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); line-height: 1.02; margin-bottom: 1.5rem; }
.fm-hero .fm-lead { color: #F4EADB; margin-left: auto; margin-right: auto; }
.fm-hero-symbol { display: block; width: 84px; height: auto; margin: 0 auto 1.75rem; }
/* Celé logo (symbol + názov + región) ako v manuáli – na úvodnej fotke */
.fm-lockup { display: flex; flex-direction: column; align-items: center; margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem); color: var(--fm-biela); }
.fm-lockup-symbol { display: block; width: clamp(104px, 11vw, 150px); height: auto; margin-bottom: .9rem; }
.fm-lockup-name { font-family: var(--fm-nadpis); font-weight: 700; text-transform: uppercase; font-size: clamp(1.45rem, 2.6vw, 2.05rem); letter-spacing: .01em; line-height: 1; }
.fm-lockup-region { display: inline-flex; align-items: center; gap: .55em; font-family: var(--fm-nadpis); font-weight: 400; font-size: clamp(1.2rem, 2.15vw, 1.7rem); line-height: 1.2; margin-top: .1em; }
.fm-lockup-region::before, .fm-lockup-region::after { content: ""; width: .26em; height: .26em; background: currentColor; transform: rotate(45deg); }
.fm-hero .wp-block-html:has(.fm-ornament-hero),
.fm-hero > .fm-ornament-hero { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; }

/* ---------- Ornament z kosoštvorcov ---------- */
.fm-ornament {
	height: 30px;
	background: url("assets/img/ornament.svg") repeat-x center / auto 20px;
}
.fm-ornament-hero { height: 44px; background-image: url("assets/img/ornament-hero.svg"); background-size: auto 22px; }
.wp-block-html:has(> .fm-ornament) { margin: 0; }

/* ---------- Ponuka (ikony so stehmi medzi stĺpcami) ---------- */
.fm-section .wp-block-columns { gap: 0; margin-bottom: 0; }
.fm-features > .wp-block-column { padding: 0 clamp(1.5rem, 3.5vw, 3rem); }
.fm-features > .wp-block-column + .wp-block-column { border-left: 2px dashed var(--fm-linka); }
.fm-feature { text-align: center; }
.fm-icon { display: block; width: 88px; height: 88px; margin: 0 auto 1.75rem; }
.fm-feature h3 { margin-bottom: .9rem; }
.fm-feature p { max-width: 22em; margin-left: auto; margin-right: auto; }
.fm-feature .fm-more { margin-top: .6rem; }

/* ---------- Príbeh: fotka + morušová plocha ---------- */
.fm-split { background: var(--fm-morusa); margin: 0; position: relative; overflow: hidden; }
.fm-split .fm-split-cols { gap: 0 !important; margin: 0; align-items: stretch !important; }
.fm-split .fm-split-media { flex: 1 1 50% !important; }
.fm-split .fm-split-text { flex: 1 1 50% !important; padding: clamp(4rem, 9vw, 8rem) clamp(2rem, 6vw, 6rem); position: relative; z-index: 1; }
.fm-split .fm-split-text > * { max-width: 30rem; }
.fm-split h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.fm-split::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: 440px;
	height: 440px;
	background: url("assets/img/symbol-svetly.svg") no-repeat center / contain;
	opacity: .06;
	pointer-events: none;
}
.fm-fill { margin: 0; height: 100%; }
.fm-split .fm-fill img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; display: block; }
.fm-split-inset .fm-split-cols { gap: clamp(2.5rem, 6vw, 6rem) !important; align-items: center !important; }
.fm-split-inset .fm-fill img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; display: block; }

/* ---------- Sľuby ---------- */
.fm-promises > .wp-block-column { padding: 0 clamp(1.25rem, 3vw, 2.5rem); }
.fm-promises-2 { max-width: 820px; margin-left: auto !important; margin-right: auto !important; }
.fm-promises-2 + .fm-promises-2 { margin-top: 3.5rem !important; }
.fm-promise { text-align: center; }
.fm-promise p { max-width: 20em; margin-left: auto; margin-right: auto; }
.fm-diamond {
	display: block;
	width: 18px;
	height: 18px;
	margin: 6px auto 1.6rem;
	background: var(--fm-zltok);
	transform: rotate(45deg);
	box-shadow: 0 0 0 6px var(--fm-lan), 0 0 0 8px var(--fm-morusa);
}
.fm-section:not(.fm-lan) .fm-diamond { box-shadow: 0 0 0 6px var(--fm-krem), 0 0 0 8px var(--fm-morusa); }

/* ---------- Úvod podstránky ---------- */
.fm-page-head { text-align: center; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.fm-page-head h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.fm-page-head .fm-lead { margin-left: auto; margin-right: auto; }
.fm-motif { display: block; width: 64px; height: auto; margin: 0 auto 1rem; }
.fm-banner-wrap { margin: 0; padding: 0 var(--fm-gutter); }
.fm-banner { max-width: 1320px; margin: 0 auto; }
.fm-banner img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.fm-banner-flush { padding: 0; }
.fm-banner-flush .fm-banner { max-width: none; }

/* ---------- Fotky ---------- */
.fm-photo { margin: 0; }
.fm-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.fm-portrait img { aspect-ratio: 1 / 1; }

/* ---------- Dlaždice s vyšívaným stehom ---------- */
.fm-tiles { gap: clamp(1.5rem, 3vw, 2.5rem) !important; }
.fm-tile {
	background: var(--fm-biela);
	padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
	outline: 2px dashed var(--fm-morusa);
	outline-offset: -14px;
	height: 100%;
	box-sizing: border-box;
	text-align: center;
}
.fm-tile .fm-eyebrow { font-size: .95rem; }
.fm-tile p { max-width: 24em; margin-left: auto; margin-right: auto; }

/* ---------- Veľké čísla ---------- */
.fm-bignum {
	font-size: clamp(4.2rem, 13vw, 9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--fm-morusa);
	margin: 0 0 .5rem;
}
.fm-bignum span { font-family: var(--fm-telo); font-style: italic; font-weight: 500; font-size: .42em; letter-spacing: 0; }
.fm-bignum-sub { font-family: var(--fm-nadpis); font-weight: 600; font-size: 1.1rem; color: var(--fm-uhlik); margin-bottom: 2rem; }
.fm-on-dark .fm-bignum { color: var(--fm-zltok); }

/* ---------- Výzva, oznam ---------- */
.fm-cta {
	background: var(--fm-morusa);
	padding: clamp(2.75rem, 6vw, 4.5rem);
	outline: 2px dashed rgba(247, 241, 230, .55);
	outline-offset: -14px;
	text-align: center;
}
.fm-cta p { max-width: 30em; margin-left: auto; margin-right: auto; }
.fm-cta .wp-block-buttons { justify-content: center; }
.fm-notice { border-top: 2px dashed var(--fm-linka); padding-top: 1.5rem; font-size: .95rem; color: var(--fm-grafit); }
.fm-notice strong { font-family: var(--fm-nadpis); color: var(--fm-uhlik); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.fm-notice p:first-child { margin-bottom: .4rem; }

/* ---------- Žĺtkový pás ---------- */
.fm-yolk { background: var(--fm-zltok); color: var(--fm-uhlik); }
.fm-yolk .fm-eyebrow { color: var(--fm-uhlik); }
.fm-yolk .fm-eyebrow::before, .fm-yolk .fm-eyebrow::after { background: var(--fm-morusa); }
.fm-yolk .fm-small { color: #4A3B2C; }
.fm-yolk > * + * { margin-top: 0; }
.fm-phone {
	display: inline-block;
	font-size: clamp(2rem, 5.5vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fm-uhlik) !important;
	text-decoration: none;
	margin: .5rem 0 .25rem;
}
.fm-phone:hover { color: var(--fm-morusa) !important; }

/* ---------- O farme ---------- */
.fm-prose > * { max-width: 36rem; }
.fm-prose p { font-size: 1.2rem; line-height: 1.85; }
.fm-dropcap::first-letter {
	float: left;
	font-family: var(--fm-nadpis);
	font-weight: 800;
	font-size: 4.6em;
	line-height: .82;
	margin: .08em .12em 0 0;
	color: var(--fm-morusa);
}
.fm-quote { font-size: clamp(2rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--fm-biela); max-width: 15em; margin-left: auto; margin-right: auto; }
.fm-people { gap: clamp(2rem, 4vw, 3.5rem) !important; }
.fm-person { text-align: center; }
.fm-person .fm-photo { margin-bottom: 1.75rem; }
.fm-person .fm-photo img { outline: 2px dashed rgba(255, 252, 246, .8); outline-offset: -12px; }
.fm-person .fm-eyebrow { font-size: .92rem; margin-bottom: .5rem; }

/* ---------- Kontakt ---------- */
.fm-infos > .wp-block-column { padding: 0 2rem; }
.fm-infos > .wp-block-column + .wp-block-column { border-left: 2px dashed var(--fm-linka); }
.fm-info p { margin-bottom: 0; font-size: 1.15rem; }
.fm-page-head .fm-phone { margin-top: 1rem; color: var(--fm-morusa) !important; }

/* ---------- Tabuľky ---------- */
.fm-section .wp-block-table { margin-left: auto; margin-right: auto; margin-bottom: 0; overflow-x: auto; }
.fm-section .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 1.05rem; text-align: left; }
.fm-section .wp-block-table th,
.fm-section .wp-block-table td { border: 0; border-bottom: 2px dashed var(--fm-linka); padding: 1em 1.1em; vertical-align: top; }
.fm-section .wp-block-table thead { border: 0; }
.fm-section .wp-block-table th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.fm-turnusy table { background: var(--fm-biela); }
.fm-turnusy thead th { background: var(--fm-morusa); color: var(--fm-biela); border-bottom: 0; }
.fm-facts { margin-top: 2rem !important; }
.fm-facts td { padding-left: 0 !important; }
.fm-facts td:first-child { color: var(--fm-grafit); }
.fm-facts td:last-child { font-family: var(--fm-nadpis); font-weight: 700; color: var(--fm-uhlik); text-align: right; padding-right: 0; }

/* ---------- Pätička ---------- */
.fm-footer { background: var(--fm-morusa-900); color: #DCCFD3; font-size: 1rem; }
.fm-footer::before {
	content: "";
	display: block;
	height: 40px;
	background: var(--fm-zltok) url("assets/img/ornament-tmavy.svg") repeat-x center / auto 20px;
}
.fm-footer a { color: var(--fm-krem); }
.fm-footer-in {
	max-width: var(--fm-wide);
	margin: 0 auto;
	padding: clamp(4rem, 8vw, 6rem) var(--fm-gutter) 3rem;
	display: grid;
	gap: 3rem;
	grid-template-columns: 1.4fr 1fr 1fr;
}
.fm-footer-logo { width: 210px; height: auto; display: block; margin-bottom: 1.5rem; }
.fm-footer h2 { font-family: var(--fm-nadpis); color: var(--fm-zltok); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 1.1rem; }
.fm-footer ul { list-style: none; margin: 0; padding: 0; }
.fm-footer li { margin-bottom: .5rem; }
.fm-footer-legal {
	max-width: var(--fm-wide);
	margin: 0 auto;
	padding: 1.5rem var(--fm-gutter) 2.5rem;
	border-top: 2px dashed rgba(220, 207, 211, .25);
	font-size: .85rem;
	color: #B9A6AE;
}

/* ---------- Blocksy ---------- */
body.fm-page .hero-section { display: none; }
body.fm-page .ct-container-full { padding-top: 0 !important; padding-bottom: 0 !important; }
body.fm-page .entry-content > * { margin-top: 0; margin-bottom: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	body { font-size: 1.0625rem; }
	.fm-section { padding-top: 4.75rem; padding-bottom: 4.75rem; }
	.fm-hero { min-height: 88svh; padding-top: 7rem; padding-bottom: 6rem; }
	.fm-hero-symbol { width: 64px; }
	.fm-features > .wp-block-column,
	.fm-promises > .wp-block-column,
	.fm-infos > .wp-block-column { padding: 2.75rem 0 0; }
	.fm-features > .wp-block-column:first-child,
	.fm-promises > .wp-block-column:first-child,
	.fm-infos > .wp-block-column:first-child { padding-top: 0; }
	.fm-features > .wp-block-column + .wp-block-column,
	.fm-infos > .wp-block-column + .wp-block-column { border-left: 0; border-top: 2px dashed var(--fm-linka); margin-top: 2.75rem; }
	.fm-promises > .wp-block-column + .wp-block-column { margin-top: 1rem; }
	.fm-promises-2 + .fm-promises-2 { margin-top: 3.75rem !important; }
	.fm-split .fm-fill img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
	.fm-split-inset .fm-split-cols { gap: 3rem !important; }
	.fm-banner img { aspect-ratio: 4 / 3; }
	.fm-tiles { gap: 1.5rem !important; }
	.fm-people { gap: 3.5rem !important; }
	.fm-footer-in { grid-template-columns: 1fr; gap: 2.5rem; }
	body .wp-block-buttons .wp-block-button { flex: 1 1 100%; }
	body .wp-block-buttons .wp-block-button__link { width: 100%; }
	.fm-turnusy table { font-size: .95rem; }
	.fm-section .wp-block-table th, .fm-section .wp-block-table td { padding: .85em .7em; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Cenník kuriatok ---------- */
.fm-cennik thead th { color: var(--fm-morusa); padding-left: 0 !important; border-bottom: 2px solid var(--fm-morusa) !important; }
.fm-cennik thead th:last-child { text-align: right; padding-right: 0; }
.fm-cennik td:last-child { font-size: 1.15rem; white-space: nowrap; }
.fm-cennik + .fm-small { margin-top: 1.5rem; }
.fm-split-inset .fm-features { margin-top: clamp(4rem, 8vw, 6rem) !important; }

/* Na úvodnej stránke je logo veľké v úvodnej fotke – malé logo v hlavičke Blocksy skryjeme */

/* Úvodná stránka: v hlavičke ostáva len menu v strede (tlačidlo Zavolať je v úvodnej fotke).
   Predpoklad v Blocksy Header Builder: logo vľavo, menu v strede, tlačidlo vpravo. */


/* ---------- Ikony sietí ---------- */
.fm-social { display: flex; gap: 14px; align-items: center; }
.fm-infos .fm-social { justify-content: center; margin-top: .9rem; }
.fm-footer li.fm-social { margin-top: 1rem; }
.fm-social a { display: inline-flex; padding: 4px; border-radius: 4px; transition: opacity .2s, transform .2s; }
.fm-social a:hover { opacity: .75; transform: translateY(-1px); }
.fm-social a:focus-visible { outline: 2px solid var(--fm-zltok); outline-offset: 2px; }
.fm-social img { display: block; width: 26px; height: 26px; }
.fm-infos .fm-social img { width: 28px; height: 28px; }

/* Popisky v strede: Blocksy zobrazuje odseky ako blok, preto ich centrujeme explicitne */
.is-center .fm-eyebrow,
.fm-intro.is-center .fm-eyebrow,
.fm-page-head .fm-eyebrow,
.fm-hero .fm-eyebrow,
.fm-yolk .fm-eyebrow,
.fm-tile .fm-eyebrow,
.fm-person .fm-eyebrow,
.fm-info .fm-eyebrow {
	display: flex !important;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
}
/* Menu Blocksy v písme značky */
.ct-header [data-id="menu"] .ct-menu-link,
.ct-header .menu > li > a { font-family: var(--fm-nadpis) !important; }

/* Tabuľky: Blocksy pridáva rámik okolo tabuľky a zvislé čiary medzi bunkami – rušíme ich */
.fm-section .wp-block-table,
.fm-section .wp-block-table table,
.fm-section table {
	border: 0 !important;
	border-collapse: collapse !important;
}
.fm-section .wp-block-table th,
.fm-section .wp-block-table td {
	border-top: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
}
.fm-section .wp-block-table td { border-bottom: 2px dashed var(--fm-linka) !important; }
.fm-section .wp-block-table thead th { border-bottom: 0 !important; }
.fm-cennik thead th, .fm-facts thead th { border-bottom: 2px solid var(--fm-morusa) !important; }
.fm-section .wp-block-table td, .fm-section .wp-block-table th { vertical-align: baseline !important; }

/* ---------- Úvodná stránka: priehľadná hlavička položená na úvodnej fotke ----------
   Funguje bez nastavenia „Transparent header“ v Blocksy. */
body.home #header,
body.home header.ct-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent !important;
	--theme-link-initial-color: #FFFCF6;
	--theme-link-hover-color: #EFA23B;
	--theme-link-active-color: #EFA23B;
	--theme-icon-color: #FFFCF6;
	--theme-icon-hover-color: #EFA23B;
}
body.home.admin-bar #header,
body.home.admin-bar header.ct-header { top: 32px; }
@media (max-width: 782px) {
	body.home.admin-bar #header,
	body.home.admin-bar header.ct-header { top: 46px; }
}
body.home .ct-header [data-row],
body.home .ct-header [data-row] > div,
body.home .ct-header .ct-container,
body.home .ct-header .ct-container-fluid {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.home .ct-header .ct-menu-link,
body.home .ct-header .menu > li > a {
	color: #FFFCF6 !important;
}
body.home .ct-header .ct-menu-link:hover,
body.home .ct-header .menu > li > a:hover { color: #EFA23B !important; }
body.home .ct-header .ct-header-trigger,
body.home .ct-header .ct-header-search,
body.home .ct-header svg { color: #FFFCF6 !important; fill: #FFFCF6; }

/* Úvodná stránka: logo v hlavičke biele (čierne PNG prefarbené na bielo) */
body.home .ct-header .site-branding img,
body.home .ct-header .site-logo-container img,
body.home .ct-header [data-id="logo"] img {
	filter: brightness(0) invert(1);
}
/* Tlačidlo Zavolať v hlavičke na úvodnej fotke – žĺtok */
body.home .ct-header .ct-header-cta .ct-button,
body.home .ct-header .ct-header-cta a {
	background: #EFA23B !important;
	border-color: #EFA23B !important;
	color: #262220 !important;
}

/* Pätička: menu pod sebou (Blocksy štýluje každé .menu ako riadok bez medzier) */
.fm-footer ul.fm-footer-menu,
.fm-footer .fm-footer-menu {
	display: block !important;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fm-footer .fm-footer-menu li {
	display: block !important;
	margin: 0 0 .5rem !important;
	padding: 0 !important;
}
.fm-footer .fm-footer-menu a {
	display: inline !important;
	padding: 0 !important;
	font: inherit !important;
	line-height: inherit !important;
	color: var(--fm-krem) !important;
	text-transform: none !important;
}
.fm-footer .fm-footer-menu .current-menu-item > a { color: var(--fm-zltok) !important; }

/* Pôvodná pätička Blocksy (copyright) – nahrádza ju pätička farmy */
#footer.ct-footer,
footer.ct-footer { display: none !important; }

/* ---------- Krmivo: karty kŕmnych zmesí ---------- */
.fm-products { gap: clamp(1.25rem, 2.5vw, 2rem) !important; }
.fm-products > .wp-block-column { display: flex; }
.fm-product { text-align: left; display: flex; flex-direction: column; width: 100%; padding: clamp(2.25rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.5rem); }
.fm-tile.fm-product .fm-eyebrow { margin-left: 0 !important; margin-right: 0 !important; justify-content: flex-start; }
.fm-product h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.fm-product > p:not(.fm-eyebrow):not(.fm-price) { max-width: none; margin-left: 0; margin-right: 0; }
.fm-product .fm-facts { margin-top: .5rem !important; margin-bottom: 1.25rem !important; font-size: .95rem; }
.fm-product .fm-facts table { font-size: .95rem; }
.fm-product .fm-facts td { padding-top: .6em !important; padding-bottom: .6em !important; }
.fm-price { margin-top: auto; margin-bottom: 0; font-family: var(--fm-nadpis); color: var(--fm-grafit); }
.fm-price strong { font-size: 1.7rem; font-weight: 800; color: var(--fm-morusa); letter-spacing: -0.02em; }

/* 1.2.3: popisky v tabuľkách sa nelámu po písmenách; piliny; dve karty produktov */
.fm-facts td:first-child { white-space: nowrap; padding-right: 1.25em !important; }
.fm-piliny td:last-child, .fm-piliny th:last-child { text-align: right; white-space: nowrap; }
.fm-piliny td:last-child { font-family: var(--fm-nadpis); font-weight: 800; color: var(--fm-morusa); font-size: 1.15em; }
.wp-block-columns.fm-products-2,
.entry-content .wp-block-columns.fm-products-2,
.is-layout-constrained > .wp-block-columns.fm-products-2 { max-width: 900px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }

/* 1.2.6: mobilné menu (tmavý panel Blocksy) – aktívna a prechodová položka v žĺtku */
#offcanvas, .ct-panel {
	--theme-link-hover-color: #EFA23B;
	--theme-link-active-color: #EFA23B;
}
#offcanvas .mobile-menu a:hover,
#offcanvas .mobile-menu a:focus,
#offcanvas .mobile-menu .current-menu-item > a,
#offcanvas .mobile-menu .current_page_item > a,
#offcanvas .mobile-menu [aria-current="page"],
.ct-panel .mobile-menu .current-menu-item > a,
.ct-panel .mobile-menu [aria-current="page"] { color: #EFA23B !important; }
