/* ==========================================================================
   Formaliza.app — Design System moderno / corporativo (vanilla CSS)
   Mobile-first. Sobrescreve o tema base (assets/css/main.css).
   - Tipografia: Inter (texto) + Poppins (títulos)
   - Cores via variáveis CSS, cantos 8–12px, sombras sutis
   - Espaçamento em múltiplos de 8px
   ========================================================================== */

/* 1. TOKENS GLOBAIS ------------------------------------------------------ */
:root {
	/* Marca — azul profissional profundo + acento vibrante */
	--brand-700: #1e3a8a;
	--brand-600: #1d4ed8;
	--brand-500: #2563eb;
	--brand-100: #dbeafe;
	--brand-50: #eff6ff;

	/* Neutros */
	--text: #1a2233;
	--muted: #5b6478;
	--bg: #ffffff;
	--bg-alt: #f8f9fa;
	--bg-soft: #eef2f7;
	--border: #e5e9f0;
	--whatsapp: #22a957;

	/* Superfícies */
	--card-bg: #ffffff;
	--radius-sm: 8px;
	--radius-md: 12px;
	--shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
	--shadow-md: 0 8px 24px rgba(16, 24, 40, 0.10);
	--shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.14);

	/* Espaçamento (escala 8px) */
	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 32px;
	--space-6: 48px;
	--space-8: 64px;

	/* Compat com regras antigas do tema */
	--space-section: var(--space-8);
	--space-block: var(--space-4);
	--space-header: var(--space-3);
	--space-inner: var(--space-2);

	--container: 1120px;
	--container-narrow: 760px;
}

/* 2. BASE / TIPOGRAFIA --------------------------------------------------- */
html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 16px; /* mínimo exigido */
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: 'Poppins', 'Inter', system-ui, sans-serif;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 0 0 var(--space-2);
}

/* Hierarquia clara: H1 > H2 > H3 > corpo */
h1 { font-size: 2.25rem; font-weight: 700; }   /* 36px mobile */
h2 { font-size: 1.75rem; font-weight: 700; }   /* 28px */
h3 { font-size: 1.25rem; font-weight: 600; }   /* 20px */
p { margin: 0 0 var(--space-2); color: var(--text); }

img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md); /* imagens com cantos arredondados por padrão */
}

/* Container padrão das seções */
.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-2);
	padding-right: var(--space-2);
	box-sizing: border-box;
}

header.major {
	padding: 0;
	margin: 0 auto var(--space-3);
	max-width: 720px;
	text-align: center;
}

header.major p {
	color: var(--muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Ritmo vertical compacto entre seções (reduz whitespace excessivo) */
#page-wrapper > section {
	padding-top: var(--space-6);
	padding-bottom: var(--space-6);
}

#main,
#video,
#testimonials,
#pricing,
#faq {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

#main {
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
}

body.landing #page-wrapper > #main {
	margin-top: -10em;
	padding-top: calc(var(--space-6) + 10em);
}

body:not(.landing) #main {
	margin-top: 0;
}

#main > .box,
#video .box,
#testimonials .box,
#pricing .box,
#faq .box,
#main > .row .box {
	margin-bottom: 0;
}

/* Seções alternadas em cinza claro */
#video,
#pricing {
	background: var(--bg-alt);
}

/* 3. HEADER -------------------------------------------------------------- */
#header {
	background: #fff;
	color: #333;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#header.reveal { animation: reveal-header 0.35s ease; }
#header.alt { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
#header h1 a { color: #333; }
#header nav > ul > li a:not(.button) { color: #333; }
#header nav > ul > li a:not(.button).icon:before { color: #666; }
#header nav > ul > li.active a:not(.button) { background-color: rgba(0, 0, 0, 0.05); }

#header .site-logo {
	color: inherit;
	height: inherit;
	left: 1.25em;
	line-height: inherit;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	font-size: 1em;
}

