/*
 Theme Name:   Freshweb
 Description:  Freshweb by @NAK
 Author:       @NAK
 Version:      1.0.0
 License:      Commercial
 Text Domain:  freshweb
*/

/** OBSAH
 *  0 - VARS
 * 	1 - TEXT
 * 	2 - STYL
 * 	3 - GRID
 * 	4 - PARTS
 * 	5 - MEDIA
 */

/* 0 - VARS */

html {
	--Primary: #BED047;
	--Secondary: #8DB515;
	--Text: #000000;
	--White: #FFFFFF;
	--Grey: #EAE9E9;
	--Dark: #9D9D9D;
}
html, body {
	-webkit-scroll-behavior: smooth;
	scroll-behavior: smooth;
}
::placeholder {
	color: var(--White);
}
::selection {
	background: var(--Primary);
	color: var(--Text);
}

/* 1 - TEXT */

/* Good Time */
@font-face {
    font-family: Good Time;
    src: url(assets/fonts/goodtime/GoodTime.otf) format("opentype"); 
}

/* Roboto */
@font-face {
    font-family: Roboto;
    src: url(assets/fonts/roboto/Roboto-Regular.ttf) format("truetype");
	font-weight: normal;
}
@font-face {
    font-family: Roboto;
    src: url(assets/fonts/roboto/Roboto-Medium.ttf) format("truetype");
	font-weight: 500;
}
@font-face {
    font-family: Roboto;
    src: url(assets/fonts/roboto/Roboto-Bold.ttf) format("truetype");
	font-weight: bold;
}

/* Typography */
body, input, select, textarea, button {
	margin: 0;
	font-family: Roboto, sans-serif!important;
	font-size: 18px;
	line-height: 30px;
	color: var(--Text);
}
h1, h2, h3, h4, h5, h6, .btn, input[type="submit"], .cislo {
	margin-top: 0;
	font-family: Good Time, Roboto, sans-serif!important;
	font-weight: 400;
	color: var(--Primary);
}
h1 {
	margin-bottom: 20px;
	font-size: 36px;
	line-height: 36px;
	word-spacing: -7px;
}
h2 {
	margin-bottom: 16px;
	font-size: 28px;
	line-height: 28px;
	word-spacing: -5px;
}
h3 {
	margin-bottom: 12px;
	font-size: 24px;
	line-height: 24px;
	word-spacing: -5px;
}
h4 {
	margin-bottom: 12px;
	font-size: 22px;
	line-height: 22px;
	word-spacing: 0;
}
h5 {
	margin-bottom: 8px;
	font-size: 20px;
	line-height: 20px;
	word-spacing: 0;
}
h6 {
	font-size: 18px;
	line-height: 18px;
	word-spacing: 0;
}
p {
	margin: 0;
}
p + p {
	margin-top: 12px;
}
label {
	display: flex;
	flex-direction: row;
	align-items: center;
}
a {
	text-decoration: none;
	color: inherit;
}
.btn, input, select, textarea {
	width: calc(100% - 66px);
	padding: 15px 33px;
	background: var(--Primary);
	color: var(--White);
	border: none;
	outline: none;
	border-radius: 41px;
	box-shadow: 0px 4px 4px 0px #00000040 inset;
}
select {
	width: 100%;
}
input[type="checkbox"], input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0 6px 0 0;
	padding: 0;
	-webkit-accent-color: var(--Primary);
	accent-color: var(--Primary);
	border-color: var(--Primary);
}
.btn, input[type="submit"] {
	font-size: 22px;
	line-height: 24px;
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	color: var(--White);
	transition: text-shadow 0.25s linear;
}
input[type="submit"] {
	width: 100%;
	background: var(--Secondary);
}
.btn:hover, input[type="submit"]:hover {
	text-shadow: 0px 4px #00000040;
}
.button a {
	padding: 4px 18px;
	font-size: 14px;
    line-height: 24px;
    font-weight: 500;
	text-transform: uppercase;
	background: var(--Secondary);
	border-radius: 13px;
}

/* Socials */
.socials a {
	margin-left: 15px;
}
.socials img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

/* 2 - STYL */

img {
	max-width: 100%;
}

/* Logo */
.logo {
	display: block;
	line-height: 0;
}
.logo img {
	width: auto;
	height: 29px;
	object-fit: contain;
}

/* Burger */
#burger {
    width: 30px;
    height: 20px;
	margin-left: 8px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
