/*
Theme Name: Kavárenský Masterclass
Theme URI: https://www.instagram.com/tomasqprochazka/
Description: Šablona pro Kavárenský Masterclass, kde Tom – nejkrásnější, nejchytřejší a nejvychillovanější barista – promění každý šálek na malé umělecké dílo a každou přednášku na zenový zážitek.
Author: UXCode
Author URI: https://uxcode.cz
Version: 1.0.0
Text Domain: qmt
*/


body, html {
	padding: 0;
	margin: 0;
}

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

body{
	--bg:        var(--light-bg, #ECECEC);
	--text:      var(--light-text, #1E1E1E);
	--highlight: var(--light-highlight, #ED1C24);
}

body[data-scheme='dark']{
	--bg:        var(--dark-bg, #ECECEC);
	--text:      var(--dark-text, #1E1E1E);
	--highlight: var(--dark-highlight, #ED1C24);
}

body {
	background-color: var(--bg);
	color: var(--text);

	font-family:  "aktiv-grotesk", system-ui, -apple-system, Arial, sans-serif;
	font-size: 18px;
	line-height: 23px;
}

body[data-scheme]{
	&,
	#header {
		transition: color .3s, background-color .3s, transform .3s;
	}
}

.container{
	@media (max-width: 999px) {
		padding: 0 20px;
	}
	@media (min-width: 1000px) and (max-width: 1511px) {
		padding: 0 56px;
	}
	@media (min-width: 1512px) {
		padding-left: calc( 50vw - 700px );
		padding-right: calc( 50vw - 700px );
	}
}

#header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;

	z-index: 9999;
	display: grid;
	background-color: var(--bg);
	transform: translateY(0);

	&.hidden {
        transform: translateY(-100%);
    }

	@media (max-width: 999px) {
		grid-template-columns: 31px 1fr 68px;
	}
	@media (min-width: 1000px) {
		grid-template-columns: 1fr 1fr 1fr;
	}

	@media (max-width: 999px) {
		padding-top: 20px;
		padding-bottom: 20px;
	}
	@media (min-width: 1000px) {
		padding-top: 35px;
		padding-bottom: 35px;
	}

	.left_logo {
		text-align: left;
		align-self: end;
		max-height: 35px;
		overflow: hidden;

		.image{
			display: inline-block;
			background-color: var(--text);
			@media (max-width: 999px) {
				width: 31px;
				height: 25px;
				mask-size: 31px 25px !important;
			}
			@media (min-width: 1000px) {
				width: 37px;
				height: 30px;
				mask-size: 37px 30px;
			}
		}
	}

	.center_logo {
		text-align: center;

		.image{
			display: inline-block;
			background-color: var(--text);
		}
		@media (max-width: 999px) {
			align-self: center;
			.image.desktop {
				display: none;
			}
		}
		@media (min-width: 1000px) {
			align-self: start;
			.image.mobile {
				display: none;
			}
		}
	}
}

#color_switcher {
	text-align: right;
	max-height: 35px;
	overflow: hidden;
	transition: all .3s;

	&:hover {
		--text: var(--highlight);
	}

	.button {
		display: inline-grid;
		position: relative;
		line-height: 31px;
		height: 35px;
		border-radius: 17px;
		letter-spacing: -.2px;

		border: 2px solid var(--text);
		background-color: var(--text);
		color: var(--bg);

		transition: all .3s;

		.scheme {
			display: block;
			min-width: 31px;
			height: 31px;
			overflow: hidden;
			text-align: center;
			transition: all .3s;

			div:first-child {
				display: inline-block;
			}
			div:last-child {
				display: inline-block;
			}
		}

		@media (max-width: 999px) {
			width: 68px;
			grid-template-columns: 32px 32px;

			.scheme div:last-child {
				display: none;
			}
		}

		@media (min-width: 1000px) {
			width: 110px;
		}
	}

	label {
		position: absolute;
		inset: 0;
		display: block;
		cursor: pointer;
	}
}

#color_switcher .button::after {
    content: "";
    display: table;
    clear: both;
}
body:not([data-scheme='dark']) #header #color_switcher {
	label#color_scheme_light {
		display: none;
	}

	.button {
		@media (min-width: 1000px) {
			grid-template-columns: 74px 32px;
		}
	}
	.dark{
		border-radius: 50%;
		color: var(--text);
		background-color: var(--bg);
		div:last-child {
			font-size: 0;
		}
	}
	.light{
		padding-left: 6px;
	}
}


