/* ==========================================================================
   EuroLine — Base: reset, design tokens, typography, layout primitives
   Mobile-first: tokens are redefined at the 1024px breakpoint for desktop.
   ========================================================================== */

:root {
	/* Colors */
	--color-brand-primary: #fc5f11;
	--color-text-primary: #161616;
	--color-text-secondary: #606060;
	--color-text-inverse: #fafafa;
	--color-bg-page: #f5f3ef;
	--color-bg-surface: #ffffff;
	--color-bg-muted: #fafafa;
	--color-bg-inverse: #161616;
	--color-neutral-950: #090909;
	--color-neutral-400: #b7b7b7;
	--color-neutral-200: #c5c1b9;
	--color-border-default: #cccac6;
	--color-border-subtle: #c5c1b9;
	--overlay-off-white-80: rgba(250, 250, 250, 0.8);
	--overlay-off-white-55: rgba(250, 250, 250, 0.55);
	--overlay-off-white-40: rgba(250, 250, 250, 0.4);
	--overlay-off-white-15: rgba(250, 250, 250, 0.15);

	/* Typography (mobile) */
	--font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--fs-h1: 36px;
	--lh-h1: 1;
	--fs-h2: 36px;
	--lh-h2: 1;
	--fw-h2: 500;
	--ls-h2: -0.2px;
	--fs-h3: 28px;
	--lh-h3: 1.1;
	--ls-h3: -0.2px;
	--fs-h4: 22px;
	--lh-h4: 1.1;
	--fs-h5: 20px;
	--lh-h5: 1.25;
	--fs-h6: 16px;
	--lh-h6: 1.3;
	--fs-body-l: 20px;
	--lh-body-l: 1.3;
	--fs-body-m: 16px;
	--lh-body-m: 1.4;
	--fs-body-s: 14px;
	--lh-body-s: 1.4;

	/* Layout */
	--container-width: 1348px;
	--container-padding: 16px;
	--section-padding-y: 64px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--header-height: 72px;
}

@media (min-width: 1024px) {
	:root {
		--fs-h1: 76px;
		--lh-h1: 1.124;
		--fs-h2: 62px;
		--lh-h2: 1.08;
		--fw-h2: 400;
		--ls-h2: -0.36px;
		--fs-h3: 44px;
		--lh-h3: 1;
		--ls-h3: -0.5px;
		--fs-h4: 30px;
		--lh-h4: 1.17;
		--fs-h5: 24px;
		--lh-h5: 1.08;
		--fs-h6: 16px;
		--lh-h6: 1.3;
		--fs-body-l: 20px;
		--lh-body-l: 1.3;
		--fs-body-m: 16px;
		--lh-body-m: 1.35;
		--fs-body-s: 14px;
		--lh-body-s: 1.4;

		--container-padding: 46px;
		--section-padding-y: 110px;
		--header-height: 84px;
	}
}

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

[hidden] {
	display: none !important;
}

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

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: var(--fs-body-m);
	line-height: var(--lh-body-m);
	color: var(--color-text-primary);
	background: var(--color-bg-page);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

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

button {
	font-family: inherit;
	color: inherit;
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dd {
	margin: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	z-index: 10000;
	background: var(--color-bg-inverse);
	color: var(--color-text-inverse);
	padding: 12px 20px;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
	clip: auto;
	width: auto;
	height: auto;
}

.container {
	width: 100%;
	max-width: calc(var(--container-width) + (var(--container-padding) * 2));
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.section-title {
	font-weight: 400;
	font-size: var(--fs-h2);
	line-height: var(--lh-h2);
	letter-spacing: -0.36px;
	text-transform: capitalize;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 48px;
	padding: 0 22px;
	border-radius: 9999px;
	font-family: var(--font-base);
	font-weight: 600;
	font-size: var(--fs-h6);
	line-height: var(--lh-h6);
	text-transform: capitalize;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, padding 0.25s ease;
	text-align: center;
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.btn {
		height: 55px;
		padding: 0 25px;
	}
}

.btn--primary,
.btn--dark,
.btn--outline {
	position: relative;
}

.btn--primary::after,
.btn--dark::after,
.btn--outline::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 11px;
	background-color: currentColor;
	-webkit-mask: url('../icons/arrow-right.svg') center / contain no-repeat;
	mask: url('../icons/arrow-right.svg') center / contain no-repeat;
	opacity: 0;
	overflow: hidden;
	transition: width 0.25s ease, opacity 0.2s ease;
}

.btn--primary:hover::after,
.btn--dark:hover::after,
.btn--outline:hover::after {
	width: 16px;
	opacity: 1;
}

.btn--primary {
	background: var(--color-brand-primary);
	color: var(--color-text-inverse);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: #e0540d;
}

.btn--dark {
	background: var(--color-neutral-950);
	color: var(--color-text-inverse);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.btn--dark:hover,
.btn--dark:focus-visible {
	background: #1f1f1f;
}

.btn--outline {
	background: var(--color-bg-surface);
	color: var(--color-text-primary);
	border-color: var(--color-border-subtle);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	display: none;
}

@media (min-width: 1024px) {
	.btn--outline {
		display: inline-flex;
	}
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background: var(--color-bg-page);
}

.btn--small {
	height: 44px;
	padding: 0 20px;
}

.btn--link {
	width: fit-content;
	height: auto;
	padding: 0;
	gap: 12px;
	border-radius: 0;
	border-bottom: 0.8px solid currentColor;
	font-weight: 600;
	transition: border-bottom-width 0.2s ease;
}

.btn--light {
	color: var(--color-text-inverse);
}

.btn__arrow-icon {
	display: inline-block;
	width: 16px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask: url('../icons/arrow-link.svg') center / contain no-repeat;
	mask: url('../icons/arrow-link.svg') center / contain no-repeat;
	transition: transform 0.2s ease;
}

.btn--link:hover .btn__arrow-icon {
	transform: translateX(3px);
}

/* Scroll-reveal animation — applied site-wide by main.js (initScrollReveal). */
.reveal {
	opacity: 0;
	transform: translateY(48px) scale(0.98);
	transition: opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
	will-change: opacity, transform;
}

.reveal.is-inview {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/*
 * Hero content — inner elements float in "from nowhere" one after another on
 * page load, over ~2s total. Pure CSS keyframe animation (not a JS-toggled
 * transition) so it always plays on first paint, with no reliance on
 * requestAnimationFrame timing to "catch" an in-between state.
 */
@keyframes elpr-hero-reveal {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__content > * {
	animation: elpr-hero-reveal 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.hero__content > *:nth-child(1) { animation-delay: 0s; }
.hero__content > *:nth-child(2) { animation-delay: 0.3s; }
.hero__content > *:nth-child(3) { animation-delay: 0.6s; }
.hero__content > *:nth-child(4) { animation-delay: 0.9s; }
.hero__content > *:nth-child(5) { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
	.hero__content > * {
		animation: none;
		opacity: 1;
		transform: none;
	}
}