#header .site-logo a {
	color: #333;
	font-weight: 400;
	border: 0;
	display: inline-block;
}

#header .site-logo img { border-radius: 0; }

/* 4. BOTÕES — hierarquia primário / secundário ---------------------------- */
.button,
.button.alt,
input[type="submit"],
#cta input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	border-radius: 10px; /* 8–12px */
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: none;
	box-sizing: border-box;
}

/* Primário — cor da marca */
.button.primary,
#cta input[type="submit"],
#pricing .button.primary {
	background: var(--brand-600);
	border-color: var(--brand-600);
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.button.primary:hover,
#cta input[type="submit"]:hover,
#pricing .button.primary:hover {
	background: var(--brand-700);
	border-color: var(--brand-700);
	color: #fff !important;
	transform: translateY(-1px);
}

/* Secundário outline */
.button.alt,
#pricing .button.alt {
	background: #fff;
	color: var(--brand-700) !important;
	border-color: var(--brand-600);
}

.button.alt:hover,
#pricing .button.alt:hover {
	background: var(--brand-50);
	color: var(--brand-700) !important;
}

#header .button.primary {
	background: var(--brand-600);
	border-color: var(--brand-600);
	color: #fff;
	box-shadow: none;
}

#header .button.primary:hover { background: var(--brand-700); }

/* Botão "Acessar" da navbar — CTA primário isolado.
   Corrige o modelo do tema base (height: 3em + padding: 0 2em),
   que deixava o botão esticado e desalinhado dos links (2em). */
#header nav .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	height: auto;
	min-height: 0;
	line-height: 1.5;
	padding: 8px 16px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 8px;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

#header nav .button.primary {
	background-color: var(--brand-600);
	border: 2px solid var(--brand-600);
	color: #fff !important;
	box-shadow: none;
}

#header nav .button.primary:hover {
	background-color: var(--brand-700);
	border-color: var(--brand-700);
	color: #fff !important;
	transform: translateY(-1px);
}

.dropotron li:hover > a,
.dropotron li:hover > span {
	background: var(--brand-600);
	color: #fff;
}

/* 5. HERO ---------------------------------------------------------------- */
#banner {
	font-family: 'Inter', sans-serif;
	position: relative;
	isolation: isolate; /* cria contexto para o overlay */
	overflow: hidden;
}

/* Overlay escuro semitransparente sobre a colagem de fundo */
#banner::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: rgba(0, 0, 0, 0.5);
}

#banner > * {
	position: relative;
	z-index: 1;
}

#banner h1 {
	color: #fff;
	font-family: 'Poppins', 'Inter', sans-serif;
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 0 0 var(--space-2);
	padding: 0;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

#banner p {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
	line-height: 1.55;
	color: #f1f5f9;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* Hierarquia de botões do hero */
#banner .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: var(--space-3) 0 0;
}

#banner .button.primary {
	background: var(--brand-500);
	border-color: var(--brand-500);
	color: #fff !important; /* sobrescreve o #666 !important do tema base — combina com o ghost */
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

#banner .button.primary:hover {
	background: var(--brand-600);
	border-color: var(--brand-600);
	color: #fff !important;
}

/* "Saiba Mais" — ghost com borda branca */
#banner .button:not(.primary) {
	background: transparent;
	border: 2px solid #fff;
	color: #fff !important;
}

#banner .button:not(.primary):hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff !important;
}

/* 6. CARDS GENÉRICOS ------------------------------------------------------ */
.box.special {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: var(--space-3);
}

