/*
Theme Name: MyPhillySEO Pro
Theme URI: https://myphillyseo.net/
Author: MyPhillySEO
Author URI: https://myphillyseo.net/about-us/
Description: A fast, responsive editorial theme created specifically for MyPhillySEO.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: myphillyseo-pro
*/

:root {
	--mps-ink: #101828;
	--mps-muted: #526071;
	--mps-navy: #07162c;
	--mps-navy-soft: #102744;
	--mps-green: #16a66a;
	--mps-green-dark: #0b8150;
	--mps-green-soft: #e8f8f1;
	--mps-blue-soft: #eaf2ff;
	--mps-line: #dce3eb;
	--mps-surface: #ffffff;
	--mps-canvas: #f5f7fa;
	--mps-radius: 18px;
	--mps-shadow: 0 18px 45px rgba(7, 22, 44, 0.09);
	--mps-container: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--mps-canvas);
	color: var(--mps-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--mps-green-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--mps-navy);
}

button,
input,
textarea,
select {
	font: inherit;
}

.container {
	width: min(calc(100% - 40px), var(--mps-container));
	margin-inline: auto;
}

.narrow {
	width: min(calc(100% - 40px), 820px);
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 9999;
	padding: 10px 16px;
	border-radius: 8px;
	background: #fff;
	color: #000;
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(7, 22, 44, 0.97);
	color: #fff;
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	min-height: 76px;
	align-items: center;
	gap: 28px;
}

.site-branding {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
}

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

.brand-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 11px;
	background: var(--mps-green);
	color: var(--mps-navy);
	font-weight: 900;
	letter-spacing: -1px;
}

.brand-name {
	color: #fff;
	font-size: 21px;
	font-weight: 850;
	letter-spacing: -0.5px;
	text-decoration: none;
}

.brand-name span {
	color: #67e8b0;
}

.primary-menu-wrap {
	margin-left: auto;
}

.primary-menu,
.footer-menu {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: 25px;
	list-style: none;
}

.primary-menu a {
	color: #dbe7f5;
	font-size: 14px;
	font-weight: 720;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	color: #67e8b0;
}

.header-cta,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 19px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: var(--mps-green);
	color: #06162a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.header-cta:hover,
.header-cta:focus,
.button:hover,
.button:focus {
	background: #4ade9d;
	color: #06162a;
}

.button-secondary {
	border-color: rgba(255, 255, 255, 0.28);
	background: transparent;
	color: #fff;
}

.button-secondary:hover,
.button-secondary:focus {
	border-color: #fff;
	background: #fff;
	color: var(--mps-navy);
}

.nav-toggle {
	display: none;
	margin-left: auto;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
	display: block;
	width: 25px;
	height: 2px;
	background: currentColor;
	content: "";
}

.nav-toggle-lines {
	position: relative;
}

.nav-toggle-lines::before {
	position: absolute;
	top: -7px;
}

.nav-toggle-lines::after {
	position: absolute;
	top: 7px;
}

.site-main {
	min-height: 60vh;
}

.hero {
	overflow: hidden;
	padding: 86px 0 76px;
	background:
		radial-gradient(circle at 82% 12%, rgba(22, 166, 106, 0.23), transparent 30%),
		linear-gradient(135deg, var(--mps-navy) 0%, var(--mps-navy-soft) 100%);
	color: #fff;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
	align-items: center;
	gap: 64px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: #73eab8;
	font-size: 13px;
	font-weight: 820;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 26px;
	height: 2px;
	background: currentColor;
	content: "";
}

.hero h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(42px, 6vw, 72px);
	font-weight: 880;
	letter-spacing: -0.055em;
	line-height: 1.03;
}

.hero-lede {
	max-width: 670px;
	margin: 24px 0 0;
	color: #cbd8e7;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	margin-top: 31px;
	flex-wrap: wrap;
	gap: 12px;
}

.trust-list {
	display: flex;
	margin: 30px 0 0;
	padding: 0;
	flex-wrap: wrap;
	gap: 10px 20px;
	color: #b9c9db;
	font-size: 13px;
	list-style: none;
}

.trust-list li::before {
	margin-right: 7px;
	color: #67e8b0;
	content: "✓";
	font-weight: 900;
}

