.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button:active {
	transform: translateY(0);
}

.button-primary {
	background: var(--action-primary);
	color: #fff;
}

.button-primary:hover {
	background: var(--action-primary-hover);
	color: #fff;
}

.button-secondary {
	border-color: rgba(24, 71, 132, 0.22);
	background: #fff;
	color: var(--color-blue-jc);
}

.button-secondary:hover {
	background: var(--surface-muted);
	color: var(--color-blue-deep);
}

.button-ghost-on-dark {
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.button-ghost-on-dark:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.button-on-dark {
	background: #fff;
	color: var(--color-blue-deep);
}

.button-on-dark:hover {
	background: var(--color-orange);
	color: var(--color-blue-dark);
}

.button-compact {
	min-height: 42px;
	padding: 10px 14px;
	font-size: var(--text-sm);
}

.button[disabled],
.button.is-loading {
	opacity: 0.65;
	pointer-events: none;
	transform: none;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--color-blue-jc);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 800;
	text-decoration: none;
}

.text-link:hover {
	color: var(--color-coral);
}

.card-grid {
	display: grid;
	gap: var(--space-5);
}

.card-grid-3,
.card-grid-4 {
	grid-template-columns: 1fr;
}

.solution-card,
.feature-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-height: 100%;
	padding: var(--space-6);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--surface-card);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.solution-card:hover,
.feature-card:hover {
	border-color: rgba(24, 71, 132, 0.26);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.solution-card p,
.feature-card p {
	color: var(--text-body);
}

.card-accent {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--gradient-accent);
}

.card-note {
	color: var(--text-caption);
	font-size: var(--text-sm);
}

.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: rgba(24, 71, 132, 0.08);
	color: var(--color-blue-jc);
}

.icon-badge-soft {
	background: rgba(240, 162, 60, 0.16);
	color: var(--color-blue-dark);
}

.solution-card {
	padding: 0;
	gap: 0;
}

.solution-card__media {
	display: grid;
	place-items: center;
	min-height: 178px;
	aspect-ratio: 4 / 3;
	border-bottom: 1px solid var(--color-border);
	background: linear-gradient(135deg, rgba(24, 71, 132, 0.08), rgba(240, 162, 60, 0.14));
	overflow: hidden;
}

.solution-card__media.has-placeholder {
	gap: var(--space-3);
	padding: var(--space-5);
	color: var(--text-caption);
	font-size: var(--text-sm);
	font-weight: 700;
	text-align: center;
}

.solution-card__image,
.media-card__image,
.visual-band__image,
.about__image,
.gallery-item__image,
.campaign__image,
.hands-on__image,
.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.solution-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-6);
}

.split-grid {
	display: grid;
	gap: var(--space-8);
	align-items: center;
}

.check-panel {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--surface-card);
	box-shadow: var(--shadow-sm);
}

.check-row {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-4);
	border-radius: var(--radius-md);
	background: var(--surface-card-muted);
	color: var(--text-heading);
	font-weight: 700;
}

.check-row .jc-icon {
	margin-top: 2px;
	color: var(--color-success);
}

.visual-placeholder {
	display: grid;
	place-items: center;
	gap: var(--space-3);
	min-height: clamp(220px, 45vw, 320px);
	padding: var(--space-8);
	border: 1px dashed rgba(24, 71, 132, 0.26);
	border-radius: var(--radius-lg);
	text-align: center;
}

.visual-placeholder strong {
	color: var(--text-heading);
	font-family: var(--font-heading);
	font-size: var(--text-xl);
}

.visual-placeholder span {
	max-width: 360px;
	color: var(--text-caption);
}

.visual-placeholder-light {
	background: #fff;
}

.media-card {
	position: relative;
	display: grid;
	min-height: clamp(220px, 45vw, 320px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.media-card.has-placeholder {
	place-items: center;
	padding: var(--space-8);
	background: linear-gradient(135deg, rgba(24, 71, 132, 0.08), rgba(240, 162, 60, 0.12));
}

.media-card.has-image {
	aspect-ratio: 4 / 3;
}

.media-card__caption {
	position: absolute;
	right: var(--space-4);
	bottom: var(--space-4);
	left: var(--space-4);
	display: grid;
	gap: var(--space-1);
	padding: var(--space-4);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-md);
	background: rgba(15, 42, 74, 0.88);
	color: var(--text-on-dark-muted);
}

.media-card.has-placeholder .media-card__caption {
	position: static;
	background: #fff;
	color: var(--text-body);
}

.media-card__caption strong {
	color: #fff;
	font-family: var(--font-heading);
}

.media-card.has-placeholder .media-card__caption strong {
	color: var(--text-heading);
}

.visual-band {
	display: grid;
	gap: var(--space-5);
	align-items: center;
	margin-bottom: var(--space-8);
	padding: var(--space-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, #fff 0%, var(--surface-card-muted) 100%);
}

.visual-band__media {
	display: grid;
	place-items: center;
	min-height: 190px;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, rgba(24, 71, 132, 0.08), rgba(240, 162, 60, 0.14));
	overflow: hidden;
}

.visual-band__content {
	display: grid;
	gap: var(--space-3);
}

.about__media.has-image {
	display: grid;
	gap: var(--space-3);
}

.about__media.has-image img {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

/* Material filmado no celular é 9:16; o corte 4/3 descartaria metade do quadro. */
.about__media.has-video .jc-video,
.about__media.has-video .jc-youtube {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.jc-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--color-blue-900);
}

.jc-youtube {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background: var(--color-blue-900);
	overflow: hidden;
}

.jc-youtube__poster,
.jc-youtube__frame {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.jc-youtube__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	padding: 0;
	transform: translate(-50%, -50%);
	border: 0;
	border-radius: var(--radius-pill);
	background: rgba(15, 42, 74, 0.82);
	color: #fff;
	cursor: pointer;
	transition: background 200ms ease, transform 200ms ease;
}

.jc-youtube__play svg {
	width: 30px;
	height: 30px;
	margin-left: 3px;
}

.jc-youtube__play:hover,
.jc-youtube__play:focus-visible {
	background: var(--action-accent-strong);
	transform: translate(-50%, -50%) scale(1.06);
}

.jc-youtube__play:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 3px;
}

