/* HHM Custom: Invite-only "coming soon" page. Standalone stylesheet — this
   template has no header/footer, so nothing here depends on the parent
   theme's styles. Palette matches the homepage v2 build (--hhm-bg/--hhm-fg/
   --hhm-accent) for brand consistency. */

.hhm-coming-soon {
	--hhm-bg: #0e1013;
	--hhm-fg: #f2f0ea;
	--hhm-accent: #d99a5b;
	margin: 0;
	background: var(--hhm-bg);
	color: var(--hhm-fg);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
	min-height: 100vh;
}

.hhm-cs {
	min-height: 100vh;
	display: flex;
	align-items: center;
	align-items: safe center;
	justify-content: center;
	padding: 32px 16px;
	box-sizing: border-box;
}

.hhm-cs__card {
	width: 100%;
	max-width: 480px;
	text-align: center;
}

.hhm-cs__sr-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hhm-cs__hero {
	width: min(100%, 460px);
	height: auto;
	display: block;
	margin: 0 auto 8px;
}

.hhm-cs__teaser {
	font-size: 0.95rem;
	color: rgba(242, 240, 234, 0.75);
	margin: 0 0 28px;
}

.hhm-cs__panel {
	background: rgba(242, 240, 234, 0.05);
	border: 1px solid rgba(217, 154, 91, 0.3);
	border-radius: 12px;
	padding: 24px;
	margin: 0 0 24px;
	text-align: left;
}

.hhm-cs__panel--hidden {
	display: none;
}

.hhm-cs__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hhm-cs__label {
	font-size: 0.85rem;
	color: rgba(242, 240, 234, 0.8);
}

.hhm-cs__row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hhm-cs__row > .hhm-cs__input {
	flex: 1 1 160px;
}

.hhm-cs__input {
	background: rgba(14, 16, 19, 0.6);
	border: 1px solid rgba(242, 240, 234, 0.25);
	border-radius: 8px;
	color: var(--hhm-fg);
	padding: 12px 14px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}

.hhm-cs__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 160px;
	min-width: 0;
}

.hhm-cs__field .hhm-cs__label {
	margin: 0;
}

.hhm-cs__input:focus {
	outline: none;
	border-color: var(--hhm-accent);
}

.hhm-cs__btn {
	background: var(--hhm-accent);
	color: #1a1305;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, transform 0.1s ease;
}

.hhm-cs__btn:hover {
	background: #e5ac72;
}

.hhm-cs__btn:active {
	transform: scale(0.98);
}

.hhm-cs__btn--full {
	width: 100%;
	margin-top: 6px;
}

.hhm-cs__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hhm-cs__message {
	min-height: 1.2em;
	font-size: 0.9rem;
	margin: 4px 0 0;
}

.hhm-cs__message--error {
	color: #e8836b;
}

.hhm-cs__message--success {
	color: #8fd99a;
}

.hhm-cs__footer-line {
	font-size: 0.85rem;
	color: rgba(242, 240, 234, 0.65);
	margin: 0;
}

.hhm-cs__footer-line a {
	color: var(--hhm-accent);
	text-decoration: underline;
}

@media (max-width: 400px) {
	.hhm-cs__row {
		flex-direction: column;
	}
}

.hhm-cs__panel--confirm {
	text-align: center;
	padding: 44px 24px 36px;
}

.hhm-cs__confirm-plane-wrap {
	position: relative;
	height: 150px;
	max-width: 320px;
	margin: 0 auto 12px;
	overflow: hidden;
}

.hhm-cs__confirm-trail {
	position: absolute;
	left: 0;
	top: 50%;
	height: 2px;
	width: 0;
	background: linear-gradient(90deg, transparent, rgba(217, 154, 91, 0.75));
	animation: hhm-cs-trail-grow 2.2s ease-in-out forwards;
}

.hhm-cs__confirm-plane {
	position: absolute;
	left: 0;
	top: 50%;
	width: 108px;
	height: 108px;
	transform: translate(0, -50%) rotate(-4deg) scale(0.82);
	opacity: 0;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
	animation: hhm-cs-plane-fly 2.2s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

@keyframes hhm-cs-plane-fly {
	0% {
		transform: translate(0, -50%) rotate(-4deg) scale(0.82);
		opacity: 0;
	}
	12% {
		opacity: 1;
	}
	100% {
		transform: translate(190px, -168%) rotate(10deg) scale(1);
		opacity: 1;
	}
}

@keyframes hhm-cs-trail-grow {
	0% {
		width: 0;
		opacity: 0;
	}
	15% {
		opacity: 1;
	}
	100% {
		width: 80%;
		opacity: 0;
	}
}

.hhm-cs__confirm-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.6rem;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--hhm-fg);
	opacity: 0;
	animation: hhm-cs-text-fade 0.7s ease-out 1s forwards;
}

.hhm-cs__confirm-text {
	font-size: 0.95rem;
	color: rgba(242, 240, 234, 0.8);
	margin: 0;
	opacity: 0;
	animation: hhm-cs-text-fade 0.7s ease-out 1.2s forwards;
}

