/* =========================================================================
   Hermeniculum – vzhled
   Barvy: tmavá #252523, zlatá #f9c623. Písma: Colus (nadpisy, menu), Montserrat (text).
   ========================================================================= */

:root {
	--hm-dark: #252523;
	--hm-darker: #1a1a19;
	--hm-gold: #f9c623;
	--hm-white: #ffffff;
	--hm-text: #ececec;
	--hm-muted: #c9c9c4;
	--hm-line: #45453f;
	--hm-v: 26px; /* výška V-přechodu mezi bloky */
	--hm-top: var(--wp-admin--admin-bar--height, 0px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--hm-dark); }

/* Bloky šablony na sebe navazují bez mezer. */
.wp-site-blocks > *,
.hm-main > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks { padding: 0; }

.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;
}

.hm-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.hm-wrap--narrow { max-width: 760px; }
.hm-wrap--media { max-width: 880px; }
.hm-center { text-align: center; }

/* ---------- Hlavička ---------------------------------------------------- */
.hm-header-part { position: sticky; top: var(--hm-top); z-index: 50; }
.hm-header { background: var(--hm-dark); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hm-header-part.is-scrolled .hm-header { border-bottom-color: var(--hm-white); }
.hm-header-part--home { position: fixed; left: 0; right: 0; transform: translateY(-110%); transition: transform .25s ease; }
.hm-header-part--home.is-visible { transform: none; }
.hm-header__in {
	max-width: 1120px; margin: 0 auto; padding: 14px 24px; box-sizing: border-box;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.hm-header__logo { display: block; min-height: 44px; }
.hm-header__logo img { display: block; height: 52px; width: auto; }
.hm-nav {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px;
	font-family: Colus, Georgia, serif; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
}
.hm-nav a { color: var(--hm-white); text-decoration: none; }
.hm-nav a:hover, .hm-nav a:focus-visible, .hm-nav a[aria-current="page"] { color: var(--hm-gold); }
.hm-nav__link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.hm-nav__dot { color: var(--hm-white); font-size: 8px; line-height: 1; }
.hm-dd { position: relative; display: inline-flex; }
.hm-dd__menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 320px; z-index: 60;
	background: var(--hm-dark); border-top: 2px solid var(--hm-gold); padding: 8px 0;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
	font-family: Montserrat, system-ui, sans-serif; font-size: 15px; letter-spacing: .02em; text-transform: none;
}
.hm-dd:hover .hm-dd__menu, .hm-dd:focus-within .hm-dd__menu, .hm-dd.is-open .hm-dd__menu { display: block; }
.hm-dd__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; }
@media (max-width: 600px) {
	.hm-dd__menu { left: auto; right: -60px; min-width: 260px; }
}

/* ---------- Úvodní obrazovka ------------------------------------------ */
.hm-hero {
	position: relative; min-height: 100vh; min-height: 100svh; box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 40px; padding: 64px 16px 120px;
}
.hm-hero__logo { margin: 0; width: min(560px, 86%); }
.hm-hero__logo img { display: block; width: 100%; height: auto; }
.hm-hero__line { width: 64px; height: 2px; background: var(--hm-gold); }
.hm-hero__nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 40px; }
.hm-hero__nav a {
	font-family: Colus, Georgia, serif; font-size: 20px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--hm-white); text-decoration: none; padding: 10px 4px; min-height: 44px; box-sizing: border-box;
	display: inline-flex; align-items: center;
}
.hm-hero__nav a:hover, .hm-hero__nav a:focus-visible { color: var(--hm-gold); }
.hm-mouse {
	position: absolute; left: 50%; bottom: 40px; width: 24px; height: 40px; margin-left: -12px; box-sizing: border-box;
	border: 2px solid var(--hm-white); border-radius: 12px; display: flex; justify-content: center; padding-top: 7px;
}
.hm-mouse span { display: block; width: 2px; height: 6px; background: var(--hm-white); animation: hm-wheel 1.4s ease-in-out infinite; }
@keyframes hm-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-mouse span { animation: none; } }

