/* ==========================================================================
   CIXIZOC — Homepage Hero (MYOTH-inspired)
   Full-bleed · centered type · ghost CTA · responsive
   ========================================================================== */

:root {
	--cz-white: #f8f6f2;
	--cz-white-dim: rgba(248, 246, 242, 0.72);
	--cz-overlay: rgba(12, 10, 8, 0.42);
	--cz-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--cz-font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--cz-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cz-header-h: 72px;
}

body.cixizoc-home,
body.cixizoc-home.cixizoc-gate-active {
	margin: 0 !important;
	padding: 0 !important;
	background: #0c0a08;
	overflow: hidden;
	height: 100vh;
	height: 100dvh;
}

body.cixizoc-home #wpadminbar {
	display: none;
}

.cz-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	min-height: 560px;
	color: var(--cz-white);
	font-family: var(--cz-font-sans);
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
}

.cz-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.cz-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	transform: scale(1.03);
	filter: contrast(1.05) saturate(0.9) brightness(0.9);
	animation: czHeroZoom 24s var(--cz-ease) infinite alternate;
}

.cz-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(6, 5, 4, 0.52) 0%, rgba(6, 5, 4, 0.18) 42%, rgba(6, 5, 4, 0.58) 100%),
		linear-gradient(to right, rgba(6, 5, 4, 0.28) 0%, transparent 35%, transparent 65%, rgba(6, 5, 4, 0.22) 100%);
}

.cz-hero__vignette {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 35%, rgba(4, 3, 2, 0.55) 100%);
	pointer-events: none;
}

@keyframes czHeroZoom {
	from { transform: scale(1.03); }
	to   { transform: scale(1.07); }
}

/* Header — transparent overlay */
.cz-hero__header-shell {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
}

.cz-hero__header {
	position: relative;
	z-index: 10;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	height: var(--cz-header-h);
	padding: 0 clamp(1.25rem, 4vw, 3rem);
	padding-top: max(0px, env(safe-area-inset-top));
}

.cz-hero__logo {
	justify-self: start;
	display: block;
	line-height: 0;
	text-decoration: none;
	opacity: 0;
	animation: czFadeDown 1s var(--cz-ease) 0.15s forwards;
}

.cz-hero__logo img {
	height: clamp(48px, 8vw, 72px);
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.3));
}

.cz-hero__nav {
	justify-self: center;
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2.75rem);
	opacity: 0;
	animation: czFadeDown 1s var(--cz-ease) 0.3s forwards;
}

.cz-hero__nav-link {
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--cz-white-dim);
	text-decoration: none;
	transition: color 0.3s;
	white-space: nowrap;
}

.cz-hero__nav-link:hover {
	color: var(--cz-white);
}

.cz-hero__actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: clamp(0.85rem, 2vw, 1.35rem);
	opacity: 0;
	animation: czFadeDown 1s var(--cz-ease) 0.3s forwards;
}

.cz-hero__actions .cz-hero__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	line-height: 0;
	color: rgba(248, 246, 242, 0.82);
	text-decoration: none;
	transition: color 0.3s;
	-webkit-tap-highlight-color: transparent;
}

.cz-hero__actions button.cz-hero__icon {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.cz-hero__actions .cz-hero__icon svg {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
}

.cz-hero__actions .cz-hero__icon:hover {
	color: var(--cz-white);
}

.cz-hero__actions button.cz-hero__icon:hover,
.cz-hero__actions button.cz-hero__icon:focus,
.cz-hero__actions button.cz-hero__icon:active {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--cz-white);
}

.cz-hero__actions button.cz-hero__icon:focus-visible {
	outline: 2px solid rgba(248, 246, 242, 0.55);
	outline-offset: 3px;
}

.cz-hero__cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--cz-white);
	color: #0c0a08;
	font-size: 0.55rem;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
}

body.cz-hero-menu-open {
	overflow: hidden;
}

/* Homepage mobile menu — dark panel */
.cz-hero__mobile-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(1.15rem, 3vw, 1.5rem);
	padding: clamp(2rem, 6vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
	padding-bottom: calc(clamp(2rem, 6vw, 3.25rem) + env(safe-area-inset-bottom));
	background: rgba(8, 6, 4, 0.96);
	border-bottom: 1px solid rgba(248, 246, 242, 0.08);
}

.cz-hero__mobile-nav a {
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cz-white-dim);
	text-decoration: none;
	transition: color 0.25s ease;
}

.cz-hero__mobile-nav a:hover {
	color: var(--cz-white);
}