.box .image.featured {
	display: block;
	margin: var(--space-3) 0;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.box .image.featured:first-child { margin-top: 0; }
.box .image.featured:last-child { margin-bottom: 0; }
.box .image.featured img { border-radius: var(--radius-md); }

/* 7. FEATURES — grid de 4 cards ------------------------------------------ */
.features-grid {
	display: grid;
	grid-template-columns: 1fr; /* mobile-first: 1 coluna */
	gap: var(--space-2);
	width: 100%;
}

.feature-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: var(--space-3) var(--space-2);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.feature-card h3 { margin: 0; font-size: 1.125rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9875rem; line-height: 1.6; }

/* Ícone centralizado em selo da marca */
.feature-card .icon.major {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--brand-50);
	color: var(--brand-600);
	font-size: 1.4rem;
	margin: 0;
}

/* Compat: mantém o layout antigo (.features-row) escondido se sobrar */
.features-row { display: contents; }

/* 8. SEGMENTOS — 2 cards com imagem de topo arredondada ------------------- */
.segments-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2);
	width: 100%;
}

.segment-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden; /* garante topo arredondado da imagem */
	display: flex;
	flex-direction: column;
	padding: 0 0 var(--space-3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.segment-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.segment-card .image.featured {
	margin: 0 0 var(--space-2);
	border-radius: 0;
}

.segment-card .image.featured img {
	border-radius: 12px 12px 0 0; /* só cantos superiores */
	width: 100%;
}

.segment-card h3,
.segment-card p,
.segment-card .actions {
	padding-left: var(--space-3);
	padding-right: var(--space-3);
}

.segment-card h3 { margin-top: var(--space-1); }
.segment-card p { color: var(--muted); }
.segment-card .actions {
	list-style: none;
	padding-left: var(--space-3);
	margin: var(--space-2) 0 0;
	display: flex;
	justify-content: center;
}

/* 9. SLIDER "COMO COMEÇAR" — funcionalidade preservada -------------------- */
.slider-frame {
	width: 100%;
	max-width: var(--container-narrow); /* contido e centralizado */
	margin: 0 auto;
	background: var(--bg-soft); /* separa do fundo branco */
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-2);
	box-shadow: var(--shadow-sm);
	box-sizing: border-box;
}

.photo-slider {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	outline: none;
	max-width: 100%;
}

.photo-slider:focus-visible {
	outline: 3px solid var(--brand-600);
	outline-offset: 2px;
}

.photo-slider-viewport { overflow: hidden; width: 100%; }

.photo-slider-track {
	display: flex;
	transition: transform 0.45s ease;
	width: 100%;
}

.photo-slider-slide {
	flex: 0 0 100%;
	min-width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0;
	overflow: hidden;
}

.photo-slider-slide picture { display: block; max-width: 100%; }

.photo-slider-slide img {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
}

.photo-slider-slide figcaption {
	padding: 16px 20px 4px;
	font-size: 0.95rem;
	color: var(--muted);
	text-align: center;
}

/* Setas circulares com hover limpo */
.photo-slider-btn {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--brand-700);
	font-size: 1.5rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	cursor: pointer;
	z-index: 2;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.photo-slider-btn:hover {
	background: var(--brand-600);
	border-color: var(--brand-600);
	color: #fff;
	transform: translateY(-50%) scale(1.05);
}

.photo-slider-btn:focus-visible {
	outline: 3px solid var(--brand-600);
	outline-offset: 2px;
}

.photo-slider-btn.prev { left: 12px; }
.photo-slider-btn.next { right: 12px; }

.photo-slider-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 16px 20px;
}

.photo-slider-dots {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Dots mais proeminentes: ativo vira "pílula" da marca */
.photo-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	background: #cbd5e1;
	border: 0;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, width 0.2s ease;
}

.photo-slider-dot:hover { background: #94a3b8; }

.photo-slider-dot.is-active {
	background: var(--brand-600);
	width: 28px;
}

.photo-slider-counter {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--muted);
	min-width: 3em;
	text-align: right;
}

@media (prefers-reduced-motion: reduce) {
	.photo-slider-track { transition: none; }
}