/* ---------- Bloky, přechody, šipky ------------------------------------- */
.hm-band { position: relative; background: var(--hm-dark); color: var(--hm-text); }
.hm-band--gold { background: var(--hm-gold); color: var(--hm-dark); }
.hm-band > .hm-wrap { padding-top: 88px; padding-bottom: 88px; }
.hm-band:first-child > .hm-wrap { padding-top: 72px; }
/* Blok končí špičkou do V; další blok se pod něj podsune. */
.hm-vcut {
	padding-bottom: var(--hm-v); margin-bottom: calc(-1 * var(--hm-v));
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hm-v)), 84% calc(100% - var(--hm-v)), 50% 100%, 16% calc(100% - var(--hm-v)), 0 calc(100% - var(--hm-v)));
}
/* Zlatá šipka mezi dvěma tmavými bloky. */
.hm-arrow { height: 26px; background: var(--hm-gold); clip-path: polygon(16% 0, 84% 0, 84% 12%, 50% 100%, 16% 12%); }

/* ---------- Nadpisy ----------------------------------------------------- */
.hm-title {
	margin: 0; font-family: Colus, Georgia, serif; font-weight: 400; font-size: clamp(30px, 4vw, 40px);
	line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-white); text-align: center;
}
.hm-band .hm-title { font-size: clamp(28px, 3.6vw, 36px); }
.hm-band--gold .hm-title { color: var(--hm-dark); }
.hm-sep { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 460px; margin: 24px auto 0; }
.hm-sep::before, .hm-sep::after { content: ""; flex: 1; height: 1px; background: #77776f; }
.hm-sep span { width: 6px; height: 6px; border-radius: 50%; background: var(--hm-gold); }
.hm-band--gold .hm-sep::before, .hm-band--gold .hm-sep::after { background: #6b5a1f; }
.hm-band--gold .hm-sep span { background: var(--hm-dark); }
.hm-band .hm-sep { margin-bottom: 40px; }
.hm-pagehead { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.hm-pagehead .hm-lead { margin: 28px auto 0; max-width: 620px; }
.hm-sub, .hm-content h2 {
	margin: 0 0 20px; font-family: Colus, Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.15;
	letter-spacing: .06em; text-transform: uppercase; color: var(--hm-white);
}
.hm-sub::after, .hm-content h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--hm-gold); margin-top: 14px; }
.hm-band--gold .hm-sub { color: var(--hm-dark); }
.hm-band--gold .hm-sub::after { background: var(--hm-dark); }
.hm-sub a { color: inherit; text-decoration: none; }
.hm-label { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-muted); }
.hm-label--center { text-align: center; }
.hm-lead { font-size: 18px; margin: 0 0 36px; }

/* ---------- Odkazy, tlačítka ------------------------------------------- */
.hm-band--gold a { color: var(--hm-dark); }
.hm-band--gold a:hover { color: #000; }
.hm-btn, .hm-band--gold .hm-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px;
	border-radius: 8px; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	background: var(--hm-gold); color: var(--hm-dark);
}
.hm-btn:hover, .hm-btn:focus-visible { background: var(--hm-white); color: var(--hm-dark); }
.hm-band--gold .hm-btn { background: var(--hm-dark); color: var(--hm-gold); }
.hm-band--gold .hm-btn:hover, .hm-band--gold .hm-btn:focus-visible { background: #000; color: var(--hm-gold); }
.hm-more { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; }

/* Zástupný obrázek (když chybí fotografie). */
.hm-ph { display: block; background: var(--hm-darker) url(../img/lev-zlaty.svg) no-repeat center / 72px 72px; }
.hm-band--gold .hm-ph { background-color: var(--hm-dark); }

/* ---------- Úvod: karty projektů --------------------------------------- */
.hm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 24px; text-align: left; margin-bottom: 48px; }
.hm-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.hm-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.hm-card__title { font-family: Colus, Georgia, serif; font-size: 19px; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; }
.hm-card__text { font-size: 15px; line-height: 1.55; }
.hm-card:hover .hm-card__title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Přehled projektů ------------------------------------------- */
.hm-proj__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 72px; padding-bottom: 72px; }
.hm-proj:first-of-type .hm-proj__in { padding-top: 40px; }
.hm-proj:last-of-type .hm-proj__in { padding-bottom: 96px; }
.hm-proj--flip .hm-proj__in { flex-direction: row-reverse; }
.hm-proj__img { flex: 1 1 360px; display: block; }
.hm-proj__img img, .hm-proj__img .hm-ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.hm-proj__text { flex: 1 1 420px; min-width: 0; }
.hm-proj__text .hm-sub { font-size: 34px; }
@media (max-width: 860px) { .hm-proj--flip .hm-proj__in { flex-direction: row; } }

