/*
Theme Name: BlockForge WP Site
Theme URI: https://www.blockforgewp.com
Author: Julio Cavalcanti
Author URI: https://www.blockforgewp.com
Description: Official child theme for the BlockForge WP website, built on top of WP Base Theme.
Template: wp-base-theme
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.1
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blockforgewp-site-theme
*/

/*
Child theme CSS should stay small.
Use this file only for project-specific refinements that do not belong in the parent theme.
*/
/* ==========================================================================
   Header and footer shell
   ========================================================================== */

.bfw-site-header {
	position: relative;
	z-index: 20;
}

.bfw-site-header .bfw-site-header__inner,
.bfw-site-footer .bfw-site-footer__inner,
.bfw-site-footer .bfw-site-footer__bottom {
	box-sizing: border-box;
	padding-left: var(--wp--custom--layout--gutter);
	padding-right: var(--wp--custom--layout--gutter);
}

.bfw-site-header .bfw-site-header__logo {
	margin: 0;
}

.bfw-site-footer .bfw-site-footer__brand,
.bfw-site-footer .bfw-site-footer__nav {
	max-width: 100%;
}

.bfw-site-header .bfw-site-header__cta .wp-block-button__link {
	font-size: var(--wp--preset--font-size--xs);
	line-height: var(--wp--custom--typography--line-height--ui);
	padding: 0.75rem 1.1rem;
}
/* ==========================================================================
   Header and footer responsive rules
   ========================================================================== */
@media (max-width: 720px) {
	.wp-site-blocks > .wp-block-template-part:first-child {
		background: var(--wp--preset--color--background);
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 1000;
	}

	.bfw-site-header {
		position: relative;
		z-index: 1000;
	}

	.bfw-site-header .bfw-site-header__inner {
		align-items: center;
		display: grid !important;
		grid-template-columns: 1fr auto 1fr;
		min-height: var(--wp--custom--size--mobile-header-min-height);
		position: relative;
	}

	.bfw-site-header .bfw-site-header__logo {
		grid-column: 2;
		justify-self: center;
		margin: 0 auto;
	}

	.bfw-site-header .bfw-site-header__logo img {
		width: var(--wp--custom--size--header-mobile-logo) !important;
	}

	.bfw-site-footer img {
		width: var(--wp--custom--size--footer-mobile-logo) !important;
	}

	.bfw-site-header .bfw-site-header__actions {
		align-items: center;
		display: flex;
		grid-column: 3;
		justify-self: end;
	}

	.bfw-site-header .bfw-site-header__cta {
		display: none !important;
	}

	.bfw-site-header .bfw-site-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.bfw-site-header .bfw-site-header__nav .wp-block-navigation__responsive-container-open {
		align-items: center;
		color: var(--wp--preset--color--text);
		display: flex !important;
		justify-content: center;
	}

	.bfw-site-header .bfw-site-header__nav .wp-block-navigation__responsive-container-open svg {
		fill: currentColor;
		stroke: currentColor;
	}
}

@media (max-width: 360px) {
	.bfw-site-header .bfw-site-header__logo img {
		width: var(--wp--custom--size--header-mobile-logo-small) !important;
	}

	.bfw-site-footer img {
		width: var(--wp--custom--size--footer-mobile-logo-small) !important;
	}
}
/* ==========================================================================
   Mobile navigation overlay
   ========================================================================== */

.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--background) !important;
	box-sizing: border-box;
	color: var(--wp--preset--color--text);
	height: 100vh;
	inset: 0;
	padding: var(--wp--custom--layout--mobile-overlay-padding);
	position: fixed;
	width: 100vw;
	z-index: 9999;
}

.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	background: var(--wp--preset--color--background) !important;
	color: var(--wp--preset--color--text);
}

.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	width: 100%;
}

.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	padding-top: var(--wp--preset--spacing--xl);
	width: 100%;
}

.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--lg);
}

.bfw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--text);
	position: absolute;
	right: var(--wp--preset--spacing--sm);
	top: var(--wp--preset--spacing--sm);
}

.bfw-site-header .wp-block-navigation__responsive-container-open svg,
.bfw-site-header .wp-block-navigation__responsive-container-close svg {
	fill: currentColor;
	stroke: currentColor;
}
/* ==========================================================================
   Shared section layout
   ========================================================================== */

