/*
Theme Name: Eterniq Official
Theme URI: https://example.com/eterniq
Author: Eterniq
Author URI: https://example.com/
Description: A plugin-free, front-page focused WordPress theme for the Eterniq official website.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: eterniq
*/

:root {
	--color-ink: #07132a;
	--color-muted: #536073;
	--color-blue: #006feb;
	--color-blue-dark: #0059ce;
	--color-sky: #eef5fd;
	--color-line: #dde7f3;
	--color-white: #ffffff;
	--shadow-card: 0 22px 50px rgba(17, 32, 59, 0.08);
	--radius: 8px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

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

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

.container {
	width: min(100% - 48px, 1100px);
	margin-inline: auto;
}

.narrow {
	max-width: 650px;
}

.center {
	text-align: center;
}

.site-header {
	position: absolute;
	z-index: 20;
	top: 0;
	left: 0;
	width: 100%;
	padding: 28px 0;
	color: var(--color-white);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	min-width: 122px;
}

.brand-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-height: 42px;
}

.brand-text {
	color: inherit;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 34px;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 34px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav-menu a {
	font-size: 14px;
	font-weight: 700;
	transition: color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
	color: #7dbbff;
}

.language-switch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.36);
	border-radius: var(--radius);
	color: var(--color-white);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.language-switch:hover,
.language-switch:focus-visible {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 22px;
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-1px);
}

.button-primary {
	color: var(--color-white);
	background: var(--color-blue);
	box-shadow: 0 12px 28px rgba(0, 111, 235, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
	background: var(--color-blue-dark);
}

.button-light {
	color: var(--color-blue);
	background: var(--color-white);
	box-shadow: 0 14px 34px rgba(0, 14, 34, 0.16);
}

.nav-toggle,
.nav-button {
	display: none;
}

.hero {
	position: relative;
	min-height: 620px;
	color: var(--color-white);
	background: radial-gradient(circle at 78% 45%, rgba(0, 111, 235, 0.22), transparent 34%), #010d1d;
	overflow: hidden;
}

.hero::before {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #010d1d 0%, rgba(1, 13, 29, 0.97) 34%, rgba(1, 13, 29, 0.58) 66%, #010d1d 100%);
	content: "";
	z-index: 1;
}

.hero::after {
	position: absolute;
	top: 118px;
	right: max(-20px, calc((100vw - 1180px) / 2));
	width: min(58vw, 700px);
	aspect-ratio: 560 / 330;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(76, 162, 255, 0.92);
	content: "∞";
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(260px, 42vw, 560px);
	line-height: 0.68;
	text-shadow: 0 0 18px rgba(0, 111, 235, 0.9), 0 0 52px rgba(80, 80, 255, 0.55), 0 0 86px rgba(154, 47, 255, 0.46);
	opacity: 0.96;
	z-index: 0;
}

.hero-has-image::after {
	display: none;
}

.hero-visual {
	position: absolute;
	top: 96px;
	right: max(0px, calc((100vw - 1180px) / 2));
	z-index: 0;
	width: min(56vw, 720px);
	height: 430px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	filter: saturate(1.05) contrast(1.02);
}

.hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	align-items: center;
	min-height: 620px;
	padding-top: 72px;
}

.hero-content {
	width: min(100%, 430px);
}

.hero h1 {
	margin: 0 0 24px;
	font-size: clamp(48px, 7vw, 72px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0;
}

.hero p {
	margin: 0 0 30px;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
}

.section {
	padding: 72px 0 64px;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--color-blue);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.section h2 {
	max-width: 720px;
	margin: 0 auto 16px;
	font-size: clamp(32px, 4vw, 40px);
	font-weight: 760;
	line-height: 1.15;
	letter-spacing: 0;
}

.section-lead {
	margin: 0 auto;
	color: #394457;
	font-size: 17px;
	line-height: 1.55;
}

.mission-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 42px;
}

.mission-item {
	padding: 0 34px;
	text-align: center;
	border-left: 1px solid var(--color-line);
}

.mission-item:first-child {
	border-left: 0;
}

.line-icon,
.service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-blue);
}