#burger hr {
    width: 26px;
    margin: 0;
    border: 1px solid var(--White);
}
#burger.opened hr:nth-child(1) {
    display: none;
}
#burger.opened hr:nth-child(2) {
    position: relative;
    top: 9px;
	left: -1px;
    transform: rotate(45deg);
}
#burger.opened hr:nth-child(3) {
    position: relative;
    top: -9px;
	left: -1px;
    transform: rotate(-45deg);
}

/* Menu */
.menu {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	list-style: none;
}
.menu li:not(:last-child) {
	margin-right: 12px;
}
.menu li a {
	font-size: 14px;
	line-height: 24px;
	font-weight: 500;
	text-transform: uppercase;
	transition: text-shadow 0.25s linear;
}
.menu li:hover a {
	text-shadow: 0px 2px #00000040;
}

/* Strankovani */
.nav-links {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

/* 3 - GRID */

/* Section */
section {
	position: relative;
	background-size: cover;
}
section.okraj {
	padding-top: 60px;
	padding-bottom: 60px;	
}
section.okraj .grid + .grid {
	padding-top: 60px;
}
.bg-grey {
	background: var(--Grey);
}
.bg-primary {
	background: var(--Primary);
}
.bg-color {
	color: var(--White);
}
.bg-color h1, .bg-color h2, .bg-color h3,
.bg-color h4, .bg-color h5, .bg-color h6 {
	color: var(--White);
}

/* Grid */
.grid {
	max-width: 1110px;
	margin: 0 auto;
	padding: 0 25px;
}

/* Box */
.box {
	padding-top: 25px;
	position: relative;
	background: var(--White);
	border-radius: 41px;
	box-shadow: 0px 6px 10px 0px #00000059 inset;
}

/* Flexbox */
.flex-grid, .flex-col {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}
.flex-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.col-grid {
	margin-left: -10px;
	margin-right: -10px;
}
.col-grid > .col-1, .col-grid > .col-2, .col-grid > .col-3,
.col-grid > .col-4, .col-grid > .col-5 {
	width: calc(100% - 20px);
	margin-left: 10px;
	margin-right: 10px;
}
.col-gap {
	margin-left: -25px;
	margin-right: -25px;
	align-items: center;
}
.col-gap > .col-1, .col-gap > .col-2, .col-gap > .col-3,
.col-gap > .col-4, .col-gap > .col-5 {
	width: calc(100% - 50px);
	margin-left: 25px;
	margin-right: 25px;
}

/* Header */
header {
	width: 100%;
	padding: 17px 0 14px;
	position: relative;
	background: var(--Primary);
}
header .grid {
	position: relative;
}
header .flex-row {
	justify-content: space-between;
	align-items: center;
}
@media (max-width: 1023px) {
	header .menu {
		width: 100%;
		padding: 25px;
		display: none;
		position: absolute;
		top: 40px;
		left: 0;
		background: var(--Primary);
		z-index: 9;
	}
}

/* Footer */
footer {
	padding: 62px 0 32px;
	background: var(--Secondary);
}
footer .menu a {
	font-weight: 400;
}
footer .flex-row {
	justify-content: space-between;
	align-items: center;
}
footer .copyright {
	margin-top: 20px;
	padding-top: 20px;
	justify-content: center;
	border-top: 1px solid var(--White);
}

/* 4 - PARTS */

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

/* Formular */
.wpcf7-list-item {
	margin: 0 0 0 5px;
}
.wpcf7-list-item a {
	text-decoration: underline;
}
.wpcf7-not-valid-tip {
	position: absolute;
    right: 33px;
    bottom: -20px;
    font-size: 12px;
    font-style: italic;
}

/* Obrazek */
.obrazek {
	position: relative;
	line-height: 0;
}
.obrazek img {
	width: 100%;
	height: auto;
	max-height: 300px;
	position: relative;
	object-fit: contain;
	z-index: 5;
}
.col-gap > div:first-child .obrazek.absolute {
	left: -25px;
}
.col-gap > div:first-child .obrazek.absolute img {
	object-position: left;
}
.col-gap > div:last-child .obrazek.absolute {
	right: -25px;
}
.col-gap > div:last-child .obrazek.absolute img {
	object-position: right;
}

/* Odkazy */
.odkazy.left .link {
	margin-right: 24px;
}
.odkazy.center .link {
	margin-left: 12px;
	margin-right: 12px;
}
.odkazy.right .link {
	margin-left: 24px;
}

/* Prispevky */

/* Titulek */
.titulek {
	margin-bottom: 12px;
}
.titulek span {
	font-size: 20px;
	line-height: 30px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--Primary);
}

