/* ==========================================================================
   YIFEI — base
   Reset · tokens · typography · layout · buttons · forms · motion
   ========================================================================== */

:root {
	--navy: #1a3a5c;
	--navy-900: #0e2438;
	--navy-800: #142e49;
	--navy-700: #1f466d;
	--orange: #e8732a;
	--orange-dark: #cf601c;
	--ink: #14202c;
	--body: #4a5568;
	--muted: #7c8898;
	--line: #e3e8ef;
	--line-dark: rgba(255, 255, 255, 0.14);
	--soft: #f5f7fa;
	--soft-2: #eef2f7;
	--white: #ffffff;

	--cyan: #2e8b9a;
	--green: #3e8e5a;
	--purple: #7b5ea7;
	--gold: #c9a063;

	--radius: 8px;
	--radius-lg: 14px;
	--container: 1200px;
	--container-wide: 1320px;
	--header-h: 78px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--shadow: 0 18px 44px rgba(16, 39, 64, 0.1);
	--shadow-soft: 0 10px 30px rgba(16, 39, 64, 0.06);

	--font: "Yifei Sans", "HarmonyOS Sans SC", "PingFang SC",
		"Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	--mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono",
		monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.8;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
		background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.015em;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

input,
select,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--orange);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 28px;
}

.section {
	position: relative;
	padding: 104px 0;
}

.section--soft {
	background: var(--soft);
}

.site-main {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow em {
	font-family: var(--font);
	font-style: normal;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--navy);
}

.eyebrow__num {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--orange);
	letter-spacing: 0.08em;
}

.eyebrow__num::after {
	content: "/";
	margin-left: 4px;
	color: var(--line);
}

.eyebrow__line {
	display: inline-block;
	width: 34px;
	height: 2px;
	background: var(--orange);
}

.eyebrow--light {
	color: rgba(255, 255, 255, 0.62);
}

.eyebrow--light em {
	color: rgba(255, 255, 255, 0.88);
}

.eyebrow--light .eyebrow__num::after {
	color: rgba(255, 255, 255, 0.28);
}

.section-title {
	margin: 0;
	font-size: clamp(32px, 3.6vw, 48px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.section-title--left {
	text-align: left;
}

.section-title--light {
	color: #fff;
}

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 60px;
	align-items: end;
	margin-bottom: 56px;
}

.section-head__main .eyebrow {
	margin-bottom: 22px;
}

.section-head__aside {
	justify-self: end;
	max-width: 420px;
	padding-bottom: 6px;
	font-size: 14px;
	color: var(--muted);
}

.section-head__aside > p:first-child {
	margin: 0 0 12px;
	color: var(--body);
}

.section-head__lead {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
	color: var(--muted);
}

.section-head--dark .section-title {
	color: #fff;
}

.section-head--dark .section-head__aside,
.section-head--dark .section-head__lead {
	color: rgba(255, 255, 255, 0.6);
}

.section-head--dark .section-head__aside > p:first-child {
	color: rgba(255, 255, 255, 0.82);
}

.section-head--dark .eyebrow em {
	color: rgba(255, 255, 255, 0.86);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
		color 0.25s var(--ease), border-color 0.25s var(--ease),
		box-shadow 0.25s var(--ease);
}

.btn .icon {
	transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
	transform: translateX(3px);
}

.btn-primary {
	background: var(--orange);
	color: #fff;
	box-shadow: 0 10px 24px rgba(232, 115, 42, 0.22);
}

.btn-primary:hover {
	background: var(--orange-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(232, 115, 42, 0.28);
}

.btn-outline {
	border-color: rgba(26, 58, 92, 0.34);
	color: var(--navy);
	background: transparent;
}

.btn-outline:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.btn-ghost {
	border-color: rgba(255, 255, 255, 0.34);
	color: #fff;
	background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.btn-navy {
	background: var(--navy);
	color: #fff;
}

.btn-navy:hover {
	background: var(--navy-700);
	color: #fff;
	transform: translateY(-1px);
}

.btn-accent {
	background: var(--accent, var(--navy));
	color: #fff;
}

.btn-accent--dark {
	color: var(--navy-900);
}

.btn-accent:hover {
	background: var(--navy);
	color: #fff;
	transform: translateY(-1px);
}

.btn-block {
	width: 100%;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
}

.text-link:hover {
	color: var(--orange);
	border-color: currentColor;
}

.text-link .icon {
	transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
	transform: translateX(3px);
}

.text-link--muted {
	color: var(--muted);
}

.text-link--light {
	color: rgba(255, 255, 255, 0.82);
}

.text-link--light:hover {
	color: #fff;
}

.ext-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--navy);
}

.ext-link:hover {
	color: var(--orange);
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dot, var(--navy));
	flex: 0 0 auto;
}

