/*
Theme Name: Twenty Seventeen Child
Template: twentyseventeen
*/

:root {
	--gold: #D4B77E;
	--olive: #3C4332;
	--text: #2f3540;
	--radius-accent: 18px;
	--button-border: 2px solid var(--gold);
}

/* Base */

html {
	scroll-behavior: smooth;
}

#page {
	word-wrap: normal;
}

body,
button,
input,
select,
textarea {
	font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.8;
	color: var(--text);
}

a {
	color: var(--gold);
}

a:hover,
a:focus,
.entry-content a:hover,
.entry-content a:focus,
.entry-summary a:hover,
.entry-summary a:focus,
.widget a:hover,
.widget a:focus {
	color: var(--olive);
}

/* Navigation */

.navigation-top {
	background: rgba(60, 67, 50, 0.7);
	border: 0;
	backdrop-filter: blur(6px);
	transition: all 0.3s ease;
}

.navigation-top.site-navigation-fixed {
	background: rgba(60, 67, 50, 1);
	backdrop-filter: blur(0);
}

.navigation-top .menu-item-language a:before,
.site-header .menu-scroll-down,
.custom-logo-link,
.site-branding .custom-logo {
	display: none !important;
}

.navigation-top a,
.main-navigation a {
	font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #f2f2f2 !important;
}

.navigation-top a:hover,
.navigation-top a:focus,
.main-navigation a:hover,
.main-navigation a:focus,
.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a {
	color: var(--gold) !important;
}

/* Branding / hero */

.site-branding {
	width: min(900px, 92vw);
	max-width: 900px;
	margin-left: 4%;
	padding: 2rem 2rem 6rem 0;
	box-sizing: border-box;
}

body.page:not(.twentyseventeen-front-page) .site-branding {
	padding-top: 10em;
}

body:not(.title-tagline-hidden) .site-branding-text {
	display: block;
	max-width: 80%;
	vertical-align: middle;
}

.site-title,
h1,
.page-title,
body.page:not(.twentyseventeen-front-page) .entry-title,
h2,
.entry-content h2,
h3,
.entry-content h3,
h2.widget-title {
	font-family: "Bodoni Moda", Georgia, serif !important;
}

.site-title {
	max-width: 600px;
	font-size: 4.2rem !important;
	font-weight: 600 !important;
	line-height: 0.98;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7) !important;
	margin-bottom: 0.05em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.site-title a,
.site-title a:hover,
.site-title a:focus {
	color: rgba(255, 255, 255, 0.96) !important;
	text-decoration: none;
}

.site-description {
	font-size: 1.02rem;
	line-height: 1.45;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.88);
	margin-top: 1rem;
	max-width: 42rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Headings / content */

h1,
.page-title,
body.page:not(.twentyseventeen-front-page) .entry-title {
	font-size: 2.6rem;
	font-weight: 600 !important;
	line-height: 1.08;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--olive) !important;
}

h2,
.home.blog .entry-title,
h2.widget-title {
	font-size: 2.1rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.03em;
	color: var(--gold) !important;
}

.twentyseventeen-front-page .entry-header h2 {
	color: #fff !important;
	margin: 1.6em 0 0.6em;
}

h3,
.entry-content h3 {
	font-size: 1.55rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.15;
	color: var(--olive) !important;
}

/* Layout */

.entry-content,
.entry-summary,
.page-content {
	max-width: 760px;
}

.entry-content p,
.page-content p,
.entry-summary p {
	font-size: 1.08rem;
	line-height: 1.85;
	letter-spacing: 0.01em;
}

.page-content > p:first-of-type {
	font-size: 1.16rem;
	line-height: 1.9;
	color: #616657;
}

.entry-content blockquote {
	font-family: "Bodoni Moda", Georgia, serif;
	font-size: 1.45rem;
	line-height: 1.45;
	color: var(--olive);
	border-left: 2px solid var(--gold);
	padding-left: 1em;
	margin: 1.8em 0;
}

/* Home sections */

