/* =========================================================================
   ZEEM Projects — single project page
   Direct port of Downloads/zeem-single-project.html with image-based slots
   instead of CSS-gradient placeholders.
   ========================================================================= */

: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:      #FFFFFF;
	--grey:       #5A6478;
	--grey-light: #8A92A1;
	--font:       'Outfit', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Hello Elementor chrome neutralized on single project ---------- */
.single-projects .site-header,
.single-projects .site-footer,
.single-projects #masthead,
.single-projects #colophon {
	display: none !important;
}
.single-projects #page,
.single-projects #content,
.single-projects .site-main,
.single-projects .site {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
	background: var( --navy );
}
/* The body itself carries the .single-projects class — selector has to be
   `body.single-projects`, not `.single-projects body` (which looks for a
   body INSIDE the body and matches nothing). Without this, Hello Elementor's
   white default leaks through any gap between our sections. */
body.single-projects {
	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-projects ) {
	background: var( --navy );
}

/* Reset only for our own elements (nav handled by nav.css) */
.hero, .hero *,
.metadata-strip, .metadata-strip *,
.description-block, .description-block *,
.gallery, .gallery *,
.image-counter, .image-counter *,
.next-project, .next-project *,
.site-footer, .site-footer * {
	box-sizing: border-box;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}
.hero-image {
	position: absolute;
	inset: -15% 0;
	width: 100%;
	height: 130%;
	will-change: transform;
}
.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 45%;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		rgba( 11, 26, 46, 0.6 ) 60%,
		rgba( 11, 26, 46, 0.9 ) 100%
	);
	pointer-events: none;
}
.hero-content {
	position: absolute;
	bottom: 60px;
	left: 60px;
	z-index: 2;
	font-family: var( --font );
}
.hero-project-number {
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.25em;
	color: var( --gold-dim );
	margin: 0 0 14px 0;
	opacity: 0;
	transform: translateY( 12px );
}
.hero-title {
	font-size: 72px;
	font-weight: 200;
	letter-spacing: -0.01em;
	line-height: 1.05;
	color: var( --gold );
	margin: 0 0 16px 0;
	opacity: 0;
	transform: translateY( 20px );
}
.hero-subtitle {
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var( --grey-light );
	margin: 0;
	opacity: 0;
	transform: translateY( 12px );
}

/* =========================================================================
   METADATA STRIP
   ========================================================================= */
.metadata-strip {
	width: 100%;
	padding: 36px 60px;
	border-top: 1px solid var( --gold-faint );
	border-bottom: 1px solid var( --gold-faint );
	display: flex;
	justify-content: center;
	gap: 60px;
	flex-wrap: wrap;
	font-family: var( --font );
}
.meta-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	opacity: 0;
	transform: translateY( 10px );
}
.meta-label {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var( --grey );
}
.meta-value {
	font-size: 15px;
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var( --white );
}
.meta-divider {
	width: 1px;
	height: 36px;
	background: var( --gold-faint );
	align-self: center;
	opacity: 0;
}

/* =========================================================================
   DESCRIPTION BLOCK
   ========================================================================= */
.description-block {
	max-width: 660px;
	margin: 0 auto;
	padding: 100px 30px;
	text-align: center;
	font-family: var( --font );
}
.description-text {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.85;
	color: var( --white );
	margin: 0 0 40px 0;
	opacity: 0;
	transform: translateY( 15px );
}
.description-role {
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.06em;
	color: var( --grey );
	line-height: 1.6;
	margin: 0;
	opacity: 0;
	transform: translateY( 10px );
}
.description-divider {
	width: 40px;
	height: 1px;
	background: var( --gold-dim );
	margin: 0 auto 30px;
	opacity: 0;
}

/* =========================================================================
   IMAGE GALLERY
   ========================================================================= */
.gallery {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}
.gallery-row {
	margin-bottom: 8px;
	overflow: hidden;
}
.gallery-row.full { width: 100%; }
.gallery-row.pair {
	display: flex;
	gap: 8px;
}
.gallery-row.pair .gallery-item {
	flex: 1;
}
.gallery-row.centered {
	width: 70%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 8px;
}
.gallery-row.blueprint {
	width: 100%;
	position: relative;
	border: 1px solid var( --gold-faint );
	padding: 2px;
	margin-bottom: 8px;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY( 30px );
}
.gallery-item img {
	width: 100%;
	height: 65vh;
	object-fit: cover;
	display: block;
}
.gallery-row.pair .gallery-item img      { height: 50vh; }
.gallery-row.centered .gallery-item img  { height: 55vh; }
.gallery-row.blueprint .gallery-item img { height: 50vh; }