.hhm-cs__next-step {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(242, 240, 234, 0.15);
	opacity: 0;
	animation: hhm-cs-text-fade 0.7s ease-out 1.6s forwards;
}

.hhm-cs__next-step-text {
	font-size: 0.9rem;
	color: rgba(242, 240, 234, 0.8);
	margin: 0 0 10px;
}

@keyframes hhm-cs-text-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hhm-cs__confirm-plane,
	.hhm-cs__confirm-trail,
	.hhm-cs__confirm-title,
	.hhm-cs__confirm-text,
	.hhm-cs__next-step {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* HHM Custom: mobile landscape fix — .hhm-cs centers its card with
   align-items: center against a min-height: 100vh container. When the card's
   content (mostly the hero logo) is taller than a short landscape viewport,
   centered flex overflow is symmetric: the portion above the container's top
   edge is clipped and unreachable by scrolling, not just visually cut off.
   flex-start keeps the top always reachable/visible; shrinking the hero and
   padding keeps most landscape phones needing no scroll at all. */
@media (orientation: landscape) and (max-height: 500px) {
	.hhm-cs {
		align-items: flex-start;
		padding: 16px 24px;
	}

	.hhm-cs__card {
		max-width: min(90vw, 820px);
		display: flex;
		align-items: center;
		gap: 32px;
		text-align: left;
	}

	.hhm-cs__hero {
		flex: 0 0 auto;
		width: min(75vh, 300px);
		margin: 0;
	}

	.hhm-cs__content {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.hhm-cs__teaser {
		margin: 0;
		font-size: 1.05rem;
	}

	.hhm-cs__panel {
		padding: 14px;
		margin: 0;
	}

	.hhm-cs__footer-line {
		margin: 0;
	}
}

/* HHM Custom: general-contact WhatsApp button — fixed so it stays reachable
   across all three panel states (code entry, interest form, confirmation),
   not part of the card flow. WhatsApp's own brand green is a deliberate
   exception to the page's gold/dark palette — it's what makes the button
   instantly recognizable as a WhatsApp action. Small fixed-size circle,
   icon only, matching the standard floating-WhatsApp-button convention —
   width/height/max-width/max-height are all pinned in px on both the
   button and the icon (belt and suspenders) so nothing here can ever
   stretch to fill its container, plus overflow:hidden as a hard visual
   ceiling on the button itself. */
.hhm-cs__whatsapp {
	position: fixed;
	right: 20px;
	bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	max-width: 58px;
	max-height: 58px;
	box-sizing: border-box;
	background: #25d366;
	border-radius: 50%;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	z-index: 20;
	overflow: hidden;
	transition: background 0.2s ease, transform 0.1s ease;
}

.hhm-cs__whatsapp:hover {
	background: #1ebe5a;
}

.hhm-cs__whatsapp:active {
	transform: scale(0.97);
}

.hhm-cs__whatsapp-icon {
	width: 28px;
	height: 28px;
	max-width: 28px;
	max-height: 28px;
	flex: 0 0 28px;
	display: block;
}

@media (max-width: 480px) {
	.hhm-cs__whatsapp {
		width: 50px;
		height: 50px;
		max-width: 50px;
		max-height: 50px;
		right: 16px;
		bottom: 16px;
	}

	.hhm-cs__whatsapp-icon {
		width: 24px;
		height: 24px;
		max-width: 24px;
		max-height: 24px;
		flex: 0 0 24px;
	}
}

/* HHM Custom: short text label next to the WhatsApp button. Entirely
   independent of .hhm-cs__whatsapp / .hhm-cs__whatsapp-icon — those are
   left untouched on purpose. Positioned beside the button on desktop,
   vertically centered on the button's own midpoint via the
   bottom-anchor + translateY(50%) technique so centering doesn't depend
   on knowing this label's own rendered height. width/max-width are both
   pinned in px (same lesson as the icon-overflow bug) so this can't
   scale uncontrolled either. */
.hhm-cs__whatsapp-note {
	position: fixed;
	right: 88px; /* 20px (button's right) + 58px (button width) + 10px gap */
	bottom: 49px; /* 20px (button's bottom) + 29px (half of 58px button height) */
	transform: translateY(50%);
	width: max-content;
	max-width: 220px;
	box-sizing: border-box;
	padding: 8px 14px;
	background: rgba(14, 16, 19, 0.85);
	border: 1px solid rgba(217, 154, 91, 0.3);
	border-radius: 999px;
	color: #f2f0ea;
	text-decoration: none;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.35;
	text-align: right;
	z-index: 20;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
	.hhm-cs__whatsapp-note {
		right: 16px; /* matches button's mobile right offset — stacks above it */
		bottom: 74px; /* 16px (button's bottom) + 50px (button height) + 8px gap */
		transform: none;
		max-width: 170px;
		font-size: 13px;
		padding: 7px 12px;
	}
}
