/*
 * transkript.eu — anglická prezentace Transkript online s.r.o.
 *
 * Designové tokeny jsou převzaté z theme.json českého WP theme `transkript`
 * (wp.transkript.cz/web/wp-content/themes/transkript/theme.json), aby obě
 * jazykové verze vypadaly jako jeden web. Když se mění paleta tam, změň ji i tady.
 */

:root {
	/* Paleta — shodná s theme.json */
	--lime: #9cd617;
	--lime-dark: #3f5d0a;
	--lime-tint: #f2f8df;
	--ink: #1a1a1a;
	--gray: #555555;
	--surface: #f5f5f0;
	--white: #ffffff;
	--border: #e6e6df;
	--footer-text: #cfcfc7;
	--footer-rule: #3a3a3a;

	/* Rádiusy a stín */
	--radius-s: 10px;
	--radius-m: 16px;
	--radius-l: 24px;
	--shadow-card: 0 12px 32px rgba(26, 26, 26, 0.12);

	/* Šířky obsahu */
	--content: 760px;
	--wide: 1200px;
	--gutter: 1.25rem;

	/* Rozestupy */
	--space-xs: 0.5rem;
	--space-s: 1rem;
	--space-m: 1.5rem;
	--space-l: clamp(2rem, 4vw, 3rem);
	--space-xl: clamp(3rem, 6vw, 5rem);

	/* Typografie */
	--fs-tiny: 0.875rem;
	--fs-small: 0.9375rem;
	--fs-base: 1.125rem;
	--fs-medium: 1.25rem;
	--fs-large: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
	--fs-xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
	--fs-xxl: clamp(2.25rem, 1.9rem + 1.8vw, 3rem);
	--fs-hero: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
}

@font-face {
	font-family: "InterVariable";
	src: url("../fonts/InterVariable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: var(--fs-base);
	line-height: 1.65;
}

/* ---------- Přístupnost ---------- */

/* Cílovka webu často naviguje klávesnicí, focus ring musí být znát. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--lime-dark);
	outline-offset: 2px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	left: var(--space-s);
	top: -4rem;
	z-index: 2000;
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius-s);
	background: var(--ink);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: var(--space-s);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Typografie ---------- */

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--space-s);
	color: var(--ink);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-xxl);
}

h2 {
	font-size: var(--fs-xl);
}

h3 {
	font-size: var(--fs-large);
}

h4 {
	font-size: var(--fs-medium);
}

p,
ul,
ol,
dl {
	margin: 0 0 var(--space-m);
}

p:last-child,
ul:last-child,
ol:last-child {
	margin-bottom: 0;
}

a {
	color: var(--lime-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--ink);
}

strong {
	font-weight: 600;
}

.lead {
	color: var(--gray);
	font-size: var(--fs-medium);
}

.eyebrow {
	margin-bottom: var(--space-xs);
	color: var(--lime-dark);
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.muted {
	color: var(--gray);
}

.center {
	text-align: center;
}

/* ---------- Layout ---------- */

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

.wrap--narrow {
	max-width: calc(var(--content) + 2 * var(--gutter));
}

.section {
	padding-block: var(--space-xl);
}

.section--tight {
	padding-block: var(--space-l);
}

.section--surface {
	background: var(--surface);
}

.section--tint {
	background: var(--lime-tint);
}

.section__intro {
	max-width: 46rem;
	margin-inline: auto;
	margin-bottom: var(--space-l);
	text-align: center;
}

.section__intro p:last-child {
	margin-bottom: 0;
}

/* ---------- Hlavička ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--white);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	padding-block: 0.875rem;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	text-decoration: none;
}

.site-logo img {
	display: block;
	width: 180px;
	max-width: 46vw;
	height: auto;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: var(--fs-small);
	font-weight: 600;
	cursor: pointer;
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--ink);
	font-size: var(--fs-small);
	font-weight: 500;
	text-decoration: none;
}

.site-nav a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--lime);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* Přepínač jazyka — druhá jazyková verze je na jiné doméně, ne na /en/. */
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--gray);
	font-size: var(--fs-tiny);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.lang-switch:hover {
	border-color: var(--lime-dark);
	color: var(--lime-dark);
}

/* ---------- Tlačítka ---------- */

.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--lime-dark);
	border-radius: var(--radius-s);
	background: var(--lime-dark);
	color: var(--white);
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.btn--outline {
	background: transparent;
	color: var(--lime-dark);
}

.btn--outline:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}

.btn--lime {
	border-color: var(--lime);
	background: var(--lime);
	color: var(--ink);
}

.btn--lime:hover {
	border-color: var(--lime-tint);
	background: var(--lime-tint);
	color: var(--ink);
}