/* =========================================================================
   IMAGE COUNTER (fixed)
   ========================================================================= */
.image-counter {
	position: fixed;
	bottom: 30px;
	right: 40px;
	z-index: 90;
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.1em;
	color: var( --grey );
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	font-family: var( --font );
}
.image-counter.visible {
	opacity: 1;
}
.image-counter .current {
	color: var( --gold );
	font-weight: 400;
}

/* =========================================================================
   NEXT PROJECT TEASER
   ========================================================================= */
.next-project {
	position: relative;
	width: 100%;
	height: 70vh;
	overflow: hidden;
	cursor: pointer;
	margin-top: 120px;
	display: block;
	text-decoration: none;
	font-family: var( --font );
}
.next-project-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform 0.8s cubic-bezier( 0.25, 0.1, 0.25, 1 );
}
.next-project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.next-project:hover .next-project-image {
	transform: scale( 1.03 );
}
.next-project-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba( 11, 26, 46, 0.3 ) 0%, rgba( 11, 26, 46, 0.75 ) 100% );
	pointer-events: none;
}
.next-project-content {
	position: absolute;
	bottom: 60px;
	left: 60px;
	z-index: 2;
}
.next-label {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var( --grey-light );
	margin: 0 0 14px 0;
	opacity: 0;
	transform: translateY( 10px );
}
.next-title {
	font-size: 48px;
	font-weight: 200;
	letter-spacing: 0.01em;
	line-height: 1.1;
	color: var( --gold );
	opacity: 0;
	transform: translateY( 15px );
}
.next-arrow {
	position: absolute;
	bottom: 60px;
	right: 60px;
	font-size: 28px;
	color: var( --gold );
	opacity: 0;
	transform: translateX( -10px );
	transition: transform 0.3s ease;
}
.next-project:hover .next-arrow {
	transform: translateX( 0 );
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
	padding: 100px 20px 60px;
	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 */

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

	.hero { height: 70vh; height: 70dvh; }
	.hero-content { bottom: 40px; left: 30px; }
	.hero-title { font-size: 42px; }
	.hero-subtitle { font-size: 14px; }
	.hero-project-number { font-size: 11px; }

	.metadata-strip {
		flex-direction: column;
		align-items: flex-start;
		padding: 30px 30px;
		gap: 20px;
	}
	.meta-item {
		align-items: flex-start;
		flex-direction: row;
		gap: 12px;
	}
	.meta-label { min-width: 80px; }
	.meta-divider { display: none; }

	.description-block {
		padding: 60px 24px;
		text-align: left;
	}
	.description-text { font-size: 16px; line-height: 1.75; }
	.description-divider { margin: 0 0 24px; }

	.gallery { padding: 0 16px; }
	.gallery-row.pair { flex-direction: column; }
	.gallery-row.centered { width: 100%; }
	.gallery-item img,
	.gallery-row.pair .gallery-item img { height: 45vh; }
	.gallery-row.centered .gallery-item img { height: 40vh; }
	.gallery-row.blueprint .gallery-item img { height: 35vh; }

	.image-counter {
		bottom: 20px;
		right: 20px;
		font-size: 11px;
	}

	.next-project { height: 55vh; margin-top: 60px; }
	.next-project-content { bottom: 36px; left: 30px; }
	.next-title { font-size: 32px; }
	.next-arrow { bottom: 36px; right: 30px; font-size: 22px; }
}

/* Reduced motion: skip reveal animations, show everything */
@media ( prefers-reduced-motion: reduce ) {
	.hero-project-number,
	.hero-title,
	.hero-subtitle,
	.meta-item,
	.meta-divider,
	.description-text,
	.description-divider,
	.description-role,
	.gallery-item,
	.next-label,
	.next-title,
	.next-arrow {
		opacity: 1 !important;
		transform: none !important;
	}
	.image-counter { opacity: 1; }
}
