/* CSS
Jindrich Sladek (hes@digisvet.cz)
Digitalni svet s.r.o. (http://digisvet.cz) */

html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-size: 100%;
	background: black;
	box-sizing: border-box;
	scroll-behavior: smooth;
	overflow-x:hidden;
	overflow-y:auto;
	-webkit-text-size-adjust:100%;
}

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

body {
	position: relative;
	z-index: 0;
	background: transparent; 
	max-width: 75em;
	margin: 0 auto;
	padding: 1rem 2rem;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	line-height: 1.5;
	color: white;
	overflow-x:hidden;
	overflow-y:auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}


/* –––––––– background –––––––– */

body::before,
body::after {
	content: "";
	position: fixed;
	inset: 0;
	background-position: center;
	background-size: cover;
}

body::before {
	background-image: url("images/analog-stream.jpg");
	z-index: -2;
}

body::after {
	background-image: url("images/digital-stream.jpg");
	z-index: -1;
	opacity: var(--bg-opacity, 0);
}

@supports (animation-timeline: scroll()) {
	body::after {
		animation: fadeIn linear forwards;
		animation-timeline: scroll();
	}
	@keyframes fadeIn {
		from { opacity: 0; }
		to { opacity: 1; }
	}
}


/* –––––––– typography –––––––– */

img, picture, video {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3 {
	line-height: 1;
	margin: 0 0 0.25em;
	font-weight: bold;
	text-wrap: balance;
}

h1 { font-size: 2.75rem; font-size: clamp(1.75rem, 5vw, 2.75rem);}
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
	font-size: 1rem;
	text-wrap: pretty;
	margin: 0 0 .5em;
}

p:last-child { margin: 0; }

.strong {
	/*font-size: clamp(1rem, 3vw, 1.25rem);*/
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: bold;
	text-wrap: balance;
}

.stronger {
	font-size: 1.5rem;
	font-weight: bold;
	text-wrap: balance;
}

.bigger { font-size: 1.25rem; }
.smaller { font-size: .875rem; }

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

.button {
	display: inline-block;
	line-height: 1;
	background: white;
	color: black;
	padding: 1rem;
	border-radius: .5rem;
	margin: 0;
	/*font-weight: 600;
	letter-spacing: .01em;*/
}

.secondary {
	padding: .5rem .75rem .5rem .5rem;
	margin: .5rem .5rem 1rem 0;
	background: rgba(0,0,0,.5);
	border: 1px solid rgba(255,255,255,.4);
	color: white;
}

.secondary:hover { background: rgba(255,255,255,.2); }

.button.icon{
	display:inline-flex;
	align-items:center;
	gap:.25rem;
}

.icon-svg{
	width:2em;
	height:2em;
	flex:0 0 auto;
	color:currentColor;
}

/* aby se SVG neztloustlo při hover animacích apod. */
.button.icon .icon-svg path{
	vector-effect:non-scaling-stroke;
}


/* –––––––– hero & band –––––––– */

.hero, .band {
	position:relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas: "text image";
	align-items: center;
	min-height: 50vh;
	/*min-height: 50svh;*/
	gap: 2rem; /*clamp(1.5rem, 3vw, 2.5rem)*/
	margin-bottom: 1rem;
}

.hero p, .band p {
	line-height:1.25;
}

.hero { padding-top:5em; }

.band {
	/*grid-template-columns: 1.1fr .9fr;*/
	grid-template-areas: "image text";
}

.logo {
	position: absolute;
	top: 1rem;
	height: 3em;
	z-index: 5;
}

.logo.xy {
	left: 1rem;
}

.logo.imoni {
	top: .5rem;
	right: 1rem;
	height: 4.5em;
}

.hero section, .band section {
	grid-area: text;
	background: rgba(0, 0, 0, .25);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding: 1rem;
	border-radius: 1rem;
}

.chameleon {
	grid-area: image;
	max-width:none;
	width: 120%;
	margin-left: -3rem;
	margin-right: -3rem;
}

.hero p, .band p {
	text-wrap: balance;
}

.cta {
	margin-top:.5rem;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: color .2s ease, transform .2s ease;
}

.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;

	/* duhový pás, který se bude posouvat */
	background: linear-gradient(90deg,#ff004c,#ff8a00,#ffee00,#00ff6a,#00c3ff,#7a00ff,#ff00c8,#ff004c);
	background-size: 300% 100%;
	background-position: 0% 50%;

	opacity: .3;
	filter: blur(6px);
	transition: opacity .2s ease;
	animation: rainbow-move 2.5s linear infinite;

}

.cta:hover::before {
	opacity: .7;
}

@keyframes rainbow-move {
	0% { background-position: 0% 50%; }
	100% { background-position: 300% 50%; }
}

/* respektuje uživatele bez animací */
@media (prefers-reduced-motion: reduce) {
	.cta::before { animation: none; }
}


/* –––––––– main layout –––––––– */

main {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: auto repeat(3, 1fr);
	gap: 2rem; /*clamp(1.5rem, 3vw, 2.5rem);*/
}

main > section {
	display: contents;
}

main h2, .clients {
	background: rgba(0 0,0,.45);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 1rem;
	border-radius: 1rem;
}

main h2 {
	justify-self: start;
	margin: 0;
	line-height: 1;
}

.online h2 {
	justify-self: end;
	background: linear-gradient(90deg,#00aeef,#812990,#ec008c,#fff200,#00aeef);
	background-size: 200% auto;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	animation: rainbow 6s linear infinite;
}

@keyframes rainbow {
	to {
		background-position: 200% center;
	}
}

/* respektuje uživatele bez animací */
@media (prefers-reduced-motion: reduce) {
	.online h2 { animation: none; background-size: 100% auto; }
}

.clients {
	margin: 2rem 0;
	background: rgba(0, 0, 0, .5);
}

/* –––––––– main article –––––––– */

article {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 1.25rem;
	background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,0.5));
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

article img {
	order: -1;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

article h3,
article p {
	margin: 0;
	padding: 1.25rem 1.5rem;
}

article h3 { padding-bottom: 0rem; }

article p { padding-top: .5rem; }


/* –––––––– footer –––––––– */

footer { padding: 1rem; }
footer p {text-align: center;}


/* –––––––– mobile –––––––– */

@media (max-width: 600px) {
	body { padding: .5rem 1rem; }

	.logo { height: auto; }

	.logo.xy { width:25% }
	
	.logo.imoni { width:45%; top: .45rem; }

	.hero, .band {
		place-content: center;
		grid-template-columns: 1fr;
		grid-template-areas: "image" "text";
		gap: 1rem;
		min-height: 100vh;
		/*min-height: 100svh;*/
	}

	.hero { padding-top:2em; }

	.online h2 { justify-self: start; }

	.band {
		min-height: 60vh;
		/*min-height: 60svh;*/
	}

	.chameleon {
		transform: translateY(2rem);
		z-index: 2;
	}

	.band .chameleon {
		transform: translateY(3rem);
	}

	main {
		display: grid;
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		grid-template-rows: auto;
		/*gap: clamp(2rem, 5vw, 4rem);*/
	}

	main > section {
		display: grid;
		gap: clamp(1.5rem, 3vw, 2.5rem);
	}
}