/* Tlacitka */
.tlacitka {
	margin-bottom: -28px;
	position: relative;
	z-index: 5;
}
.okraj .tlacitka {
	margin-bottom: 0;
}
.tlacitka .btn {
	width: auto;
	background: linear-gradient(90deg, var(--Primary) 0%, var(--Secondary) 100%);
}
.tlacitka.left .btn {
	margin-right: 24px;
}
.tlacitka.center .btn {
	margin-left: 12px;
	margin-right: 12px;
}
.tlacitka.right .btn {
	margin-left: 24px;
}

/* Vyhody */
.vyhoda {
	flex-wrap: nowrap;
}
.vyhoda + .vyhoda {
	margin-top: 18px;
}
.vyhoda .cislo {
	width: 50px;
	min-width: 50px;
	height: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 30px;
	text-shadow: 0px 4px #00000040;
	background: var(--Dark);
	color: var(--White);
	border-radius: 100%;
	box-shadow: 0px 4px 4px 0px #00000040 inset;
}
.vyhoda:nth-child(even) {
	flex-direction: row-reverse;
}
.vyhoda:nth-child(odd) .cislo {
	margin-right: 16px;
}
.vyhoda:nth-child(even) .cislo {
	margin-left: 16px;
}

/* 5 - MEDIA */

@media (min-width: 768px) {
	h1 {
		margin-bottom: 25px;
		font-size: 45px;
		line-height: 38px;
		word-spacing: -10px;
	}
	.menu li:not(:last-child) {
		margin-right: 22px;
	}
	.flex-grid {
		flex-direction: row;
		flex-wrap: nowrap;
	}
	.col-grid > .col-2 {
		width: calc(50% - 20px);
	}
	.col-grid > .col-3, .col-grid > .col-5 {
		width: calc(33.33% - 20px);
	}
	.col-grid > .col-4, .col-grid > .col-5 {
		width: calc(50% - 20px);
	}
	.col-gap > .col-2, .col-gap > .col-4 {
		width: calc(50% - 50px);
	}
	.col-gap > .col-3, .col-gap > .col-5 {
		width: calc(33.33% - 50px);
	}
	.col-gap > .col-3 {
		min-width: calc(33.33% - 50px);
	}
	footer .logo img {
		height: 41px;
	}
	.obrazek img {
		max-height: 100%;
	}
	.obrazek.absolute {
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		position: absolute;
		top: 0;
	}
	.col-gap > .col-2 .obrazek.absolute img {
		max-width: 55vw;
	}
	.col-gap > .col-3 .obrazek.absolute img {
		max-width: 35vw;
	}
	.col-gap > div:first-child .obrazek.absolute {
		left: 0;
	}
	.col-gap > div:last-child .obrazek.absolute {
		right: 0;
	}
}

@media (min-width: 1024px) {
	h1 {
		font-size: 65px;
		line-height: 65px;
		word-spacing: -20px;
	}
	h2 {
		font-size: 38px;
		line-height: 38px;
		word-spacing: -10px;
	}
	#burger {
		display: none;
	}
	.vyhoda + .vyhoda {
		margin-top: 37px;
	}
	.vyhoda .cislo {
		width: 100px;
		min-width: 100px;
		height: 100px;
		font-size: 60px;
	}
	.vyhoda:nth-child(odd) .cislo {
		margin-right: 32px;
	}
	.vyhoda:nth-child(even) .cislo {
		margin-left: 32px;
	}
}

@media (min-width: 1360px) {
	h1 {
		margin-bottom: 35px;
		font-size: 90px;
		line-height: 90px;
	}
	h2 {
		font-size: 55px;
		line-height: 55px;
	}
	.btn, input[type="submit"] {
		font-size: 27px;
		line-height: 28px;
	}
	.menu li:not(:last-child) {
		margin-right: 42px;
	}
	.socials a {
		margin-left: 30px;
	}
	section.okraj {
		padding-top: 85px;
		padding-bottom: 85px;
	}
	section.okraj .grid + .grid {
		padding-top: 85px;
	}
	.box {
		padding-top: 50px;
		padding-left: 50px;
		padding-right: 50px;
	}
	.col-grid > .col-4 {
		width: calc(25% - 20px);
	}
	.col-grid > .col-5 {
		width: calc(20% - 20px);
	}
	.col-gap > .col-4 {
		width: calc(25% - 50px);
	}
	.col-gap > .col-5 {
		width: calc(20% - 50px);
	}
}