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

/** OBSAH
 *  0 - VARIABLES
 *  1 - TYPOGRAPHY
 *  2 - FLEXBOX GRID
 *  3 - GENERAL PARTS
 *  4 - TEMPLATE PARTS
 *  5 - MEDIA
 *  6 - ANIMATIONS
 */

/* 0 - VARIABLES */

:root {
	/* Hlavni barvy */
	--primary: #94D0CC;
	--secondary: #E39CA5;
	--white: #FFFFFF;

	/* Typografie */
	--headline: #231F20;
	--text: #3B3738;

	/* Dekorace */
	--background: #94D0CC33;
	--border: #F3F3F3;
	
	/* Grid */
	--grid-width: 1200px;
	--grid-padding: 25px;
}

::selection {
	background-color: var(--secondary);
}

::marker {
	color: var(--headline);
}

:focus,
:focus-within {
	outline-color: var(--primary);
}

/* 1 - TYPOGRAPHY */

/* Font faces */
@font-face {
	font-family: 'Antiga';
	src: url('assets/fonts/Antiga/antiga-regular-webfont.woff2') format('woff2'),
       	 url('assets/fonts/Antiga/antiga-regular-webfont.woff') format('woff');
	font-display: swap;
	font-style: normal;
	font-weight: 400; 
}
@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/Inter/Inter.ttf') format('truetype');
	font-display: swap;
	font-style: normal;
	font-weight: 100 900;
}

/* Base text */
body {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 26px;
	font-weight: 300;
	color: var(--text);
}

.btn,
button,
input,
select,
textarea {
	font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	font-family: 'Antiga', serif;
	font-weight: 400;
	color: var(--headline);
	text-shadow: 0 0 1px var(--headline);
}

h1 {
	margin-bottom: 30px;
	font-size: 34px;
	line-height: 44px;
}
h2 {
	margin-bottom: 24px;
	font-size: 28px;
	line-height: 38px;
}
h3 {
	margin-bottom: 18px;
	font-size: 24px;
	line-height: 34px;
}
h4 {
	margin-bottom: 12px;
	font-size: 20px;
	line-height: 30px;
}
h5 {
	margin-bottom: 10px;
	font-size: 18px;
	line-height: 28px;
}
h6 {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 26px;
}

p {
	margin: 0;
}

b,
strong {
	font-weight: 500;
}

small {
	font-size: 14px;
	line-height: 24px;
}

a {
	text-decoration: none;
	color: inherit;
}

/* Forms */
::placeholder {
	color: var(--text);
}

input,
textarea,
select {
	width: calc(100% - 40px);
	margin-bottom: 16px;
	padding: 18px 20px;
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 4px;
	background-clip: padding-box;
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	accent-color: var(--secondary);
}

select {
	width: 100%;
}
option:selected,
option:hover {
	background-color: var(--secondary);
}
option:checked {
	background-color: var(--primary);
	color: var(--headline);
}

/* CF7 */
.wpcf7-list-item {
	margin-left: 0;
}
.wpcf7-not-valid-tip {
	margin-top: -60px;
	position: relative;
	right: 8px;
	float: right;
	font-size: 12px;
	z-index: 2;
}

/* Buttons */
button {
	appearance: none;
	padding: 0;
	border: none;
	background-color: transparent;
	background-clip: padding-box;
	cursor: pointer;
}

.btn,
input[type="button"],
input[type="submit"] {
	width: auto;
	padding: 9px 16px;
	font-weight: 500;
	border: 1px solid var(--headline);
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.3s linear, color 0.3s linear;
}
input[type="submit"] {
	margin-bottom: 0;
}
.btn,
input[type="button"]:hover,
input[type="submit"]:hover {
	background-color: var(--headline);
	color: var(--white);
}
.btn:hover,
input[type="button"],
input[type="submit"] {
	background-color: transparent;
	color: var(--headline);	
}

/* 2 - FLEXBOX GRID */

html {
	scroll-behavior: smooth;
}

section {
	max-width: 100vw;
	overflow: hidden;
}
section:nth-child(odd) {
	background-color: var(--white);
}
section:nth-child(odd) .bg {
	background-color: var(--background);
}
section:nth-child(even) {
	background-color: var(--background);
}
section:nth-child(even) .bg {
	background-color: var(--white);
}

/* Dark mode */
.dark {
	background-color: var(--primary);
}

/* Layout */
.layout:last-child {
	margin-bottom: 60px;
}
.layout > div > div:first-child {
	margin-top: 60px;
}

/* Grid */
.grid {
	width: calc(100vw - (var(--grid-padding) * 2));
	max-width: calc(var(--grid-width) - var(--grid-padding));
	margin: 0 auto;
	padding: 0 var(--grid-padding);
	position: relative;
}
section:first-child > .grid:first-child {
	margin-top: 60px;
}
.full {
	max-width: 100vw;
	padding: 0 var(--grid-padding);
	position: relative;
}

