﻿/*
Theme Name:   Daniel Hury
Description:  Podřazená šablona Twenty Twenty-Five pro web danielhury.cz – designové stěrky, malování a renovace.
Author:       Ing. Michal Svátek
Template:     twentytwentyfive
Version:      1.2.0
Update URI:   false
Requires at least: 6.5
Requires PHP: 7.4
Text Domain:  danielhury
*/

/* ---------------------------------------------------------------
   Základ
   --------------------------------------------------------------- */
:root {
	--dh-modra: #1d5aa6;
	--dh-modra-tmava: #143f76;
	--dh-antracit: #171a1e;
	--dh-seda: #5a6068;
	--dh-beton: #f2f1ee;
	--dh-linka: #dddbd5;
	--dh-sirka: 1180px;
	--dh-okraj: clamp(1.25rem, 4vw, 2.5rem);
	--dh-radius: 10px;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.wp-site-blocks > * {
	margin-block-start: 0;
}
:where(a:focus-visible, button:focus-visible) {
	outline: 3px solid var(--dh-modra);
	outline-offset: 3px;
}
h1, h2, h3 {
	text-wrap: balance;
}

/* ---------------------------------------------------------------
   Hlavička
   --------------------------------------------------------------- */
/* Při rolování drží nahoře obal hlavičky (část šablony): samotná .dh-header je stejně vysoká jako on,
   takže by se neměla kam posouvat. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 70; /* nad tlačítky Zavolat/WhatsApp (60), aby je rozbalené menu překrylo */
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 0px);
}
@media (max-width: 600px) {
	/* Lišta administrace na telefonu odroluje pryč. */
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}
.dh-header {
	position: relative;
	z-index: 0;
	border-bottom: 1px solid var(--dh-linka);
	padding: 0 var(--dh-okraj);
}
/* Poloprůhledné pozadí je na pseudoprvku: backdrop-filter přímo na hlavičce by rozbalené menu
   (position: fixed) uvěznil ve výšce hlavičky. */
.dh-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.dh-header__in {
	max-width: var(--dh-sirka);
	margin-inline: auto;
	min-height: 4.5rem;
	gap: 1.5rem;
}
.dh-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--dh-antracit);
	text-decoration: none;
	margin-right: auto;
}
.dh-logo__znak {
	flex: none;
}
.dh-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.dh-logo__text strong {
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.dh-logo__text small {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dh-seda);
}
.dh-menu {
	font-size: 0.98rem;
	font-weight: 600;
}
.dh-menu .wp-block-navigation__container {
	gap: 1.6rem;
}
.dh-menu .wp-block-navigation-item__content {
	color: var(--dh-antracit);
	padding: 0.4rem 0;
	border-bottom: 2px solid transparent;
	text-decoration: none;
}
/* Rozbalené menu na telefonu: odsazené od okrajů, položky pod sebou zarovnané doleva */
.dh-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem var(--dh-okraj);
}
.dh-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.dh-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}
.dh-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.35rem;
	margin-top: 1.5rem;
}
.dh-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 0.7rem 0;
}
/* Úvod, Zavolat a WhatsApp jsou v menu jen pro rozbalenou verzi (telefon, tablet) */
.dh-menu .wp-block-navigation__responsive-container:not(.is-menu-open) .dh-menu-jen-rozbalene {
	display: none;
}
.dh-menu .is-menu-open .wp-block-navigation__container {
	flex-direction: row;
	flex-wrap: wrap;
}
.dh-menu .is-menu-open .wp-block-navigation__container > li:not(.dh-menu-tlacitko) {
	flex-basis: 100%;
}
.dh-menu .is-menu-open .dh-menu-tlacitko {
	margin-bottom: 0.9rem;
}
.dh-menu .is-menu-open .dh-menu-tlacitko > .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.1rem !important;
	border-radius: 8px;
	background: var(--dh-modra);
	color: #fff !important;
	font-size: 1.05rem !important;
	font-weight: 800;
}
.dh-menu .is-menu-open .dh-menu-wa > .wp-block-navigation-item__content {
	background: #1f8f4e;
}
.dh-menu .is-menu-open .dh-menu-tlacitko > .wp-block-navigation-item__content::before {
	content: "";
	width: 1.15em;
	height: 1.15em;
	background: currentColor;
	-webkit-mask: var(--dh-ikona) center / contain no-repeat;
	mask: var(--dh-ikona) center / contain no-repeat;
}
.dh-menu .dh-menu-tel {
	--dh-ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}
