/*
Theme Name: Boost Solutions Child
Theme URI: https://boostsolutions.ai/
Description: Code-first child theme for Boost Solutions, based on Twenty Twenty-Five.
Author: Gabriel Salomão
Template: twentytwentyfive
Version: 1.2.0
Text Domain: boost-solutions-child
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
	--bs-bg: #f7f9fc;
	--bs-surface: #ffffff;
	--bs-surface-alt: #eef3f8;
	--bs-text: #1f2937;
	--bs-heading: #0f172a;
	--bs-muted: #64748b;
	--bs-primary: #2563eb;
	--bs-primary-hover: #1d4ed8;
	--bs-primary-soft: #dce9ff;
	--bs-dark: #07101f;
	--bs-dark-2: #10234a;
	--bs-border: #dce3ec;
	--bs-radius: 14px;
	--bs-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	--bs-content: 780px;
	--bs-wide: 1200px;
	--bs-header-height: 76px;
}

/* =========================================================
   GLOBAL RESET AND ACCESSIBILITY
   ========================================================= */

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bs-bg);
	color: var(--bs-text);
	font-family: "Manrope", "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.06em;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.42);
	outline-offset: 3px;
}

.bs-site-main,
.wp-block-post-content {
	margin: 0;
}

.wp-block-post-content > *:first-child {
	margin-block-start: 0;
}

/* =========================================================
   HEADER
   ========================================================= */

.bs-site-header {
	position: relative;
	z-index: 50;
	background: rgba(247, 249, 252, 0.96);
	border-bottom: 1px solid rgba(220, 227, 236, 0.9);
	padding-inline: 24px;
	backdrop-filter: blur(14px);
}

.bs-site-header__inner {
	min-height: var(--bs-header-height);
	gap: 2rem;
}

.bs-site-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 750;
	letter-spacing: -0.025em;
	white-space: nowrap;
}

.bs-site-title a {
	color: var(--bs-heading);
	text-decoration: none;
}

.bs-primary-nav {
	font-size: 0.96rem;
	font-weight: 550;
}

.bs-primary-nav .wp-block-navigation__container {
	column-gap: 1.35rem;
	row-gap: 0.6rem;
}

.bs-primary-nav .wp-block-navigation-item__content {
	color: var(--bs-heading);
	text-decoration: none;
	transition: color 160ms ease;
}

.bs-primary-nav .wp-block-navigation-item__content:hover {
	color: var(--bs-primary);
}

.bs-primary-nav .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
	background: var(--bs-primary);
	color: #fff;
	border-radius: 8px;
	padding: 0.62rem 0.9rem;
}

.bs-primary-nav .wp-block-navigation-item:last-child > .wp-block-navigation-item__content:hover {
	background: var(--bs-primary-hover);
	color: #fff;
}

/* =========================================================
   SHARED TYPOGRAPHY AND LAYOUT
   ========================================================= */

.bs-kicker,
.bs-tag {
	margin-bottom: 0.65rem;
	color: var(--bs-primary);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bs-muted {
	color: var(--bs-muted);
	font-size: 0.96rem;
}

.bs-muted-light {
	color: rgba(255, 255, 255, 0.64);
}

.bs-section {
	padding: clamp(4.5rem, 7vw, 7rem) 24px;
}

.bs-section-alt {
	background: var(--bs-surface-alt);
}

.bs-section-intro {
	max-width: 760px;
	color: var(--bs-muted);
	font-size: clamp(1.04rem, 1.3vw, 1.2rem);
	line-height: 1.7;
}

.bs-section h2,
.bs-cta h2 {
	letter-spacing: -0.035em;
}

.bs-dark {
	background: var(--bs-dark);
	color: rgba(255, 255, 255, 0.8);
}

.bs-dark h2,
.bs-dark h3 {
	color: #fff;
}

.bs-dark .bs-kicker,
.bs-hero .bs-kicker,
.bs-page-hero .bs-kicker {
	color: #8ab4ff;
}

/* =========================================================
   HEROES
   ========================================================= */

.bs-hero,
.bs-page-hero {
	background:
		radial-gradient(circle at 85% 8%, rgba(37, 99, 235, 0.22), transparent 34%),
		linear-gradient(135deg, var(--bs-dark) 0%, #0b1730 55%, var(--bs-dark-2) 100%);
	color: #fff;
	padding: clamp(5.4rem, 8vw, 8rem) 24px;
}

.bs-page-hero {
	padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.bs-hero h1,
.bs-page-hero h1 {
	color: #fff;
}

.bs-hero-title,
.bs-page-hero h1 {
	max-width: 930px;
	margin-top: 0.35rem;
	margin-bottom: 1.5rem;
	font-size: clamp(3rem, 5.6vw, 5.25rem);
	letter-spacing: -0.052em;
	line-height: 0.99;
	text-wrap: balance;
}

.bs-page-hero h1 {
	font-size: clamp(2.8rem, 4.9vw, 4.6rem);
}

.bs-hero-copy {
	max-width: 790px;
	color: rgba(255, 255, 255, 0.8);
	font-size: clamp(1.08rem, 1.45vw, 1.28rem);
	line-height: 1.67;
}

.bs-buttons {
	gap: 0.8rem;
	margin-top: 2rem;
	margin-bottom: 2.6rem;
}

.wp-block-button__link {
	border-radius: 8px;
	padding: 0.8rem 1.25rem;
	font-weight: 700;
	transition:
		transform 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--bs-primary);
	color: #fff;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--bs-primary-hover);
}

.bs-hero .is-style-outline .wp-block-button__link,
.bs-page-hero .is-style-outline .wp-block-button__link,
.bs-dark .is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.58);
	color: #fff;
}