/* Flex */
.flex-col {
	display: flex;
	flex-direction: column;
}
.flex-row {
	display: flex;
	flex-direction: row;
}

/* Grid columns */
.col-grid {
	margin-left: -15px;
	margin-right: -15px;
	flex-wrap: wrap;
}
.col-grid > * {
	width: calc(100% - 30px);
	margin: 0 15px 20px;
}
.col-grid > .col-5 {
	width: calc(50% - 30px);
}
.col-grid > .col-6 {
	width: calc(33.33% - 30px);
}

.col-gap {
	margin-left: -25px;
	margin-right: -25px;
	flex-wrap: wrap;
}
.col-gap > * {
	width: calc(100% - 50px);
	margin: 0 25px;
}

/* 3 - GENERAL PARTS */

/* Menu */
.menu, .sub-menu {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	list-style: none;
}
.menu li {
	margin-bottom: 24px;
}
.menu a {
	font-weight: 500;
	transition: color 0.3s linear;
}
.menu a:hover {
	text-decoration: underline;
}
.menu li.menu-item-has-children {
	position: relative;
}
.menu li.menu-item-has-children:after {
	content: "";
    width: 5px;
    height: 5px;
    display: block;
    position: absolute;
    top: 6px;
    right: 6px;
    border-width: 2px 2px 0 0;
    border-style: solid;
    transform: rotate(135deg);
    transition: border-color 0.3s linear;
}
.menu li:hover > .sub-menu {
	display: flex;
}
.sub-menu {
	display: none;
	padding: 12px 12px 0;
}
.sub-menu li {
	margin-bottom: 12px;
}

/* Ikona */
.ikona {
	width: 32px;
	height: 32px;
	margin-right: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--white);
	border-radius: 100%;
}
.ikona svg {
	width: 18px;
	height: 18px;
	object-fit: contain;
}
.ikona svg path {
	stroke: var(--headline);
	stroke-width: 1.5;
}

/* Header */
header {
	width: 100%;
	padding: 16px 0;
	position: fixed;
	z-index: 9;
}
header a {
	font-size: 14px;
	font-weight: 500;
}
header .flex-row {
	justify-content: space-between;
	align-items: center;
}
@media (max-width: 1365px) {
	header .navigace .flex-row {
		font-size: 0;
	}	
}
@media (max-width: 1023px) {
	header nav .menu {
		width: calc(100% - 40px);
		padding: 20px;
		display: none;
		position: absolute;
		top: 56px;
		left: 0;
		background-color: var(--primary);
		z-index: 9;
	}
}

/* Footer */
footer {
	padding-top: 100px;
	padding-bottom: 20px;
}
footer .col-gap > * {
	margin-bottom: 60px
}
footer .logo {
	margin-bottom: 20px;
	display: block;
}
footer .logo img {
	max-width: 100px;
	height: auto;
}
footer .copyright {
	padding-top: 24px;
	font-family: 'Antiga', serif;
	color: var(--headline);
    text-shadow: 0 0 1px var(--headline);
	text-align: center;
}

/* Picture */
picture {
	display: block;
	line-height: 0;
}

/* 4 - TEMPLATE PARTS */

/* Galerie */
.galerie {
	width: calc(100% - 15px);
	display: grid;
	grid-template-columns: 40% 60%;
	grid-auto-flow: dense;
	row-gap: 10px;
	column-gap: 15px;
}
.galerie figure {
	width: 100%;
	height: 100%;
	margin: 0;
}
.galerie figure:nth-child(4n+1) {
	grid-column: 1;
	grid-row: span 7;
}
.galerie figure:nth-child(4n+2) {
	grid-column: 2;
	grid-row: span 4;
}
.galerie figure:nth-child(4n+3) {
	grid-column: 1;
	grid-row: span 3;
}
.galerie figure:nth-child(4n+4) {
	grid-column: 2;
	grid-row: span 6;
}
.galerie figure:nth-child(4n+4) img {
	aspect-ratio: 1.5 / 1;
}
.galerie picture {
	height: 100%;
	display: block;
	line-height: 0;
}
.galerie img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 20% 80%;
	border-radius: 10px;
}

/* Logo */
.logo svg {
	width: auto;
	max-height: 40px;
	object-fit: contain;
}

/* Mapa */
.mapa iframe {
	border-radius: 10px;
}

/* Obrazek */
.obrazek {
	position: relative;
}
.obrazek img {
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 10px;
	aspect-ratio: 2 / 1;
}
.col-0 .obrazek img {
	margin: 0 auto;
}

/* Prispevky */
.prispevky .flex-row {
	justify-content: center;
}
.prispevky a {
	border: 1px solid transparent;
	border-radius: 10px;
	transition: border-color 0.3s ease;
}
.prispevky a:hover {
	border-color: var(--primary);
}
.prispevky a > * {
	padding: 20px;
}
.prispevky a img {
	width: 100%;
	height: auto;
	margin-bottom: 16px;
	display: block;
	object-fit: cover;
	aspect-ratio: 1.5 / 1;
	border-radius: 10px;
}

