/* =========================================================================
   ZEEM Single Blog Post — port of Downloads/zeem-blog-single.html
   Loads only on is_singular('post'). Targets standard HTML elements inside
   `.article-body` plus WP block classes — the editor writes normally, the
   theme handles the look.
   ========================================================================= */

:root {
	--navy:        #0B1A2E;
	--navy-light:  #0f2138;
	--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;
	--font-serif:  'Lora', Georgia, 'Times New Roman', serif;
}

/* ---------- Hello Elementor chrome neutralized on single posts ---------- */
.single-post .site-header,
.single-post .site-footer,
.single-post #masthead,
.single-post #colophon {
	display: none !important;
}
.single-post #page,
.single-post #content,
.single-post .site-main,
.single-post .site {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
	background: var( --navy );
}
body.single-post {
	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.single-post ) { background: var( --navy ); }

/* Reset only for our own elements (nav handled by nav.css) */
.progress-bar,
.article-hero, .article-hero *,
.article-body, .article-body *,
.article-end, .article-end *,
.next-article, .next-article *,
.site-footer, .site-footer * {
	box-sizing: border-box;
}

/* =========================================================================
   READING PROGRESS BAR
   ========================================================================= */
.progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background: var( --gold );
	z-index: 200;
	transition: width 0.1s linear;
}

/* =========================================================================
   ARTICLE HERO
   ========================================================================= */
.article-hero {
	position: relative;
	width: 100%;
	height: 75vh;
	height: 75dvh;
	min-height: 500px;
	overflow: hidden;
}
.article-hero-image {
	position: absolute;
	inset: -10% 0;
	width: 100%;
	height: 120%;
	will-change: transform;
}
.article-hero-image img,
.article-hero-image .placeholder-hero {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.article-hero-image .placeholder-hero {
	background: linear-gradient( 155deg, #1a2c3e 0%, #0e1d2a 35%, #172a38 70%, #0B1A2E 100% );
}
.article-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba( 11, 26, 46, 0.2 ) 0%, rgba( 11, 26, 46, 0.7 ) 70%, var( --navy ) 100% );
	pointer-events: none;
}
.article-hero-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 780px;
	margin: 0 auto;
	padding: 0 30px 60px;
	text-align: center;
	z-index: 2;
	font-family: var( --font );
}
.article-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.22em;
	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 16px;
	border-radius: 2px;
	margin-bottom: 24px;
	opacity: 0;
	transform: translateY( 10px );
}
.article-title {
	font-size: 48px;
	font-weight: 200;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var( --white-pure );
	margin: 0 0 24px 0;
	opacity: 0;
	transform: translateY( 18px );
}
.article-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	opacity: 0;
	transform: translateY( 10px );
}
.article-meta span {
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.06em;
	color: var( --grey-light );
}
.article-meta .meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var( --gold-dim );
	display: inline-block;
	flex-shrink: 0;
}

/* =========================================================================
   ARTICLE BODY  — targets STANDARD HTML inside .article-body
   The author writes normally; theme handles all typography.
   ========================================================================= */
.article-body {
	max-width: 720px;
	margin: 0 auto;
	padding: 70px 30px 60px;
	font-family: var( --font );
	color: var( --white );
}

/* ---- Body text (paragraphs) ---- */
.article-body p {
	font-size: 17px;
	font-weight: 300;
	line-height: 1.9;
	color: var( --white );
	margin: 0 0 32px 0;
}

/* The first paragraph auto-becomes the "lead" — no class needed by the author */
.article-body > p:first-of-type {
	font-size: 20px;
	line-height: 1.8;
	color: var( --white-pure );
	margin-bottom: 40px;
}

/* Last paragraph: no trailing margin */
.article-body > p:last-child {
	margin-bottom: 0;
}

/* ---- Headings ---- */
.article-body h2 {
	font-size: 28px;
	font-weight: 200;
	letter-spacing: 0.01em;
	line-height: 1.3;
	color: var( --white-pure );
	margin: 56px 0 24px 0;
}

.article-body h3 {
	font-size: 20px;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.4;
	color: var( --gold );
	margin: 44px 0 18px 0;
}

.article-body h4,
.article-body h5,
.article-body h6 {
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var( --white-pure );
	margin: 32px 0 14px 0;
}