.bs-capability-strip {
	gap: 1.75rem;
	margin-top: 3.2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bs-capability-strip p {
	margin: 0;
	color: #fff;
	line-height: 1.5;
}

.bs-capability-strip .bs-muted {
	color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   CARDS, SERVICES, PROJECTS, PROCESS
   ========================================================= */

.bs-card-row {
	gap: 1.3rem;
	margin-top: 2.1rem;
}

.bs-card {
	background: var(--bs-surface);
	border: 1px solid var(--bs-border);
	border-radius: var(--bs-radius);
	padding: clamp(1.45rem, 2.4vw, 2rem);
	box-shadow: var(--bs-shadow);
}

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

.bs-card h3 {
	margin-top: 0.45rem;
	margin-bottom: 0.8rem;
}

.bs-card p:last-child {
	margin-bottom: 0;
}

.bs-process-row {
	gap: 1.3rem;
	margin-top: 2.2rem;
}

.bs-process-step {
	padding-top: 1.25rem;
	border-top: 2px solid rgba(138, 180, 255, 0.58);
}

.bs-step-number {
	color: #8ab4ff;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.bs-about-preview,
.bs-about-main,
.bs-contact-grid,
.bs-project-feature,
.bs-service-row {
	gap: clamp(2.2rem, 5vw, 5rem);
}

.bs-project-feature,
.bs-service-row {
	padding-block: 2.7rem;
}

.bs-project-feature:first-child,
.bs-service-row:first-child {
	padding-top: 0;
}

.bs-stack {
	color: var(--bs-muted);
	font-size: 0.96rem;
}

.wp-block-separator {
	border-color: var(--bs-border);
	opacity: 1;
}

/* =========================================================
   CALL TO ACTION
   ========================================================= */

.bs-cta {
	background: var(--bs-primary-soft);
	padding: clamp(4.5rem, 7vw, 6.5rem) 24px;
}

.bs-cta h2 {
	max-width: 850px;
	font-size: clamp(2.2rem, 4vw, 3.7rem);
	line-height: 1.06;
	text-wrap: balance;
}

.bs-cta p {
	max-width: 760px;
	font-size: 1.08rem;
	line-height: 1.65;
}

/* =========================================================
   INSIGHTS / BLOG
   ========================================================= */

.bs-insights-section {
	padding: clamp(4.5rem, 7vw, 7rem) 24px;
}

.bs-insights-query .wp-block-post-template {
	gap: 1.4rem;
}

.bs-insight-card {
	height: 100%;
}

.bs-insight-card .wp-block-post-title {
	font-size: 1.45rem;
	line-height: 1.2;
}

.bs-insight-card .wp-block-post-title a {
	color: var(--bs-heading);
	text-decoration: none;
}

.bs-insight-card .wp-block-post-title a:hover {
	color: var(--bs-primary);
}

.bs-insight-card .wp-block-post-date,
.bs-insight-card .wp-block-post-terms {
	color: var(--bs-muted);
	font-size: 0.86rem;
}

.bs-single {
	padding: clamp(4.5rem, 7vw, 7rem) 24px;
}

.bs-single__header,
.bs-single__content {
	max-width: 820px;
	margin-inline: auto;
}

.bs-single__title {
	font-size: clamp(2.6rem, 5vw, 4.6rem);
	line-height: 1.03;
	letter-spacing: -0.045em;
}

.bs-single__meta {
	color: var(--bs-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */

.bs-site-footer {
	background: var(--bs-dark);
	color: rgba(255, 255, 255, 0.72);
	padding: clamp(4rem, 6vw, 5.5rem) 24px 2rem;
}

.bs-site-footer h2,
.bs-site-footer h3,
.bs-site-footer .wp-block-site-title,
.bs-site-footer .wp-block-site-title a {
	color: #fff;
}

.bs-site-footer .wp-block-site-title {
	margin: 0 0 0.75rem;
	font-size: 1.45rem;
	font-weight: 750;
}

.bs-site-footer__description {
	max-width: 470px;
	line-height: 1.65;
}

.bs-site-footer__columns {
	gap: clamp(2rem, 5vw, 5rem);
}

.bs-site-footer__nav {
	font-size: 0.95rem;
}

.bs-site-footer__nav .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.bs-site-footer__nav .wp-block-navigation-item__content:hover {
	color: #fff;
}

.bs-site-footer__bottom {
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85rem;
}

.bs-site-footer__bottom a {
	color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   LEGAL PAGE AND 404
   ========================================================= */

.bs-legal {
	max-width: 820px;
	padding: 3rem 24px 6rem;
}

.bs-legal h2 {
	margin-top: 2.6rem;
}

.bs-404 {
	min-height: 58vh;
	padding: 6rem 24px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
	.bs-primary-nav .wp-block-navigation__container {
		column-gap: 0.9rem;
	}

	.bs-primary-nav {
		font-size: 0.92rem;
	}
}

@media (max-width: 781px) {
	:root {
		--bs-header-height: 68px;
	}

	.bs-site-header,
	.bs-hero,
	.bs-page-hero,
	.bs-section,
	.bs-cta,
	.bs-insights-section,
	.bs-site-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.bs-site-header__inner {
		gap: 1rem;
	}

	.bs-primary-nav .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
		background: transparent;
		color: inherit;
		padding: 0;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		background: var(--bs-dark);
		color: #fff;
		padding: 28px;
	}

	.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item__content {
		color: #fff;
		font-size: 1.35rem;
	}

	.bs-hero-title {
		font-size: clamp(2.65rem, 13vw, 4.3rem);
		letter-spacing: -0.045em;
	}

	.bs-card-row,
	.bs-process-row,
	.bs-capability-strip {
		gap: 1rem;
	}

	.bs-project-feature,
	.bs-service-row {
		padding-block: 1.9rem;
	}

	.bs-site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.bs-hero,
	.bs-page-hero {
		padding-top: 4.4rem;
		padding-bottom: 4.4rem;
	}

	.bs-buttons .wp-block-button {
		width: 100%;
	}

	.bs-buttons .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* =========================================================
   v1.1 — COMPACT, CENTERED HEADER + HOMEPAGE GAP FIX
   These rules intentionally also target the older Site Editor
   header saved in the WordPress database. This lets the code-first
   theme fix the live header even if WordPress has a stored template
   customization overriding parts/header.html.
   ========================================================= */

/* Remove the empty vertical wrapper that remains after hiding the
   automatic "Home" post title in the legacy/customized page template. */
body.home main#wp--skip-link--target {
	margin-top: 0 !important;
}

body.home main#wp--skip-link--target > .wp-block-group.alignfull {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.home .wp-block-post-title {
	display: none !important;
}

/* Current child-theme header. */
.bs-site-header {
	padding-inline: 20px;
}

.bs-site-header__inner {
	min-height: 0;
	padding-block: 11px;
	flex-direction: column;
	justify-content: center !important;
	align-items: center !important;
	gap: 0.45rem;
}

/* Fallback for the older header template currently stored by the Site Editor.
   Exact structure confirmed from the site's rendered markup. */
header.wp-block-template-part > .wp-block-group.alignfull >
.wp-block-group.has-global-padding > .wp-block-group.alignwide {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 0.4rem !important;
}

header.wp-block-template-part .wp-block-site-title,
.bs-site-title {
	margin: 0 !important;
	text-align: center;
	font-family: "Manrope", "Segoe UI", Arial, sans-serif;
	font-size: clamp(1.45rem, 1.9vw, 1.8rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.055em;
}

header.wp-block-template-part .wp-block-site-title a,
.bs-site-title a {
	color: var(--bs-heading) !important;
	text-decoration: none !important;
}

/* Center the navigation beneath the brand. */
header.wp-block-template-part .wp-block-navigation,
.bs-primary-nav {
	justify-content: center !important;
	font-size: 0.92rem;
	font-weight: 550;
}

header.wp-block-template-part .wp-block-navigation__container,
.bs-primary-nav .wp-block-navigation__container {
	justify-content: center !important;
	column-gap: 1.15rem;
	row-gap: 0.35rem;
}

/* If WordPress is still rendering the automatic Page List navigation,
   put the links in the intended business-site order without UI editing. */
header.wp-block-template-part .wp-block-page-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1.15rem;
}

header.wp-block-template-part .wp-block-page-list > li.menu-item-home {
	order: 1;
}
header.wp-block-template-part .wp-block-page-list > li:has(> a[href$="/projects/"]) {
	order: 2;
}
header.wp-block-template-part .wp-block-page-list > li:has(> a[href$="/services/"]) {
	order: 3;
}
header.wp-block-template-part .wp-block-page-list > li:has(> a[href$="/about/"]) {
	order: 4;
}
header.wp-block-template-part .wp-block-page-list > li:has(> a[href$="/insights/"]) {
	order: 5;
}
header.wp-block-template-part .wp-block-page-list > li:has(> a[href$="/contact/"]) {
	order: 6;
}

/* Subtle nav interaction; keep the brand as the visual focal point. */
header.wp-block-template-part .wp-block-navigation-item__content {
	color: var(--bs-heading) !important;
	text-decoration: none !important;
	transition: color 160ms ease, opacity 160ms ease;
}

header.wp-block-template-part .wp-block-navigation-item__content:hover {
	color: var(--bs-primary) !important;
}

@media (max-width: 781px) {
	header.wp-block-template-part > .wp-block-group.alignfull >
	.wp-block-group.has-global-padding > .wp-block-group.alignwide,
	.bs-site-header__inner {
		padding-block: 10px !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 1rem !important;
	}

	header.wp-block-template-part .wp-block-site-title,
	.bs-site-title {
		font-size: 1.3rem;
		text-align: left;
	}
}

/* =========================================================
   v1.2 — CONTACT FORM
   ========================================================= */

.bs-contact-email a,
.bs-contact-link a {
	color: var(--bs-heading);
	font-weight: 650;
	text-decoration-thickness: 0.06em;
}

.bs-contact-email a:hover,
.bs-contact-link a:hover {
	color: var(--bs-primary);
}

.bs-contact-guidance {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bs-border);
}

.bs-contact-guidance ul {
	margin: 0.75rem 0 0;
	padding-left: 1.2rem;
	color: var(--bs-muted);
}

.bs-contact-form-card {
	padding: clamp(1.6rem, 3vw, 2.4rem);
}

.bs-contact-form-card > h2 {
	margin-top: 0;
}

.bs-contact-form-intro {
	margin-bottom: 1.5rem;
	color: var(--bs-muted);
}

.bs-contact-form {
	display: grid;
	gap: 1rem;
}

.bs-contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.bs-contact-field {
	display: grid;
	gap: 0.42rem;
}

.bs-contact-field label {
	color: var(--bs-heading);
	font-size: 0.9rem;
	font-weight: 700;
}

.bs-contact-field input,
.bs-contact-field select,
.bs-contact-field textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	background: #fff;
	color: var(--bs-text);
	font: inherit;
	font-size: 0.98rem;
	line-height: 1.45;
	padding: 0.78rem 0.9rem;
	transition:
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.bs-contact-field textarea {
	min-height: 170px;
	resize: vertical;
}

.bs-contact-field input::placeholder,
.bs-contact-field textarea::placeholder {
	color: #94a3b8;
}

.bs-contact-field input:focus,
.bs-contact-field select:focus,
.bs-contact-field textarea:focus {
	outline: none;
	border-color: var(--bs-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.bs-contact-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--bs-muted);
	font-size: 0.86rem;
	line-height: 1.5;
}

.bs-contact-consent input {
	flex: 0 0 auto;
	margin-top: 0.25rem;
}

.bs-contact-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-width: 150px;
	border: 0;
	border-radius: 8px;
	background: var(--bs-primary);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 750;
	padding: 0.82rem 1.2rem;
	transition:
		background-color 160ms ease,
		transform 160ms ease;
}

.bs-contact-submit:hover {
	background: var(--bs-primary-hover);
	transform: translateY(-1px);
}

.bs-contact-submit:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 3px;
}

.bs-contact-status {
	margin-bottom: 1.25rem;
	border-radius: 9px;
	padding: 0.85rem 1rem;
	font-size: 0.92rem;
	line-height: 1.45;
}

.bs-contact-status--success {
	border: 1px solid #86efac;
	background: #f0fdf4;
	color: #166534;
}

.bs-contact-status--error {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

/* Honeypot: kept off-screen instead of display:none so simple bots still fill it. */
.bs-contact-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 700px) {
	.bs-contact-form__row {
		grid-template-columns: 1fr;
	}

	.bs-contact-submit {
		width: 100%;
	}
}