.btn--small {
	padding: 0.5rem 1.1rem;
	font-size: var(--fs-small);
	white-space: nowrap;
}

.btns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
}

.btns--center {
	justify-content: center;
}

/* ---------- Hero ---------- */

.hero {
	background: var(--lime-tint);
	padding-block: var(--space-xl);
}

.hero__grid {
	display: grid;
	grid-template-columns: 58fr 42fr;
	gap: var(--space-l);
	align-items: center;
}

.hero h1 {
	font-size: var(--fs-hero);
}

.hero__figure {
	margin: 0;
	padding: var(--space-m);
	border-radius: var(--radius-l);
	background: var(--white);
	box-shadow: var(--shadow-card);
}

.hero__figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Karty ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--space-m);
}

.card {
	display: flex;
	flex-direction: column;
	padding: var(--space-m);
	border-top: 4px solid var(--lime);
	border-radius: var(--radius-m);
	background: var(--surface);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.section--surface .card {
	background: var(--white);
}

.card:hover {
	box-shadow: var(--shadow-card);
	transform: translateY(-3px);
}

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

.card h3 {
	font-size: var(--fs-medium);
}

.card p {
	color: var(--gray);
	font-size: var(--fs-small);
}

.card__more {
	margin-top: auto;
	padding-top: var(--space-s);
	font-size: var(--fs-small);
	font-weight: 600;
}

.card__more a {
	text-decoration: none;
}

.card__more a:hover {
	text-decoration: underline;
}

/* ---------- Kroky (jak to funguje) ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: var(--space-l);
	text-align: center;
}

.step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto var(--space-s);
	border-radius: 50%;
	background: var(--lime);
	color: var(--ink);
	font-size: 1.375rem;
	font-weight: 700;
}

.step h3 {
	font-size: var(--fs-medium);
}

.step p {
	color: var(--gray);
	font-size: var(--fs-small);
}

/* ---------- Čísla / fakta ---------- */

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--space-m);
	margin: 0;
	padding: 0;
}

.fact {
	padding: var(--space-m);
	border-radius: var(--radius-m);
	background: var(--white);
	border: 1px solid var(--border);
}

.fact dt {
	color: var(--gray);
	font-size: var(--fs-small);
	order: 2;
}

.fact dd {
	margin: 0 0 0.25rem;
	color: var(--ink);
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* ---------- Dvousloupcový blok ---------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-l);
	align-items: center;
}

.split--media-first > :first-child {
	order: -1;
}

.split figure {
	margin: 0;
}

.split img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-m);
}

/* ---------- Tmavý panel ---------- */

.panel {
	padding: var(--space-l);
	border-radius: var(--radius-l);
	background: var(--ink);
	color: var(--footer-text);
}

.panel h2,
.panel h3 {
	color: var(--white);
}

.panel .eyebrow {
	color: var(--lime);
}

.panel a:not(.btn) {
	color: var(--lime);
}

.panel a:not(.btn):hover {
	color: var(--white);
}

/* ---------- Seznam s odrážkou v barvě značky ---------- */

.ticks {
	margin: 0 0 var(--space-m);
	padding: 0;
	list-style: none;
}

.ticks li {
	position: relative;
	margin-bottom: 0.75rem;
	padding-left: 2rem;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 1.125rem;
	height: 0.5rem;
	border-left: 3px solid var(--lime-dark);
	border-bottom: 3px solid var(--lime-dark);
	transform: rotate(-45deg);
	border-radius: 1px;
}

.panel .ticks li::before {
	border-color: var(--lime);
}

/* ---------- Logo wall ---------- */

.logos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	gap: var(--space-m);
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5.5rem;
	padding: var(--space-s);
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	background: var(--white);
}

.logos img {
	max-width: 100%;
	max-height: 3.5rem;
	width: auto;
	height: auto;
	/* Loga jsou různě barevná a z různých dob; sjednocení odstíny zklidní. */
	filter: grayscale(100%);
	opacity: 0.75;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.logos li:hover img {
	filter: none;
	opacity: 1;
}

/* ---------- Kontaktní údaje ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: var(--space-l);
}

.contact-card {
	padding: var(--space-m);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
}

.contact-card h3 {
	font-size: var(--fs-medium);
}

.contact-card dl {
	margin: 0;
	font-size: var(--fs-small);
}

.contact-card dt {
	color: var(--gray);
	margin-top: 0.75rem;
}

.contact-card dt:first-child {
	margin-top: 0;
}

.contact-card dd {
	margin: 0;
	font-weight: 600;
}

/* ---------- Video (click-to-load, bez cookies) ---------- */

/* Dokud návštěvník neklikne, neodejde na YouTube žádný požadavek — proto
   na webu není cookie lišta. Po kliknutí se vkládá youtube-nocookie.com. */
.video {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0;
	border: 0;
	padding: 0;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: var(--ink) center / cover no-repeat;
	color: var(--white);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	text-align: center;
	font: inherit;
}

.video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--lime);
	color: var(--ink);
}

