/*
Theme Name: Sitefix CWV Fast Lab
Theme URI: https://sitefix-lab.work
Author: Sitefix Lab
Description: Clean WordPress theme for Core Web Vitals comparison evidence. Dummy data only.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.3
Text Domain: sitefix-cwv-fast
*/

:root {
	--ink: #152238;
	--muted: #5d6879;
	--paper: #f7f6f1;
	--panel: #ffffff;
	--line: #d9ded8;
	--accent: #0f766e;
	--accent-2: #9f1239;
	--accent-3: #536d2f;
	--soft: #eef6f4;
	--soft-2: #f1f4e8;
	--shadow: 0 14px 32px rgba(21, 34, 56, 0.12);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	letter-spacing: 0;
	line-height: 1.6;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

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

button,
textarea {
	font: inherit;
	letter-spacing: 0;
}

.lab-banner {
	align-items: center;
	background: var(--accent);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	font-weight: 800;
	justify-content: center;
	padding: 12px 20px;
	text-align: center;
	text-transform: uppercase;
}

.lab-banner-link {
	background: #fff;
	border-radius: 999px;
	color: var(--accent);
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	padding: 5px 10px;
	text-decoration: none;
}

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.header-inner,
.section-inner,
.content-wrap,
.site-footer-inner {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 22px;
}

.header-inner {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 78px;
}

.brand {
	color: var(--ink);
	font-size: 22px;
	font-weight: 800;
	text-decoration: none;
}

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

.site-nav a {
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 750;
	padding: 8px 12px;
	text-decoration: none;
}

.site-nav a:focus,
.site-nav a:hover,
.lab-banner-link:focus,
.lab-banner-link:hover {
	outline: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
	outline-offset: 2px;
}

.hero {
	background: var(--soft);
	border-bottom: 1px solid var(--line);
	padding: 42px 0 34px;
}

.hero-grid {
	align-items: center;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.eyebrow {
	color: var(--accent-2);
	font-size: 14px;
	font-weight: 900;
	margin: 0 0 12px;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	line-height: 1.12;
	margin: 0 0 16px;
}

h1 {
	font-size: clamp(42px, 7vw, 78px);
	max-width: 820px;
}

h2 {
	font-size: clamp(30px, 4vw, 46px);
}

h3 {
	font-size: 24px;
}

.lead {
	color: var(--muted);
	font-size: 21px;
	max-width: 760px;
}

.hero-image-wrap {
	aspect-ratio: 1200 / 686;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.hero-image-wrap img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.lab-note {
	background: #fff;
	border: 1px solid var(--line);
	border-left: 8px solid var(--accent-3);
	border-radius: 8px;
	margin-top: 22px;
	padding: 18px;
}

.section {
	padding: 54px 0;
}

.section.alt {
	background: #f2f4f7;
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
}

.section.soft {
	background: var(--soft-2);
}

.card-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.proof-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(21, 34, 56, 0.08);
	padding: 22px;
}

.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 18px;
}

.metric {
	color: var(--accent);
	display: block;
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 10px;
}

.proof-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-card strong {
	display: block;
	font-size: 18px;
	margin-bottom: 8px;
}

.media-grid,
.gallery-grid {
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

.media-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid img,
.gallery-grid img {
	aspect-ratio: 800 / 509;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
	object-fit: cover;
	width: 100%;
}

.gallery-grid figure {
	margin: 0;
}

.gallery-grid figcaption {
	color: var(--muted);
	font-size: 14px;
	margin-top: 8px;
}

.sf-lab-review-soup {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding: 48px 0;
}

.sf-lab-review-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 18px;
}

.sf-lab-review-card {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
	min-height: 150px;
	padding: 16px;
}

.sf-lab-review-card strong,
.sf-lab-review-card span {
	display: block;
}

.sf-lab-review-card span {
	color: var(--accent-2);
	font-weight: 800;
	margin-bottom: 8px;
}

.sf-lab-review-badges {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(4, 32px);
	margin-top: 12px;
}

.sf-lab-review-badges img {
	background: #fff;
	border-radius: 6px;
	display: block;
	height: 32px;
	width: 32px;
}

.sf-lab-heavy-gallery {
	background: #f8fafc;
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
	padding: 54px 22px;
}

.sf-lab-heavy-gallery-inner {
	margin: 0 auto;
	max-width: 1180px;
}

.sf-lab-heavy-gallery-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 22px;
}

.sf-lab-heavy-gallery-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	margin: 0;
	overflow: hidden;
}

.sf-lab-heavy-gallery-item img {
	aspect-ratio: 760 / 472;
	object-fit: cover;
	width: 100%;
}

