/* Edukopro redesign 1.3 – loaded after main.css */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--font-sans: "Plus Jakarta Sans", "Aptos", "Montserrat", "Segoe UI", system-ui, sans-serif;
	--on-image: #ffffff;
	--scrim: 7, 18, 46;
}

body,
button,
input,
select,
textarea {
	font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--color-teal);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eyebrow--light {
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- Header: menu sits right next to the logo ---------- */
.site-header__inner {
	justify-content: flex-start;
	gap: 40px;
}

.primary-navigation {
	justify-content: flex-start;
	margin-left: 0;
}

.site-menu {
	gap: clamp(10px, 2vw, 28px);
	font-weight: 600;
}

.header-cta {
	margin-left: auto;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 0.9rem;
	white-space: nowrap;
}

/* ---------- Hero slideshow ---------- */
.hero-show {
	position: relative;
	isolation: isolate;
	height: clamp(520px, 78vh, 760px);
	overflow: hidden;
	background: var(--color-navy);
	color: var(--on-image);
}

.hero-slide {
	position: absolute;
	inset: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}

.hero-slide.is-active {
	visibility: visible;
	opacity: 1;
	transition: opacity 1.1s ease, visibility 0s;
}

.hero-slide__bg {
	position: absolute;
	inset: -2%;
	background-size: cover;
	background-position: center;
	transform: scale(1.14);
	will-change: transform;
}

.hero-slide.is-active .hero-slide__bg {
	animation: edukopro-kenburns 8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(var(--scrim), 0.9) 0%, rgba(var(--scrim), 0.62) 45%, rgba(var(--scrim), 0.12) 100%),
		linear-gradient(0deg, rgba(var(--scrim), 0.7), transparent 35%);
}

.hero-slide__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding-block: 64px 120px;
}

.hero-slide__kicker {
	color: #7fe0dc;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero-slide__title {
	max-width: 16ch;
	margin: 18px 0 20px;
	color: var(--on-image);
	font-size: clamp(2.3rem, 6vw, 4.75rem);
	line-height: 1.03;
}

.hero-slide__line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.06em;
}

.hero-slide__line > span {
	display: block;
}

.hero-slide__title em {
	color: #7fe0dc;
	font-style: normal;
}

.hero-slide__text {
	max-width: 48ch;
	color: rgba(255, 255, 255, 0.85);
	font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-slide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}

.hero-slide.is-active .hero-slide__line > span {
	animation: edukopro-rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.hero-slide.is-active .hero-slide__line:nth-child(2) > span {
	animation-delay: 0.12s;
}

.hero-slide.is-active .hero-slide__line:nth-child(3) > span {
	animation-delay: 0.24s;
}

.hero-slide.is-active .hero-slide__kicker,
.hero-slide.is-active .hero-slide__text,
.hero-slide.is-active .hero-slide__actions {
	animation: edukopro-fade 0.9s ease both 0.35s;
}

.hero-slide.is-active .hero-slide__kicker {
	animation-delay: 0.05s;
}

.hero-slide.is-active .hero-slide__actions {
	animation-delay: 0.5s;
}

.button--ghost {
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: var(--on-image);
}

.button--ghost:hover {
	border-color: var(--on-image);
	background: rgba(255, 255, 255, 0.1);
	color: var(--on-image);
}

.hero-show__controls {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 0;
	left: 0;
}

.hero-show__controls-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-block: 24px 28px;
}

.hero-show__bars {
	display: grid;
	flex: 1;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	gap: 12px;
	min-width: 0;
	max-width: 560px;
}

.hero-show__bars button {
	display: grid;
	gap: 8px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.75rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.hero-show__bars button span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hero-show__bars button[aria-current="true"] {
	color: var(--on-image);
}

.hero-show__bars i {
	display: block;
	height: 3px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.25);
}

.hero-show__bars i::after {
	content: "";
	display: block;
	width: 0;
	height: 100%;
	background: var(--on-image);
}

.hero-show__bars button.is-done i::after {
	width: 100%;
}

.hero-show__bars button[aria-current="true"] i::after {
	animation: edukopro-fill var(--slide-duration, 7s) linear forwards;
}

.hero-show.is-paused .hero-show__bars button[aria-current="true"] i::after {
	animation-play-state: paused;
}

.hero-show__bars button:focus-visible,
.hero-show__arrows button:focus-visible {
	outline: 2px solid var(--on-image);
	outline-offset: 4px;
}

.hero-show__arrows {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.hero-show__arrows button {
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--on-image);
	font-size: 1.1rem;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s;
}

.hero-show__arrows button:hover {
	background: rgba(255, 255, 255, 0.18);
}

@keyframes edukopro-kenburns {
	from { transform: scale(1.14) translate3d(1.5%, 1%, 0); }
	to { transform: scale(1) translate3d(0, 0, 0); }
}

@keyframes edukopro-rise {
	from { transform: translateY(105%); }
	to { transform: none; }
}

@keyframes edukopro-fade {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes edukopro-fill {
	to { width: 100%; }
}

/* ---------- Section headings ---------- */
.section-heading--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.section-heading--split > div {
	max-width: 640px;
}

/* ---------- Project logo wall ---------- */
.logo-wall {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
}

.logo-wall__item {
	position: relative;
	display: grid;
	flex: 0 0 25%;
	place-items: center;
	aspect-ratio: 3 / 2;
	padding: 18px 22px 30px;
	box-shadow: 0 0 0 0.5px var(--color-border);
	color: var(--color-navy);
}

.logo-wall__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.logo-wall__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 96px;
	object-fit: contain;
}