body[data-scheme='dark'] #header #color_switcher {
	label#color_scheme_dark {
		display: none;
	}

	.button {
		@media (min-width: 1000px) {
			grid-template-columns: 32px 74px;
		}
	}
	.light{
		border-radius: 50%;
		color: var(--text);
		background-color: var(--bg);
		div:last-child {
			font-size: 0;
		}
	}
	.dark{
		padding-right: 11px;
	}
}

#footer {
	display: grid;

	.social {
		a {
			display: inline-block;
			font-size: 0;
			width: 20px;
			height: 20px;
			background-color: var(--text);
			transition: transform .3s;

			&.facebook{
				mask: url('data:image/svg+xml,<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.0314 -0.00146484C4.49346 -0.00146484 0 4.492 0 10.03C0 14.7337 3.23866 18.6804 7.60594 19.767V13.1004H5.53797V10.037H7.60594V8.71908C7.60594 5.30517 9.14816 3.72089 12.499 3.72089C13.1369 3.72089 14.2305 3.84707 14.6791 3.97325V6.74924C14.4408 6.7212 14.0342 6.71419 13.5225 6.71419C11.8751 6.71419 11.2442 7.33809 11.2442 8.95742V10.044H14.5179L13.9571 13.1074H11.2442V19.9983C16.2073 19.3954 20.0558 15.1684 20.0558 10.044C20.0558 4.492 15.5694 -0.00146484 10.0314 -0.00146484Z" fill="%231E1E1E"/></svg>');
			}
			&.instagram{
				mask: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.97987 0.000864662C12.6928 -0.00614464 13.0363 0.000618576 14.1019 0.0496928C15.1676 0.098771 15.8897 0.267203 16.5277 0.512583C17.1866 0.764942 17.7474 1.10829 18.3012 1.662C18.862 2.21581 19.199 2.76965 19.4584 3.4286C19.7108 4.06654 19.879 4.78886 19.9281 5.85438C19.9842 6.92004 19.9984 7.2642 19.9984 9.97743C20.0054 12.6903 19.9977 13.0339 19.9486 14.0995C19.8995 15.1651 19.7321 15.8873 19.4867 16.5253C19.2343 17.1843 18.8901 17.7449 18.3363 18.2987C17.7825 18.8596 17.2287 19.1965 16.5697 19.4559C15.9317 19.7013 15.2095 19.8766 14.1439 19.9257C13.0784 19.9818 12.7348 19.996 10.0219 19.996C7.30863 20.003 6.96448 19.9953 5.89881 19.9462C4.83334 19.8971 4.11096 19.7296 3.47303 19.4843C2.81407 19.2319 2.25342 18.8877 1.6996 18.3339C1.13878 17.78 0.801758 17.2263 0.542369 16.5673C0.290019 15.9293 0.121714 15.207 0.0726429 14.1415C0.0165612 13.0759 0.00330794 12.7323 0.00330694 10.0194C-0.00370399 7.30619 0.00305859 6.96203 0.0521351 5.89637C0.101232 4.8309 0.269669 4.10852 0.515026 3.47059C0.767399 2.81175 1.11071 2.25089 1.66444 1.69715C2.21828 1.1363 2.77204 0.799328 3.43104 0.539927C4.06899 0.287552 4.79129 0.11929 5.85682 0.0702006C6.92248 0.0141132 7.26664 0.000864662 9.97987 0.000864662ZM9.99354 1.80262C7.32259 1.80262 7.0069 1.81606 5.95546 1.86512C4.98094 1.9142 4.4476 2.07549 4.09706 2.21571C3.62752 2.39793 3.29805 2.61536 2.94764 2.96571C2.60411 3.31625 2.38676 3.64637 2.20448 4.1161C2.07129 4.47362 1.90965 4.99929 1.86756 5.97352C1.81849 7.02516 1.81874 7.34142 1.81874 10.0126C1.81874 12.6833 1.83314 12.9991 1.88221 14.0507C1.9313 15.025 2.0926 15.5576 2.2328 15.9081C2.41508 16.3778 2.63225 16.7079 2.9828 17.0585C3.33323 17.4018 3.66262 17.6194 4.13221 17.8016C4.48977 17.9349 5.01609 18.0955 5.99061 18.1376C7.04199 18.1866 7.35781 18.1864 10.0287 18.1864C12.6997 18.1864 13.0152 18.173 14.0668 18.1239C15.034 18.0749 15.5668 17.9135 15.9174 17.7733C16.3871 17.591 16.7172 17.3739 17.0678 17.0233C17.4113 16.6728 17.6286 16.3427 17.8109 15.8729C17.9441 15.5154 18.1048 14.9896 18.1469 14.0155L18.1547 14.0087C18.2038 12.957 18.2035 12.6408 18.2035 9.96961C18.2035 7.29886 18.1891 6.98311 18.14 5.93153C18.0909 4.96417 17.9296 4.43146 17.7894 4.08094C17.6072 3.61131 17.3899 3.282 17.0394 2.93153C16.689 2.58109 16.3595 2.37061 15.89 2.18836C15.5325 2.05516 15.0061 1.89352 14.0316 1.85145C12.9801 1.80238 12.6645 1.80262 9.99354 1.80262ZM10.0072 4.85926C12.8395 4.85939 15.1459 7.15193 15.1459 9.98426C15.1457 12.8165 12.8532 15.1229 10.0209 15.1229C7.18852 15.1299 4.88221 12.8371 4.88221 10.0048C4.8753 7.17244 7.16802 4.8661 10.0004 4.8661L10.0072 4.85926ZM10.0004 6.66786C8.16358 6.66786 6.67723 8.16799 6.67713 10.0048C6.67713 11.8416 8.17719 13.328 10.014 13.328C11.8508 13.328 13.3372 11.8279 13.3373 9.9911C13.3373 8.15437 11.8371 6.66808 10.0004 6.66786ZM15.3305 3.45008C15.9894 3.45022 16.5287 3.99036 16.5287 4.6493C16.5286 5.30819 15.9893 5.84838 15.3305 5.84852C14.6715 5.84852 14.1313 5.30827 14.1312 4.6493C14.1312 3.99028 14.6714 3.45008 15.3305 3.45008Z" fill="%231E1E1E"/></svg>');
			}
			&.linkedin{
				mask: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.5261 -0.00146484H1.47367C0.65964 -0.00146484 0 0.658176 0 1.4722V18.5246C0 19.3387 0.65964 19.9983 1.47367 19.9983H18.5261C19.3401 19.9983 19.9998 19.3387 19.9998 18.5246V1.4722C20.0068 0.658176 19.3401 -0.00146484 18.5261 -0.00146484ZM5.95782 17.044H2.94734V7.48617H5.95782V17.044ZM4.45609 6.15987C3.50171 6.15987 2.72277 5.43005 2.72277 4.43357C2.72277 3.43709 3.50171 2.70728 4.45609 2.70728C5.41046 2.70728 6.1894 3.43709 6.1894 4.43357C6.1894 5.43005 5.41046 6.15987 4.45609 6.15987ZM17.0524 17.051H14.0419V11.83C14.0419 10.2932 13.3893 9.81596 12.5402 9.81596C11.649 9.81596 10.7718 10.4896 10.7718 11.8721V17.051H7.76131V7.49318H10.6525V8.81948H10.6876C10.9753 8.23002 11.9928 7.22652 13.5437 7.22652C15.2209 7.22652 17.0384 8.223 17.0384 11.1423V17.051H17.0524Z" fill="%231E1E1E"/></svg>');
			}
			&.email{
				mask: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.5261 -0.00146484H1.47367C0.659646 -0.00146484 0 0.658176 0 1.4722V18.5246C0 19.3387 0.659646 19.9983 1.47367 19.9983H18.5261C19.3401 19.9983 19.9998 19.3387 19.9998 18.5246V1.4722C19.9998 0.658176 19.3401 -0.00146484 18.5261 -0.00146484ZM18.2033 1.80202V3.88621C18.2033 3.88621 18.1963 3.88621 18.1893 3.89323L9.99988 12.0826L1.81051 3.89323C1.81051 3.89323 1.80349 3.89323 1.79647 3.88621V1.79501H18.2033V1.80202ZM1.79647 18.2018V6.42653L9.36129 13.9914C9.52971 14.1598 9.76129 14.251 9.99988 14.251C10.2385 14.251 10.4701 14.1598 10.6385 13.9843L18.2033 6.41951V18.1948H1.79647V18.2018Z" fill="%231E1E1E"/></svg>');
			}

			&:hover {
				background-color: var(--highlight);
				transform: scale(1.3);
			}
		}
	}

	@media (max-width: 999px) {
		grid-template-columns: 1fr;
		gap: 25px;
		padding-top: 130px;
		padding-bottom: 35px;
		.copy {
			order: 2;
			text-align: center;
			font-size: 13px;
			line-height: 17px;
		}
		.social {
			text-align: center;
			a {
				margin: 0 10px;
			}
		}
	}
	@media (min-width: 1000px) {
		grid-template-columns: 1fr 1fr;
		padding-top: 65px;
		padding-bottom: 35px;
		.copy {
			font-size: 15px;
			line-height: 20px;
			padding-top: 10px;
		}
		.social {
			text-align: right;
			font-size: 15px;
			line-height: 19px;
			a{
				margin-left: 20px;
			}
		}
	}
}