/* Center hero copy */
.cz-hero__content {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: calc(var(--cz-header-h) + 0.5rem) clamp(1.5rem, 5vw, 3rem) 2.5rem;
}

.cz-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	width: min(100%, 640px);
}

.cz-hero__title {
	margin: 0 0 0.65rem;
	font-family: var(--cz-font-serif);
	font-size: clamp(2.15rem, 6.5vw, 3.75rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: 0.01em;
	color: var(--cz-white);
}

.cz-hero__title em {
	font-style: italic;
	font-weight: 400;
}

.cz-hero__subtitle {
	margin: 0 0 1.65rem;
	max-width: 28em;
	font-family: var(--cz-font-sans);
	font-size: clamp(0.72rem, 1.35vw, 0.88rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.55;
	color: rgba(248, 246, 242, 0.82);
}

.cz-hero__cta-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
}

.cz-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1.85rem;
	border: 1px solid rgba(248, 246, 242, 0.72);
	border-radius: 999px;
	background: transparent;
	color: var(--cz-white);
	font-family: var(--cz-font-serif);
	font-size: clamp(0.72rem, 1.2vw, 0.82rem);
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-decoration: none;
	text-align: center;
	text-transform: none;
	transition: background 0.35s, border-color 0.35s;
}

.cz-hero__cta:hover {
	background: rgba(248, 246, 242, 0.1);
	border-color: var(--cz-white);
	color: var(--cz-white);
}

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.9s var(--cz-ease), transform 0.9s var(--cz-ease);
}

.cz-hero.is-ready [data-reveal] {
	opacity: 1;
	transform: translateY(0);
}

.cz-hero.is-ready [data-reveal]:nth-child(1) { transition-delay: 0.4s; }
.cz-hero.is-ready [data-reveal]:nth-child(2) { transition-delay: 0.58s; }
.cz-hero.is-ready [data-reveal]:nth-child(3) { transition-delay: 0.76s; }

@keyframes czFadeDown {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
	.cz-hero__header {
		grid-template-columns: auto 1fr auto;
	}

	.cz-hero__nav {
		display: none;
	}

	.cz-hero__subtitle {
		margin-bottom: 1.35rem;
		font-size: 0.78rem;
	}

	.cz-hero__title {
		margin-bottom: 0.55rem;
	}

	.cz-hero__mobile-nav {
		padding: clamp(1.75rem, 8vw, 2.5rem) 1.25rem calc(clamp(1.75rem, 8vw, 2.5rem) + env(safe-area-inset-bottom));
		gap: 1.1rem;
	}

	.cz-hero__mobile-nav a {
		font-size: 0.68rem;
		letter-spacing: 0.16em;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	.cz-hero__actions .cz-hero__icon {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

@media (max-width: 540px) {
	:root {
		--cz-header-h: 64px;
	}

	.cz-hero__logo img {
		height: clamp(44px, 11vw, 52px);
	}

	.cz-hero__header {
		padding: 0 1rem;
		padding-top: max(0px, env(safe-area-inset-top));
	}

	.cz-hero__content {
		padding: calc(var(--cz-header-h) + 0.25rem) 1.25rem 1.75rem;
	}

	.cz-hero__copy {
		width: 100%;
	}

	.cz-hero__subtitle {
		font-size: 0.72rem;
		line-height: 1.5;
		margin-bottom: 1.15rem;
		padding: 0 0.5rem;
	}

	.cz-hero__title {
		font-size: clamp(1.85rem, 9vw, 2.65rem);
		margin-bottom: 0.5rem;
		padding: 0 0.25rem;
	}

	.cz-hero__cta {
		padding: 0.65rem 1.45rem;
		font-size: 0.78rem;
	}

	.cz-hero__bg-img {
		object-position: center 50%;
		filter: contrast(1.04) saturate(0.88) brightness(0.86);
		transform: scale(1.02);
	}

	.cz-hero__overlay {
		background:
			linear-gradient(to bottom, rgba(6, 5, 4, 0.58) 0%, rgba(6, 5, 4, 0.22) 38%, rgba(6, 5, 4, 0.62) 100%);
	}

	.cz-hero__vignette {
		background: radial-gradient(ellipse at center, transparent 20%, rgba(4, 3, 2, 0.62) 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cz-hero__bg-img,
	.cz-hero__logo,
	.cz-hero__nav,
	.cz-hero__actions {
		animation: none !important;
		opacity: 1;
		transform: none;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.cz-hero__cta {
		transition: none;
	}
}