/* ---- Links ---- */
.article-body a {
	color: var( --gold );
	text-decoration: none;
	border-bottom: 1px solid rgba( 201, 169, 110, 0.3 );
	transition: border-color 0.3s ease, color 0.3s ease;
}
.article-body a:hover {
	border-bottom-color: var( --gold );
	color: var( --gold );
}

/* ---- Lists ---- */
.article-body ul,
.article-body ol {
	margin: 0 0 32px 0;
	padding-left: 1.5em;
}
.article-body li {
	font-size: 17px;
	font-weight: 300;
	line-height: 1.9;
	color: var( --white );
	margin-bottom: 8px;
}
.article-body li::marker {
	color: var( --gold-dim );
}

/* ---- Blockquote (pull quote) — targets both raw <blockquote> AND WP's .wp-block-quote ---- */
.article-body blockquote,
.article-body .wp-block-quote,
.article-body .wp-block-pullquote {
	margin: 56px 0;
	padding: 40px 0;
	border-top: 1px solid var( --gold-faint );
	border-bottom: 1px solid var( --gold-faint );
	text-align: center;
	background: transparent;
}
.article-body blockquote p,
.article-body .wp-block-quote p,
.article-body .wp-block-pullquote p {
	font-family: var( --font-serif );
	font-size: 26px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.55;
	color: var( --gold );
	max-width: 580px;
	margin: 0 auto;
}
/* WP blockquote citation */
.article-body blockquote cite,
.article-body .wp-block-quote cite {
	display: block;
	font-family: var( --font );
	font-size: 12px;
	font-style: normal;
	font-weight: 300;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --grey );
	margin-top: 18px;
}

/* ---- Images (figure + figcaption, supports .alignwide and .alignfull) ---- */
.article-body figure,
.article-body .wp-block-image {
	margin: 48px 0;
	overflow: hidden;
	border-radius: 2px;
}
.article-body figure img,
.article-body .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 2px;
}
.article-body figcaption,
.article-body .wp-block-image figcaption {
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var( --grey );
	text-align: center;
	margin-top: 12px;
	font-style: italic;
}

/* Wide and full alignments — break out of the 720px column.
   .alignwide and .alignfull are WP-standard classes added by the block
   editor when the user picks wider widths in the image block toolbar. */
.article-body .alignwide,
.article-body figure.alignwide {
	margin-left: -80px;
	margin-right: -80px;
}
.article-body .alignfull,
.article-body figure.alignfull {
	margin-left: calc( ( 720px - 100vw ) / 2 + 30px );
	margin-right: calc( ( 720px - 100vw ) / 2 + 30px );
	max-width: 100vw;
	border-radius: 0;
}

/* ---- Code (inline + block) ---- */
.article-body code {
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
	background: rgba( 201, 169, 110, 0.08 );
	color: var( --gold );
	padding: 2px 6px;
	border-radius: 2px;
}
.article-body pre {
	background: rgba( 0, 0, 0, 0.25 );
	border-left: 2px solid var( --gold-dim );
	padding: 20px 24px;
	margin: 32px 0;
	overflow-x: auto;
	border-radius: 2px;
}
.article-body pre code {
	background: none;
	color: var( --white );
	padding: 0;
}

/* ---- Horizontal rule ---- */
.article-body hr {
	border: 0;
	border-top: 1px solid var( --gold-faint );
	margin: 48px auto;
	width: 60px;
}

/* ---- Strong / em ---- */
.article-body strong {
	font-weight: 500;
	color: var( --white-pure );
}
.article-body em {
	font-style: italic;
}

/* =========================================================================
   ARTICLE TAGS / SHARE
   ========================================================================= */
.article-end {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 30px 80px;
	font-family: var( --font );
}
.article-divider {
	width: 40px;
	height: 1px;
	background: var( --gold-dim );
	margin: 0 auto 40px;
}
.article-tags {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}
.article-tags span {
	font-size: 11px;
	font-weight: 300;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --grey-light );
	border: 1px solid rgba( 201, 169, 110, 0.1 );
	padding: 5px 14px;
	border-radius: 2px;
	transition: border-color 0.3s ease, color 0.3s ease;
}
.article-tags span:hover {
	border-color: var( --gold-dim );
	color: var( --gold );
	cursor: default;
}

