/* =========================================================
   frost-child — navigation & section styling
   All colors/spacing/type reference theme.json custom
   properties rather than hardcoded values.
   ========================================================= */

/* ---------- shared nav list reset ---------- */
.frost-child-primary-nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--wp--preset--spacing--40);
}

.frost-child-primary-nav-list a {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.5px;
	transition: color 0.2s ease;
}

.frost-child-primary-nav-list a:hover,
.frost-child-primary-nav-list a:focus {
	color: var(--wp--preset--color--accent);
}

/* ---------- header (desktop) variant ---------- */
.frost-child-primary-nav--header {
	display: flex;
	align-items: center;
}

.frost-child-primary-nav-list--header {
	flex-direction: row;
	align-items: center;
}

/* Hide the desktop row below 782px. Gutenberg's auto-generated
   layout/flex classes can otherwise win the cascade, so this is
   marked !important on purpose. */
@media ( max-width: 782px ) {
	.frost-child-primary-nav--header {
		display: none !important;
	}
}

/* ---------- hamburger toggle ---------- */
.frost-child-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

.frost-child-hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--wp--preset--color--secondary);
	border-radius: 2px;
}

@media ( max-width: 782px ) {
	.frost-child-hamburger {
		display: flex !important;
	}
}

/* ---------- off-canvas overlay ---------- */
.frost-child-offcanvas-overlay {
	position: fixed;
	inset: 0;
	background-color: var(--wp--preset--color--contrast);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	z-index: 998;
}

.frost-child-offcanvas-overlay.is-open {
	opacity: 0.6;
	visibility: visible;
}

/* ---------- off-canvas panel ---------- */
.frost-child-offcanvas {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 85vw);
	background-color: var(--wp--preset--color--contrast);
	border-left: 1px solid var(--wp--preset--color--accent);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 999;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	overflow-y: auto;
}

.frost-child-offcanvas.is-open {
	transform: translateX(0);
}

.frost-child-offcanvas-close {
	background: transparent;
	border: none;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1;
	cursor: pointer;
	margin-bottom: var(--wp--preset--spacing--40);
}

.frost-child-offcanvas-inner .frost-child-primary-nav--offcanvas {
	display: block;
}

.frost-child-offcanvas-inner .frost-child-primary-nav-list--offcanvas {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
}

.frost-child-offcanvas-inner .frost-child-primary-nav-list--offcanvas a {
	font-size: var(--wp--preset--font-size--medium);
}

/* Lock body scroll while the off-canvas panel is open */
body.frost-child-scroll-lock {
	overflow: hidden;
}

/* ---------- footer variant: CSS columns, distinct from the
   header's horizontal row ---------- */
.frost-child-primary-nav--footer {
	display: block;
}

.frost-child-primary-nav-list--footer {
	display: block;
	column-count: 2;
	column-gap: var(--wp--preset--spacing--40);
}

.frost-child-primary-nav-list--footer li {
	break-inside: avoid;
	margin-bottom: var(--wp--preset--spacing--20);
}

/* =========================================================
   Home pattern support classes
   ========================================================= */

.frost-child-hero-row {
	align-items: stretch;
}

.frost-child-hero-side {
	flex: 0 0 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: var(--wp--preset--spacing--40);
}

.frost-child-hero-center {
	flex: 1 1 480px;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.frost-child-placeholder-label {
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.8;
}

@media ( max-width: 782px ) {
	.frost-child-hero-side {
		display: none;
	}
}

.frost-child-intro-media {
	flex: 1 1 420px;
	position: relative;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.frost-child-photo-block {
	flex: 1 1 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.frost-child-badge {
	position: absolute;
	bottom: calc( -1 * var(--wp--preset--spacing--40) );
	left: 40%;
	width: 140px;
	height: 140px;
	border-radius: 999px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.frost-child-intro-copy {
	flex: 1 1 420px;
}

.frost-child-avatar {
	width: 48px;
	height: 48px;
}

.frost-child-newsletter-form {
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.frost-child-fake-input {
	min-width: 260px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.frost-child-footer-columns {
	gap: var(--wp--preset--spacing--50);
}

.frost-child-check-row {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--20);
}

.frost-child-check-icon {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	flex: 0 0 auto;
}
