/*!
Theme Name: Parovatma
Theme URI: https://parovatma.cz/
Author: Tomáš Roud
Description: Téma pro parovatma.cz postavené na _s (underscores). Nahrazuje hello-elementor + Elementor; vzhled odpovídá původnímu webu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: parovatma
Tags: custom-logo, custom-menu, translation-ready

Postaveno na Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores je distribuováno pod licencí GNU GPL v2 nebo novější.
*/

/* ==========================================================================
   1. Proměnné — odvozené z původního Elementor kitu a naměřených stylů
   ========================================================================== */

:root {
	--pv-bg: #000000;
	--pv-text: #f8f8f8;
	--pv-text-content: #ffffff;
	--pv-heading: #ffffff;
	--pv-accent: #da7c0c;          /* oranžová — odkazy v menu, tlačítka */
	--pv-accent-hover: #f47c20;
	--pv-green: #659150;           /* telefonní tlačítko */
	--pv-btn-text: #ffffff;

	--pv-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--pv-font-slab: "Roboto Slab", Georgia, serif;

	--pv-container: 1140px;
	--pv-gap: 20px;

	/* Proměnné, které dřív dodával Elementor kit — část starého obsahu je má
	   zadrátované v inline stylech, takže je musíme udržet naživu. */
	--e-global-color-primary: #ffffff;
	--e-global-color-secondary: #000000;
	--e-global-color-text: #ffffff;
	--e-global-color-accent: #000000;
	--e-global-typography-primary-font-family: "Roboto";
	--e-global-typography-primary-font-weight: 600;
	--e-global-typography-secondary-font-family: "Roboto Slab";
	--e-global-typography-secondary-font-weight: 400;
	--e-global-typography-text-font-family: "Roboto";
	--e-global-typography-text-font-weight: 400;
	--e-global-typography-accent-font-family: "Roboto";
	--e-global-typography-accent-font-weight: 500;
}

/* ==========================================================================
   2. Základ
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--pv-bg);
	color: var(--pv-text);
	font-family: var(--pv-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: var(--pv-accent);
}

a:hover,
a:focus {
	color: var(--pv-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.4em;
	color: var(--pv-heading);
	font-family: var(--pv-font);
	font-weight: 600;
	line-height: 1.2;
}

/* Výchozí velikosti nadpisů odpovídají původnímu hello-elementor tématu. */
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

p {
	margin: 0 0 0.9em;
}

ul, ol {
	padding-left: 1.4em;
}

hr {
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin: 1.5em 0;
}

/* ==========================================================================
   3. Přístupnost (z _s)
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	position: absolute;
}

/* ==========================================================================
   4. Hlavička
   ========================================================================== */

.site-header {
	padding: 16px 0;
}

.header-inner,
.footer-inner {
	max-width: var(--pv-container);
	margin: 0 auto;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.site-branding {
	max-width: 15%;
	flex: 0 0 auto;
}

.site-header .site-branding img,
.site-header .custom-logo {
	width: 60px;
	max-width: 60px;
	height: auto;
	display: block;
}

.site-navigation {
	max-width: 85%;
	flex: 1 1 auto;
}

.site-navigation ul.menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-navigation ul.menu li {
	list-style: none;
}

.site-navigation ul.menu li a {
	display: block;
	padding: 8px 15px;
	color: var(--pv-accent);
	font-size: 16px;
	text-decoration: none;
}

.site-navigation ul.menu li a:hover,
.site-navigation ul.menu li a:focus {
	text-decoration: underline;
}

/* Podmenu */
.site-navigation ul.menu .sub-menu {
	display: none;
	position: absolute;
	z-index: 50;
	min-width: 200px;
	margin: 0;
	padding: 6px 0;
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	list-style: none;
}

.site-navigation ul.menu li:hover > .sub-menu,
.site-navigation ul.menu li:focus-within > .sub-menu {
	display: block;
}

.site-navigation ul.menu .sub-menu a {
	text-align: left;
	white-space: nowrap;
}

/* Přepínač mobilního menu */
.site-navigation-toggle-holder {
	display: none;
	flex: 0 0 auto;
}

.site-navigation-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--pv-accent);
	border-radius: 4px;
	color: var(--pv-accent);
	cursor: pointer;
}

.site-navigation-toggle-icon,
.site-navigation-toggle-icon::before,
.site-navigation-toggle-icon::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.site-navigation-toggle-icon::before,
.site-navigation-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-navigation-toggle-icon::before { top: -7px; }
.site-navigation-toggle-icon::after  { top: 7px; }

.site-navigation-dropdown {
	display: none;
	flex-basis: 100%;
	width: 100%;
}

.site-navigation-dropdown.show {
	display: block;
}

.site-navigation-dropdown ul.menu {
	display: block;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 6px;
}

.site-navigation-dropdown ul.menu li a {
	display: block;
	padding: 12px 16px;
	color: var(--pv-accent);
	font-size: 1.1rem;
	text-decoration: none;
}

/* ==========================================================================
   5. Obsah
   ========================================================================== */

.site-main {
	display: block;
}

