/* =========================================================================
   ZEEM Homepage V2
   Direct port of Downloads/zeem-homepage_1.html. CSS only loads on the
   "ZEEM Homepage V2" page template, so generic class names like .section
   / .glass-nav are safe — no other template carries them.
   ========================================================================= */

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

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

body.page-template-homepage-v2 {
	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;
}

/* Scroll snap — scoped via :has() so it ONLY applies on this page. */
html:has( body.page-template-homepage-v2 ) {
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	background: var( --navy );
}

/* Reset only for our own elements (nav handled by nav.css) */
.dot-nav, .dot-nav *,
.section, .section *,
.copyright {
	box-sizing: border-box;
}

/* =========================================================================
   GLASS NAV — homepage overrides only
   Structural styles live in nav.css; these override the defaults for the
   full-bleed homepage (more transparent, slower fade, logo fades in via JS).
   ========================================================================= */

/* Homepage starts more transparent than standard 0.55 */
.glass-nav {
	background: rgba( 11, 26, 46, 0.25 );
	border-color: rgba( 201, 169, 110, 0.04 );
	transition: background 0.5s ease, border-color 0.5s ease;
}
/* Homepage uses .solid instead of .scrolled (JS class added by homepage-v2.js) */
.glass-nav.solid {
	background: rgba( 11, 26, 46, 0.78 );
	border-color: rgba( 201, 169, 110, 0.1 );
}
/* Nav logo is always visible (consistent with every other page). The JS still
   toggles `.visible` for the glass-nav state, but the logo no longer hides. */
.nav-logo {
	opacity: 1;
	transition: opacity 0.5s ease;
}
.nav-logo.visible { opacity: 1; }

/* =========================================================================
   DOT NAV (Right side)
   ========================================================================= */
.dot-nav {
	position: fixed;
	right: 36px;
	top: 50%;
	transform: translateY( -50% );
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.dot-nav a {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid var( --gold-dim );
	background: transparent;
	transition: background 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
	cursor: pointer;
	text-decoration: none;
}
.dot-nav a.active {
	background: var( --gold );
	border-color: var( --gold );
	transform: scale( 1.2 );
}
.dot-nav a:hover:not( .active ) {
	border-color: var( --gold );
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section {
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	scroll-snap-align: start;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-family: var( --font );
}

/* =========================================================================
   SECTION 1: HERO
   ========================================================================= */
.hero-section {
	flex-direction: column;
	gap: 0;
}

.blueprint-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.blueprint-grid svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.grid-line {
	stroke: var( --gold );
	stroke-width: 0.5;
	opacity: 0;
}
.grid-circle {
	fill: none;
	stroke: var( --gold );
	stroke-width: 0.3;
	opacity: 0;
}

.hero-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -55% );
	width: 600px;
	height: 600px;
	background: radial-gradient( circle, var( --gold-glow ) 0%, transparent 70% );
	pointer-events: none;
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	max-width: 820px;
	padding: 0 40px;
}
.hero-logo-row {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}
.hero-logo-row img {
	height: 42px;
	width: auto;
	object-fit: contain;
	opacity: 0;
	transform: translateY( 10px );
}
.hero-logo-row .logo-arch {
	height: 56px;
	margin-left: 4px;
}

.hero-divider {
	width: 50px;
	height: 1px;
	background: var( --gold-dim );
	opacity: 0;
}

.hero-text {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.85;
	text-align: center;
	color: var( --white );
	max-width: 680px;
	margin: 0;
	opacity: 0;
	transform: translateY( 15px );
}
.hero-text strong {
	font-weight: 400;
	color: var( --gold );
}
/* Paragraph rhythm for the editable (WYSIWYG) hero text. */
.hero-text p {
	margin: 0 0 1.5em;
}
.hero-text p:last-child {
	margin-bottom: 0;
}