.bfw-hero,
.bfw-problem,
.bfw-framework,
.bfw-architecture,
.bfw-included,
.bfw-faq,
.bfw-final-cta {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.bfw-hero {
	padding-bottom: clamp(var(--wp--preset--spacing--xxl), 8vw, var(--wp--preset--spacing--xxxl));
	padding-top: clamp(var(--wp--preset--spacing--lg), 5vw, var(--wp--preset--spacing--xxl));
}

.bfw-problem {
	padding-bottom: clamp(var(--wp--preset--spacing--xl), 6vw, var(--wp--preset--spacing--xxl));
	padding-top: clamp(var(--wp--preset--spacing--xl), 6vw, var(--wp--preset--spacing--xxl));
}

.bfw-framework,
.bfw-architecture,
.bfw-included,
.bfw-faq,
.bfw-final-cta {
	padding-bottom: clamp(var(--wp--preset--spacing--xl), 6vw, var(--wp--preset--spacing--xxl));
	padding-top: clamp(var(--wp--preset--spacing--xl), 6vw, var(--wp--preset--spacing--xxl));
}

.bfw-hero__inner,
.bfw-problem__inner,
.bfw-framework__inner,
.bfw-architecture__inner,
.bfw-included__inner,
.bfw-faq__inner,
.bfw-final-cta__inner {
	box-sizing: border-box;
	padding-left: var(--wp--custom--layout--gutter);
	padding-right: var(--wp--custom--layout--gutter);
}

.bfw-hero__content,
.bfw-problem__intro,
.bfw-framework__content,
.bfw-architecture__content,
.bfw-included__content,
.bfw-faq__content {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--md);
}
/* ==========================================================================
   Shared typography
   ========================================================================== */

.bfw-eyebrow,
.bfw-panel-title,
.bfw-card-index {
	color: var(--wp--preset--color--accent-soft);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	letter-spacing: 0.055em;
	line-height: var(--wp--custom--typography--line-height--label);
	margin: 0;
	text-transform: uppercase;
}

.bfw-hero__title,
.bfw-section-title,
.bfw-card-title {
	color: var(--wp--preset--color--text);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	margin: 0;
}

.bfw-hero__title {
	font-size: clamp(var(--wp--preset--font-size--lg), 3.4vw, var(--wp--preset--font-size--display));
	line-height: var(--wp--custom--typography--line-height--tight);
	max-width: 720px;
}

.bfw-section-title {
	font-size: clamp(var(--wp--preset--font-size--lg), 2vw, var(--wp--preset--font-size--xl));
	line-height: var(--wp--custom--typography--line-height--heading);
}

.bfw-card-title {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--typography--line-height--card);
	max-width: 13rem;
}

.bfw-hero__intro,
.bfw-section-intro,
.bfw-card-text,
.bfw-panel-intro,
.bfw-small-note {
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}

.bfw-hero__intro,
.bfw-section-intro {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--typography--line-height--body);
}

.bfw-card-text {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--typography--line-height--compact);
	max-width: 15rem;
}

.bfw-panel-intro {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--typography--line-height--compact);
}

.bfw-small-note {
	font-size: var(--wp--preset--font-size--xs);
	line-height: var(--wp--custom--typography--line-height--small);
}
/* ==========================================================================
   Shared WordPress block resets
   ========================================================================== */

.bfw-hero__content > *,
.bfw-problem__intro > *,
.bfw-framework__content > *,
.bfw-architecture__content > *,
.bfw-included__content > *,
.bfw-faq__content > *,
.bfw-final-cta__content > *,
.bfw-included__item > *,
.bfw-architecture__layer > *,
.bfw-architecture__layer-content > *,
.bfw-hero__panel > *,
.bfw-card > *,
.bfw-pillar-card > * {
	margin-block-end: 0;
	margin-block-start: 0;
}

.bfw-card > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ==========================================================================
   Shared button styles
   ========================================================================== */

.bfw-button .wp-block-button__link {
	border-radius: var(--wp--custom--border--radius--button);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	text-decoration: none;
}

.bfw-button--primary .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--background);
}

.bfw-button--secondary .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
}

/* ==========================================================================
   Shared buttons, panels, and cards
   ========================================================================== */

.bfw-hero__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xs);
}

.bfw-hero__actions .wp-block-button__link {
	line-height: var(--wp--custom--typography--line-height--ui);
	padding: 0.9rem 1.15rem;
}