.entry-header,
.page-header,
.page-content,
.entry-footer,
.site-main > .navigation,
.comments-area,
.entry-content > *:not(.pv-section):not(.alignfull):not(.alignwide) {
	max-width: var(--pv-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 10px;
	padding-right: 10px;
}

.entry-content {
	color: var(--pv-text-content);
}

.entry-title {
	margin-top: 0.4em;
}

.entry-content .alignwide {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignfull {
	max-width: none;
}

/* ==========================================================================
   6. Sekce a sloupce (náhrada Elementor sections/columns)
   ========================================================================== */

.pv-section {
	position: relative;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

/* Překryv sekce s obrázkem na pozadí */
.pv-section > .pv-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Sekce má pozadí přes celou šířku, obsah uvnitř je omezený jako v Elementoru. */
.pv-section > * {
	max-width: var(--pv-container);
	margin-left: auto;
	margin-right: auto;
}

.pv-section.pv-full > * {
	max-width: none;
}

/* Obsah nad tmavým překryvem sekce. */
.pv-section.pv-has-overlay > * {
	position: relative;
	z-index: 1;
}

/* Galerie mají vlastní rozvržení, přebíjíme výchozí styly bloku galerie. */
.wp-block-gallery.pv-gallery,
.wp-block-gallery.pv-carousel {
	gap: 10px;
}

.wp-block-gallery.pv-gallery figure.wp-block-image,
.wp-block-gallery.pv-carousel figure.wp-block-image {
	margin: 0;
}

.pv-container {
	position: relative;
	max-width: var(--pv-container);
	margin: 0 auto;
	padding: 0 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.pv-section.pv-full > .pv-container {
	max-width: none;
}

.pv-col {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	padding: 0 10px;
	flex: 0 0 100%;
	max-width: 100%;
}

.pv-widget {
	margin-bottom: 20px;
}

.pv-widget:last-child {
	margin-bottom: 0;
}

/* Kontejner (flexbox layout Elementoru) */
.pv-flex {
	max-width: var(--pv-container);
	margin: 0 auto;
	padding: 0 10px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ==========================================================================
   7. Tlačítka
   ========================================================================== */

.pv-button-wrap {
	margin-bottom: 20px;
}

.pv-button-wrap.pv-align-center { text-align: center; }
.pv-button-wrap.pv-align-left   { text-align: left; }
.pv-button-wrap.pv-align-right  { text-align: right; }

.pv-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	background-color: var(--pv-accent);
	border: none;
	border-radius: 3px;
	color: var(--pv-btn-text);
	font-family: var(--pv-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, filter 0.2s ease;
}

.pv-button:hover,
.pv-button:focus {
	color: var(--pv-btn-text);
	filter: brightness(1.12);
}

.pv-button .pv-button-icon {
	font-size: 1em;
	line-height: 1;
}

/* ==========================================================================
   8. Obrázky, seznamy, ostatní widgety
   ========================================================================== */

.pv-image {
	margin: 0 0 20px;
}

.pv-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.pv-image.pv-align-center { text-align: center; }
.pv-image.pv-align-center img { margin-left: auto; margin-right: auto; }
.pv-image.pv-align-right  { text-align: right; }
.pv-image.pv-align-right img { margin-left: auto; }

.pv-icon-list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.pv-icon-list li {
	display: flex;
	align-items: center;
	gap: 5px;
	padding-bottom: 3px;
	color: var(--pv-text-content);
}

.pv-icon-list li .pv-icon {
	flex: 0 0 auto;
	color: var(--pv-accent);
}

.pv-text {
	margin-bottom: 20px;
	color: var(--pv-text-content);
}

.pv-text > *:last-child {
	margin-bottom: 0;
}

.pv-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.pv-gallery img {
	width: 100%;
	height: auto;
	display: block;
}

.pv-video,
.pv-map {
	position: relative;
	margin-bottom: 20px;
}

.pv-video iframe,
.pv-map iframe {
	width: 100%;
	border: 0;
}

.pv-align-center { text-align: center; }
.pv-align-left   { text-align: left; }
.pv-align-right  { text-align: right; }
.pv-align-justify { text-align: justify; }

/* ==========================================================================
   8b. Formuláře (Contact Form 7) — vstupy přes celou šířku jako v původním tématu
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	max-width: 100%;
}

.wpcf7-form p {
	margin: 0 0 0.9em;
}

.wpcf7-form label {
	display: block;
}

/* ==========================================================================
   9. Patička
   ========================================================================== */

.site-footer {
	padding: 16px 0;
}

.site-footer .site-branding img,
.site-footer .custom-logo {
	width: 100px;
	max-width: 100px;
	height: auto;
	display: block;
}

.site-footer .copyright {
	flex: 0 0 100%;
	color: #e5e5e5;
}

.site-footer .copyright p {
	margin: 0;
}

/* ==========================================================================
   10. Responzivita
   ========================================================================== */

@media (max-width: 1024px) {
	h1 { font-size: 34px; }
	h2 { font-size: 28px; }
	h3 { font-size: 24px; }
}

@media (max-width: 1024px) {
	/* Fixed pozadí na dotykových zařízeních nefunguje (stejně to řeší i Elementor). */
	.pv-section {
		background-attachment: scroll !important;
	}
}

@media (max-width: 767px) {
	.site-navigation.show {
		display: none;
	}

	.site-navigation-toggle-holder {
		display: block;
	}

	.header-inner,
	.footer-inner {
		justify-content: space-between;
	}

	.site-branding {
		max-width: 40%;
	}

	.pv-col {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}

	.site-footer .footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer .site-navigation {
		max-width: 100%;
	}

	.site-footer .site-navigation ul.menu {
		justify-content: flex-start;
	}

	h1 { font-size: 30px; }
	h2 { font-size: 26px; }
	h3 { font-size: 22px; }
	h4 { font-size: 20px; }
}