.hero-feature {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.hero-feature-image {
	aspect-ratio: 16 / 9;
	background: #17304f;
}

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

.hero-insight-visual {
	min-height: 285px;
	padding: 29px 31px 0;
	background:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(145deg, #0b203b, #133b48);
	background-size: 32px 32px, 32px 32px, auto;
}

.insight-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	color: #dbe7f5;
	font-size: 13px;
	font-weight: 750;
}

.insight-status {
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(103, 232, 176, 0.13);
	color: #73eab8;
}

.insight-metric {
	margin-top: 17px;
	color: #fff;
	font-size: 42px;
	font-weight: 880;
	letter-spacing: -0.04em;
	line-height: 1;
}

.insight-bars {
	display: flex;
	height: 142px;
	margin-top: 24px;
	align-items: end;
	gap: 12px;
}

.insight-bars span {
	flex: 1;
	min-width: 9px;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(#67e8b0, #16a66a);
	box-shadow: 0 0 22px rgba(22, 166, 106, 0.18);
}

.hero-feature-body {
	padding: 24px 26px 27px;
}

.post-kicker {
	margin: 0 0 9px;
	color: var(--mps-green-dark);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero-feature .post-kicker {
	color: #73eab8;
}

.hero-feature h2 {
	margin: 0;
	font-size: clamp(23px, 3vw, 31px);
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.hero-feature h2 a {
	color: #fff;
	text-decoration: none;
}

.hero-feature p {
	margin: 13px 0 0;
	color: #cbd8e7;
	font-size: 15px;
}

.section {
	padding: 76px 0;
}

.section-white {
	background: var(--mps-surface);
}

.section-heading {
	display: flex;
	margin-bottom: 30px;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
}

.section-heading h2,
.archive-header h1 {
	margin: 0;
	font-size: clamp(31px, 4vw, 45px);
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.section-heading p,
.archive-header p {
	max-width: 590px;
	margin: 8px 0 0;
	color: var(--mps-muted);
}

.text-link {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

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

.topic-card {
	position: relative;
	min-height: 220px;
	padding: 26px;
	border: 1px solid var(--mps-line);
	border-radius: var(--mps-radius);
	background: var(--mps-surface);
	color: inherit;
	text-decoration: none;
}

.topic-card:hover,
.topic-card:focus {
	border-color: #9fdcc2;
	box-shadow: var(--mps-shadow);
	color: inherit;
}

.topic-number {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: var(--mps-green-soft);
	color: var(--mps-green-dark);
	font-size: 13px;
	font-weight: 900;
}

.topic-card h3 {
	margin: 24px 0 8px;
	font-size: 20px;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.topic-card p {
	margin: 0;
	color: var(--mps-muted);
	font-size: 14px;
	line-height: 1.6;
}

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

.post-card {
	overflow: hidden;
	border: 1px solid var(--mps-line);
	border-radius: var(--mps-radius);
	background: var(--mps-surface);
	box-shadow: 0 8px 24px rgba(7, 22, 44, 0.04);
}

.post-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e8edf3;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	padding: 23px 23px 25px;
}

.post-card h2,
.post-card h3 {
	margin: 0;
	font-size: 21px;
	letter-spacing: -0.025em;
	line-height: 1.32;
}

.post-card h2 a,
.post-card h3 a {
	color: var(--mps-ink);
	text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus,
.post-card h3 a:hover,
.post-card h3 a:focus {
	color: var(--mps-green-dark);
}

.post-card-excerpt {
	margin: 13px 0 0;
	color: var(--mps-muted);
	font-size: 15px;
}

.post-meta {
	display: flex;
	margin-top: 18px;
	flex-wrap: wrap;
	gap: 7px 13px;
	color: #687688;
	font-size: 12px;
	font-weight: 650;
}

.authority-strip {
	padding: 0 0 76px;
}

.authority-box {
	display: grid;
	padding: 42px;
	border-radius: 24px;
	background: var(--mps-blue-soft);
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 35px;
}

.authority-box h2 {
	margin: 0;
	font-size: clamp(27px, 3vw, 38px);
	letter-spacing: -0.035em;
}

.authority-box p {
	max-width: 760px;
	margin: 12px 0 0;
	color: var(--mps-muted);
}

.archive-header {
	padding: 66px 0 34px;
}

.archive-grid {
	padding-bottom: 76px;
}

.pagination {
	margin-top: 42px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	border: 1px solid var(--mps-line);
	border-radius: 9px;
	background: #fff;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--mps-navy);
	background: var(--mps-navy);
	color: #fff;
}

.article-header {
	padding: 72px 0 34px;
	text-align: center;
}

.breadcrumbs {
	margin: 0 0 20px;
	color: #6b7788;
	font-size: 13px;
}

.breadcrumbs a {
	text-decoration: none;
}

.article-header h1 {
	max-width: 960px;
	margin: 0 auto;
	font-size: clamp(38px, 6vw, 64px);
	letter-spacing: -0.052em;
	line-height: 1.08;
}

.article-header .post-meta {
	margin-top: 22px;
	justify-content: center;
	font-size: 14px;
}

.article-featured {
	overflow: hidden;
	width: min(calc(100% - 40px), 1080px);
	margin: 0 auto 46px;
	border-radius: 24px;
	background: #e8edf3;
}

.article-featured img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
}

.entry-content {
	padding-bottom: 62px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	line-height: 1.82;
}

.entry-content > * {
	max-width: 820px;
	margin-right: auto;
	margin-left: auto;
}

.entry-content > .alignwide {
	max-width: 1080px;
}

.entry-content > .alignfull {
	max-width: none;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--mps-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: -0.03em;
	line-height: 1.23;
}

.entry-content h2 {
	margin-top: 2.1em;
	font-size: clamp(29px, 4vw, 39px);
}

.entry-content h3 {
	margin-top: 1.8em;
	font-size: clamp(23px, 3vw, 29px);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-top: 1.25em;
	margin-bottom: 1.25em;
}

.entry-content li + li {
	margin-top: 0.55em;
}

.entry-content blockquote {
	padding: 20px 26px;
	border-left: 4px solid var(--mps-green);
	background: var(--mps-green-soft);
	font-style: italic;
}

.entry-content pre {
	overflow-x: auto;
	padding: 20px;
	border-radius: 12px;
	background: var(--mps-navy);
	color: #e8f0fa;
	font-size: 14px;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

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

.entry-content .wp-block-image img,
.entry-content .wp-block-cover,
.entry-content .wp-block-media-text {
	border-radius: 16px;
}

.author-box {
	display: grid;
	margin-bottom: 54px;
	padding: 30px;
	border: 1px solid var(--mps-line);
	border-radius: var(--mps-radius);
	background: #fff;
	grid-template-columns: 76px 1fr;
	gap: 22px;
}

.author-box img {
	border-radius: 50%;
}

.author-box h2 {
	margin: 0;
	font-size: 22px;
}

.author-box p {
	margin: 6px 0 0;
	color: var(--mps-muted);
	font-size: 15px;
}

.post-navigation {
	display: grid;
	margin-bottom: 70px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.post-navigation a {
	padding: 20px;
	border: 1px solid var(--mps-line);
	border-radius: 14px;
	background: #fff;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.page-shell {
	padding: 68px 0 76px;
}

.page-title {
	margin: 0 0 30px;
	font-size: clamp(38px, 6vw, 60px);
	letter-spacing: -0.05em;
	line-height: 1.08;
}

.empty-state {
	padding: 80px 0;
	text-align: center;
}

.empty-state h1 {
	margin: 0;
	font-size: clamp(46px, 8vw, 86px);
	letter-spacing: -0.06em;
}

.search-form {
	display: flex;
	max-width: 620px;
	margin: 25px auto 0;
	gap: 8px;
}

.search-field {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--mps-line);
	border-radius: 10px;
	background: #fff;
	color: var(--mps-ink);
}

.search-submit {
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--mps-green);
	color: var(--mps-navy);
	font-weight: 800;
	cursor: pointer;
}

.site-footer {
	background: var(--mps-navy);
	color: #bdcadd;
}

.footer-cta {
	padding: 55px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.footer-cta h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(27px, 4vw, 39px);
	letter-spacing: -0.035em;
}

.footer-cta p {
	margin: 8px 0 0;
}

.footer-main {
	display: grid;
	padding: 48px 0;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 50px;
}

.footer-brand {
	max-width: 560px;
}

.footer-brand .brand-name {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 24px;
}

.footer-brand p {
	margin: 0;
}

.footer-menu {
	justify-content: flex-end;
	flex-wrap: wrap;
}

.footer-menu a {
	color: #d8e2ef;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
	color: #73eab8;
}

.footer-bottom {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.footer-bottom p {
	margin: 0;
}

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

.screen-reader-text:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: #000;
}

@media (max-width: 1000px) {
	.header-cta {
		display: none;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.hero-feature {
		max-width: 720px;
	}

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

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

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.header-inner {
		min-height: 68px;
	}

	.nav-toggle {
		display: block;
	}

	.primary-menu-wrap {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		padding: 14px 20px 22px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		background: var(--mps-navy);
	}

	.primary-menu-wrap[data-open="true"] {
		display: block;
	}

	.primary-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.primary-menu a {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.hero {
		padding: 64px 0 60px;
	}

	.section {
		padding: 60px 0;
	}

	.authority-box {
		padding: 32px;
		grid-template-columns: 1fr;
	}

	.footer-main,
	.footer-cta-inner {
		align-items: flex-start;
		flex-direction: column;
		grid-template-columns: 1fr;
	}

	.footer-menu {
		justify-content: flex-start;
	}
}

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

	.container,
	.narrow,
	.article-featured {
		width: min(calc(100% - 28px), var(--mps-container));
	}

	.brand-mark {
		width: 34px;
		height: 34px;
	}

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

	.topic-grid,
	.post-grid,
	.post-navigation {
		grid-template-columns: 1fr;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

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

	.article-header {
		padding-top: 54px;
	}

	.article-header h1 {
		font-size: 39px;
	}

	.article-featured {
		margin-bottom: 30px;
		border-radius: 16px;
	}

	.entry-content {
		font-size: 18px;
	}

	.author-box {
		grid-template-columns: 1fr;
	}

	.footer-bottom-inner {
		flex-direction: column;
		gap: 4px;
	}

	.search-form {
		flex-direction: column;
	}
}

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