.bfw-hero__actions .bfw-button--secondary .wp-block-button__link {
	background: transparent;
	border-style: solid;
}

.bfw-hero__panel,
.bfw-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border--radius--card);
	box-sizing: border-box;
}

.bfw-card {
	background:
		linear-gradient(180deg, var(--wp--custom--color--text-alpha-035), rgba(248, 250, 252, 0)),
		var(--wp--preset--color--surface-alt) !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 190px;
	padding: clamp(1.35rem, 2vw, 1.6rem);
	position: relative;
	text-align: left;
}

.bfw-card::before,
.bfw-pillar-card::before {
	background: linear-gradient(90deg, var(--wp--custom--color--accent-alpha-55), var(--wp--custom--color--accent-transparent));
	content: "";
	height: 1px;
	position: absolute;
	top: 0;
}

.bfw-card::before {
	left: clamp(1.35rem, 2vw, 1.6rem);
	right: clamp(1.35rem, 2vw, 1.6rem);
}

.bfw-card-index {
	margin-bottom: var(--wp--preset--spacing--xxs);
}

.bfw-card-title {
	margin-bottom: var(--wp--preset--spacing--xs);
}

.bfw-card-text {
	margin-top: 0;
}
/* ==========================================================================
   Shared card responsive rules
   ========================================================================== */
@media (max-width: 900px) {
	.bfw-card,
	.bfw-pillar-card {
		height: auto;
		min-height: auto;
	}

	.bfw-card-title,
	.bfw-card-text {
		max-width: 100%;
	}
}
/* ==========================================================================
   Hero
   ========================================================================== */

.bfw-hero__inner {
	align-items: center;
	display: grid;
	gap: clamp(2.5rem, 5vw, var(--wp--preset--spacing--xxl));
	grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.bfw-hero__content {
	max-width: 680px;
}

.bfw-hero__badge {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border--radius--pill);
	display: inline-flex;
	line-height: var(--wp--custom--typography--line-height--ui);
	padding: 0.35rem 0.6rem;
	text-transform: none;
	width: fit-content;
}

.bfw-hero__panel {
	background:
		radial-gradient(circle at top right, var(--wp--custom--color--accent-alpha-18), var(--wp--custom--color--accent-transparent) 34%),
		linear-gradient(135deg, var(--wp--custom--color--accent-alpha-14), var(--wp--custom--color--accent-transparent) 38%),
		linear-gradient(180deg, var(--wp--preset--color--surface), var(--wp--preset--color--surface-alt)) !important;
	overflow: hidden;
	padding: var(--wp--preset--spacing--lg);
	position: relative;
}

.bfw-hero__panel::before {
	background-image:
		linear-gradient(var(--wp--custom--color--text-alpha-045) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--custom--color--text-alpha-045) 1px, transparent 1px);
	background-size: 32px 32px;
	content: "";
	inset: 0;
	opacity: 0.55;
	pointer-events: none;
	position: absolute;
}

.bfw-hero__panel > * {
	position: relative;
	z-index: 1;
}

.bfw-panel-intro {
	max-width: 28rem;
}

.bfw-hero__panel-list {
	border-top: 1px solid var(--wp--preset--color--border);
	gap: 0;
	margin-top: var(--wp--preset--spacing--sm);
}

.bfw-hero__panel-list,
.bfw-hero__panel-list > .bfw-hero__panel-item {
	max-width: none !important;
	width: 100%;
}

.bfw-hero__panel-list > .bfw-hero__panel-item {
	box-sizing: border-box;
}

.bfw-hero__panel-item {
	align-items: center;
	border-top: 1px solid var(--wp--preset--color--border);
	display: flex;
	gap: 0.85rem;
	margin: 0;
	padding: 0.95rem 0;
}

.bfw-hero__panel-item:first-child {
	border-top: 0;
}

.bfw-hero__panel-index {
	align-items: center;
	background: var(--wp--custom--color--accent-alpha-10);
	border: 1px solid var(--wp--custom--color--accent-soft-alpha-35);
	border-radius: var(--wp--custom--border--radius--pill);
	color: var(--wp--preset--color--accent-soft);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: var(--wp--custom--typography--font-weight--bold);
	height: var(--wp--custom--size--panel-index-height);
	justify-content: center;
	line-height: var(--wp--custom--typography--line-height--ui);
	min-width: var(--wp--custom--size--panel-index-min-width);
}

