/*
Theme Name: Krumlof
Theme URI: 
Author: infocount.cz
Author URI: https://infocount.cz/
Description: Theme for Krumlof Family Fest
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krumlof-theme
*/

@font-face {
	font-family: 'Ambit';
	src: url('font/Ambit Light.otf') format('opentype');
	font-weight: 300;
}
@font-face {
	font-family: 'Ambit';
	src: url('font/Ambit Regular.otf') format('opentype');
	font-weight: 400;
}
@font-face {
	font-family: 'Ambit';
	src: url('font/Ambit SemiBold.otf') format('opentype');
	font-weight: 600;
}
@font-face {
	font-family: 'Ambit';
	src: url('font/Ambit Bold.otf') format('opentype');
	font-weight: 700;
}

@font-face {
	font-family: 'Literata';
	src: url('font/Literata-Light.ttf') format('truetype');
	font-weight: 300;
}
@font-face {
	font-family: 'Literata';
	src: url('font/Literata-Regular.ttf') format('truetype');
	font-weight: 400;
}

html, body, h1, h2, h3, ul, li, p {
	margin: 0;
	padding: 0;
}

html {
	margin-top: 0 !important;
}

body, h1, h2, h3, div, p, li, a {
	color: #000000;
	font-family: 'Ambit', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 32px;
}

body {
	background-color: #ffffff;
}

a {
	color: #9c1682;
	font-weight: 400;
	text-decoration: none;
}
a:hover {
	color: #f6a01d;
	text-decoration: none;
}

img {
	display: block;
}

ul {
	list-style-type: none;
}

*, ::after, ::before {
	box-sizing: unset;
}

.container {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1670px;
	padding: 70px 35px;
	margin: 0 auto;
}

/* header */

header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background-color: #9c1682;
	overflow: hidden;
	z-index: 1;
}
.home header {
	background-color: transparent;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	max-width: none;
	padding-top: 35px;
	padding-bottom: 35px;
}

header .brand a {
	display: block;
	width: 326px;
	height: 133px;
	overflow: hidden;
	text-indent: -99999px;
	background: url('img/logo.png') center no-repeat;
}
header .brand a:hover {
	filter: brightness(0) invert(1);
}

header .menu {
	display: flex;
	align-items: center;
	gap: 15px;
}

header .menu li {
	padding: 0 10px;
}
header .menu li.button {
	padding: 0;
}

header .menu li a {
	position: relative;
	display: block;
	color: #ffffff;
	font-size: 28px;
	font-weight: 700;
	line-height: 40px;
}
header .menu li a:hover {
	color: #000000;
}
header .menu li:last-child a {
	color: #f6a01d;
	letter-spacing: .05em;
	text-transform: lowercase;
	background-color: #9c1682;
	padding: 8px 20px;
	border-radius: 30px;
}
header .menu li:last-child a:hover {
	color: #9c1682;
	background-color: #ffffff;
}

header .social {
	position: absolute;
	display: flex;
	gap: 25px;
	top: 25px;
	right: 50px;
}
header .social li a {
	position: relative;
	display: block;
	width: 23px;
	height: 23px;
	overflow: hidden;
	text-indent: -99999px;
}
header .social li a::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-position: center;
	background-repeat: no-repeat;
}
header .social li.facebook a::before {
	background-image: url('img/ico-facebook.png');
}
header .social li.instagram a::before {
	background-image: url('img/ico-instagram.png');
}
header .social li.youtube a::before {
	background-image: url('img/ico-youtube.png');
}
header .social li a:hover::before {
	filter: brightness(0) invert(1);
}


header .mobile {
	display: none;
}

/* main */

main .header {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
main .header .title {
	color: #f6a01d;
	font-size: 72px;
	font-weight: 700;
	line-height: 86px;
}
main .header .name {
	color: #f6a01d;
	font-size: 28px;
	font-weight: 700;
	line-height: 36px;
}
main .header .notitle {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
main .header .button {
	padding-top: 15px;
}
main .header .button a {
	display: inline-block;
	color: #f6a01d;
	font-size: 28px;
	font-weight: 700;
	line-height: 40px;
	letter-spacing: .05em;
	text-transform: lowercase;
	background-color: #ffffff;
	padding: 20px 30px;
	border-radius: 40px;
}
main .header .button a:hover {
	color: #ffffff;
	background-color: #f6a01d;
}

/* home */

#home {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* hero */

#hero {
	position: relative;
	overflow: hidden;
	background-size: 0;
}
#hero::before,
#hero::after {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
}
#hero::before {
	bottom: 0;
	background-image: inherit;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