/* ---------- Média: řádky ----------------------------------------------- */
.hm-rows { text-align: left; margin-bottom: 40px; }
.hm-band .hm-wrap--media .hm-rows:last-child { margin-bottom: 0; }
.hm-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--hm-line); }
.hm-row:last-child { border-bottom: 0; }
.hm-band--gold .hm-row { border-bottom-color: #c9a01c; }
.hm-band--gold .hm-row:last-child { border-bottom: 0; }
.hm-row__date { flex: 0 0 150px; font-size: 14px; color: var(--hm-muted); padding-top: 3px; }
.hm-row__main { flex: 1 1 360px; min-width: 0; }
.hm-row__title { margin: 0; font-weight: 600; color: var(--hm-white); }
.hm-row__meta { margin: 2px 0 0; font-size: 15px; color: var(--hm-muted); }
.hm-band--gold .hm-row__date, .hm-band--gold .hm-row__title, .hm-band--gold .hm-row__meta { color: var(--hm-dark); }
.hm-row__go { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- Kontakty --------------------------------------------------- */
.hm-kontakty { display: flex; flex-direction: column; align-items: center; }
.hm-kontakty__grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, max-content)); justify-content: center;
	gap: 36px 72px; width: 100%; margin-bottom: 56px;
}
.hm-ci { display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: stretch; gap: 20px; }
.hm-ci__t { text-align: right; padding-right: 20px; border-right: 1px solid #8a8a84; min-width: 0; }
.hm-band--gold .hm-ci__t { border-right-color: var(--hm-dark); }
.hm-ci__h { margin: 0; font-family: Colus, Georgia, serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-white); }
.hm-ci__v { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.hm-ci__v a { color: inherit; text-decoration: none; }
.hm-ci__v a:hover { text-decoration: underline; }
.hm-ci__i { display: flex; align-items: center; color: var(--hm-muted); }
.hm-band--gold .hm-ci__h, .hm-band--gold .hm-ci__i { color: var(--hm-dark); }
.hm-kontakty-page { padding-bottom: 96px; }
@media (max-width: 400px) { .hm-kontakty__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tým -------------------------------------------------------- */
.hm-tym { padding: 32px 0 96px; }
.hm-clen { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; padding: 40px 0; }
.hm-clen + .hm-clen { border-top: 1px solid #3c3c39; }
.hm-clen__foto {
	flex: 0 0 160px; width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
	border: 2px solid var(--hm-gold); box-sizing: border-box; background-size: 56px 56px;
}
.hm-clen__text { flex: 1 1 360px; min-width: 0; }
.hm-clen__text h3 { margin: 0 0 10px; font-family: Colus, Georgia, serif; font-weight: 400; font-size: 24px; letter-spacing: .03em; text-transform: none; color: var(--hm-white); }
.hm-clen__text p { margin: 0 0 16px; }
.hm-clen__links { display: flex; gap: 10px; }
.hm-soc {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #5a5a55;
	border-radius: 50%; color: var(--hm-white); text-decoration: none; font-weight: 600; font-size: 14px;
}
.hm-soc:hover, .hm-soc:focus-visible { border-color: var(--hm-gold); color: var(--hm-gold); }

/* ---------- Obsah stránek a projektů ----------------------------------- */
.hm-content { padding-top: 40px; padding-bottom: 96px; padding-inline: 24px; }
.hm-content > h2 { margin-top: 64px; }
.hm-content strong, .hm-content b { color: var(--hm-gold); font-weight: 600; }
.hm-content a { color: var(--hm-gold); }
.hm-content a:hover { color: var(--hm-white); }
.hm-content .is-style-hm-uvod, .is-style-hm-uvod { font-size: 20px; line-height: 1.6; color: var(--hm-white); }
.hm-content img { border-radius: 6px; }
.hm-content figcaption, .hm-content .wp-element-caption { font-size: 14px; color: var(--hm-muted); }
.hm-content .wp-block-gallery { gap: 12px; }
.hm-content .wp-block-gallery.is-style-hm-loga .wp-block-image img {
	background: var(--hm-darker); padding: 16px; box-sizing: border-box; aspect-ratio: 3 / 2; object-fit: contain;
}
.hm-content .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px; border-radius: 8px;
	background: var(--hm-gold); color: var(--hm-dark); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.hm-content .wp-block-button__link:hover { background: var(--hm-white); color: var(--hm-dark); }
.hm-content .wp-block-button__link strong { color: inherit; }
.hm-content blockquote { margin: 32px 0; padding: 0 0 0 24px; border-left: 3px solid var(--hm-gold); }
.hm-content blockquote p { font-size: 18px; }
.hm-content blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--hm-muted); }
.hm-content .wp-block-media-text { gap: 24px; margin: 32px 0; }
.hm-content .wp-block-media-text img { border-radius: 6px; }
.hm-content ul, .hm-content ol { padding-left: 1.4em; }
.hm-content li::marker { color: var(--hm-gold); }
.hm-content h3 { margin-top: 40px; }
.hm-note { padding: 12px 16px; border: 1px dashed var(--hm-gold); font-size: 14px; }

/* ---------- PDF prohlížeč ---------------------------------------------- */
.hm-pdf { background: #1c1c1b; border: 1px solid var(--hm-line); color: var(--hm-white); }
.hm-pdf__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #3c3c39; }
.hm-pdf__grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-pdf__status { min-width: 130px; text-align: center; font-size: 14px; }
.hm-vbtn {
	background: transparent; border: 1px solid #5a5a55; color: var(--hm-white); border-radius: 4px; min-width: 44px; min-height: 44px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px;
	font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.hm-content a.hm-vbtn { color: var(--hm-white); }
.hm-vbtn:hover, .hm-vbtn:focus-visible, .hm-content a.hm-vbtn:hover { border-color: var(--hm-gold); color: var(--hm-gold); }
.hm-vbtn[disabled] { opacity: .4; cursor: default; }
.hm-pdf__stage { background: #2f2f2c; padding: 32px 16px; overflow: auto; outline: none; min-height: 320px; }
.hm-pdf__stage:focus-visible { box-shadow: inset 0 0 0 2px var(--hm-gold); }
.hm-pdf__pages { display: flex; justify-content: center; gap: 4px; width: max-content; min-width: 100%; margin: 0 auto; }
.hm-pdf__pages canvas { display: block; background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hm-pdf__msg { margin: auto; color: var(--hm-muted); font-size: 14px; text-align: center; padding: 80px 16px; }
.hm-pdf:fullscreen { display: flex; flex-direction: column; width: 100vw; max-width: none; height: 100vh; margin: 0; transform: none; border: 0; }
.hm-pdf:fullscreen .hm-pdf__stage { flex: 1; padding: 16px; }
@media (max-width: 600px) { .hm-vbtn span { display: none; } }

/* ---------- Hra -------------------------------------------------------- */
.hm-hra { position: relative; width: 100%; background: #000; border-radius: 6px; overflow: hidden; }
.hm-hra iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-hra:fullscreen { border-radius: 0; }
.hm-hra__bar { text-align: right; margin-top: 12px; }
.hm-vbtn--solid { background: var(--hm-gold); color: var(--hm-dark); border-color: var(--hm-gold); border-radius: 8px; font-weight: 600; }
.hm-vbtn--solid:hover { background: var(--hm-white); color: var(--hm-dark); border-color: var(--hm-white); }

/* ---------- Patička ---------------------------------------------------- */
.hm-footer {
	position: relative; overflow: hidden; background: var(--hm-dark); color: #eee; min-height: 200px; box-sizing: border-box;
	padding: 56px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	border-top: 1px solid #3a3a37;
}
.hm-main--home + .hm-footer-part .hm-footer,
.hm-main:has(> .hm-vcut:last-child) + .hm-footer-part .hm-footer { border-top: 0; padding-top: 82px; min-height: 226px; }
.hm-footer__lev { position: absolute; bottom: 0; right: 24px; width: 134px; height: 134px; opacity: .2; }
.hm-footer__name { margin: 0; position: relative; font-family: Colus, Georgia, serif; font-size: 28px; letter-spacing: 3px; text-transform: uppercase; }
.hm-footer__copy { margin: 0; position: relative; font-size: 13px; }

/* ---------- Editor ----------------------------------------------------- */
.hm-editor-preview { pointer-events: none; }
.editor-styles-wrapper .hm-header-part--home { position: static; transform: none; }