.bfw-hero__panel-label {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	line-height: var(--wp--custom--typography--line-height--panel);
}
/* ==========================================================================
   Hero responsive rules
   ========================================================================== */
@media (max-width: 782px) {
	.bfw-hero__inner {
		grid-template-columns: 1fr;
	}

	.bfw-hero__panel,
	.bfw-panel-title,
	.bfw-panel-intro {
		text-align: left !important;
	}

	.bfw-panel-title,
	.bfw-panel-intro {
		margin-left: 0 !important;
		margin-right: auto !important;
	}
}

@media (max-width: 480px) {
	.bfw-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.bfw-hero__actions .wp-block-button,
	.bfw-hero__actions .wp-block-button__link {
		box-sizing: border-box;
		width: 100%;
	}
}
/* ==========================================================================
   Problem section
   ========================================================================== */

.bfw-problem__intro {
	max-width: 860px;
}

.bfw-problem__cards {
	align-items: stretch;
	display: grid;
	gap: clamp(1.5rem, 2.75vw, 2.25rem);
	grid-auto-rows: 1fr;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

.bfw-problem__cards > * {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}
/* ==========================================================================
   Problem responsive rules
   ========================================================================== */
@media (max-width: 900px) {
	.bfw-problem__cards {
		grid-auto-rows: auto;
		grid-template-columns: 1fr;
	}
}
/* ==========================================================================
   Framework section
   ========================================================================== */

.bfw-framework__layout {
	align-items: start;
	display: grid;
	gap: clamp(var(--wp--preset--spacing--lg), 5vw, var(--wp--preset--spacing--xxl));
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.bfw-framework__content {
	max-width: 760px;
}

.bfw-framework__supporting {
	background: var(--wp--custom--color--surface-alpha-50);
	border: 1px solid var(--wp--preset--color--border);
	border-left-color: var(--wp--preset--color--accent);
	border-left-width: 3px;
	border-radius: var(--wp--custom--border--radius--card);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--typography--line-height--small);
	padding: var(--wp--preset--spacing--md);
}

.bfw-framework__pillars {
	display: grid;
	gap: var(--wp--preset--spacing--sm);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bfw-framework__pillars > .bfw-pillar-card {
	background:
		linear-gradient(180deg, var(--wp--custom--color--text-alpha-035), rgba(248, 250, 252, 0)),
		var(--wp--preset--color--surface-alt) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border--radius--card);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-block-start: 0;
	min-height: 10rem;
	overflow: hidden;
	padding: var(--wp--preset--spacing--md);
	position: relative;
	text-align: center;
}

.bfw-pillar-card::before {
	left: var(--wp--preset--spacing--md);
	right: var(--wp--preset--spacing--md);
}



.bfw-pillar-card .bfw-card-title {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--sm);
	justify-content: center;
	justify-self: center;
	max-width: 10rem;
	position: relative;
	text-align: center;
	z-index: 1;
}


/* Decorative icons are rendered with CSS instead of inline SVG in the template
   to keep the Site Editor preview clean and avoid Custom HTML block previews. */

.bfw-pillar-card .bfw-card-title::before,
.bfw-included__item-title::before {
	background:
		var(--bfw-card-icon) center / var(--wp--custom--size--pillar-icon-svg) no-repeat,
		linear-gradient(180deg, var(--wp--custom--color--accent-alpha-16), var(--wp--custom--color--accent-alpha-04));
	border: 1px solid var(--wp--custom--color--accent-soft-alpha-28);
	border-radius: var(--wp--custom--border--radius--icon);
	box-shadow: inset 0 1px 0 var(--wp--custom--color--text-alpha-04);
	content: "";
	display: block;
	height: var(--wp--custom--size--pillar-icon);
	margin-left: auto;
	margin-right: auto;
	width: var(--wp--custom--size--pillar-icon);
}