.home .twentyseventeen-panel .entry-header,
.home .twentyseventeen-panel .entry-content {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

.home .twentyseventeen-panel .panel-content,
.home .twentyseventeen-panel .panel-content .wrap {
	position: relative;
}

.home .twentyseventeen-panel:first-of-type .entry-header {
	display: none;
}

.home .entry-content img {
	float: none !important;
	display: block;
}

.home .entry-content .wp-block-button {
	float: none !important;
	display: block;
}

@media screen and (min-width: 48em) {
	.home .twentyseventeen-panel:not(:first-of-type) .entry-header {
		position: relative;
		z-index: 5;
		margin: -16em 0 0 -2em;
		pointer-events: none;
	}

	.home .twentyseventeen-panel:not(:first-of-type) .entry-header .entry-title,
	.home .twentyseventeen-panel:not(:first-of-type) .entry-header h2 {
		font-size: 3rem !important;
		font-weight: 600 !important;
		line-height: 0.98;
		letter-spacing: 0.06em;
		margin-bottom: 2em;
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	}

	.home .twentyseventeen-panel:not(:first-of-type) .entry-content {
		margin-top: 0;
	}
}

@media screen and (max-width: 47.99em) {
	.home .twentyseventeen-panel:not(:first-of-type) .entry-header {
		position: relative;
		z-index: 5;
		margin-top: -90px;
		margin-bottom: 40px;
		padding: 0 20px;
		pointer-events: none;
	}

	.home .twentyseventeen-panel:not(:first-of-type) .entry-header .entry-title,
	.home .twentyseventeen-panel:not(:first-of-type) .entry-header h2 {
		margin: 0;
		color: #fff !important;
		text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	}
}

/* Pages layout */

@media screen and (min-width: 48em) {
	body.page:not(.home):not(.twentyseventeen-front-page) .entry-header,
	body.page:not(.home):not(.twentyseventeen-front-page) .entry-content,
	body.page:not(.home):not(.twentyseventeen-front-page) .page-header,
	body.page:not(.home):not(.twentyseventeen-front-page) .page-content {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		display: block;
		clear: both;
	}
}

/* Image panels */

@media screen and (min-width: 48em) {
	.twentyseventeen-panel .panel-image {
		height: 60vh;
		max-height: 420px;
	}
}

@media screen and (max-width: 47.99em) {
	.twentyseventeen-panel .panel-image {
		height: 38vh;
		max-height: none;
	}
}

/* Inner page headers */

@media screen and (min-width: 48em) {
	body:not(.home):not(.blog):not(.twentyseventeen-front-page) .custom-header,
	body:not(.home):not(.blog):not(.twentyseventeen-front-page) .custom-header-media {
		height: 62vh;
		min-height: 520px;
	}

	body.has-header-image:not(.home):not(.blog):not(.twentyseventeen-front-page) .navigation-top {
		position: relative !important;
		z-index: 30;
		margin-top: -156px !important;
		background: rgba(60, 67, 50, 0.52) !important;
	}

	body.has-header-image:not(.home):not(.blog):not(.twentyseventeen-front-page) .navigation-top.site-navigation-fixed {
		position: fixed !important;
		top: 0 !important;
		margin-top: 0 !important;
		background: rgba(60, 67, 50, 1) !important;
	}
}

/* Widgets */

@media screen and (min-width: 48em) {
	.site-footer .widget-column.footer-widget-1 {
		float: left;
		width: 80%;
	}
}

/* Buttons / forms */

label {
	font-weight: 400;
	color: var(--olive);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.menu-toggle,
.entry-content a.more-link,
.wp-block-button__link {
	display: inline-block;
	padding: 12px 22px;
	margin: 20px 0 0;
	background: var(--olive);
	color: #fff !important;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-top-left-radius: var(--radius-accent);
	border-bottom-right-radius: var(--radius-accent);
	border-top-right-radius: 0;
	border-bottom-left-radius: 0;
	box-shadow: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
.menu-toggle:hover,
.menu-toggle:focus,
.entry-content a.more-link:hover,
.entry-content a.more-link:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background: var(--gold);
	color: #fff !important;
	outline: none;
}

.entry-content .more-link:before {
	margin-top: 0;
}

.gold {
	color: var(--gold);
}

/* Misc */

.site-info {
	display: none;
}

.gallery-item {
	margin: 0 0 2.5em;
	padding: 2em 1em 0;
}

.widget .tagcloud a,
.widget.widget_tag_cloud a,
.wp_widget_tag_cloud a {
	word-wrap: nowrap;
}

.page-claim {
	color: rgba(255, 255, 255, 0.88);
}

/* Home hero slider */

.home .custom-header-media {
	position: relative;
	overflow: hidden;
	min-height: 55vh;
}

.home .custom-header-media .hero-slide-layer {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: opacity 1s ease;
}

.home .custom-header-media .hero-slide-layer.is-visible {
	opacity: 1;
	z-index: 0;
}

.home .custom-header-media .hero-slide-layer.is-hidden {
	opacity: 0;
	z-index: 0;
}

.home .custom-header-media #wp-custom-header,
.home .custom-header-media .wp-custom-header,
.home .custom-header-media img {
	display: none !important;
}

.home .custom-header-media::before {
	z-index: 1;
}

.home .custom-header-media .hero-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 30;
	width: 44px;
	height: 44px;
	padding: 0;
	padding-bottom: 3px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	line-height: 1;
	font-size: 20px;
	text-transform: none;
	letter-spacing: 0;
	min-width: 0;
}

.home .custom-header-media .hero-arrow.left {
	left: 10px;
}

.home .custom-header-media .hero-arrow.right {
	right: 10px;
}

.home .custom-header-media .hero-arrow:hover,
.home .custom-header-media .hero-arrow:focus {
	background: rgba(0, 0, 0, 0.55);
	border-color: rgba(255, 255, 255, 0.55);
}

/* Mobile */

@media screen and (max-width: 48em) {

	/* Hero bez horního pruhu */
	.home .custom-header,
	.twentyseventeen-front-page .custom-header,
	.has-header-image.home.blog .custom-header,
	.has-header-video.home.blog .custom-header {
		position: relative;
		height: 58vh;
		min-height: 420px;
		padding-top: 0;
		overflow: hidden;
	}

	.home .custom-header-media,
	.twentyseventeen-front-page .custom-header .custom-header-media,
	.has-header-image.home.blog .custom-header .custom-header-media,
	.has-header-video.home.blog .custom-header .custom-header-media {
		position: absolute;
		inset: 0;
		height: 100%;
	}

	.home .custom-header .wrap,
	.twentyseventeen-front-page .custom-header .wrap,
	.has-header-image.home.blog .custom-header .wrap,
	.has-header-video.home.blog .custom-header .wrap {
		position: relative;
		z-index: 3;
		height: 100%;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	/* menu přímo přes obrázek */
	.navigation-top {
		position: absolute !important;
		top: 0;
		left: 0;
		right: 0;
		z-index: 40;
		background: transparent !important;
		border: 0;
		backdrop-filter: none;
		box-shadow: none;
	}

	.navigation-top .wrap {
		position: relative;
		min-height: 64px;
		padding: 0;
		margin: 0;
	}

	.menu-toggle,
	.menu-toggle:hover,
	.menu-toggle:focus,
	.toggled-on .menu-toggle,
	.toggled-on .menu-toggle:hover,
	.toggled-on .menu-toggle:focus {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 60;
		margin: 0;
		padding: 1rem 1.6rem;
		float: none;
		transform: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: rgba(60, 67, 50, 0.88);
		color: #fff !important;
		border: 0;
		border-radius: 0 0 0 var(--radius-accent);
		box-shadow: none;
		line-height: 1;
	}

	/* rozbalené menu zprava */
	.main-navigation.toggled-on {
		position: absolute;
		top: 0;
		right: 0;
		left: auto;
		width: min(320px, calc(100vw - 24px));
		padding-top: 56px;
		background: rgba(255,255,255,0.96);
		box-shadow: 0 10px 30px rgba(0,0,0,0.08);
border: 0;
		border-radius: 0 0 0 var(--radius-accent);
		z-index: 50;
	}

	.main-navigation.toggled-on ul {
		margin: 0;
		padding: 0.75rem 1rem 1rem;
		background: transparent;
		text-align: left;
	}

	.main-navigation.toggled-on li {
		display: block;
		border-bottom: 1px solid rgba(0,0,0,0.06);
	}

	.main-navigation.toggled-on li:last-child {
		border-bottom: 0;
	}

	.main-navigation.toggled-on a {
		display: block;
		padding: 0.8rem 0;
		text-align: center;
		color: var(--olive) !important;
	}

	.main-navigation.toggled-on a:hover,
	.main-navigation.toggled-on a:focus,
	.main-navigation.toggled-on .current-menu-item > a,
	.main-navigation.toggled-on .current_page_item > a {
		color: var(--gold) !important;
	}

	/* hero jako kontejner */
	.home .custom-header,
	.twentyseventeen-front-page .custom-header {
		position: relative;
	}

	/* branding přes obrázek dole */
	.home .site-branding,
	.twentyseventeen-front-page .site-branding,
	.has-header-image.home.blog .site-branding,
	.has-header-video.home.blog .site-branding {
		position: absolute;
		left: 2rem;
		right: 2rem;
		top: 62%;
		bottom: auto;
		width: auto;
		max-width: none;
		margin: 0;
		padding: 0;
		z-index: 3;
	}

	.site-title,
	.site-title a {
		display: block;
		max-width: 100%;
		white-space: normal;
		overflow-wrap: break-word;
		word-break: normal;
	}

	.site-title {
		font-size: 2.35rem !important;
		line-height: 1.02;
		letter-spacing: 0.035em;
		margin: 0;
	}

	.site-description {
		margin-top: 0.45rem;
		font-size: 0.92rem;
		line-height: 1.3;
		letter-spacing: 0.015em;
		max-width: 17rem;
	}

	/* obsah pod hero */
	h1,
	.page-title,
	body.page:not(.twentyseventeen-front-page) .entry-title {
		font-size: 2.2rem;
	}

	h2,
	.entry-content h2,
	.home.blog .entry-title,
	h2.widget-title {
		font-size: 2rem;
	}

.page .panel-content .entry-title, .page-title, body.page:not(.twentyseventeen-front-page) .entry-title {
color: #222;
font-size: 20px;
font-size: 1.875rem;
	}

	h3,
	.entry-content h3 {
		font-size: 1.35rem;
	}
}

/* CF7 */

.wpcf7 textarea {
	min-height: 110px;
	max-height: 220px;
	resize: vertical;
}

.wpcf7 input:not([type="submit"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: 12px 14px;

	background: rgba(212, 183, 126, 0.08); /* jemná zlatá */
	border: 1px solid rgba(212, 183, 126, 0.25);

	border-top-right-radius: var(--radius-accent);
	border-bottom-left-radius: var(--radius-accent);
	border-top-left-radius: 0;
	border-bottom-right-radius: 0;

	font-family: "Libre Franklin", sans-serif;
	font-size: 0.95rem;

	transition: all 0.25s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	background: rgba(212, 183, 126, 0.14);
	border-color: var(--gold);
	box-shadow: 0 0 0 2px rgba(212, 183, 126, 0.2);
}

.wpcf7 label {
	display: block;
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;

	font-family: "Libre Franklin", sans-serif;
	font-size: 0.68rem;
	font-weight: 500;

	letter-spacing: 0.14em;
	text-transform: uppercase;

	color: var(--olive);
	opacity: 0.7;

	transition: opacity 0.25s ease, color 0.25s ease;
}

.wpcf7 p:focus-within label {
	opacity: 1;
	color: var(--gold);
}

/* desktop: 2 sloupce pro první dvě pole */
@media screen and (min-width: 48em) {

	.wpcf7 form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.2rem 1.5rem;
	}

	/* první pole (Name) */
	.wpcf7 form p:nth-of-type(1) {
		grid-column: 1;
	}

	/* druhé pole (Email) */
	.wpcf7 form p:nth-of-type(2) {
		grid-column: 2;
	}

	/* všechno ostatní přes celou šířku */
	.wpcf7 form p:nth-of-type(n+3) {
		grid-column: 1 / -1;
	}
}