#hero::after {
	height: 400px;
	background: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,0));
}

#hero .container {
	max-width: none;
	padding-top: 200px;
	padding-bottom: 0;
}

#hero .header {
	width: calc(50vw - 510px);
	height: max(100vh - 440px, 440px);
	background-color: #9c1682;
	padding: 55px 35px 35px 75px;
	margin-left: calc(50% + 400px);
}

#hero .header .title span:first-child,
#hero .header .title span:last-child {
	display: block;
}
#hero .header .title span:nth-child(2) {
	display: none;
}
#hero .header .title span:nth-child(3)::before {
	content: "\2014\00a0";
}

#hero .header .button a {
	position: relative;
	padding-right: 120px;
}
#hero .header .button a::after {
	position: absolute;
	content: "";
	top: 0;
	right: 35px;
	bottom: 0;
	width: 62px;
	height: 31px;
	background: url('img/ico-ticket.png') center no-repeat;
	margin: auto 0;
}
#hero .header .button a:hover::after {
	filter: brightness(0) invert(1);
}

/* countdown */

#countdown {
	background-color: #9c1682;
	height: 150px;
}

#countdown .container {
	max-width: none;
	padding-top: 20px;
	padding-bottom: 20px;
}

#countdown .countdown-row {
	display: flex;
	gap: 30px;
}
#countdown .countdown-section {
	display: flex;
	flex-direction: column-reverse;
}
#countdown .countdown-period {
	display: block;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-transform: uppercase;
}
#countdown .countdown-amount {
	display: block;
	color: #f6a01d;
	font-size: 72px;
	font-weight: 700;
	line-height: 86px;
}

/* media */

@media (max-width: 1700px) {
	main .header .title {
		font-size: 60px;
		line-height: 72px;
	}

	#hero .header {
		width: calc(50vw - 470px);
		height: max(100vh - 420px, 440px);
		padding: 35px;
	}
	#hero .header .button span {
		display: none;
	}

	#countdown .countdown-amount {
		font-size: 60px;
		line-height: 72px;
	}
}

@media (max-width: 1400px) {
	#hero .header {
		width: calc(50vw - 110px);
		height: max(100vh - 440px, 440px);
		padding: 55px 35px 35px 75px;
		margin-left: 50%;
	}
	#hero .header .title span:first-child,
	#hero .header .button span {
		display: inline;
	}
	#hero .header .title span:nth-child(3)::before {
		content: "\2014";
	}
}

@media (max-width: 1000px) {
	#hero .header .title span:first-child {
		display: block;
	}
	#hero .header .title span:nth-child(3)::before {
		content: "\2014\00a0";
	}
}

@media (max-width: 900px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}

	header .brand a {
		width: 245px;
		height: 100px;
		background-size: cover;
	}

	#hero .header {
		width: calc(50vw - 70px);
		height: max(100vh - 420px, 440px);
		padding: 35px;
	}
	#hero .header .button span {
		display: none;
	}
}

@media (max-width: 600px) {
	.container {
		padding-left: 10px;
		padding-right: 10px;
	}

	header .container {
		align-items: flex-end;
		gap: 10px;
		padding-top: 20px;
		padding-bottom: 20px;
	}
	header .brand a {
		width: 196px;
		height: 80px;
	}
	header .menu li a {
		font-size: 24px;
		line-height: 36px;
	}
	header .menu li:last-child a {
		padding: 5px 15px;
	}
	header .social {
		top: 20px;
		right: 20px;
	}

	main .header {
		align-items: center;
	}
	main .header .title {
		font-size: 50px;
		line-height: 60px;
	}
	main .header .name {
		font-size: 24px;
		line-height: 36px;
	}
	main .header .button a {
		font-size: 24px;
		line-height: 36px;
		padding: 15px 25px;
	}

	#hero::before {
		height: 100vw;
	}
	#hero .container {
		background-color: #9c1682;
		padding-top: 20px;
		padding-bottom: 20px;
		margin-top: 100vw;
	}
	#hero .header {
		width: auto;
		height: auto;
		padding: 0;
		margin: 0;
	}
	#hero .header .title span {
		text-align: center;
	}
	#hero .header .title span:first-child {
		display: inline;
	}

	#countdown .time {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	#countdown .countdown-amount {
		font-size: 50px;
		line-height: 60px;
	}
}