.dot--orange {
	background: var(--orange);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.yf-form {
	display: block;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.field {
	display: block;
	margin-bottom: 18px;
}

.field > span {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--navy);
}

.field em {
	font-style: normal;
	color: var(--orange);
}

.field em.optional {
	font-weight: 400;
	color: var(--muted);
	font-size: 12px;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input,
.field select {
	height: 50px;
	padding: 0 14px;
}

.field textarea {
	padding: 12px 14px;
	min-height: 116px;
	resize: vertical;
	line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
	color: #a6b0bd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}

.field select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-privacy {
	margin: 4px 0 18px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--muted);
}

.form-privacy a {
	color: var(--navy);
	border-bottom: 1px solid rgba(26, 58, 92, 0.3);
}

.form-error {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 20px;
	padding: 14px 16px;
	border-left: 3px solid #c0392b;
	background: #fdf1ef;
	color: #8f2b20;
	font-size: 14px;
}

.form-error strong {
	color: #7e241a;
}

.form-error p {
	margin: 0;
}

.form-success {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 22px;
	padding: 18px;
	border-left: 3px solid var(--green);
	background: #f1f8f3;
	color: #2c5c3c;
}

.form-success__icon {
	display: inline-flex;
	color: var(--green);
	flex: 0 0 auto;
}

.form-success strong {
	display: block;
	margin-bottom: 3px;
	color: #234b31;
}

.form-success p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #4c6b57;
}

/* --------------------------------------------------------------------------
   Breadcrumbs & pagination
   -------------------------------------------------------------------------- */

.breadcrumbs {
	margin-bottom: 26px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.breadcrumbs li + li::before {
	content: "/";
	color: rgba(255, 255, 255, 0.28);
}

.breadcrumbs a {
	color: rgba(255, 255, 255, 0.55);
}

.breadcrumbs a:hover {
	color: #fff;
}

.breadcrumbs li[aria-current="page"] {
	color: rgba(255, 255, 255, 0.9);
}

.page-hero .breadcrumbs,
.company-hero .breadcrumbs,
.news-hero .breadcrumbs,
.legal-hero .breadcrumbs,
.list-hero .breadcrumbs {
	color: rgba(255, 255, 255, 0.55);
}

.pagination {
	margin-top: 56px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 14px;
	color: var(--body);
	background: #fff;
}

.pagination .page-numbers:hover {
	border-color: var(--navy);
	color: var(--navy);
}

.pagination .page-numbers.current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.pagination .dots {
	border: 0;
	background: none;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--navy);
	color: #fff;
	border-radius: 6px;
	font-size: 14px;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.section {
		padding: 84px 0;
	}

	.section-head {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 44px;
	}

	.section-head__aside {
		justify-self: start;
		max-width: 560px;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 15px;
	}

	.container {
		padding: 0 20px;
	}

	.section {
		padding: 64px 0;
	}

	.section-title {
		font-size: clamp(28px, 8vw, 38px);
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.btn {
		height: 48px;
		padding: 0 22px;
	}

	.breadcrumbs {
		margin-bottom: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
