/* JJP Construction - standalone blog styles
   Brand tokens taken from the live site's Elementor kit. */

:root {
	--dark: #262626;
	--gray: #555555;
	--light-gray: #AAAAAA;
	--gold: #FFCD57;
	--green: #4B6C4E;
	--border: #e6e6e6;
	--bg-soft: #f7f7f5;
	--maxw: 1200px;
	--read: 720px;
}

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

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

body {
	margin: 0;
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--dark);
	line-height: 1.6;
	background: #fff;
}

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

a { color: var(--green); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
	display: inline-block;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
	padding: 15px 30px;
	border: 2px solid #fff;
	border-radius: 0;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: #fff; }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--dark);
	box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	color: #fff;
}
.site-nav a:hover { color: var(--gold); }
.site-header .btn { padding: 12px 24px; }
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	margin-left: auto;
}

/* Hero (listing) */
.hero {
	background: var(--dark);
	color: #fff;
	text-align: center;
	padding: 76px 0 66px;
}
.eyebrow {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
}
.hero-title {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.08;
	margin: 0;
}
.hero-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	background: var(--gold);
	margin: 22px auto 0;
}
.hero-sub {
	font-family: "Lato", sans-serif;
	font-weight: 300;
	font-size: 18px;
	color: var(--light-gray);
	max-width: 620px;
	margin: 20px auto 0;
}

/* Breadcrumbs */
.breadcrumbs {
	font-size: 13px;
	color: var(--gray);
	padding: 20px 0 0;
}
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span[aria-current] { color: var(--dark); }

/* Card grid */
.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
	padding: 56px 0 24px;
}
.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38,38,38,.12); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 30px; }
.card-cat {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--green);
	margin: 0 0 12px;
}
.card-title {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 21px;
	line-height: 1.3;
	margin: 0 0 12px;
}
.card-title a { color: var(--dark); }
.card-title a:hover { color: var(--green); }
.card-excerpt { font-size: 15.5px; color: var(--gray); margin: 0 0 20px; }
.card-meta {
	margin-top: auto;
	font-size: 13px;
	color: var(--light-gray);
	display: flex;
	align-items: center;
	gap: 10px;
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--light-gray); display: inline-block; }

/* Post hero */
.post-hero {
	position: relative;
	background: var(--dark);
	color: #fff;
	overflow: hidden;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
}
.post-hero-bg { position: absolute; inset: 0; z-index: 0; }
.post-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.post-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(38,38,38,.25) 0%, rgba(38,38,38,.85) 100%);
}
.post-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--read);
	margin: 0 auto;
	padding: 64px 24px 56px;
}
.post-cat {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 16px;
}
.post-title {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.15;
	margin: 0;
}
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
	font-size: 14px;
	color: rgba(255,255,255,.8);
}
.post-meta .dot { background: rgba(255,255,255,.55); }

/* Article body */
.article {
	max-width: var(--read);
	margin: 0 auto;
	padding: 56px 24px 24px;
	font-size: 18px;
	line-height: 1.78;
	color: #333;
}
.article > p, .article > ul, .article > ol, .article > .jjp-table-wrap, .article > blockquote,
.article > h2, .article > h3, .article > h4 { margin: 0 0 28px; }
.article h2 {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 30px;
	line-height: 1.25;
	color: var(--dark);
	margin-top: 48px;
}
.article h3 {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.3;
	color: var(--dark);
	margin-top: 36px;
}
.article a {
	color: var(--green);
	text-decoration: underline;
	text-decoration-color: var(--gold);
	text-underline-offset: 3px;
}
.article a:hover { color: var(--gold); }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 10px; }
.article strong { color: var(--dark); }
.article blockquote {
	border-left: 4px solid var(--gold);
	background: var(--bg-soft);
	padding: 22px 26px;
	font-size: 20px;
	font-style: italic;
	color: var(--dark);
}

/* Tables */
.jjp-table-wrap { overflow-x: auto; }
.article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}
.article th, .article td {
	text-align: left;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
.article thead th {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	background: var(--dark);
	color: #fff;
	border-bottom: 0;
}
.article tbody tr:nth-child(even) { background: var(--bg-soft); }

/* CTA */
.cta {
	background: var(--dark);
	color: #fff;
	text-align: center;
	padding: 72px 24px;
	margin-top: 64px;
}
.cta-title {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 3.5vw, 38px);
	line-height: 1.2;
	margin: 0 0 16px;
}
.cta-text {
	font-weight: 300;
	font-size: 18px;
	color: var(--light-gray);
	max-width: 560px;
	margin: 0 auto 32px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Related */
.related { padding: 72px 0 24px; }
.related-heading {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 28px;
	text-align: center;
	margin: 0;
}
.related-heading::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	background: var(--gold);
	margin: 16px auto 0;
}

/* Footer */
.site-footer { background: #1c1c1c; color: #fff; padding: 48px 0 28px; margin-top: 0; }
.footer-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-nav { display: flex; gap: 24px; margin: 0 auto; flex-wrap: wrap; }
.footer-nav a { color: #fff; font-family: "Lato", sans-serif; font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 1.6px; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { padding-top: 22px; font-size: 13px; color: var(--light-gray); }

/* Responsive */
@media (max-width: 980px) {
	.site-nav, .site-header .btn { display: none; }
	.nav-toggle { display: block; }
	body.nav-open .site-nav {
		display: flex;
		flex-direction: column;
		gap: 0;
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		background: var(--dark);
		padding: 8px 24px 20px;
	}
	body.nav-open .site-nav a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
	.grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 640px) {
	.grid { grid-template-columns: 1fr; padding-top: 40px; }
	.hero { padding: 56px 0 48px; }
	.post-hero { min-height: 360px; }
	.article { font-size: 17px; padding-top: 40px; }
	.footer-inner { flex-direction: column; text-align: center; }
	.footer-nav { margin: 0; }
}
