/* =========================================================================
   ZEEM Blog (Journal) — archive
   Direct port of Downloads/zeem-blog.html. Loads only on the blog page
   (is_home), so class names like .post-strip / .featured-post are safe.
   ========================================================================= */

:root {
	--navy:       #0B1A2E;
	--navy-deep:  #071322;
	--gold:       #C9A96E;
	--gold-dim:   rgba( 201, 169, 110, 0.35 );
	--gold-faint: rgba( 201, 169, 110, 0.08 );
	--white:      #E8E8EC;
	--white-pure: #FFFFFF;
	--grey:       #5A6478;
	--grey-light: #8A92A1;
	--font:       'Outfit', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Hello Elementor chrome neutralized on the blog ---------- */
.blog .site-header,
.blog .site-footer,
.blog #masthead,
.blog #colophon {
	display: none !important;
}
.blog #page,
.blog #content,
.blog .site-main,
.blog .site {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
	background: var( --navy );
}

body.blog {
	background: var( --navy );
	color: var( --white );
	font-family: var( --font );
	font-weight: 300;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
html:has( body.blog ) { background: var( --navy ); }

/* Reset only for our own elements (nav handled by nav.css) */
.blog-intro, .blog-intro *,
.featured-post, .featured-post *,
.posts-container, .posts-container *,
.site-footer, .site-footer * {
	box-sizing: border-box;
}

/* =========================================================================
   PAGE INTRO
   ========================================================================= */
.blog-intro {
	padding: 160px 40px 80px;
	max-width: 1400px;
	margin: 0 auto;
	font-family: var( --font );
}
.blog-intro h1 {
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var( --gold );
	margin: 0 0 12px 0;
}
.blog-intro p {
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var( --grey-light );
	max-width: 480px;
	margin: 0;
}

/* =========================================================================
   FEATURED POST (newest)
   ========================================================================= */
.featured-post {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto 80px;
	padding: 0 40px;
	font-family: var( --font );
}
.featured-inner {
	position: relative;
	width: 100%;
	height: 65vh;
	min-height: 450px;
	overflow: hidden;
	border-radius: 3px;
	cursor: pointer;
	display: block;
	text-decoration: none;
	color: inherit;
}
.featured-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform 0.8s cubic-bezier( 0.25, 0.1, 0.25, 1 );
}
.featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.featured-image .placeholder-feat {
	width: 100%;
	height: 100%;
	background: linear-gradient( 145deg, #1a2c3e 0%, #0e1d2a 40%, #172a38 100% );
}
.featured-inner:hover .featured-image { transform: scale( 1.03 ); }

.featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba( 11, 26, 46, 0.15 ) 0%, rgba( 11, 26, 46, 0.75 ) 100% );
	pointer-events: none;
}
.featured-content {
	position: absolute;
	bottom: 50px;
	left: 50px;
	right: 50px;
	z-index: 2;
}
.featured-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var( --gold );
	/* Frosted bg — readable over busy hero images at all viewports */
	background: rgba( 11, 26, 46, 0.7 );
	-webkit-backdrop-filter: blur( 6px );
	backdrop-filter: blur( 6px );
	border: 1px solid rgba( 201, 169, 110, 0.15 );
	padding: 5px 14px;
	border-radius: 2px;
	margin-bottom: 18px;
}
.featured-title {
	font-size: 42px;
	font-weight: 200;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var( --white-pure );
	margin: 0 0 14px 0;
	max-width: 700px;
}
.featured-excerpt {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
	color: var( --grey-light );
	max-width: 520px;
	margin: 0 0 16px 0;
}
.featured-date {
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.08em;
	color: var( --grey );
}

/* =========================================================================
   POST STRIPS (zigzag)
   ========================================================================= */
