* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tokens de design: ver css/tokens.css (carregado antes deste arquivo).
   Regra (docs/design-system.md §3): sem cores/sombras/raios soltos. */

body {
	background-color: var(--bg-body);
	color: var(--text);
	line-height: 1.6;
}

header {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: white;
	padding: 1rem;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: var(--z-header);
	box-shadow: var(--shadow-header);
}

.header-container {
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	font-size: 1.8rem;
	font-weight: bold;
	text-decoration: none;
}

.logo span {
	color: var(--secondary);
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 1.5rem;
}

nav ul li a {
	color: white;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

nav ul li a:hover {
	/* a11y: --secondary sobre navy = 3.48:1 (< 4.5) — usar --light + sublinhado */
	color: var(--light);
	text-decoration: underline;
}

.hero {
	/* Imagem local (fundo.png = hero Unsplash salvo em local);
	   alternativa remota mantida para referência:
	   url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80') */
	background: linear-gradient(var(--overlay-hero), var(--overlay-hero)), url('../img/fundo.png');
	background-size: cover;
	background-position: center;
	/* min-height (nunca height): o conteúdo cresce a 200% de zoom (WCAG 1.4.4/1.4.10) */
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	padding: 0 1rem;
	margin-top: var(--header-height);
}

.hero-content {
	max-width: 800px;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
}

.hero p {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.btn {
	display: inline-block;
	background-color: var(--secondary);
	color: white;
	padding: 0.8rem 1.8rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: bold;
	/* rótulo >= 1.2rem bold: AA para texto grande sobre --secondary (3.15:1) */
	font-size: var(--fs-md);
	transition: all 0.3s;
	border: 2px solid var(--secondary);
}

.btn:hover {
	background-color: transparent;
	/* a11y: sobre o hero (scrim escuro) o texto era --secondary (2.68:1) — agora --light */
	color: var(--light);
}

.btn-outline {
	background-color: transparent;
	/* usado sobre superfície escura (hero): rótulo branco; em superfície clara usar --primary */
	color: white;
}

.btn-outline:hover {
	background-color: var(--secondary);
	color: white;
}

.btn i {
	margin-right: 0.5rem;
}

.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

section {
	padding: 5rem 1rem;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title h2 {
	font-size: 2.5rem;
	color: var(--primary);
	margin-bottom: 1rem;
}

.section-title p {
	/* lead informativo: nunca --text-muted (4.48:1 < 4.5) */
	color: var(--text);
	max-width: 700px;
	margin: 0 auto;
}

.container {
	max-width: var(--container-max);
	margin: 0 auto;
}

.services {
	background-color: white;
}

.services-grid {
	display: grid;
	/* min(): evita overflow horizontal a 320px (WCAG 1.4.10) */
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 2rem;
}

.service-card {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.3s;
}

.service-card:hover {
	transform: translateY(-10px);
}

.service-icon {
	background-color: var(--primary);
	color: white;
	font-size: 2.5rem;
	padding: 1.5rem;
	text-align: center;
}

.service-content {
	padding: 1.5rem;
}

.service-content h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--primary);
}

.about {
	background-color: var(--light);
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-text h2 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: var(--primary);
}

.about-text p {
	margin-bottom: 1.5rem;
}

.about-image img {
	width: 100%;
	border-radius: 10px;
	box-shadow: var(--shadow-card);
}

.contact {
	background-color: white;
}

.contact-grid {
	display: grid;
	/* min(): evita overflow horizontal a 320px (WCAG 1.4.10) */
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 2rem;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact-icon {
	background-color: var(--primary);
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

.contact-form {
	background-color: var(--light);
	padding: 2rem;
	border-radius: 10px;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 0.8rem;
	/* limite de controle >= 3:1 (WCAG 1.4.11) — --border (1.36:1) é só divisória */
	border: 1px solid var(--border-control);
	border-radius: 5px;
	font-size: 1rem;
	min-height: 44px;
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

/* Placeholder é texto visível: precisa de contraste (WCAG 1.4.3) */
.form-group input::placeholder,
.form-group textarea::placeholder {
	color: var(--text);
	opacity: 1;
}

/* Card flutuante de confirmação do contato (FR-2/Story 1.4): fica fora do form,
   aparece abaixo do header fixo e some aos 10s (js/toast.js; a animação esconde
   mesmo com JS desativado) */
.toast-card {
	position: fixed;
	top: 96px;
	right: var(--space-4);
	z-index: 1100;
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	max-width: 380px;
	padding: var(--space-2) var(--space-3);
	background-color: var(--light);
	border-left: 4px solid var(--secondary);
	border-radius: var(--radius-md);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	color: var(--text);
	animation: toast-ciclo 10s forwards;
}

.toast-card i {
	color: var(--secondary);
	margin-right: var(--space-1);
	margin-top: 0.2em;
}

.toast-card p {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: var(--line-height-base);
}

@keyframes toast-ciclo {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	8%,
	92% {
		opacity: 1;
		transform: none;
	}
	to {
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
	}
}

/* <=768px: header empilha — card vai para o pé da tela, na largura útil */
@media (max-width: 768px) {
	.toast-card {
		top: auto;
		bottom: var(--space-2);
		left: var(--space-2);
		right: var(--space-2);
		max-width: none;
	}
}

/* Como Funciona — componente steps-list (FR-1) */
.steps {
	background-color: var(--bg-body);
}

.steps-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 2rem;
}

.step {
	background-color: white;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: 1.5rem;
	text-align: center;
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--primary);
	color: white;
	font-size: var(--fs-md);
	font-weight: bold;
	margin-bottom: 1rem;
}

.step-content h3 {
	font-size: var(--fs-md);
	color: var(--primary);
	margin-bottom: 0.5rem;
}

.step-content p {
	color: var(--text);
}

/* Bloco de conversão final — componente conversion-block (FR-1) */
.conversion {
	background-color: white;
}

.conversion-block {
	background-color: var(--light);
	border-radius: var(--radius-md);
	padding: 3rem 2rem;
	text-align: center;
}

.conversion-block h2 {
	font-size: var(--fs-2xl);
	color: var(--primary);
	margin-bottom: 1.5rem;
}

.conversion-list {
	list-style: none;
	max-width: 640px;
	margin: 0 auto 2rem;
	text-align: left;
}

.conversion-list li {
	color: var(--text);
	margin-bottom: 0.75rem;
}

.conversion-list i {
	color: var(--primary);
	margin-right: 0.5rem;
}

footer {
	background-color: var(--dark);
	color: white;
	padding: 3rem 1rem;
	text-align: center;
}

.footer-content {
	max-width: var(--container-max);
	margin: 0 auto;
	display: grid;
	/* min(): evita overflow horizontal a 320px (WCAG 1.4.10) */
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
	gap: 2rem;
	text-align: left;
}

.footer-logo {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 1rem;
}

.footer-links h3,
.footer-newsletter h3 {
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

.footer-links ul {
	list-style: none;
}

.footer-links ul li {
	margin-bottom: 0.5rem;
}

.footer-links ul li a {
	color: var(--border);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links ul li a:hover {
	/* a11y: --secondary sobre navy = 3.48:1 — usar --light (9.57:1) */
	color: var(--light);
}

.footer-newsletter p {
	margin-bottom: 1rem;
}

.newsletter-form {
	display: flex;
	gap: 0.5rem;
}

.newsletter-form input {
	flex: 1;
	padding: 0.8rem;
	border: none;
	border-radius: 5px;
}

.newsletter-form button {
	background-color: var(--secondary);
	color: white;
	border: none;
	border-radius: 5px;
	padding: 0 1rem;
	cursor: pointer;
}

.footer-bottom {
	max-width: var(--container-max);
	margin: 0 auto;
	text-align: center;
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: 1px solid var(--footer-divider);
}

@media (max-width: 768px) {
	.header-container {
		 flex-direction: column;
	}
	
	/* Alvo de toque >= 44px no alvo principal do mobile (a11y) */
	nav ul li a {
		display: inline-block;
		padding-block: 0.75rem;
	}

	nav ul {
		 margin-top: 1rem;
	}
	
	.hero h1 {
		 font-size: 2.5rem;
	}
	
	.hero p {
		 font-size: 1.2rem;
	}
	
	.about-content {
		 grid-template-columns: 1fr;
	}

	.conversion-block {
		padding: 2rem 1.25rem;
	}
	
	.newsletter-form {
		 flex-direction: column;
	}
}

/* Âncoras: o header é fixo (docs/design-system.md §3.7) */
section[id] {
	scroll-margin-top: var(--header-height);
}

/* Acessibilidade (docs/design-system.md §3) */
:focus-visible {
	outline: 3px solid var(--focus-ring);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--focus-halo);
}

/* Skip link (a11y 2.4.1) — primeiro foco de toda página (ver base.html) */
.skip-link {
	position: absolute;
	top: 0;
	left: -9999px;
	z-index: calc(var(--z-header) + 1);
	background-color: var(--primary);
	color: white;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--radius-sm) 0;
	text-decoration: none;
}

.skip-link:focus {
	left: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