.dh-menu .dh-menu-wa {
	--dh-ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E");
}
.dh-menu .wp-block-navigation__responsive-container-open,
.dh-menu .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
}
.dh-menu .wp-block-navigation-item__content:hover,
.dh-menu .current-menu-item > .wp-block-navigation-item__content {
	color: var(--dh-modra);
	border-bottom-color: var(--dh-modra);
	text-decoration: none;
}
.dh-tel {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	border-radius: 6px;
	background: var(--dh-modra);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.dh-tel::before {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dh-tel:hover {
	background: var(--dh-modra-tmava);
	color: #fff;
}
/* Do 1100 px (i s posuvníkem okna) se menu vejde jen bez podpisu pod logem. */
@media (max-width: 1099px) {
	.dh-menu .wp-block-navigation__container {
		gap: 1.1rem;
	}
	.dh-logo__text small {
		display: none;
	}
}
/* Pod 960 px se menu do řádku spolehlivě nevejde a zalamovalo by se – i na tabletu proto tlačítko s rozbalovacím menu
   (WordPress sám přepíná až pod 600 px). */
@media (min-width: 600px) and (max-width: 959px) {
	.dh-menu .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.dh-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.dh-logo__text small {
		display: block;
	}
	.dh-header__in > .dh-menu {
		order: 2; /* ikona menu až za telefonem, u pravého okraje */
		flex: none;
		width: auto;
	}
	.dh-header .dh-header__in > .dh-tel {
		margin-left: auto; /* rozvržení WordPressu ruší margin-right: auto u loga */
	}
}
@media (max-width: 959px) {
	.dh-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: 1.4rem;
		font-weight: 700;
		border: 0;
	}
}
@media (max-width: 599px) {
	.dh-header__in {
		min-height: 3.75rem;
		gap: 0.75rem;
	}
	.dh-tel {
		display: none; /* na telefonu je tlačítko Zavolat dole */
	}
	.dh-logo__text small {
		display: block;
		font-size: 0.62rem;
	}
	.dh-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: 1.4rem;
		font-weight: 700;
		border: 0;
	}
}

/* ---------------------------------------------------------------
   Sekce stránky
   Každá sekce je blok Skupina se třídou dh-sekce přes celou šířku,
   její obsah se drží v šířce 1180 px.
   --------------------------------------------------------------- */
.dh-obsah > * {
	margin-block: 0;
}
.dh-obsah > :not(.dh-sekce) {
	max-width: 760px;
	margin-inline: auto;
	padding-inline: var(--dh-okraj);
	margin-block: 1.2rem;
	box-sizing: content-box;
}
.dh-obsah > :not(.dh-sekce):first-child {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.dh-obsah > :not(.dh-sekce):last-child {
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.dh-sekce {
	padding: clamp(3rem, 7vw, 5.5rem) var(--dh-okraj);
}
.dh-sekce > * {
	max-width: var(--dh-sirka);
	margin-inline: auto;
}
.dh-sekce--beton {
	background: var(--dh-beton);
}
.dh-sekce + .dh-sekce:not(.dh-sekce--beton):not(.dh-hero):not(.dh-cisla) {
	border-top: 1px solid var(--dh-linka);
}
.dh-sekce--beton + .dh-sekce,
.dh-cisla + .dh-sekce {
	border-top: 0 !important;
}
.dh-sekce h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.dh-sekce h3 {
	font-size: 1.3rem;
	letter-spacing: -0.01em;
}
.dh-nadtitul {
	margin: 0 0 0.6rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dh-modra);
}
.dh-uvodnik {
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.dh-uvodnik > * {
	max-width: 44rem;
}
.dh-uvodnik > h2 {
	margin-block: 0 0.9rem;
}
.dh-perex {
	font-size: 1.15rem;
	color: var(--dh-seda);
}
.dh-sekce .wp-block-buttons {
	margin-top: 1.8rem;
	gap: 0.8rem;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	padding: calc(0.85rem - 2px) calc(1.5rem - 2px);
	background: transparent;
	color: var(--dh-antracit);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--dh-antracit);
	border-color: var(--dh-antracit);
	color: #fff;
}
.wp-block-button__link {
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

/* Obrázky v sekcích */
.dh-sekce .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--dh-radius);
}
.dh-sekce .wp-block-image figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--dh-seda);
	text-align: left;
}