/* Slider */
.slider.flexslider {
	margin: 0;
	background-color: transparent;
	border: none;
	border-radius: 0;
}
.slider.flexslider .flex-control-nav {
	bottom: 12px;
	z-index: 2;
}
.slider.flexslider .flex-control-paging li a {
	background-color: var(--text);
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}
.slider.flexslider .flex-control-paging li a.flex-active {
	background-color: var(--headline);
}

/* Socials */
.socials {
	align-items: center;
}
.socials a + a {
	margin-left: 8px;
}

/* Text */
.text + div {
	margin-top: 30px;
}
.text a {
	text-decoration: underline;
}
.text p + p {
	margin-top: 16px;
}
.text ul {
	margin-top: 30px;
	margin-bottom: 0;
	padding-left: 20px;
}
.text ul li + li {
	margin-top: 16px;
}

/* Titulek */
.titulek {
	margin-bottom: 16px;
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--primary);
}

/* Tlacitka */
.tlacitka {
	margin-bottom: 36px;
	flex-wrap: wrap;
	gap: 16px;
}
.tlacitka.left {
	justify-content: flex-start;
}
.tlacitka.center {
	justify-content: center;
}
.tlacitka.right {
	justify-content: flex-end;
}

/* 5 - MEDIA */

@media (min-width: 768px) {
	.col-0 .col-3 {
		width: calc(33.33% - 30px);
	}
	.col-0 .col-4 {
		width: calc(50% - 30px);
	}
	.col-0 .col-5 {
		width: calc(33.33% - 30px);
	}
	.col-gap > .col-4 {
		width: calc(50% - 50px);
	}
}

@media (min-width: 1024px) {
	h1 {
		margin-bottom: 32px;
		font-size: 65px;
		line-height: 76px;
	}
	h2 {
		margin-bottom: 26px;
		font-size: 46px;
		line-height: 57px;
	}
	h3 {
		font-size: 28px;
		line-height: 38px;
	}
	.btn,
	input[type="button"],
	input[type="submit"] {
		padding: 17px 32px;
	}
	.col-gap {
		flex-wrap: nowrap;
	}
	.col-gap > .col-1 {
		width: calc(60% - 50px);
	}
	.col-gap > .col-2 {
		width: calc(50% - 50px);
	}
	.col-gap > .col-3 {
		width: calc(40% - 50px);
	}
	.col-gap > .col-4 {
		width: calc(25% - 50px);
	}
	.col-0 .col-2 {
		width: calc(50% - 30px);
	}
	.col-0 .col-3 {
		width: calc(33.33% - 30px);
	}
	.col-0 .col-4 {
		width: calc(25% - 30px);
	}
	.col-0 .col-5 {
		width: calc(20% - 30px);
	}
	.col-1 .col-4,
	.col-2 .col-4 {
		width: calc(50% - 30px);
	}
	.col-1 .col-5,
	.col-2 .col-5 {
		width: calc(33.33% - 30px);
	}
	#burger {
		display: none;
	}
	header {
		padding: 0;
	}
	header nav {
		margin-right: 24px;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	header .menu {
		flex-direction: row;
	}
	header .menu > li {
		margin-left: 24px;
		margin-bottom: 0;
		padding: 28px 0;
	}
	header .menu li.menu-item-has-children {
		padding-right: 20px;
	}
	header .menu li.menu-item-has-children:after {
		top: 38px;
	}
	header .sub-menu {
		margin-top: 12px;
		margin-left: -12px;
		background-color: var(--white);
		position: absolute;
		border-radius: 10px;
		box-shadow: var(--shadow);
		z-index: 9;
	}
	header .sub-menu li {
		white-space: nowrap;
	}
	.layout-2 > div > div.formular:first-child {
		margin-top: 143px;
	}
}

@media (min-width: 1366px) {
	.layout > div > div:first-child {
		margin-top: 120px;
	}
	.layout:last-child {
		margin-bottom: 120px;
	}
	.full {
		margin-left: calc(((100vw - var(--grid-width)) / 2 ) - var(--grid-padding));
	}
	header .flex-row + .flex-row {
		margin-left: 16px;
	}
	header .full {
		margin-right: 40px;
	}
	header .menu > li {
		padding: 32px 0;
	}
	header .menu li.menu-item-has-children:after {
		top: 56px;
	}
	.layout-2 > div > div.formular:first-child {
		margin-top: 203px;
	}
	.galerie {
		width: calc(100% - 30px);
		row-gap: 20px;
		column-gap: 30px;
	}
	.logo svg {
		max-height: 60px;
	}
	.text + div {
		margin-top: 36px;
	}
}

/* 6 - ANIMATIONS */

/* Fade-in */
.fade-in-on-scroll {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-on-scroll.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Keyframes */
@keyframes pulse {
	from { transform: scale(1.05); }
	to   { transform: scale(1); }
}
