/*-----------------------------------------------------------------------------------

	Klient:			T&F Autoservis, Velvary
	Tier:			T1 Prezentační web
	Postavil:		Riverlab (riverlab.cz)
	Verze:			0.1 (koncept)
	Dodáno:			Listopad 2026

-----------------------------------------------------------------------------------

	OBSAH

	01. Základ a pomocné třídy
	02. Tlačítka a odkazy
	03. Nadpisy sekcí

-----------------------------------------------------------------------------------*/


/*-----------------------------------------------------------------------------------
	ZAČÁTEK: 01. Základ a pomocné třídy
-----------------------------------------------------------------------------------*/

/* Posuvník stránky skrytý (rozhodnutí Riverlabu), stránka se dál posouvá kolečkem i prstem. */
html {
	scrollbar-width: none;
}

html::-webkit-scrollbar {
	display: none;
}

body {
	overflow-x: clip;                    /* clip, ne hidden: hidden by rozbil position: sticky v úvodu a deníku */
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.kontejner {
	width: 100%;
	max-width: var(--max-sirka);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.preskocit {
	position: absolute;
	left: var(--gutter);
	top: -4rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--color-dark);
	color: var(--color-on-dark);
	border-radius: var(--radius);
}

.preskocit:focus {
	top: 0.75rem;
	color: var(--color-on-dark);
}

/* Místo, které doplní klient. Žluté, ať ho nikdo nepřehlédne a nepošle web ven s ním. */
.doplnit {
	display: inline;
	padding: 0.05em 0.3em;
	background: var(--color-placeholder);
	color: var(--c-grafit-950);
	font-size: 0.85em;
	font-weight: 500;
	border-radius: 2px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/*-----------------------------------------------------------------------------------
	KONEC: 01. Základ a pomocné třídy
-----------------------------------------------------------------------------------*/


/*-----------------------------------------------------------------------------------
	ZAČÁTEK: 02. Tlačítka a odkazy
-----------------------------------------------------------------------------------*/

/* Tlačítko: vlevo ikona ve čtverečku, nad číslem malý popisek, číslo velké.
   Při najetí se zleva nalije grafit (::before) a telefon v ikoně krátce zazvoní. */
.tlacitko {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	min-height: 4rem;
	padding: 0.5rem 1.5rem;
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius);
	box-shadow: 0 0.75rem 1.5rem -0.75rem var(--color-shadow);
	transition: color var(--stredne) var(--ease-out), transform var(--rychle) var(--ease-out);
}

.tlacitko:has(.tlacitko__ikona) {
	padding-left: 1rem;
}

.tlacitko::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--color-dark);
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform var(--stredne) var(--ease-out);
}

.tlacitko:active {
	transform: scale(0.96);
}

/* Ikona stojí sama, od textu ji dělí tenká svislá čára u popisku. */
.tlacitko__ikona {
	display: grid;
	place-items: center;
	flex: none;
	padding-left: 0.25rem;
}

.tlacitko__ikona + .tlacitko__popis {
	padding-left: 0.875rem;
	border-left: 1px solid rgb(255 255 255 / 0.35);
}

.tlacitko--svetle {
	background: var(--c-bila);
	color: var(--color-accent);
}

.tlacitko--svetle .tlacitko__popis {
	border-left-color: rgb(200 30 40 / 0.3);
}

/* Vedlejší tlačítko na červené: jen obrys, při najetí se nalije bílá. */
.tlacitko--obrys {
	background: transparent;
	color: var(--color-on-accent);
	box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.7);
}

.tlacitko--obrys::before {
	background: var(--c-bila);
}

.tlacitko .sipka {
	transition: transform var(--rychle) var(--ease-out);
}

@media (hover: hover) {
	.tlacitko:hover {
		color: var(--color-on-dark);
	}

	.tlacitko:hover::before {
		transform: scaleX(1);
		transform-origin: 0 50%;
	}

	.tlacitko--obrys:hover {
		color: var(--color-accent);
	}

	.tlacitko:hover .tlacitko__popis {
		border-left-color: rgb(255 255 255 / 0.35);
	}

	.tlacitko:hover .sipka {
		transform: translateX(3px);
	}

	.tlacitko:hover .sipka--dolu {
		transform: translateY(3px);
	}

	.tlacitko:hover .tlacitko__ikona svg {
		animation: zvoni 0.6s var(--ease-out);
	}
}

@keyframes zvoni {
	20% { transform: rotate(-14deg); }
	40% { transform: rotate(12deg); }
	60% { transform: rotate(-8deg); }
	80% { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
	.tlacitko:active {
		transform: none;
	}

	.tlacitko:hover .tlacitko__ikona svg {
		animation: none;
	}
}

/* Na úzkém telefonu se obě tlačítka úvodu vejdou vedle sebe. */
@media (max-width: 30rem) {
	.tlacitko {
		padding-inline: 0.875rem;
	}

	.tlacitko:has(.tlacitko__ikona) {
		gap: 0.625rem;
		padding-left: 0.625rem;
	}

	.tlacitko__cislo {
		font-size: 1.5rem;
	}
}

.tlacitko__popis {
	display: flex;
	flex-direction: column;
	font-size: var(--step--1);
	line-height: 1.2;
}

.tlacitko__cislo {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

.odkaz-sipka {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 0.5rem;
	font-weight: 600;
	text-decoration: none;
}

.odkaz-sipka .sipka {
	transition: transform var(--rychle) var(--ease-out);
}

.odkaz-sipka:hover .sipka {
	transform: translateX(3px);
}

/*-----------------------------------------------------------------------------------
	KONEC: 02. Tlačítka a odkazy
-----------------------------------------------------------------------------------*/


/*-----------------------------------------------------------------------------------
	ZAČÁTEK: 03. Nadpisy sekcí
-----------------------------------------------------------------------------------*/

.nadpis {
	font-size: var(--step-4);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.005em;
}

/*-----------------------------------------------------------------------------------
	KONEC: 03. Nadpisy sekcí
-----------------------------------------------------------------------------------*/