/* ---------------------------------------------------------------
   Úvod: tmavý úvodní blok s fotkou
   --------------------------------------------------------------- */
.dh-hero,
.dh-titul,
.dh-footer {
	background-color: var(--dh-antracit);
	background-image: linear-gradient(rgba(23, 26, 30, 0.9), rgba(23, 26, 30, 0.9)), url("assets/img/textura.jpg");
	background-size: cover;
	background-position: center;
	color: #fff;
}
.dh-hero {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}
.dh-hero .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	margin-bottom: 0;
}
.dh-hero .dh-nadtitul {
	color: #8fb8ee;
}
.dh-hero h1 {
	margin: 0 0 1.2rem;
	font-size: clamp(2.2rem, 5.2vw, 3.9rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #fff;
}
.dh-hero .dh-perex {
	max-width: 34rem;
	color: #c9ccd0;
}
.dh-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
}
.dh-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--dh-antracit);
}
.dh-hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: #2b6cc0;
}
.dh-hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: #3f7fd3;
}
.dh-hero__foto img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
@media (min-width: 782px) {
	.dh-hero .wp-block-column:first-child {
		flex-basis: 56%;
	}
	.dh-hero .wp-block-column:last-child {
		flex-basis: 44%;
	}
}
@media (max-width: 781px) {
	.dh-hero__foto img {
		aspect-ratio: 4 / 3;
	}
}

/* Čísla pod úvodem */
.dh-cisla {
	padding-block: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--dh-beton);
	border-bottom: 1px solid var(--dh-linka);
}
.dh-cisla .wp-block-columns {
	gap: 1.5rem;
	margin-bottom: 0;
}
.dh-cisla .wp-block-column {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
}
.dh-cisla .wp-block-column > * {
	margin: 0;
}
.dh-cislo {
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--dh-modra);
	white-space: nowrap;
}
.dh-cislo-popis {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--dh-seda);
}
@media (max-width: 781px) {
	.dh-cisla .wp-block-columns {
		gap: 0.9rem;
	}
	.dh-cislo {
		min-width: 4.2rem;
	}
}

/* ---------------------------------------------------------------
   Karty služeb
   --------------------------------------------------------------- */
.dh-karty {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.dh-karta {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dh-linka);
	border-radius: var(--dh-radius);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}