.sf-lab-heavy-gallery-item figcaption {
	color: var(--muted);
	font-size: 14px;
	padding: 12px 14px;
}

.faq {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq details {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 18px;
}

.faq summary {
	cursor: pointer;
	font-weight: 800;
}

.post-list {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-wrap {
	padding-bottom: 64px;
	padding-top: 42px;
}

.entry-header {
	border-bottom: 1px solid var(--line);
	margin-bottom: 28px;
	padding-bottom: 18px;
}

.entry-content {
	max-width: 860px;
}

.entry-content table {
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
	width: 100%;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--line);
	padding: 10px;
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: #fff;
}

.author-box,
.related-posts {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	margin-top: 28px;
	padding: 18px;
}

.site-footer {
	background: #152238;
	color: #edf2f7;
	padding: 42px 0;
}

.site-footer a {
	color: #a7f3d0;
}

.footer-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-cell {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	padding: 16px;
}

.sf-lab-chat {
	bottom: 16px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	position: fixed;
	right: 16px;
	width: 320px;
	z-index: 99999;
}

.sf-lab-chat-launcher {
	background: #111827;
	border: 0;
	border-radius: 999px;
	bottom: 0;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
	color: #fff;
	cursor: pointer;
	min-height: 52px;
	position: absolute;
	right: 0;
	width: 168px;
}

.sf-lab-chat-dot {
	background: #dc2626;
	border-radius: 999px;
	color: #fff;
	display: grid;
	font-size: 12px;
	font-weight: 700;
	height: 24px;
	place-items: center;
	position: absolute;
	right: 12px;
	top: -8px;
	width: 24px;
}

.sf-lab-chat-icon {
	margin-right: 8px;
}

.sf-lab-chat-panel {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 18px;
	bottom: 70px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
	overflow: hidden;
	position: absolute;
	right: 0;
	width: 320px;
}

.sf-lab-chat-panel.is-closed {
	display: none;
}

.sf-lab-chat-head {
	background: #111827;
	color: #fff;
	padding: 14px 16px;
}

.sf-lab-chat-head strong,
.sf-lab-chat-head span {
	display: block;
}

.sf-lab-chat-head span {
	font-size: 12px;
	margin-top: 2px;
	opacity: 0.75;
}

.sf-lab-chat-body {
	background: #f8fafc;
	display: grid;
	gap: 10px;
	max-height: 280px;
	overflow: auto;
	padding: 14px;
}

.sf-lab-msg {
	border-radius: 14px;
	font-size: 13px;
	line-height: 1.4;
	max-width: 86%;
	padding: 10px 12px;
}

.sf-lab-msg b {
	display: block;
	font-size: 11px;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.sf-lab-msg p {
	margin: 0;
}

.sf-lab-msg-agent {
	background: #fff;
	border: 1px solid #e5e7eb;
	justify-self: start;
}

.sf-lab-msg-user {
	background: #dbeafe;
	border: 1px solid #bfdbfe;
	justify-self: end;
}

.sf-lab-typing {
	align-items: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	display: flex;
	gap: 4px;
	padding: 10px;
	width: 52px;
}

.sf-lab-typing span {
	background: #6b7280;
	border-radius: 999px;
	display: block;
	height: 6px;
	width: 6px;
}

.sf-lab-chat-form {
	border-top: 1px solid #e5e7eb;
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 72px;
	padding: 12px;
}

.sf-lab-chat-form input,
.sf-lab-chat-form button {
	border: 1px solid #d1d5db;
	border-radius: 10px;
	min-height: 38px;
}

.sf-lab-chat-form input {
	background: #f3f4f6;
	padding: 0 10px;
}

.sf-lab-chat-form button {
	background: #9ca3af;
	color: #fff;
}

.sf-lab-chat-note {
	color: #6b7280;
	font-size: 11px;
	margin: 0;
	padding: 0 12px 12px;
}

@media (max-width: 920px) {
	.header-inner,
	.hero-grid,
	.card-grid,
	.proof-grid,
	.faq,
	.post-list,
	.footer-grid,
	.sf-lab-review-grid,
	.sf-lab-heavy-gallery-grid {
		grid-template-columns: 1fr;
	}

	.header-inner {
		align-items: flex-start;
		display: grid;
		padding-bottom: 16px;
		padding-top: 16px;
	}

	.site-nav {
		justify-content: flex-start;
	}

	.media-grid,
	.gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	body {
		font-size: 16px;
	}

	h1 {
		font-size: 36px;
	}

	.media-grid,
	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.sf-lab-chat {
		max-width: calc(100vw - 32px);
		width: 300px;
	}
}