.line-icon svg {
	width: 44px;
	height: 44px;
	stroke: currentColor;
	stroke-width: 1.6;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mission-item h3,
.service-card h3 {
	margin: 18px 0 12px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.mission-item p,
.service-card p,
.site-footer p {
	margin: 0;
	color: #394457;
	font-size: 15px;
}

.services {
	background: #f0f6fc;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin-top: 32px;
}

.service-card {
	min-height: 276px;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
}

.service-icon {
	width: 58px;
	height: 58px;
	border-radius: 999px;
	background: #eef5ff;
}

.service-icon svg {
	width: 34px;
	height: 34px;
	stroke: currentColor;
	stroke-width: 1.7;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service-card p {
	margin-bottom: 24px;
}

.service-card a {
	color: var(--color-blue);
	font-size: 14px;
	font-weight: 800;
}

.cta-band {
	position: relative;
	color: var(--color-white);
	background: #011327;
	overflow: hidden;
}

.cta-band::before {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #011327 0%, rgba(1, 19, 39, 0.94) 48%, rgba(1, 19, 39, 0.65) 100%);
	content: "";
	z-index: 1;
}

.cta-band::after {
	position: absolute;
	top: 50%;
	right: -40px;
	width: min(55vw, 620px);
	aspect-ratio: 560 / 330;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(76, 162, 255, 0.82);
	content: "∞";
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(190px, 34vw, 420px);
	line-height: 0.68;
	text-shadow: 0 0 16px rgba(0, 111, 235, 0.85), 0 0 48px rgba(80, 80, 255, 0.5), 0 0 76px rgba(154, 47, 255, 0.4);
	opacity: 0.42;
	transform: translateY(-50%);
	z-index: 0;
}

.cta-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 136px;
}

.cta-inner h2 {
	margin: 0 0 4px;
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.2;
	letter-spacing: 0;
}

.cta-inner p {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 16px;
}

.site-footer {
	padding: 32px 0 14px;
	background: var(--color-white);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.7fr repeat(3, 1fr);
	gap: 52px;
}

.footer-brand .brand-text {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--color-ink);
}

.footer-brand p {
	max-width: 270px;
}

.site-footer h2 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 900;
}

.site-footer a {
	display: block;
	margin-bottom: 8px;
	color: #273247;
	font-size: 14px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--color-blue);
}

.copyright {
	margin: 34px 0 0;
	color: #667085;
	font-size: 13px;
	text-align: center;
}

@media (max-width: 900px) {
	.site-header {
		padding: 20px 0;
	}

	.nav-button {
		position: relative;
		z-index: 30;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: var(--radius);
		background: rgba(255, 255, 255, 0.1);
		cursor: pointer;
	}

	.nav-button span,
	.nav-button::before,
	.nav-button::after {
		width: 20px;
		height: 2px;
		border-radius: 2px;
		background: var(--color-white);
		content: "";
		transition: transform 180ms ease, opacity 180ms ease;
	}

	.nav-button::before,
	.nav-button::after {
		position: absolute;
	}

	.nav-button::before {
		transform: translateY(-7px);
	}

	.nav-button::after {
		transform: translateY(7px);
	}

	.nav-toggle:checked + .nav-button span {
		opacity: 0;
	}

	.nav-toggle:checked + .nav-button::before {
		transform: rotate(45deg);
	}

	.nav-toggle:checked + .nav-button::after {
		transform: rotate(-45deg);
	}

	.primary-nav {
		position: fixed;
		inset: 0 0 auto;
		display: grid;
		gap: 24px;
		padding: 92px 24px 28px;
		background: rgba(1, 13, 29, 0.98);
		transform: translateY(-100%);
		transition: transform 220ms ease;
	}

	.nav-toggle:checked ~ .primary-nav {
		transform: translateY(0);
	}

	.nav-menu {
		display: grid;
		gap: 18px;
	}

	.nav-menu a {
		font-size: 18px;
	}

	.nav-cta {
		justify-self: start;
	}

	.language-switch {
		justify-self: start;
	}

	.hero,
	.hero-inner {
		min-height: 620px;
	}

	.hero::before {
		background: linear-gradient(180deg, rgba(1, 13, 29, 0.96) 0%, rgba(1, 13, 29, 0.86) 56%, rgba(1, 13, 29, 0.7) 100%);
	}

	.hero::after {
		top: 132px;
		right: -110px;
		width: 760px;
		max-width: none;
		opacity: 0.58;
	}

	.hero-visual {
		top: 150px;
		right: -90px;
		width: 760px;
		max-width: none;
		height: 390px;
		opacity: 0.64;
	}

	.hero-content {
		padding-top: 70px;
	}

	.mission-grid,
	.service-grid,
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.mission-item:nth-child(odd) {
		border-left: 0;
	}

	.mission-item {
		padding: 26px 22px;
		border-top: 1px solid var(--color-line);
	}

	.cta-inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding: 28px 0;
	}
}