.scroll-cue {
	position: absolute;
	bottom: 36px;
	left: 50%;
	transform: translateX( -50% );
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	opacity: 0;
}
.scroll-cue span {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var( --grey );
}
.scroll-cue-line {
	width: 1px;
	height: 28px;
	background: linear-gradient( to bottom, var( --gold-dim ), transparent );
	animation: zeemScrollPulse 2.5s ease-in-out infinite;
}
@keyframes zeemScrollPulse {
	0%, 100% { opacity: 0.3; transform: scaleY( 0.7 ); }
	50%      { opacity: 1;   transform: scaleY( 1 ); }
}

/* =========================================================================
   SECTION 2: PORTFOLIO
   ========================================================================= */
.portfolio-section {
	flex-direction: column;
	gap: 44px;
	padding-top: 90px;
	padding-bottom: 40px;
}
.portfolio-header {
	text-align: center;
	z-index: 2;
}
.portfolio-label {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var( --gold );
	margin-bottom: 14px;
	opacity: 0;
	transform: translateY( 10px );
}
.portfolio-title {
	font-size: 38px;
	font-weight: 200;
	letter-spacing: 0.01em;
	color: var( --white );
	margin: 0 0 14px 0;
	opacity: 0;
	transform: translateY( 12px );
}
.portfolio-sub {
	font-size: 16px;
	font-weight: 300;
	color: var( --grey-light );
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.65;
	opacity: 0;
	transform: translateY( 10px );
}

/* Project strip — marquee */
.projects-strip-wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
	z-index: 2;
}
.projects-strip {
	display: flex;
	gap: 20px;
	padding: 0 40px;
	animation: zeemStripScroll 30s linear infinite;
	width: max-content;
}
.projects-strip:hover {
	animation-play-state: paused;
}
@keyframes zeemStripScroll {
	0%   { transform: translateX( 0 ); }
	100% { transform: translateX( -50% ); }
}

/* Small featured set: no marquee, no duplication — center the cards (they wrap
   on narrow screens instead of scrolling). */
.projects-strip.projects-strip--static {
	animation: none;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	justify-content: center;
	flex-wrap: wrap;
}

.strip-card {
	flex-shrink: 0;
	width: 280px;
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.4s cubic-bezier( 0.25, 0.1, 0.25, 1 );
}
.strip-card:hover {
	transform: translateY( -4px );
}
.strip-card-image {
	width: 100%;
	height: 380px;
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	transition: transform 0.6s cubic-bezier( 0.22, 1, 0.36, 1 );
	border: 1px solid rgba( 201, 169, 110, 0.06 );
	background: linear-gradient( 145deg, #1a2c3e 0%, #0d1926 50%, #152638 100% );
}
.strip-card:hover .strip-card-image {
	transform: scale( 1.05 );
}
.strip-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.strip-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%;
	background: linear-gradient( to bottom, transparent, rgba( 11, 26, 46, 0.85 ) );
	pointer-events: none;
}
.strip-card-info {
	position: absolute;
	bottom: 16px;
	left: 18px;
	z-index: 2;
}
.strip-card-name {
	font-size: 15px;
	font-weight: 400;
	color: var( --white );
	margin-bottom: 3px;
}
.strip-card-meta {
	font-size: 11px;
	font-weight: 300;
	letter-spacing: 0.06em;
	color: var( --grey-light );
}

.portfolio-cta {
	text-align: center;
	z-index: 2;
	opacity: 0;
	transform: translateY( 10px );
}
.portfolio-cta a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.06em;
	color: var( --gold );
	text-decoration: none;
	padding: 14px 28px;
	border: 1px solid var( --gold-dim );
	border-radius: 6px;
	transition: background 0.3s ease, border-color 0.3s ease;
}
.portfolio-cta a:hover {
	background: rgba( 201, 169, 110, 0.06 );
	border-color: var( --gold );
}

/* =========================================================================
   SECTION 3: CONTACT
   ========================================================================= */
