/* Hagumi Blocks presentation styles. All values use theme.json presets when possible. */

:where(.wp-site-blocks) {
	min-height: 100vh;
}

:where(a) {
	text-underline-offset: 0.18em;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.hgb-header {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	position: relative;
	z-index: 20;
}

.hgb-header__inner {
	min-height: 76px;
}

.hgb-header .wp-block-site-title a {
	text-decoration: none;
}

.hgb-hero {
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.hgb-hero::before,
.hgb-hero::after {
	border-radius: 999px;
	content: "";
	filter: blur(4px);
	opacity: 0.8;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.hgb-hero::before {
	background: var(--wp--preset--color--accent-soft);
	height: 28rem;
	right: -10rem;
	top: -8rem;
	width: 28rem;
}

.hgb-hero::after {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	bottom: -14rem;
	height: 30rem;
	left: -12rem;
	width: 30rem;
}

.hgb-eyebrow,
.hgb-pill {
	align-items: center;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 24%, transparent);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	padding: 0.45rem 0.75rem;
	text-transform: uppercase;
}

.hgb-pill {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--contrast);
	text-transform: none;
}

.hgb-card,
.is-style-hagumi-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: 28px;
	box-shadow: var(--wp--preset--shadow--soft);
	padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.hgb-card--flat {
	box-shadow: none;
}

.hgb-visual-card {
	background: linear-gradient(160deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--surface-alt) 100%);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 34px;
	box-shadow: var(--wp--preset--shadow--lifted);
	padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
	position: relative;
}

.hgb-visual-card::before {
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	border-radius: 999px;
	content: "";
	display: block;
	height: 0.55rem;
	margin-bottom: 1.25rem;
	width: 5.2rem;
}

.hgb-metric {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	padding-top: 1rem;
}

.hgb-mini-label {
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hgb-icon {
	align-items: center;
	background: var(--wp--preset--color--accent-soft);
	border-radius: 16px;
	display: inline-flex;
	font-weight: 800;
	height: 2.7rem;
	justify-content: center;
	width: 2.7rem;
}

.hgb-number {
	align-items: center;
	background: var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--primary-contrast);
	display: inline-flex;
	font-weight: 800;
	height: 2.3rem;
	justify-content: center;
	width: 2.3rem;
}

.hgb-price-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 30px;
	padding: clamp(1.4rem, 1rem + 1.8vw, 2.2rem);
}

.hgb-price-card.is-featured {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--lifted);
	position: relative;
}

.hgb-checklist {
	list-style: none;
	padding-left: 0;
}

.hgb-checklist li {
	margin-top: 0.65rem;
	padding-left: 1.7rem;
	position: relative;
}

.hgb-checklist li::before {
	color: var(--wp--preset--color--primary);
	content: "✓";
	font-weight: 800;
	left: 0;
	position: absolute;
}

.hgb-faq-item {
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 20px;
	padding: 1rem 1.15rem;
}

.hgb-faq-item summary {
	cursor: pointer;
	font-weight: 800;
}

.is-style-hagumi-soft-panel {
	background: color-mix(in srgb, var(--wp--preset--color--surface-alt) 75%, transparent);
	border-radius: 28px;
	padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
}

.wp-block-button.is-style-hagumi-arrow .wp-block-button__link::after {
	content: " →";
}

.hgb-footer a {
	text-decoration: none;
}

.hgb-post-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 24px;
	overflow: hidden;
}

.hgb-post-card__body {
	padding: 1.25rem;
}

@media (max-width: 780px) {
	.hgb-header__inner {
		align-items: flex-start;
		gap: 1rem;
		padding-bottom: 1rem;
		padding-top: 1rem;
	}

	.hgb-header .wp-block-navigation {
		width: 100%;
	}

	.hgb-header .wp-block-buttons {
		width: 100%;
	}

	.hgb-visual-card {
		border-radius: 24px;
	}
}

@supports not (color: color-mix(in srgb, white, black)) {
	.hgb-card,
	.is-style-hagumi-card,
	.hgb-visual-card,
	.hgb-price-card,
	.hgb-faq-item,
	.hgb-post-card {
		border-color: rgba(23, 32, 27, 0.12);
	}
}
