@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");

:root {
	--ui-font: "Manrope", "Segoe UI", sans-serif;
	--body-font: "Source Serif 4", "Georgia", serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
nav a,
.btn,
.lang-switch button,
.section-kicker,
.hero-sub,
label {
	font-family: var(--ui-font);
}

.section-title {
	font-family: var(--ui-font);
	letter-spacing: -0.018em;
}

.section-text,
.hero-text,
.hero-lead,
p,
li,
input,
select,
textarea {
	font-family: var(--body-font);
}

nav a {
	position: relative;
	transition: color 0.26s ease, background-color 0.26s ease;
}

nav a::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 5px;
	height: 1.5px;
	background: rgba(31, 182, 201, 0.62);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.26s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
	transform: scaleX(1);
}

.btn,
.lang-switch button,
.location-btn {
	transition:
		transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.24s ease,
		background-color 0.24s ease,
		color 0.24s ease;
}

.btn:hover,
.lang-switch button:hover,
.location-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(11, 42, 58, 0.14);
}

.btn.primary:hover {
	border-color: rgba(31, 182, 201, 0.62);
	box-shadow: 0 18px 34px rgba(31, 182, 201, 0.28);
}

.btn:active,
.lang-switch button:active,
.location-btn:active {
	transform: translateY(0);
}

.btn:focus-visible,
.lang-switch button:focus-visible,
.location-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
	outline: 2px solid rgba(31, 182, 201, 0.72);
	outline-offset: 2px;
}

.hero-media img {
	transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-media:hover img {
	transform: scale(1.03);
}

:where(.problem-card.panel, .program-card.panel, .content-card.panel, .focus-card.panel, .contact-card.panel, .form-card.panel, .card) {
	transition:
		transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.34s ease,
		border-color 0.3s ease;
}

:where(.problem-card.panel, .program-card.panel, .content-card.panel, .focus-card.panel, .contact-card.panel, .form-card.panel, .card):hover {
	transform: translateY(-3px);
	border-color: rgba(31, 182, 201, 0.34);
	box-shadow: 0 22px 40px rgba(11, 42, 58, 0.15);
}

.motion-reveal {
	opacity: 0;
	transform: translate3d(0, 22px, 0) scale(0.995);
	filter: saturate(0.9);
	transition:
		opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.72s ease;
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}

.motion-reveal.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
	filter: saturate(1);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.btn,
	.lang-switch button,
	.location-btn,
	.hero-media img,
	:where(.problem-card.panel, .program-card.panel, .content-card.panel, .focus-card.panel, .contact-card.panel, .form-card.panel, .card) {
		transition: none;
	}

	.motion-reveal {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}
}
