/*
Theme Name: Solvia
Theme URI: https://joinsolvia.com
Author: Solvia Global LLC
Description: One-page theme for Solvia Global LLC (joinsolvia.com).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: solvia
*/

:root {
	--bg: #0a0a0a;
	--red: #f0281e;
	--grad-a: #ff4d2d;
	--grad-b: #ff8a3d;
	--grey-card: #26262a;
	--white-card: #fafaf8;
	--muted: #9a9a9a;
	--cream: #ead9d0;
	--lime: #b4e82a;
	--green: #8fd14f;
	--orange: #ff7a1a;
	--line: rgba(255, 255, 255, 0.09);
	--heading: "Lexend", "Poppins", "Montserrat", system-ui, sans-serif;
	--body: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	background: var(--bg);
	color: #fff;
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1,
h2,
h3 {
	font-family: var(--heading);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	letter-spacing: -0.01em;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

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

.wrap {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.muted {
	color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 10, 10, 0.72);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.site-header .wrap {
	max-width: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 8px 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--heading);
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	white-space: nowrap;
}

.brand .logo {
	width: 32px;
	height: 32px;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 28px;
}

.site-nav a {
	font-family: var(--heading);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	opacity: 0.95;
	transition: color 0.2s;
}

.site-nav a:hover {
	color: var(--grad-b);
}

/* ---------- Logo ---------- */
.logo {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: contain;
}


/* ---------- Hero ---------- */
.hero {
	position: relative;
	text-align: center;
	padding: 56px 0 110px;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(#1a1a1a 1px, transparent 1px);
	background-size: 14px 14px;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}

.hero .logo {
	margin: 0 auto 36px;
}

.hero h1 {
	font-size: clamp(30px, 4.2vw, 42px);
	max-width: 760px;
	margin: 0 auto;
}

.hero p {
	max-width: 600px;
	margin: 22px auto 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.65;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 34px;
}

.btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-family: var(--heading);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: linear-gradient(180deg, #f5321e, var(--red));
	box-shadow: 0 8px 24px rgba(240, 40, 30, 0.3);
}

.btn-ghost {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
	border-color: #fff;
}

/* ---------- Sections ---------- */
.section {
	padding: 70px 0;
}

.section-head {
	text-align: center;
	margin-bottom: 56px;
}

.section-head h2 {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.3;
	max-width: 680px;
	margin: 0 auto;
}

.section-head p {
	max-width: 560px;
	margin: 16px auto 0;
	color: var(--muted);
	font-size: 14px;
}

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

/* ---------- Approach cards ---------- */
.approach .grid-3 {
	max-width: 820px;
	margin: 0 auto;
}

.a-card {
	display: flex;
	flex-direction: column;
	min-height: 500px;
	padding: 48px 28px 40px;
	border-radius: 18px;
	background: var(--grey-card);
}

.a-card.is-red {
	background: linear-gradient(180deg, #f23018, #ff5a1f);
}

.a-card.is-white {
	background: var(--white-card);
	color: #111;
}

.a-card .icon {
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
}

.a-card h3 {
	font-size: 25px;
}

.a-card .sub {
	margin-top: 8px;
	font-size: 12.5px;
	line-height: 1.45;
	min-height: 92px;
}

.a-card .label {
	margin-top: 26px;
	font-size: 12px;
	font-weight: 500;
}

.a-card ul {
	margin-top: 22px;
}

.a-card li {
	position: relative;
	padding: 9px 0 9px 20px;
	font-size: 12.5px;
	line-height: 1.35;
	border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.a-card.is-white li {
	border-bottom-color: rgba(0, 0, 0, 0.14);
}

.a-card li:last-child {
	border-bottom: 0;
}

.a-card li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 13px;
	width: 9px;
	height: 5px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

/* ---------- Stats ---------- */
.stats {
	padding-top: 110px;
}

.stats .section-head {
	margin-bottom: 0;
}

.stats .section-head h2 {
	font-size: clamp(26px, 3.4vw, 36px);
}

.v-line {
	width: 1px;
	height: 64px;
	margin: 36px auto 44px;
	background: linear-gradient(180deg, transparent, var(--red) 30%, var(--red));
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
}

.stat {
	padding: 10px 16px;
	border-left: 1px solid var(--line);
}

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

.stat strong {
	display: block;
	font-family: var(--heading);
	font-weight: 600;
	font-size: clamp(22px, 2.6vw, 27px);
	color: var(--cream);
}

.stat span {
	display: block;
	margin-top: 14px;
	font-size: 9.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- Case cards ---------- */
.cases .panel {
	max-width: 900px;
	margin: 0 auto;
	padding: 72px 14px 56px;
	border-radius: 22px;
	background: #0e0e0e;
	box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

.cases .section-head {
	margin-bottom: 40px;
}

.cases .section-head h2 {
	font-size: clamp(24px, 3vw, 30px);
}

.case {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 88px 18px 80px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	background: radial-gradient(120% 60% at 50% 0%, rgba(240, 40, 30, 0.1), transparent 70%), #141414;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
	text-align: center;
	overflow: hidden;
	outline: none;
	transition: border-color 0.25s, transform 0.25s;
}

.case:hover,
.case:focus {
	border-color: rgba(240, 40, 30, 0.45);
	transform: translateY(-3px);
}

.pill {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid rgba(240, 40, 30, 0.4);
	border-radius: 999px;
	background: rgba(240, 40, 30, 0.1);
	color: #ff4a3a;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.case .metric {
	margin-top: 18px;
	font-family: var(--heading);
	font-weight: 600;
	font-size: 21px;
}

.case .submetric {
	margin-top: 10px;
	color: var(--green);
	font-size: 9.5px;
	font-weight: 500;
}

.case .role {
	margin-top: 18px;
	padding: 7px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 9px;
	font-weight: 700;
}

.case .desc {
	margin-top: 16px;
	color: var(--muted);
	font-size: 10.5px;
	line-height: 1.5;
}

.case .more {
	margin-top: 22px;
	color: #ff4a3a;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.case .details {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px 20px;
	background: linear-gradient(180deg, #1c0d0b, #141414);
	font-size: 12.5px;
	line-height: 1.6;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s, transform 0.25s;
	pointer-events: none;
}

.case:hover .details,
.case:focus .details {
	opacity: 1;
	transform: none;
}

/* ---------- Contact ---------- */
.contact .panel {
	max-width: 900px;
	margin: 0 auto;
	padding: 60px 24px 56px;
	border-radius: 18px;
	background: #222224;
	text-align: center;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.3);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--red);
}

.contact h2 {
	margin-top: 12px;
	font-size: clamp(28px, 3.6vw, 34px);
}

.contact p {
	max-width: 680px;
	margin: 24px auto 0;
	font-size: 16px;
	line-height: 1.15;
}

.contact-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}

.contact-links a {
	padding-bottom: 3px;
	border-bottom: 1px solid var(--red);
	font-size: 22px;
	text-decoration: none;
	transition: color 0.2s;
}

.contact-links a:hover {
	color: var(--grad-b);
}

/* ---------- Footer ---------- */
.site-footer {
	padding-top: 90px;
}

.footer-cols {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	max-width: 948px;
	padding-bottom: 28px;
	font-family: var(--heading);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.85;
}

.footer-cols a {
	text-decoration: none;
}

.footer-cols a:hover {
	color: var(--grad-b);
}

.footer-cols .logo {
	width: 72px;
	height: 72px;
}

.footer-cols .right {
	text-align: right;
}

.footer-bar {
	padding: 16px 24px;
	background: #111;
	text-align: center;
	font-family: var(--heading);
	font-size: 11px;
}

.footer-bar a {
	text-decoration: none;
}

.footer-bar a:hover {
	text-decoration: underline;
}

.scroll-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 4px;
	background: var(--orange);
	color: #fff;
	text-decoration: none;
}

.scroll-top svg {
	width: 14px;
	height: 14px;
}

/* ---------- Generic pages (Terms of Service etc.) ---------- */
.page-content {
	max-width: 760px;
	padding-top: 60px;
	padding-bottom: 40px;
}

.page-content h1 {
	font-size: clamp(28px, 4vw, 40px);
	margin-bottom: 28px;
}

.page-content h2,
.page-content h3 {
	margin: 32px 0 12px;
}

.page-content p,
.page-content li {
	color: #cfcfcf;
	line-height: 1.7;
	margin-bottom: 14px;
}

.page-content ul {
	list-style: disc;
	padding-left: 22px;
}

.page-content a {
	color: var(--grad-b);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
	.grid-3 {
		grid-template-columns: 1fr;
	}

	.approach .grid-3,
	.cases .grid-3 {
		max-width: 420px;
		margin: 0 auto;
	}

	.a-card {
		min-height: 0;
	}

	.a-card .sub {
		min-height: 0;
	}

	.case {
		padding: 56px 18px 52px;
	}

	.stat-row {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.stat {
		border-left: 0;
	}

	.footer-cols {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.footer-cols .right {
		text-align: center;
	}

	.footer-cols .logo {
		order: -1;
	}
}

@media (max-width: 560px) {
	.site-header .wrap {
		padding: 8px 16px;
	}

	.site-nav {
		gap: 4px 14px;
	}

	.site-nav a {
		font-size: 12px;
	}

	.hero {
		padding: 36px 0 80px;
	}

	.section {
		padding: 52px 0;
	}

	.contact-links a {
		font-size: 19px;
	}
}

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

	* {
		transition: none !important;
	}
}