@media (max-width: 640px) {
	.container {
		width: min(100% - 32px, 1100px);
	}

	.brand-text {
		font-size: 28px;
	}

	.hero,
	.hero-inner {
		min-height: 650px;
	}

	.hero::after {
		top: 170px;
		right: -230px;
		width: 660px;
		opacity: 0.45;
	}

	.hero-visual {
		top: 190px;
		right: -230px;
		width: 660px;
		height: 360px;
		opacity: 0.48;
	}

	.hero h1 {
		font-size: 44px;
	}

	.hero p {
		font-size: 16px;
	}

	.section {
		padding: 56px 0 50px;
	}

	.section h2 {
		font-size: 30px;
	}

	.section-lead {
		font-size: 16px;
	}

	.mission-grid,
	.service-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.mission-item,
	.mission-item:nth-child(odd) {
		border-left: 0;
	}

	.mission-item:first-child {
		border-top: 0;
	}

	.service-card {
		min-height: auto;
	}

	.footer-grid {
		gap: 28px;
	}
}

.company-page {
	background: var(--color-white);
}

.company-hero {
	position: relative;
	min-height: 520px;
	color: var(--color-white);
	background: radial-gradient(circle at 76% 42%, rgba(0, 111, 235, 0.18), transparent 34%), #010d1d;
	overflow: hidden;
}

.company-hero::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, #010d1d 0%, rgba(1, 13, 29, 0.96) 42%, rgba(1, 13, 29, 0.62) 100%);
	content: "";
}

.company-hero::after {
	position: absolute;
	top: 112px;
	right: max(-60px, calc((100vw - 1180px) / 2));
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(48vw, 620px);
	aspect-ratio: 560 / 330;
	color: rgba(76, 162, 255, 0.82);
	content: "∞";
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(220px, 34vw, 470px);
	line-height: 0.68;
	text-shadow: 0 0 18px rgba(0, 111, 235, 0.86), 0 0 52px rgba(80, 80, 255, 0.48), 0 0 86px rgba(154, 47, 255, 0.38);
	opacity: 0.72;
}

.company-hero-has-image::after {
	display: none;
}

.company-visual {
	position: absolute;
	top: 98px;
	right: max(0px, calc((100vw - 1180px) / 2));
	z-index: 0;
	width: min(52vw, 700px);
	height: 360px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.66;
}

.company-hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	align-items: center;
	min-height: 520px;
	padding-top: 72px;
}

.company-hero-content {
	width: min(100%, 650px);
}

.company-hero h1 {
	margin: 0 0 22px;
	font-size: clamp(54px, 8vw, 88px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0;
}

.company-hero p:not(.eyebrow) {
	max-width: 640px;
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 19px;
	line-height: 1.7;
}

.company-section {
	padding: 78px 0;
}

.company-layout {
	display: grid;
	grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

.company-section-heading h2 {
	margin: 0;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.18;
	letter-spacing: 0;
}

.company-table {
	overflow: hidden;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
}

.company-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	border-top: 1px solid var(--color-line);
}

.company-row:first-child {
	border-top: 0;
}

.company-label,
.company-value {
	padding: 18px 22px;
	font-size: 15px;
	line-height: 1.65;
}

.company-label {
	color: var(--color-ink);
	font-weight: 800;
	background: #f0f6fc;
}

.company-value {
	color: #394457;
}

.company-value a {
	color: var(--color-blue);
	font-weight: 800;
}

.company-business-section {
	background: #f0f6fc;
}

.company-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin-top: 34px;
}

.company-card {
	min-height: 170px;
	padding: 30px;
	border-radius: var(--radius);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
}

.company-card h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.55;
	letter-spacing: 0;
}

@media (max-width: 900px) {
	.company-hero,
	.company-hero-inner {
		min-height: 560px;
	}

	.company-hero::before {
		background: linear-gradient(180deg, rgba(1, 13, 29, 0.98) 0%, rgba(1, 13, 29, 0.9) 58%, rgba(1, 13, 29, 0.72) 100%);
	}

	.company-hero::after,
	.company-visual {
		top: 154px;
		right: -160px;
		width: 680px;
		height: 340px;
		opacity: 0.42;
	}

	.company-layout,
	.company-card-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.company-hero,
	.company-hero-inner {
		min-height: 540px;
	}

	.company-hero-content {
		padding-top: 48px;
	}

	.company-hero h1 {
		font-size: 48px;
	}

	.company-hero p:not(.eyebrow) {
		font-size: 16px;
	}

	.company-section {
		padding: 56px 0;
	}

	.company-row {
		grid-template-columns: 1fr;
	}

	.company-label {
		padding-bottom: 6px;
	}

	.company-value {
		padding-top: 8px;
	}
}