.logo-wall__logo img.is-square {
	max-height: 112px;
}

.logo-wall__logo img.is-mark {
	max-height: 56px;
}

.logo-wall__logo b {
	color: #7b2fbf;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.logo-wall__item small {
	position: absolute;
	right: 0;
	bottom: 12px;
	left: 0;
	opacity: 0;
	color: var(--color-teal);
	font-size: 0.75rem;
	font-weight: 700;
	text-align: center;
	transform: translateY(4px);
	transition: opacity 0.2s, transform 0.2s;
}

.logo-wall__item:hover,
.logo-wall__item:focus-visible {
	z-index: 1;
	box-shadow: inset 0 0 0 2px var(--color-teal);
}

.logo-wall__item:hover .logo-wall__logo,
.logo-wall__item:focus-visible .logo-wall__logo {
	transform: translateY(-6px) scale(1.03);
}

.logo-wall__item:hover small,
.logo-wall__item:focus-visible small {
	opacity: 1;
	transform: none;
}

/* ---------- Service stages ---------- */
.stages {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
}

.stages__item {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 28px 24px;
	border-left: 1px solid var(--color-border);
}

.stages__item:first-child {
	border-left: 0;
}

.stages__n {
	color: var(--color-teal);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.stages__item h3 {
	font-size: 1.25rem;
}

.stages__item p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.95rem;
}

/* ---------- Partner band ---------- */
.partner-band {
	background: var(--color-teal);
	color: var(--on-image);
}

.partner-band__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 48px;
	padding-block: clamp(56px, 8vw, 88px);
}

.partner-band h2 {
	color: var(--on-image);
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.partner-band p {
	margin: 14px 0 24px;
	opacity: 0.9;
	font-size: 1.05rem;
}

.partner-band__topics {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.partner-band__topics li {
	padding: 14px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.13);
	font-weight: 600;
}

/* ---------- Books ---------- */
.book-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.book {
	display: grid;
	grid-template-columns: 96px 1fr;
	align-items: start;
	gap: 18px;
	padding: 20px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
}

.book__cover {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 2 / 3;
	max-width: 100%;
	padding: 12px 10px;
	border-radius: 2px 6px 6px 2px;
	color: #ffffff;
	box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.18), 0 10px 22px -12px rgba(7, 29, 73, 0.6);
	transition: transform 0.3s;
}

.book:hover .book__cover {
	transform: rotate(-2deg) translateY(-3px);
}

.book__cover b {
	font-size: 0.78rem;
	line-height: 1.15;
}

.book__cover span {
	opacity: 0.85;
	font-size: 0.45rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.book__cover--1 { background: linear-gradient(160deg, var(--color-navy) 55%, var(--color-teal)); }
.book__cover--2 { background: linear-gradient(160deg, var(--color-teal) 50%, #f2b705); }
.book__cover--3 { background: linear-gradient(160deg, var(--color-coral) 55%, var(--color-navy)); }

.book h3 {
	font-size: 1.1rem;
}

.book p {
	margin: 6px 0 10px;
	color: var(--color-muted);
	font-size: 0.92rem;
}

.book__meta {
	color: var(--color-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer__grid {
	grid-template-columns: 1.4fr 1fr 1fr;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.header-cta {
		display: none;
	}

	.logo-wall__item {
		flex-basis: 33.333%;
	}

	.stages {
		grid-template-columns: repeat(2, 1fr);
	}

	.stages__item:nth-child(3) {
		border-left: 0;
	}

	.stages__item:nth-child(n + 3) {
		border-top: 1px solid var(--color-border);
	}

	.partner-band__grid,
	.book-row {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.site-header__inner {
		justify-content: space-between;
	}

	.hero-show__bars span {
		display: none;
	}

	.hero-show__arrows button {
		width: 38px;
		height: 38px;
	}

	.hero-show {
		height: 640px;
	}

	.hero-slide__content {
		justify-content: flex-end;
		padding-block: 40px 116px;
	}

	.hero-slide__title {
		margin: 12px 0 14px;
		font-size: clamp(2rem, 9vw, 2.6rem);
	}

	.hero-slide__text {
		font-size: 0.98rem;
	}

	.hero-slide__actions .button--ghost {
		display: none;
	}

	.logo-wall__item {
		flex-basis: 50%;
	}

	.logo-wall__logo img {
		max-height: 72px;
	}

	.logo-wall__logo img.is-square {
		max-height: 84px;
	}

	.logo-wall__item small {
		display: none;
	}

	.stages {
		grid-template-columns: 1fr;
	}

	.stages__item,
	.stages__item:nth-child(3) {
		border-top: 1px solid var(--color-border);
		border-left: 0;
	}

	.stages__item:first-child {
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide.is-active .hero-slide__bg,
	.hero-slide.is-active .hero-slide__line > span,
	.hero-slide.is-active .hero-slide__kicker,
	.hero-slide.is-active .hero-slide__text,
	.hero-slide.is-active .hero-slide__actions {
		animation: none;
	}

	.hero-show__bars button[aria-current="true"] i::after {
		width: 100%;
		animation: none;
	}
}
