/* Donovan Pyle theme. Values match the Thrive templates as rendered on donovanpyle.com (Nov 2026 crawl).
   Structure/colors verified against the crawl's real markup; exact spacing/typography still needs a
   side-by-side check against live at 1300/900/375 in Phase 3 — see the migration progress notes. */

@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--link: #574080;
	--ink: #1a1a1a;
	--text: rgba(10, 10, 10, 0.85);
	--line: #e6e6e6;
	--bg-soft: #f7f6f9;
	--container: 1200px;
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: "Inter Tight", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

/* Carried over from Customizer > Additional CSS (stored per theme, so it would not follow a theme switch). */
a { color: var(--link); text-decoration: none; }
a:hover { color: #00adb3; }
a:active { color: #14806e; }
a:visited { color: #f8777b; }

h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 600; }

button { font: inherit; cursor: pointer; background: none; border: 0; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	padding: 10px 16px;
	z-index: 1000;
}
.skip-link:focus { left: 10px; }

/* ---------- Header (shared chrome) ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 20px;
}

.site-logo { display: block; flex: none; }
.site-logo img { display: block; height: 40px; width: auto; }

.site-header__nav { flex: 1 1 auto; display: flex; justify-content: center; }

.nav-toggle {
	display: none;
	width: 33px;
	height: 33px;
	padding: 4px;
	align-items: center;
	justify-content: center;
}

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

.site-nav .menu a {
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.site-nav .menu a:hover { color: var(--link); }

.nav-close, .nav-overlay { display: none; }

.site-header__cta { flex: none; }

.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--link);
	color: #fff;
	font-weight: 500;
	font-size: 15px;
	padding: 10px 20px;
	border-radius: 6px;
}
.btn-cta:hover { background: #45336a; color: #fff; }
.btn-cta .icon { width: 0.9em; height: 0.9em; }

@media (max-width: 1023px) {
	.nav-toggle { display: flex; }

	.site-header__nav { position: static; flex: none; }

	.site-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(320px, 85vw);
		background: #fff;
		padding: 24px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		z-index: 200;
	}
	body.nav-open .site-nav { transform: translateX(0); }

	.nav-close {
		display: flex;
		width: 28px;
		height: 28px;
		margin-left: auto;
		margin-bottom: 16px;
	}

	.site-nav .menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.site-nav .menu a { padding: 10px 0; width: 100%; }

	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 150;
	}
	body:not(.nav-open) .nav-overlay { display: none; }

	.menu-chevron { margin-left: auto; }
	.submenu-toggle { background: none; border: 0; padding: 8px; }
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
}

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px 20px 24px;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: space-between;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.footer-logo img { height: 34px; width: auto; display: block; margin-bottom: 12px; }
.footer-tagline { max-width: 360px; font-size: 15px; }

.footer-links__title { margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text); font-size: 15px; }
.footer-links a:hover { color: var(--link); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	font-size: 13px;
}

.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--ink); }
.footer-social .icon { width: 18px; height: 18px; }

/* ---------- Single post (replaces Thrive template 1211) ---------- */

.post-hero {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px 20px 24px;
	text-align: center;
}
.post-hero__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
.post-hero__date { margin-top: 10px; color: #777; font-size: 14px; }

.post-main {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 20px 64px;
}
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content a { text-decoration: underline; }

/* ---------- Default page / Contact (replaces Thrive template 1205) ---------- */

.page-hero {
	background-image: linear-gradient(rgba(36, 111, 55, 0.12), rgba(36, 111, 55, 0.12)),
		url("https://donovanpyle.com/wp-content/uploads/thrive-theme/images/Xpert_hero_bg_01.jpg");
	background-size: cover;
	background-position: center;
	padding: 56px 20px;
}
.page-hero__inner { max-width: var(--container); margin: 0 auto; }
.page-hero__title { font-size: clamp(28px, 4vw, 50px); color: var(--ink); text-align: left; }

.page-main {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px 20px 64px;
}

/* ---------- Archive / category / search (replaces Thrive template 1201) ---------- */

.archive-hero {
	background: #ebf9ee;
	padding: 40px 20px;
}
.archive-hero__inner { max-width: var(--container); margin: 0 auto; }

.breadcrumbs {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	color: #777;
}
.breadcrumbs a { color: #777; }
.breadcrumbs__sep { opacity: 0.5; }

.archive-hero__title { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 20px; }

.archive-search {
	display: flex;
	max-width: 420px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.archive-search input {
	flex: 1;
	border: 0;
	padding: 10px 14px;
	font: inherit;
}
.archive-search input:focus { outline: none; }
.archive-search button {
	flex: none;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--link);
}

.archive-main {
	max-width: var(--container);
	margin: 0 auto;
	padding: 40px 20px 64px;
}

.post-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 28px;
}
.post-list__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--bg-soft);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 14px;
}
.post-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-list__cat { font-size: 12px; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-list__title { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.post-list__title a { color: var(--ink); }
.post-list__title a:hover { color: var(--link); }
.post-list__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--link);
}
.post-list__more .icon { width: 0.85em; height: 0.85em; }
.post-list__empty { color: #777; }

@media (max-width: 1023px) {
	.post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.post-list { grid-template-columns: 1fr; }
}

.pagination, .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 32px;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
}
.page-numbers.current { background: var(--link); color: #fff; border-color: var(--link); }
.page-numbers:hover:not(.current) { border-color: var(--link); color: var(--link); }

/* ---------- 404 (replaces Thrive template 1199) ---------- */

body.error404 { background: #ebf9ee; }

.e404-hero {
	padding: 56px 20px 40px;
	text-align: center;
}
.e404-badge {
	display: inline-block;
	background: #3f9157;
	padding: 28px 48px;
	margin-bottom: 16px;
	box-shadow:
		0 8px 0 0 rgba(44, 164, 79, 0.4),
		0 22px 0 -7px rgba(37, 125, 63, 0.18),
		0 37px 0 -16px rgba(36, 111, 55, 0.12);
}
.e404-badge__code { font-size: clamp(56px, 10vw, 96px); line-height: 1; color: #fff; font-weight: 700; }
.e404-badge__text { font-size: 16px; color: #fff; margin-top: 4px; }

.e404-main { max-width: 640px; margin: 0 auto; padding: 0 20px 72px; text-align: center; }
.e404-card {
	background: #fff;
	border-radius: 8px;
	padding: 40px 32px;
}
.e404-card__title { font-size: 26px; margin-bottom: 12px; }
.e404-card__text { font-size: 16px; }

.e404-search {
	display: flex;
	max-width: 360px;
	margin: 28px auto 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
}
.e404-search input { flex: 1; border: 0; padding: 10px 14px; font: inherit; }
.e404-search input:focus { outline: none; }
.e404-search button {
	flex: none;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--link);
}