.about__media.has-image p {
	color: var(--text-caption);
	font-size: var(--text-sm);
}

.field {
	display: grid;
	gap: var(--space-2);
}

.field label {
	color: var(--text-heading);
	font-weight: 700;
}

.field label span {
	color: var(--color-coral);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: #fff;
	color: var(--text-heading);
}

.field textarea {
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--color-blue-jc);
	outline: none;
	box-shadow: var(--shadow-focus);
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
	border-color: var(--color-error);
}

.field-error {
	min-height: 18px;
	color: var(--color-error);
	font-size: var(--text-sm);
}

.form-consent {
	color: var(--text-caption);
	font-size: var(--text-sm);
}

.form-actions {
	display: grid;
	gap: var(--space-3);
}

.form-actions .button {
	width: 100%;
}

.form-feedback {
	display: none;
	padding: var(--space-4);
	border-radius: var(--radius-md);
	font-weight: 700;
}

.form-feedback.is-success {
	display: block;
	border: 1px solid rgba(22, 163, 74, 0.24);
	background: rgba(22, 163, 74, 0.08);
	color: #166534;
}

.form-feedback.is-error {
	display: block;
	border: 1px solid rgba(220, 38, 38, 0.24);
	background: rgba(220, 38, 38, 0.08);
	color: #991b1b;
}

.whatsapp-capture {
	width: min(92vw, 520px);
	max-width: 520px;
	/* body fica com overflow:hidden enquanto o dialog está aberto; sem rolagem
	   própria o formulário fica inalcançável em tela baixa (celular deitado). */
	max-height: min(90dvh, 90vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: transparent;
	box-shadow: 0 28px 80px rgba(15, 42, 74, 0.28);
}

.whatsapp-capture::backdrop {
	background: rgba(15, 42, 74, 0.72);
	backdrop-filter: blur(4px);
}

.whatsapp-capture__panel {
	position: relative;
	padding: clamp(24px, 5vw, 40px);
	background: #fff;
	border-radius: inherit;
}

.whatsapp-capture__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--color-background, #f4f7fb);
	color: var(--color-blue-dark, #0f2a4a);
	font: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.whatsapp-capture__heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-right: 36px;
	margin-bottom: 24px;
}

.whatsapp-capture__heading .eyebrow {
	margin-bottom: 6px;
}

.whatsapp-capture__heading h2 {
	margin: 0;
	font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.whatsapp-capture form {
	display: grid;
	gap: 16px;
}

.whatsapp-capture .button {
	width: 100%;
	margin-top: 4px;
}

body.has-whatsapp-capture {
	overflow: hidden;
}

@media (min-width: 768px) {
	.card-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.card-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.form-actions {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}

	.visual-band {
		grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
	}
}

@media (min-width: 1024px) {
	.split-grid {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
		gap: var(--space-12);
	}

	.split-grid-reverse {
		grid-template-columns: minmax(360px, 0.84fr) minmax(0, 1fr);
	}

	.card-grid-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Floating WhatsApp
   Botao persistente de contato. Herda a captura curta (decisao 012) via
   data-track-event="whatsapp_click", entao nao precisa de JS proprio. */
.wa-float {
	position: fixed;
	right: clamp(16px, 4vw, 28px);
	bottom: clamp(16px, 4vw, 28px);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 12px 18px 12px 14px;
	border-radius: var(--radius-pill);
	background: #25d366;
	color: #ffffff;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--text-sm);
	line-height: 1;
	text-decoration: none;
	box-shadow: var(--shadow-lg);
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wa-float:hover {
	background: #1ebe5b;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 28px 60px rgba(15, 42, 74, 0.24);
}

.wa-float:focus-visible {
	outline: none;
	color: #ffffff;
	box-shadow: var(--shadow-focus);
}

.wa-float__icon {
	flex: none;
	width: 28px;
	height: 28px;
}

.wa-float__label {
	white-space: nowrap;
}

/* Enquanto o modal de captura esta aberto, o botao sai da frente. */
body.has-whatsapp-capture .wa-float {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 600px) {
	.wa-float {
		padding: 12px;
	}

	.wa-float__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		border: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wa-float {
		transition: none;
	}

	.wa-float:hover {
		transform: none;
	}
}

/* Consentimento sob o formulario de lead. */
.lead-form__consent {
	margin-top: var(--space-4);
	font-size: var(--text-xs);
	line-height: 1.5;
	color: var(--text-caption);
}

.lead-form__consent a {
	color: var(--action-primary);
	text-decoration: underline;
}