/* Legado do vídeo (mantido p/ compatibilidade, sem uso na home) */
.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.video-wrapper iframe,
.video-facade__trigger {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-facade__trigger { padding: 0; cursor: pointer; background: #1a1a2e; overflow: hidden; }
.video-facade__trigger img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.video-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 4.5em;
	height: 4.5em;
	background: rgba(26, 26, 46, 0.92);
	border: 3px solid #fff;
	border-radius: 50%;
}
.video-facade__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 0.65em 0 0.65em 1.1em;
	border-color: transparent transparent transparent #fff;
}
.video-wrapper iframe { border: 0; }

/* 10. DEPOIMENTOS — grid de cards ----------------------------------------- */
.testimonials-grid {
	display: grid;
	grid-template-columns: 1fr; /* mobile: 1 coluna */
	gap: var(--space-2);
	width: 100%;
}

.testimonial-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-3);
	margin: 0;
	text-align: left;
	height: 100%;
	box-shadow: var(--shadow-sm);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.testimonial-card p {
	font-style: italic;
	margin: 0;
	line-height: 1.65;
	color: var(--text);
}

.testimonial-card footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.testimonial-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.testimonial-meta span { color: var(--muted); }

/* Avatar placeholder circular */
.testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--bg-soft);
	border: 2px solid var(--brand-100);
}

.client-logos {
	margin-top: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid var(--border);
	text-align: center;
}

.client-logos-title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin-bottom: 24px;
}

.client-logos-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px 32px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.client-logo-item img {
	max-height: 48px;
	max-width: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.client-logo-item a:hover img,
.client-logo-item img:hover { filter: grayscale(0%); opacity: 1; }

.client-logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 8px 20px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 0.85rem;
	color: #555;
	background: #fafafa;
}

.client-logo-item a { border: 0; }

/* 11. PRICING — card de destaque ------------------------------------------ */
.pricing-card {
	text-align: center;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-top: 6px solid var(--brand-600); /* borda de destaque da marca */
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: var(--space-4) var(--space-3);
	max-width: 560px;
	margin: 0 auto;
	box-sizing: border-box;
}

#pricing .price-original {
	text-decoration: line-through;
	color: var(--muted);
	font-size: 1.125rem;
	margin: 0;
}

#pricing .price-current {
	font-size: 3rem; /* bem maior */
	font-weight: 800;
	font-family: 'Poppins', 'Inter', sans-serif;
	color: var(--brand-700);
	margin: 8px 0 4px;
	line-height: 1.1;
}

#pricing .price-features {
	text-align: left;
	max-width: 28em;
	margin: var(--space-3) auto;
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Checkmark via ::before, alinhado com Flexbox */
#pricing .price-features li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 0;
	line-height: 1.55;
}

#pricing .price-features li::before {
	content: '✓';
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--brand-50);
	color: var(--brand-600);
	font-weight: 800;
	font-size: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

#pricing .actions {
	list-style: none;
	padding: 0;
	margin: var(--space-3) 0 0;
	margin-left: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Neutraliza o ul.actions do tema (li com padding-left p/ layout horizontal) */
#pricing .actions li {
	padding: 0;
	margin: 0;
	min-width: 0;
}

/* Botões iguais: mesma altura e largura total do card */
#pricing .actions .button {
	width: 100%;
	min-height: 52px;
	box-sizing: border-box;
}

/* Primário full-width dentro do card */
#pricing .actions .button.primary {
	width: 100%;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

/* WhatsApp secundário outline — mesma sombra do primário para
   igualar a silhueta (e neutraliza o anel inset do tema base) */
#pricing .actions .button.alt {
	width: 100%;
	box-shadow: 0 6px 16px rgba(16, 24, 40, 0.10);
}

.pricing-note {
	margin-top: var(--space-2);
	font-size: 0.9rem;
	color: var(--muted);
}

/* 12. FAQ ----------------------------------------------------------------- */
#faq details {
	text-align: left;
	margin-bottom: 12px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 4px 20px;
}