.article-share {
	text-align: center;
}
.article-share p {
	font-size: 11px;
	font-weight: 300;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var( --grey );
	margin: 0 0 16px 0;
}
.share-links {
	display: flex;
	justify-content: center;
	gap: 16px;
}
.share-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba( 201, 169, 110, 0.1 );
	color: var( --grey-light );
	text-decoration: none;
	font-size: 14px;
	transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.share-links a:hover {
	border-color: var( --gold-dim );
	color: var( --gold );
}
.share-links a.copied {
	background: rgba( 201, 169, 110, 0.12 );
	color: var( --gold );
	border-color: var( --gold-dim );
}

/* =========================================================================
   NEXT ARTICLE TEASER
   ========================================================================= */
.next-article {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	font-family: var( --font );
}
.next-article-inner {
	position: relative;
	width: 100%;
	height: 45vh;
	min-height: 320px;
	overflow: hidden;
	border-radius: 3px;
	cursor: pointer;
	display: block;
	text-decoration: none;
	color: inherit;
}
.next-article-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform 0.8s cubic-bezier( 0.25, 0.1, 0.25, 1 );
}
.next-article-image img,
.next-article-image .placeholder-next {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.next-article-image .placeholder-next {
	background: linear-gradient( 145deg, #14222e 0%, #0a1620 40%, #182a3a 100% );
}
.next-article-inner:hover .next-article-image {
	transform: scale( 1.03 );
}
.next-article-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba( 11, 26, 46, 0.3 ) 0%, rgba( 11, 26, 46, 0.78 ) 100% );
	pointer-events: none;
}
.next-article-content {
	position: absolute;
	bottom: 40px;
	left: 44px;
	z-index: 2;
}
.next-article-label {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var( --grey-light );
	margin: 0 0 12px 0;
	opacity: 0;
	transform: translateY( 8px );
}
.next-article-title {
	font-size: 32px;
	font-weight: 200;
	letter-spacing: 0.01em;
	line-height: 1.2;
	color: var( --gold );
	max-width: 500px;
	opacity: 0;
	transform: translateY( 12px );
}
.next-article-arrow {
	position: absolute;
	bottom: 40px;
	right: 44px;
	font-size: 24px;
	color: var( --gold );
	opacity: 0;
	transform: translateX( -8px );
	transition: transform 0.3s ease;
}
.next-article-inner:hover .next-article-arrow {
	transform: translateX( 0 );
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.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 */

	.article-hero { height: 60vh; height: 60dvh; min-height: 400px; }
	.article-hero-content { padding: 0 24px 40px; text-align: left; }
	.article-title { font-size: 30px; }
	.article-meta { justify-content: flex-start; gap: 12px; }
	.article-meta span { font-size: 12px; }

	.article-body { padding: 50px 24px 40px; }
	.article-body p { font-size: 16px; line-height: 1.85; }
	.article-body > p:first-of-type { font-size: 18px; }
	.article-body h2 { font-size: 24px; margin-top: 44px; }
	.article-body h3 { font-size: 18px; }
	.article-body blockquote p,
	.article-body .wp-block-quote p,
	.article-body .wp-block-pullquote p { font-size: 21px; }

	/* On mobile, .alignwide and .alignfull collapse to the standard width
	   with only a small bleed for breathing room. */
	.article-body .alignwide,
	.article-body figure.alignwide,
	.article-body .alignfull,
	.article-body figure.alignfull {
		margin-left: -24px;
		margin-right: -24px;
	}

	.article-end { padding: 0 24px 60px; }

	.next-article { padding: 0 16px; }
	.next-article-inner { height: 35vh; min-height: 260px; }
	.next-article-content { bottom: 28px; left: 24px; }
	.next-article-title { font-size: 24px; }
	.next-article-arrow { bottom: 28px; right: 24px; }

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

/* Reduced motion */
@media ( prefers-reduced-motion: reduce ) {
	.article-tag,
	.article-title,
	.article-meta,
	.next-article-label,
	.next-article-title,
	.next-article-arrow {
		opacity: 1 !important;
		transform: none !important;
	}
	.article-hero-image { transform: none !important; }
}