.bfw-pillar-card--foundation {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M7%208.2A6.6%206.6%200%200%201%2017%206%22%2F%3E%3Cpolyline%20points%3D%2214.9%203.9%2017.8%206.3%2014.2%207.1%22%2F%3E%3Cpath%20d%3D%22M17%2015.8A6.6%206.6%200%200%201%207%2018%22%2F%3E%3Cpolyline%20points%3D%229.1%2020.1%206.2%2017.7%209.8%2016.9%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-pillar-card--architecture {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Crect%20x%3D%224.5%22%20y%3D%225%22%20width%3D%2215%22%20height%3D%2214%22%20rx%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M9%205v14%22%2F%3E%3Cpath%20d%3D%22M9%2010h10.5%22%2F%3E%3Cpath%20d%3D%22M13%2014h3%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-pillar-card--boundaries {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M12%204.8%2019%208.2%2012%2011.6%205%208.2%2012%204.8Z%22%2F%3E%3Cpath%20d%3D%22M19%2012%2012%2015.4%205%2012%22%2F%3E%3Cpath%20d%3D%22M19%2015.8%2012%2019.2%205%2015.8%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-pillar-card--documentation {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M7%204.5h8l2%202v13H7V4.5Z%22%2F%3E%3Cpath%20d%3D%22M10%209h4%22%2F%3E%3Cpath%20d%3D%22M10%2012h4%22%2F%3E%3Cpath%20d%3D%22M10%2015h2.6%22%2F%3E%3C%2Fsvg%3E");
}

/* ==========================================================================
   Framework responsive rules
   ========================================================================== */
@media (max-width: 900px) {
	.bfw-framework__layout,
	.bfw-framework__pillars {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Architecture section
   ========================================================================== */

.bfw-architecture__layout {
	align-items: start;
	display: grid;
	gap: clamp(var(--wp--preset--spacing--lg), 5vw, var(--wp--preset--spacing--xxl));
	grid-template-columns: minmax(460px, 1.15fr) minmax(0, 0.85fr);
}

.bfw-architecture__content {
	max-width: 640px;
}

.bfw-architecture__stack {
	background:
		radial-gradient(circle at top right, var(--wp--custom--color--accent-alpha-14), var(--wp--custom--color--accent-transparent) 36%),
		linear-gradient(180deg, var(--wp--custom--color--text-alpha-035), rgba(248, 250, 252, 0)),
		var(--wp--preset--color--surface-alt) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border--radius--card);
	box-sizing: border-box;
	display: grid;
	gap: var(--wp--preset--spacing--sm);
	overflow: hidden;
	padding: var(--wp--preset--spacing--md);
	position: relative;
}

.bfw-architecture__stack::before {
	background-image:
		linear-gradient(var(--wp--custom--color--text-alpha-045) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--custom--color--text-alpha-045) 1px, transparent 1px);
	background-size: 32px 32px;
	content: "";
	inset: 0;
	opacity: 0.45;
	pointer-events: none;
	position: absolute;
}

.bfw-architecture__layer {
	background: var(--wp--custom--color--surface-alpha-50);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: calc(var(--wp--custom--border--radius--card) - 4px);
	box-sizing: border-box;
	display: grid;
	gap: var(--wp--preset--spacing--sm);
	grid-template-columns: auto minmax(0, 1fr);
	margin-block-start: 0;
	padding: var(--wp--preset--spacing--sm);
	position: relative;
	z-index: 1;
}

.bfw-architecture__layer-index {
	align-items: center;
	background: var(--wp--custom--color--accent-alpha-10);
	border: 1px solid var(--wp--custom--color--accent-soft-alpha-35);
	border-radius: var(--wp--custom--border--radius--pill);
	color: var(--wp--preset--color--accent-soft);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	height: var(--wp--custom--size--panel-index-height);
	justify-content: center;
	line-height: var(--wp--custom--typography--line-height--ui);
	margin: 0;
	min-width: var(--wp--custom--size--panel-index-min-width);
}

.bfw-architecture__layer-title {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	line-height: var(--wp--custom--typography--line-height--panel);
	margin: 0;
}

.bfw-architecture__layer-text {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: var(--wp--custom--typography--line-height--small);
	margin: var(--wp--preset--spacing--xxs) 0 0;
}

/* ==========================================================================
   Architecture responsive rules
   ========================================================================== */

@media (max-width: 900px) {
	.bfw-architecture__layout {
		grid-template-columns: 1fr;
	}

	.bfw-architecture__content {
		order: -1;
	}
}

/* ==========================================================================
   Included section
   ========================================================================== */

/* Recurrence note: desktop card grids must keep equal-height behavior through
   grid stretch + 1fr rows + direct-child margin reset. Any stacking-specific
   spacing belongs only inside mobile media queries. */

.bfw-included__content {
	max-width: 860px;
}

.bfw-included__items {
	align-items: stretch;
	display: grid;
	gap: var(--wp--preset--spacing--sm);
	grid-auto-rows: 1fr;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(var(--wp--preset--spacing--lg), 4vw, var(--wp--preset--spacing--xl));
}

.bfw-included__items > * {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

.bfw-included__item {
	background:
		linear-gradient(180deg, var(--wp--custom--color--text-alpha-035), rgba(248, 250, 252, 0)),
		var(--wp--preset--color--surface-alt) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border--radius--card);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 14rem;
	padding: var(--wp--preset--spacing--md);
	position: relative;
	text-align: left;
}

.bfw-included__item::before {
	background: linear-gradient(90deg, var(--wp--custom--color--accent-alpha-55), var(--wp--custom--color--accent-transparent));
	content: "";
	height: 1px;
	left: var(--wp--preset--spacing--md);
	position: absolute;
	right: var(--wp--preset--spacing--md);
	top: 0;
}

.bfw-included__item--highlight {
	background:
		radial-gradient(circle at top right, var(--wp--custom--color--accent-alpha-14), var(--wp--custom--color--accent-transparent) 38%),
		linear-gradient(180deg, var(--wp--custom--color--text-alpha-035), rgba(248, 250, 252, 0)),
		var(--wp--preset--color--surface-alt) !important;
}



.bfw-included__item-title {
	align-items: center;
	color: var(--wp--preset--color--text);
	display: flex;
	flex-direction: column;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	gap: var(--wp--preset--spacing--sm);
	line-height: var(--wp--custom--typography--line-height--card);
	margin: 0 0 var(--wp--preset--spacing--xs);
	text-align: center;
}


.bfw-included__item--base {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M12%204%205%207.5%2012%2011%2019%207.5%2012%204Z%22%2F%3E%3Cpath%20d%3D%22M5%2012%2012%2015.5%2019%2012%22%2F%3E%3Cpath%20d%3D%22M5%2016.5%2012%2020%2019%2016.5%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item--demo {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Crect%20x%3D%224.5%22%20y%3D%225%22%20width%3D%2215%22%20height%3D%2214%22%20rx%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M9%205v14%22%2F%3E%3Cpath%20d%3D%22M9%2010h10.5%22%2F%3E%3Cpath%20d%3D%22M14%2010v9%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item--child {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M7%2017.5h10%22%2F%3E%3Cpath%20d%3D%22M13.7%206.3%2017.7%2010.3%22%2F%3E%3Cpath%20d%3D%22M6.5%2017.5%207.7%2013.3%2014.8%206.2a1.6%201.6%200%200%201%202.3%200l0.7%200.7a1.6%201.6%200%200%201%200%202.3l-7.1%207.1-4.2%201.2Z%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item--core {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%226.5%22%20rx%3D%225.5%22%20ry%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M6.5%206.5v5c0%201.4%202.5%202.5%205.5%202.5s5.5-1.1%205.5-2.5v-5%22%2F%3E%3Cpath%20d%3D%22M6.5%2011.5v5c0%201.4%202.5%202.5%205.5%202.5s5.5-1.1%205.5-2.5v-5%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item--blocks {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Crect%20x%3D%224.5%22%20y%3D%224.5%22%20width%3D%226%22%20height%3D%226%22%20rx%3D%221.2%22%2F%3E%3Crect%20x%3D%2213.5%22%20y%3D%224.5%22%20width%3D%226%22%20height%3D%226%22%20rx%3D%221.2%22%2F%3E%3Crect%20x%3D%224.5%22%20y%3D%2213.5%22%20width%3D%226%22%20height%3D%226%22%20rx%3D%221.2%22%2F%3E%3Crect%20x%3D%2213.5%22%20y%3D%2213.5%22%20width%3D%226%22%20height%3D%226%22%20rx%3D%221.2%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item--documentation {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M8.5%204.5h5.5l3%203V19a1.5%201.5%200%200%201-1.5%201.5h-7A1.5%201.5%200%200%201%207%2019V6A1.5%201.5%200%200%201%208.5%204.5Z%22%2F%3E%3Cpath%20d%3D%22M14%204.5V8h3%22%2F%3E%3Cpath%20d%3D%22M10%2011h4%22%2F%3E%3Cpath%20d%3D%22M10%2014h4%22%2F%3E%3Cpath%20d%3D%22M10%2017h3%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item--updates {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M7%208.2A6.6%206.6%200%200%201%2017%206%22%2F%3E%3Cpolyline%20points%3D%2214.9%203.9%2017.8%206.3%2014.2%207.1%22%2F%3E%3Cpath%20d%3D%22M17%2015.8A6.6%206.6%200%200%201%207%2018%22%2F%3E%3Cpolyline%20points%3D%229.1%2020.1%206.2%2017.7%209.8%2016.9%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item--support {
	--bfw-card-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23FDBA74%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M5.5%2013v-1.6A6.5%206.5%200%200%201%2012%204.9a6.5%206.5%200%200%201%206.5%206.5V13%22%2F%3E%3Cpath%20d%3D%22M7.2%2012.2H6.4a1.4%201.4%200%200%200-1.4%201.4v2.2a1.4%201.4%200%200%200%201.4%201.4h0.8v-5Z%22%2F%3E%3Cpath%20d%3D%22M16.8%2012.2h0.8a1.4%201.4%200%200%201%201.4%201.4v2.2a1.4%201.4%200%200%201-1.4%201.4h-0.8v-5Z%22%2F%3E%3Cpath%20d%3D%22M16.8%2017.2c0%201.3-1.6%202.4-3.6%202.4H12%22%2F%3E%3Cpath%20d%3D%22M10.4%2019.6h1.8%22%2F%3E%3C%2Fsvg%3E");
}

.bfw-included__item-text {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--typography--line-height--compact);
	margin: 0;
	max-width: 15rem;
}

/* ==========================================================================
   Included responsive rules
   ========================================================================== */

@media (max-width: 1100px) {
	.bfw-included__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.bfw-included__items {
		grid-auto-rows: auto;
		grid-template-columns: 1fr;
	}

	.bfw-included__item {
		height: auto;
		min-height: auto;
	}
}


/* ==========================================================================
   FAQ section
   ========================================================================== */

.bfw-faq__layout {
	align-items: start;
	display: grid;
	gap: clamp(var(--wp--preset--spacing--lg), 5vw, var(--wp--preset--spacing--xxl));
	grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
}

.bfw-faq__content {
	max-width: 620px;
}

.bfw-faq__items {
	display: grid;
	gap: var(--wp--preset--spacing--sm);
}

.bfw-faq__items > * {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

.bfw-faq__item {
	background:
		linear-gradient(180deg, var(--wp--custom--color--text-alpha-035), rgba(248, 250, 252, 0)),
		var(--wp--preset--color--surface-alt) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border--radius--card);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-muted);
	overflow: hidden;
	padding: 0;
	transition: border-color 0.2s ease, height 0.24s ease;
}

.bfw-faq__item[open] {
	border-color: var(--wp--custom--color--accent-soft-alpha-28);
}

.bfw-faq__item.is-animating {
	will-change: height;
}

.bfw-faq__item summary {
	align-items: center;
	color: var(--wp--preset--color--text);
	cursor: pointer;
	display: flex;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	gap: var(--wp--preset--spacing--sm);
	justify-content: space-between;
	line-height: var(--wp--custom--typography--line-height--panel);
	list-style: none;
	padding: var(--wp--preset--spacing--md);
}

.bfw-faq__item summary::-webkit-details-marker {
	display: none;
}

.bfw-faq__item summary::after {
	color: var(--wp--preset--color--accent-soft);
	content: "+";
	flex: 0 0 auto;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--typography--font-weight--bold);
	line-height: var(--wp--custom--typography--line-height--ui);
}

.bfw-faq__item[open] summary::after {
	content: "–";
}

.bfw-faq__item p {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--typography--line-height--compact);
	margin: 0;
	padding: 0 var(--wp--preset--spacing--md) var(--wp--preset--spacing--md);
}

/* ==========================================================================
   FAQ responsive rules
   ========================================================================== */

@media (max-width: 900px) {
	.bfw-faq__layout {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   Final CTA section
   ========================================================================== */

.bfw-final-cta__panel {
	background:
		radial-gradient(circle at top right, var(--wp--custom--color--accent-alpha-18), var(--wp--custom--color--accent-transparent) 36%),
		linear-gradient(180deg, var(--wp--custom--color--text-alpha-035), rgba(248, 250, 252, 0)),
		var(--wp--preset--color--surface-alt) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border--radius--card);
	box-sizing: border-box;
	overflow: hidden;
	padding: clamp(var(--wp--preset--spacing--lg), 5vw, var(--wp--preset--spacing--xxl));
	position: relative;
	text-align: center;
}

.bfw-final-cta__panel::before {
	background-image:
		linear-gradient(var(--wp--custom--color--text-alpha-045) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--custom--color--text-alpha-045) 1px, transparent 1px);
	background-size: 32px 32px;
	content: "";
	inset: 0;
	opacity: 0.4;
	pointer-events: none;
	position: absolute;
}

.bfw-final-cta__content {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--md);
	margin-left: auto;
	margin-right: auto;
	max-width: 760px;
	position: relative;
	z-index: 1;
}

.bfw-final-cta__title {
	color: var(--wp--preset--color--text);
	font-size: clamp(var(--wp--preset--font-size--lg), 2.4vw, var(--wp--preset--font-size--display));
	font-weight: var(--wp--custom--typography--font-weight--bold);
	line-height: var(--wp--custom--typography--line-height--heading);
	margin: 0;
}

.bfw-final-cta__intro {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--typography--line-height--body);
	margin: 0;
}

.bfw-final-cta__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xs);
	justify-content: center;
}

.bfw-final-cta__actions .wp-block-button__link {
	line-height: var(--wp--custom--typography--line-height--ui);
	padding: 0.9rem 1.15rem;
}

.bfw-final-cta__actions .bfw-button--secondary .wp-block-button__link {
	background: transparent;
	border-style: solid;
}

/* ==========================================================================
   Final CTA responsive rules
   ========================================================================== */

@media (max-width: 480px) {
	.bfw-final-cta__actions {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.bfw-final-cta__actions .wp-block-button,
	.bfw-final-cta__actions .wp-block-button__link {
		box-sizing: border-box;
		width: 100%;
	}
}

/* ==========================================================================
   Global adjustments
   ========================================================================== */
/*
Use this section only for small site-wide refinements that do not belong
to a specific component above.
*/

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--custom--size--mobile-header-min-height) + var(--wp--preset--spacing--sm));
}