.video__play svg {
	width: 1.75rem;
	height: 1.75rem;
	margin-left: 0.25rem;
}

.video__label {
	max-width: 22rem;
	padding-inline: var(--space-s);
	font-size: var(--fs-small);
	color: var(--footer-text);
}

/* ---------- Obsahové stránky ---------- */

.page-header {
	padding-block: var(--space-l) var(--space-m);
	background: var(--lime-tint);
}

.page-header .lead {
	margin-bottom: 0;
}

.breadcrumb {
	margin-bottom: var(--space-s);
	font-size: var(--fs-tiny);
	color: var(--gray);
}

.breadcrumb a {
	color: var(--gray);
}

.prose h2 {
	margin-top: var(--space-l);
}

.prose h3 {
	margin-top: var(--space-m);
}

.prose > :first-child {
	margin-top: 0;
}

.prose ul {
	padding-left: 1.25rem;
}

.prose li {
	margin-bottom: 0.5rem;
}

.note {
	padding: var(--space-m);
	border-left: 4px solid var(--lime);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	background: var(--surface);
	font-size: var(--fs-small);
}

/* ---------- Patička ---------- */

.site-footer {
	padding-block: var(--space-xl) var(--space-l);
	background: var(--ink);
	color: var(--footer-text);
}

.site-footer h2 {
	color: var(--white);
	font-size: var(--fs-medium);
}

.site-footer a {
	color: var(--lime);
}

.site-footer a:hover {
	color: var(--white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 36fr 32fr 32fr;
	gap: var(--space-l);
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-small);
}

.site-footer li {
	margin-bottom: 0.5rem;
}

.site-footer p {
	font-size: var(--fs-small);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	margin-top: var(--space-l);
	padding-top: var(--space-m);
	border-top: 1px solid var(--footer-rule);
	font-size: var(--fs-tiny);
}

.site-footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: var(--fs-tiny);
}

.site-footer__bottom li {
	margin: 0;
}

.social {
	display: flex;
	gap: 0.75rem;
	margin-top: var(--space-s);
	padding: 0;
	list-style: none;
}

.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: #2a2a2a;
	color: var(--white);
}

.social a:hover {
	background: var(--lime);
	color: var(--ink);
}

.social svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: currentColor;
}

/* ---------- Responzivita ---------- */

@media (max-width: 960px) {
	.hero__grid,
	.split,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.hero__figure {
		max-width: 26rem;
		margin-inline: auto;
	}

	.split--media-first > :first-child {
		order: 0;
	}
}

@media (max-width: 800px) {
	.nav-toggle {
		display: inline-flex;
	}

	.header-tools {
		/* Nástroje zůstávají vedle loga, navigace se odsune pod ně na celou šířku. */
		order: 2;
		gap: 0.75rem;
	}

	.site-nav {
		display: none;
		order: 3;
		flex-basis: 100%;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-header__inner {
		/* Logo a nástroje se na úzkém displeji nevejdou na jeden řádek —
		   hlavička je proto dvouřádková a musí zhubnout na výšku, je sticky. */
		flex-wrap: wrap;
		row-gap: 0.5rem;
		padding-block: 0.625rem;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-bottom: var(--space-s);
	}

	.site-nav li + li {
		border-top: 1px solid var(--border);
	}

	.site-nav a {
		display: block;
		padding: 0.75rem 0.25rem;
		font-size: var(--fs-base);
	}

	/* Bez JS (vypnutý skript) zůstane menu trvale rozbalené, ať se na položky dá kliknout. */
	.no-js .site-nav {
		display: block;
	}

	.no-js .nav-toggle {
		display: none;
	}
}

@media (max-width: 560px) {
	.site-logo img {
		width: 140px;
	}

	.btns .btn {
		flex: 1 1 100%;
	}
}

/* ---------- Tisk ---------- */

@media print {
	.site-header,
	.site-footer,
	.skip-link,
	.video {
		display: none;
	}

	body {
		font-size: 11pt;
	}
}

/* ---------- Drobné utility ---------- */

.mt-m {
	margin-top: var(--space-m);
}

.mt-l {
	margin-top: var(--space-l);
}

.text-small {
	font-size: var(--fs-small);
}

/* Držet pohromadě to, co se nesmí zlomit uprostřed (např. „speech-to-text"). */
.nowrap {
	white-space: nowrap;
}

/* Údaje o firmě jsou kratší než čísla na homepage, snesou užší sloupce. */
.facts--compact {
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.facts--compact dd {
	font-size: var(--fs-large);
}