.dh-karta:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgba(23, 26, 30, 0.35);
}
.dh-karta > * {
	margin: 0;
}
.dh-karta .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}
.dh-karta h3 {
	padding: 1.2rem 1.3rem 0.4rem;
}
.dh-karta h3 a {
	color: var(--dh-antracit);
	text-decoration: none;
}
.dh-karta h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.dh-karta:hover h3 a {
	color: var(--dh-modra);
}
.dh-karta p {
	padding: 0 1.3rem 1.4rem;
	font-size: 0.97rem;
	line-height: 1.55;
	color: var(--dh-seda);
}
@media (max-width: 1000px) {
	.dh-karty {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.dh-karty {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------
   Text vedle fotky
   --------------------------------------------------------------- */
.dh-dvojice {
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	margin-bottom: 0;
}
.dh-dvojice + .dh-dvojice {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.dh-dvojice h2,
.dh-dvojice h3 {
	margin-top: 0;
}
.dh-dvojice .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.dh-dvojice--vyska .wp-block-image img {
	aspect-ratio: 4 / 5;
}
@media (min-width: 782px) {
	.dh-dvojice--obracene {
		flex-direction: row-reverse;
	}
}

/* Seznam s odrážkami-čtverečky a číslované kroky */
.dh-sekce ul.wp-block-list {
	list-style: none;
	padding-left: 0;
}
.dh-sekce ul.wp-block-list li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.45rem;
}
.dh-sekce ul.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 2px;
	background: var(--dh-modra);
}
.dh-kroky {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
	padding: 0;
	list-style: none;
	counter-reset: krok;
}
.dh-kroky li {
	counter-increment: krok;
	padding: 1.4rem 1.3rem;
	background: #fff;
	border: 1px solid var(--dh-linka);
	border-radius: var(--dh-radius);
	font-size: 0.97rem;
	line-height: 1.55;
	color: var(--dh-seda);
}
.dh-kroky li::before {
	content: counter(krok);
	display: block;
	margin-bottom: 0.6rem;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	color: var(--dh-modra);
}
.dh-kroky li strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 1.05rem;
	color: var(--dh-antracit);
}

/* ---------------------------------------------------------------
   Galerie
   --------------------------------------------------------------- */
.wp-block-gallery.dh-galerie {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem !important;
}
.wp-block-gallery.dh-galerie.columns-4 {
	grid-template-columns: repeat(4, 1fr);
}
.wp-block-gallery.dh-galerie > figure.wp-block-image {
	width: 100% !important;
	margin: 0 !important;
	border-radius: var(--dh-radius);
	overflow: hidden;
	background: var(--dh-beton);
}
.wp-block-gallery.dh-galerie figure.wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1; /* čtverec: fotky na výšku i na šířku přijdou o stejně málo */
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.35s;
}
.wp-block-gallery.dh-galerie .dh-zoom {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}
.wp-block-gallery.dh-galerie figure.wp-block-image:hover img {
	transform: scale(1.04);
}
@media (max-width: 900px) {
	.wp-block-gallery.dh-galerie,
	.wp-block-gallery.dh-galerie.columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 420px) {
	.wp-block-gallery.dh-galerie {
		gap: 0.5rem !important;
	}
}

/* Zvětšená fotka */
.dh-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(12, 14, 16, 0.94);
}
.dh-lb.is-open {
	display: flex;
}
.dh-lb-lock {
	overflow: hidden;
}
.dh-lb__img {
	max-width: 94vw;
	max-height: 84vh;
	border-radius: 4px;
}
.dh-lb__btn {
	position: absolute;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
}
.dh-lb__btn:hover {
	background: rgba(255, 255, 255, 0.25);
}
.dh-lb__close {
	top: 1rem;
	right: 1rem;
}
.dh-lb__prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}
.dh-lb__next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}
.dh-lb.is-single .dh-lb__prev,
.dh-lb.is-single .dh-lb__next {
	display: none;
}
.dh-lb__info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1rem;
	display: flex;
	justify-content: center;
	gap: 1rem;
	padding: 0 1rem;
	color: #d6d8da;
	font-size: 0.9rem;
	text-align: center;
}
.dh-lb__count {
	color: #9a9c9d;
	white-space: nowrap;
}

/* ---------------------------------------------------------------
   Titulek podstránek
   --------------------------------------------------------------- */
.dh-titul {
	padding: clamp(2.25rem, 5vw, 3.75rem) var(--dh-okraj);
}
.dh-titul > * {
	max-width: var(--dh-sirka);
	margin-inline: auto;
}
.dh-titul h1 {
	margin-block: 0;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	letter-spacing: -0.03em;
	color: #fff;
}

/* ---------------------------------------------------------------
   Kontaktní pás a stránka Kontakt
   --------------------------------------------------------------- */