.posts-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	font-family: var( --font );
}
.post-strip {
	display: flex;
	align-items: stretch;
	gap: 50px;
	padding: 50px 0;
	border-top: 1px solid var( --gold-faint );
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.post-strip:last-child {
	border-bottom: 1px solid var( --gold-faint );
}
.post-strip.reverse {
	flex-direction: row-reverse;
}

/* JS-controlled entrance: hidden by default ONLY when JS is enabled */
.zeem-js .post-strip {
	opacity: 0;
	transform: translateY( 25px );
}

.post-strip-image {
	width: 42%;
	min-height: 320px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 2px;
	position: relative;
	background: linear-gradient( 135deg, #162436 0%, #0d1926 50%, #1a2c3e 100% );
}
.post-strip-image img,
.post-strip-image .placeholder-post {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier( 0.25, 0.1, 0.25, 1 );
}
.post-strip:hover .post-strip-image img,
.post-strip:hover .placeholder-post {
	transform: scale( 1.04 );
}

.post-strip-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 0;
}
.post-strip-tag {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var( --gold );
	margin-bottom: 16px;
}
.post-strip-title {
	font-size: 30px;
	font-weight: 200;
	letter-spacing: 0.01em;
	line-height: 1.25;
	color: var( --white-pure );
	margin: 0 0 16px 0;
	transition: color 0.3s ease;
}
.post-strip:hover .post-strip-title { color: var( --gold ); }

.post-strip-excerpt {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	color: var( --grey-light );
	margin: 0 0 24px 0;
	max-width: 460px;
}
.post-strip-footer {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.post-strip-date,
.post-strip-read {
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.06em;
	color: var( --grey );
}
.post-strip-readmore {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var( --gold );
	display: inline-flex;
	align-items: center;
	gap: 6px;
	opacity: 0;
	transform: translateX( -8px );
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.post-strip:hover .post-strip-readmore {
	opacity: 1;
	transform: translateX( 0 );
}

/* =========================================================================
   FOOTER  (same as /projects/ pages)
   ========================================================================= */
.site-footer {
	padding: 100px 20px 60px;
	margin-top: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	position: relative;
	font-family: var( --font );
}
.site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX( -50% );
	width: 60px;
	height: 1px;
	background: var( --gold-dim );
}
.footer-logo {
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.2em;
	color: var( --gold );
	text-decoration: none;
	margin-bottom: 14px;
	transition: opacity 0.3s ease;
}
.footer-logo:hover { opacity: 0.7; }

.footer-locations {
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.12em;
	color: var( --grey-light );
	margin-bottom: 28px;
}
.footer-locations .dot {
	display: inline-block;
	margin: 0 10px;
	color: var( --gold-dim );
}

.footer-socials {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 40px;
}
.footer-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba( 201, 169, 110, 0.12 );
	color: var( --grey-light );
	text-decoration: none;
	transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-socials a:hover {
	border-color: var( --gold-dim );
	color: var( --gold );
}
.footer-socials svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}
.footer-copyright {
	font-size: 11px;
	font-weight: 300;
	letter-spacing: 0.08em;
	color: var( --grey );
	margin: 0;
}

/* =========================================================================
   MOBILE
   ========================================================================= */
@media ( max-width: 768px ) {
	/* Nav styles live in nav.css */

	.blog-intro { padding: 130px 24px 50px; }
	.blog-intro h1 { font-size: 12px; }
	.blog-intro p { font-size: 14px; }

	.featured-post { padding: 0 16px; margin-bottom: 50px; }
	.featured-inner { height: 50vh; min-height: 350px; }
	.featured-content { bottom: 30px; left: 24px; right: 24px; }
	.featured-title { font-size: 28px; }
	.featured-excerpt {
		font-size: 14px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.posts-container { padding: 0 16px; }
	.post-strip,
	.post-strip.reverse {
		flex-direction: column;
		gap: 24px;
		padding: 36px 0;
	}
	.post-strip-image { width: 100%; min-height: 220px; }
	.post-strip-image img,
	.post-strip-image .placeholder-post { min-height: 220px; }
	.post-strip-content { padding: 0; }
	.post-strip-title { font-size: 24px; }
	.post-strip-excerpt {
		font-size: 14px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.post-strip-readmore { opacity: 1; transform: translateX( 0 ); }

	.site-footer { padding: 70px 20px 40px; margin-top: 40px; }
}

/* Reduced motion: skip entrance, show everything */
@media ( prefers-reduced-motion: reduce ) {
	.zeem-js .post-strip {
		opacity: 1 !important;
		transform: none !important;
	}
}