#faq details summary {
	cursor: pointer;
	font-weight: 600;
	padding: 16px 0;
}

#faq details p {
	margin: 0 0 16px;
	color: var(--muted);
}

/* 13. CTA / FORM — layout 2 colunas --------------------------------------- */
#cta {
	background: linear-gradient(135deg, var(--brand-700) 0%, #0f1f4b 100%);
	color: #fff;
	overflow-x: clip; /* barreira de segurança: nada do CTA vaza na horizontal */
}

#cta h2, #cta p { color: #fff; }

.cta-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* minmax(0,…) permite encolher no mobile */
	gap: var(--space-4);
	align-items: start;
	max-width: var(--container);
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

/* Filhos do grid precisam poder encolher abaixo do conteúdo */
.cta-grid > * { min-width: 0; }

.cta-copy { min-width: 0; }
.cta-copy p { color: #dbe4f5; overflow-wrap: break-word; }

/* Sobrescreve o tema base (main.css: #cta form { width: 25em }) que
   estourava viewports < 400px */
#cta form,
#cta-form {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

#cta-form {
	background: #fff;
	border-radius: var(--radius-md);
	padding: var(--space-3);
	box-shadow: var(--shadow-lg);
	color: var(--text);
	box-sizing: border-box;
	overflow-wrap: break-word;
}

#cta label { color: var(--text); }

#cta .form-field-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin: 0 0 8px;
	text-align: left;
	color: var(--text);
}

/* Inputs com fundo cinza claro e cantos arredondados */
#cta input[type="text"],
#cta input[type="email"],
#cta select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 12px 16px;
	font-size: 1rem;
	background: #f1f3f5;
	border: 1px solid var(--border);
	border-radius: 10px;
	box-sizing: border-box;
	color: var(--text);
}

#cta input[type="text"]:focus,
#cta input[type="email"]:focus,
#cta select:focus {
	outline: 2px solid var(--brand-500);
	border-color: var(--brand-500);
	background: #fff;
}

#cta input[type="checkbox"] + label:before { border-color: var(--brand-600); }
#cta input[type="checkbox"]:focus + label:before { border-color: var(--brand-600); }
#cta-form label[for="consent"] { color: var(--muted); font-size: 0.9rem; }

/* Enviar = primário; WhatsApp = verde padrão */
#cta input[type="submit"] { width: 100%; }

#cta .button {
	border: 2px solid var(--whatsapp);
	color: var(--whatsapp) !important;
	background: #fff;
	width: 100%;
}

#cta .button:hover { background: rgba(34, 169, 87, 0.08); }

#cta .form-message--error { color: #ffb4a2; }
#cta .form-message--success { color: #8fd99a; }
#cta-form .form-message--error { color: #c81e1e; }
#cta-form .form-message--success { color: #157f3d; }

.form-spacer { margin-top: var(--space-2) !important; }
.form-spacer-lg { margin-top: var(--space-3) !important; }

/* 14. FOOTER / DIVERSOS ---------------------------------------------------- */
#footer { padding-bottom: 96px; }