.dh-pas {
	padding: clamp(2.75rem, 6vw, 4.5rem) var(--dh-okraj);
	background: var(--dh-modra);
	color: #fff;
}
.dh-pas__in {
	max-width: var(--dh-sirka);
	margin-inline: auto;
}
.dh-pas__in > * {
	margin-block: 0;
}
.dh-pas__nadpis {
	font-size: clamp(1.6rem, 3.2vw, 2.3rem);
	color: #fff;
}
.dh-pas__text {
	margin-top: 0.6rem;
	font-size: 1.1rem;
	color: #dbe6f5;
}
.dh-pas__kontakt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 2rem;
	margin: 1.6rem 0 0;
}
.dh-pas__tel {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border-radius: 6px;
	background: #fff;
	color: var(--dh-modra-tmava);
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}
.dh-pas__tel:hover {
	background: var(--dh-antracit);
	color: #fff;
}
.dh-pas__mail {
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
}
.dh-pas__mail:hover,
.dh-pas__wa:hover {
	color: #dbe6f5;
}
.dh-pas__wa {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	text-underline-offset: 0.2em;
}
.dh-kontakt-wa a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1.1rem;
	border-radius: 6px;
	background: #1f8f4e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.dh-kontakt-wa a::before {
	content: "";
	width: 1.2em;
	height: 1.2em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dh-kontakt-wa {
	margin-top: 1.1rem;
}
.dh-kontakt-wa a:hover {
	background: #17723e;
	color: #fff;
}

.dh-kontakt-velky {
	margin: 0;
	font-size: clamp(1.9rem, 5vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.dh-kontakt-velky a {
	color: var(--dh-antracit);
	text-decoration: none;
}
.dh-kontakt-velky a:hover {
	color: var(--dh-modra);
}
.dh-kontakt-mail {
	margin: 0.6rem 0 0;
	font-size: clamp(1.1rem, 2.4vw, 1.4rem);
	font-weight: 700;
	overflow-wrap: anywhere;
}
.dh-udaje {
	padding: 1.5rem 1.6rem;
	background: #fff;
	border: 1px solid var(--dh-linka);
	border-radius: var(--dh-radius);
}
.dh-udaje > * {
	margin-block: 0 0.5rem;
}
.dh-udaje > :last-child {
	margin-bottom: 0;
}
.dh-drobne {
	font-size: 0.9rem;
	color: var(--dh-seda);
}

/* ---------------------------------------------------------------
   Patička
   --------------------------------------------------------------- */
.dh-footer {
	padding: clamp(2.5rem, 5vw, 3.5rem) var(--dh-okraj) 1.75rem;
	font-size: 0.95rem;
	color: #b9bcc0;
}
.dh-footer__in {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	max-width: var(--dh-sirka);
	margin-inline: auto;
}
.dh-footer p {
	margin: 0 0 0.4rem;
}
.dh-footer a {
	color: #fff;
	text-decoration: none;
}
.dh-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.dh-footer__jmeno {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}
.dh-footer__nadpis {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8b9096;
}
.dh-footer__pravni {
	max-width: var(--dh-sirka);
	margin: 2rem auto 0 !important;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.82rem;
	line-height: 1.6;
	color: #8b9096;
}
@media (max-width: 700px) {
	.dh-footer__in {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

/* ---------------------------------------------------------------
   Tlačítko „Zavolat“ na telefonu
   --------------------------------------------------------------- */
.dh-volat {
	display: none;
}
@media (max-width: 599px) {
	.dh-volat {
		position: fixed;
		left: 0.75rem;
		right: 0.75rem;
		bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
		z-index: 60;
		display: flex;
		gap: 0.5rem;
	}
	.dh-volat a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		padding: 0.85rem 1rem;
		border-radius: 8px;
		box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
		color: #fff;
		font-weight: 800;
		text-decoration: none;
	}
	.dh-volat__tel {
		flex: 1;
		background: var(--dh-modra);
	}
	.dh-volat__wa {
		flex: none;
		width: 3.3rem;
		padding-inline: 0 !important;
		background: #1f8f4e; /* zelená WhatsAppu, ztmavená kvůli kontrastu */
	}
	.dh-footer {
		padding-bottom: 5.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.dh-karta,
	.wp-block-gallery.dh-galerie figure.wp-block-image img {
		transition: none;
	}
	.dh-karta:hover,
	.wp-block-gallery.dh-galerie figure.wp-block-image:hover img {
		transform: none;
	}
}