.bfw-problem,
.bfw-framework,
.bfw-architecture,
.bfw-included,
.bfw-faq,
.bfw-final-cta {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--custom--size--mobile-header-min-height) + var(--wp--preset--spacing--sm));
}

.bfw-back-to-top {
	align-items: center;
	appearance: none;
	background: linear-gradient(180deg, var(--wp--preset--color--accent), var(--wp--preset--color--accent-soft));
	border: 1px solid var(--wp--custom--color--accent-soft-alpha-35);
	border-radius: var(--wp--custom--border--radius--pill);
	bottom: clamp(var(--wp--preset--spacing--md), 3vw, var(--wp--preset--spacing--lg));
	box-shadow: 0 12px 28px var(--wp--custom--color--accent-alpha-18);
	color: var(--wp--preset--color--background);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 3rem;
	justify-content: center;
	opacity: 0.96;
	padding: 0;
	position: fixed;
	right: clamp(var(--wp--preset--spacing--md), 3vw, var(--wp--preset--spacing--lg));
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	width: 3rem;
	z-index: 900;
}

.bfw-back-to-top:hover,
.bfw-back-to-top:focus-visible {
	box-shadow: 0 16px 34px var(--wp--custom--color--accent-alpha-18);
	opacity: 1;
	transform: translateY(-2px);
}

.bfw-back-to-top__icon {
	display: inline-flex;
	line-height: 1;
}

.bfw-back-to-top__icon svg {
	display: block;
	fill: none;
	height: 1.1rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
	width: 1.1rem;
}

/* ==========================================================================
   Global responsive adjustments
   ========================================================================== */
/*
Use this section only for responsive rules that affect multiple components
or the page shell globally.
*/

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.bfw-back-to-top,
	.bfw-faq__item {
		transition: none;
	}
}

@media (max-width: 782px) {
	.bfw-back-to-top {
		bottom: calc(var(--wp--preset--spacing--sm) + env(safe-area-inset-bottom, 0px));
		height: 2.75rem;
		right: var(--wp--preset--spacing--sm);
		width: 2.75rem;
	}
}