.page-hero {
	background: linear-gradient(135deg, var(--brand-700) 0%, #0f1f4b 100%);
	color: #fff;
	text-align: center;
}

.page-hero h1 { color: #fff; font-size: 2.25rem; margin-bottom: 8px; }
.page-hero p { font-size: 1.125rem; color: #dbe4f5; }

#page-wrapper > section.page-hero { padding: 128px 32px var(--space-6); }
#page-wrapper > .page-hero + #main { padding-top: 0; }

.subpage-content { display: flex; flex-direction: column; gap: var(--space-3); }
.subpage-content > h2, .subpage-content > p, .subpage-content > .row { margin: 0; }
.subpage-content > .image.featured { margin: 0 !important; width: 100% !important; border-radius: 12px; overflow: hidden; }
.subpage-content > .image.featured img { border-radius: 12px; }
.subpage-content > .row { text-align: left; }

.cta-inline {
	background: linear-gradient(135deg, var(--brand-700) 0%, #0f1f4b 100%);
	color: #fff;
	padding: var(--space-4) 32px;
	text-align: center;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
}

.cta-inline h2, .cta-inline p { color: #fff; margin: 0; }
.cta-inline .actions { margin: 0; }
.cta-inline .button.primary { background: #fff !important; color: var(--brand-700) !important; border-color: #fff !important; }
.cta-inline .button.primary:hover { background: var(--brand-50) !important; }
.cta-inline .button:not(.primary) { background: transparent !important; border-color: #fff !important; color: #fff !important; }
.cta-inline .button:not(.primary):hover { background: rgba(255, 255, 255, 0.1) !important; }

.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #25d366;
	color: #fff;
	padding: 12px 20px;
	border-radius: 32px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	color: #fff;
}

.whatsapp-float .icon:before { color: #fff; }

/* 15. CLASSES DE APOIO (hero / form) ----------------------------------------
   Suporte ao HTML semântico novo sem quebrar o tema base. */
.hero-inner {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.hero-overlay { display: none; } /* overlay real via #banner::before */

.button.ghost {
	background: transparent;
	border: 2px solid #fff;
	color: #fff !important;
}

.button.ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff !important; }

.form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-2);
	min-width: 0;
}

.form-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	min-width: 0;
}

.form-grid > *,
.form-actions > * { min-width: 0; }

/* Cloudflare Turnstile — fullwidth como o select de segmento.
   O widget usa data-size="flexible" e preenche o container;
   o iframe acompanha via width:100% sem estourar no mobile. */
.turnstile-field {
	display: block;
	min-width: 0;
}

.cf-turnstile {
	display: block;
	width: 100% !important;
	max-width: 100%;
	min-height: 65px; /* evita CLS enquanto o iframe carrega */
	overflow-x: clip;
	box-sizing: border-box;
}

.cf-turnstile iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
}

.slider-section .slider-frame { margin-top: var(--space-1); }

/* 16. BREAKPOINTS — tablet e desktop ---------------------------------------
   Mobile-first: acima são os estilos base (1 coluna).
   Tablet ≥640px: features 2 colunas, depoimentos 2, form 2 colunas.
   Desktop ≥980px: features 4 col, segmentos 2 col, depoimentos 3 col, CTA 2 col. */
@media screen and (min-width: 640px) {
	h1 { font-size: 2.75rem; }

	.features-grid { grid-template-columns: repeat(2, 1fr); }
	.testimonials-grid { grid-template-columns: repeat(2, 1fr); }

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

	.slider-frame { padding: var(--space-3); }
}

@media screen and (min-width: 980px) {
	h1 { font-size: 3.25rem; }
	h2 { font-size: 2rem; }

	#page-wrapper > section {
		padding-top: var(--space-8);
		padding-bottom: var(--space-8);
	}

	.features-grid { grid-template-columns: repeat(4, 1fr); }
	.segments-grid { grid-template-columns: repeat(2, 1fr); }
	.testimonials-grid { grid-template-columns: repeat(3, 1fr); }

	.cta-grid {
		grid-template-columns: 1fr 1.1fr;
		gap: var(--space-8);
		align-items: center;
	}

	#pricing .actions { flex-direction: column; }
}

/* Telas pequenas — ajustes finos */
@media screen and (max-width: 736px) {
	#page-wrapper > section.page-hero { padding: 112px 24px var(--space-6); }
	.page-hero h1 { font-size: 2rem; }

	.whatsapp-float span.label-text { display: none; }
	.whatsapp-float { padding: 14px; border-radius: 50%; }

	.client-logos-grid { gap: 20px 32px; }
	.client-logo-item img { max-height: 36px; max-width: 120px; }

	#banner h1 { font-size: 2rem; }
	#pricing .price-current { font-size: 2.5rem; }
}