.contact-section {
	flex-direction: column;
	gap: 0;
	padding: 0 40px;
}
.contact-inner {
	display: flex;
	gap: 80px;
	max-width: 1100px;
	width: 100%;
	align-items: center;
	z-index: 2;
}
.contact-left {
	flex: 0 0 45%;
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.contact-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.contact-heading {
	font-size: 36px;
	font-weight: 200;
	color: var( --white );
	margin: 0 0 20px 0;
	opacity: 0;
	transform: translateY( 12px );
}
.contact-text {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.75;
	color: var( --grey-light );
	margin: 0 0 32px 0;
	max-width: 440px;
	opacity: 0;
	transform: translateY( 10px );
}
.contact-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.06em;
	color: var( --gold );
	text-decoration: none;
	padding: 14px 28px;
	border: 1px solid var( --gold-dim );
	border-radius: 6px;
	transition: background 0.3s ease, border-color 0.3s ease;
	margin-bottom: 30px;
	opacity: 0;
	transform: translateY( 10px );
}
.contact-cta:hover {
	background: rgba( 201, 169, 110, 0.06 );
	border-color: var( --gold );
}

.contact-socials {
	display: flex;
	gap: 16px;
	opacity: 0;
}
.contact-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	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;
}
.contact-socials a:hover {
	border-color: var( --gold-dim );
	color: var( --gold );
}
.contact-socials svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

/* City blocks */
.city-block {
	opacity: 0;
	transform: translateY( 12px );
}
.city-name {
	font-size: 22px;
	font-weight: 300;
	color: var( --gold );
	margin: 0 0 14px 0;
	letter-spacing: 0.04em;
}
.city-detail {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.8;
	color: var( --grey-light );
}
.city-detail a {
	color: var( --grey-light );
	text-decoration: none;
	transition: color 0.3s ease;
}
.city-detail a:hover { color: var( --gold ); }

.city-divider {
	width: 30px;
	height: 1px;
	background: var( --gold-faint );
	margin: 28px 0;
}

/* =========================================================================
   COPYRIGHT
   ========================================================================= */
.copyright {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX( -50% );
	font-size: 11px;
	font-weight: 300;
	letter-spacing: 0.08em;
	color: var( --grey );
	white-space: nowrap;
	margin: 0;
}

/* =========================================================================
   MOBILE
   ========================================================================= */
@media ( max-width: 768px ) {
	html:has( body.page-template-homepage-v2 ) {
		scroll-snap-type: y proximity;
	}

	/* Nav styles live in nav.css */

	.dot-nav { display: none; }

	/* Hero mobile */
	.hero-logo-row img            { height: 30px; }
	.hero-logo-row .logo-arch     { height: 42px; width: auto; max-width: 70%; }
	.hero-text                    { font-size: 15px; line-height: 1.75; padding: 0 10px; }
	.hero-content                 { gap: 32px; padding: 0 24px; }

	/* Portfolio mobile */
	.portfolio-section { gap: 32px; padding: 80px 0 40px; }
	.portfolio-title   { font-size: 28px; }
	.portfolio-sub     { font-size: 14px; padding: 0 24px; }
	.strip-card        { width: 220px; }
	.strip-card-image  { height: 300px; }
	.projects-strip    { gap: 14px; padding: 0 20px; }

	/* Contact mobile */
	.contact-section { padding: 0 24px; }
	.contact-inner   { flex-direction: column; gap: 50px; align-items: flex-start; }
	.contact-left    { flex: 0 0 auto; width: 100%; }
	.contact-right   { width: 100%; }
	.contact-heading { font-size: 28px; }
	.contact-text    { font-size: 15px; }
	.city-name       { font-size: 20px; }
	.copyright       { font-size: 10px; bottom: 16px; }
}

/* Reduced motion: show everything, skip marquee + entrance animations */
@media ( prefers-reduced-motion: reduce ) {
	.hero-logo-row img,
	.hero-divider,
	.hero-text,
	.scroll-cue,
	.portfolio-label,
	.portfolio-title,
	.portfolio-sub,
	.portfolio-cta,
	.contact-heading,
	.contact-text,
	.contact-cta,
	.contact-socials,
	.city-block,
	.nav-logo {
		opacity: 1 !important;
		transform: none !important;
	}
	.projects-strip   { animation: none; }
	.scroll-cue-line  { animation: none; }
	.grid-line        { opacity: 0.04; }
	.grid-circle      { opacity: 0.03; }
}
