/*
Theme Name: Exato Soluções
Theme URI: https://exatosolucoes.com.br/
Author: Exato Soluções
Author URI: https://exatosolucoes.com.br/
Description: Tema em blocos para a landing page da Exato Soluções.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exato
Tags: block-theme, full-site-editing, custom-colors, translation-ready
*/

:root {
	--exato-navy: #2f4066;
	--exato-navy-dark: #1c2740;
	--exato-green: #5ca939;
	--exato-green-dark: #4a8a2e;
	--exato-surface: #f6f8fb;
	--exato-line: #e2e7ef;
	--exato-text: #33394a;
	--exato-muted: #6b7280;
	--exato-on-dark: #d7dce8;
	--exato-on-dark-muted: #b9c2d6;
	--exato-on-dark-faint: #9aa5bd;
	--exato-container: 1120px;
	--exato-gutter: 32px;
	--exato-radius-sm: 8px;
	--exato-radius: 12px;
	--exato-radius-lg: 16px;
	--exato-shadow-hover: 0 16px 40px rgba(47, 64, 102, 0.12);
	--exato-header-height: 66px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--exato-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

body.exato-theme {
	overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* `:where()` keeps these resets at zero specificity so the per-block
   stylesheets (printed before this file) can still size and color images
   and links. */
:where(.exato-theme) img {
	display: block;
	max-width: 100%;
	height: auto;
}

:where(.exato-theme) a {
	color: inherit;
	text-decoration: none;
}

.exato-theme :where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--exato-green);
	outline-offset: 2px;
}

.exato-theme :where([id]) {
	scroll-margin-top: calc(var(--exato-header-height) + 24px);
}

/* ---------------------------------------------------------------- layout */

.exato-wrap {
	max-width: var(--exato-container);
	margin-inline: auto;
	padding-inline: var(--exato-gutter);
}

.exato-section {
	padding-block: 88px;
}

@media (max-width: 860px) {
	.exato-wrap {
		padding-inline: 24px;
	}

	.exato-section {
		padding-block: 56px;
	}
}

/* ------------------------------------------------------------- tipografia */

.exato-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--exato-green-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
}

.exato-label::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--exato-green);
}

.exato-title {
	max-width: 640px;
	margin: 0 0 16px;
	color: var(--exato-navy-dark);
	font-size: clamp(26px, 3.4vw, 32px);
	font-weight: 800;
	line-height: 1.2;
}

.exato-lead {
	max-width: 640px;
	margin: 0 0 48px;
	color: var(--exato-muted);
	font-size: 17px;
	line-height: 1.6;
}

.exato-on-dark .exato-label,
.exato-section--dark .exato-label {
	color: var(--exato-green);
}

.exato-on-dark .exato-title,
.exato-on-dark .exato-lead,
.exato-section--dark .exato-title,
.exato-section--dark .exato-lead {
	color: #fff;
}

.exato-on-dark .exato-lead,
.exato-section--dark .exato-lead {
	color: var(--exato-on-dark-muted);
}

/* --------------------------------------------------------------- botões */

.exato-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	border: 1.5px solid transparent;
	border-radius: var(--exato-radius-sm);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.exato-btn--primary {
	border-color: var(--exato-green);
	background: var(--exato-green);
	color: #fff;
}

.exato-btn--primary:hover {
	border-color: var(--exato-green-dark);
	background: var(--exato-green-dark);
	color: #fff;
}

.exato-btn--outline {
	border-color: var(--exato-navy);
	background: transparent;
	color: var(--exato-navy);
}

.exato-btn--outline:hover {
	background: var(--exato-navy);
	color: #fff;
}

.exato-btn--light {
	border-color: rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #fff;
}

.exato-btn--light:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.exato-btn--large {
	padding: 14px 28px;
	font-size: 15.5px;
}

/* ------------------------------------------------------------ formulário */

.exato-form {
	padding: 32px;
	border: 1px solid var(--exato-line);
	border-radius: var(--exato-radius-lg);
	background: #fff;
}

.exato-form :is(label, .exato-form__label) {
	display: block;
	margin-bottom: 6px;
	color: var(--exato-navy-dark);
	font-size: 13px;
	font-weight: 700;
}

.exato-form__row {
	margin-bottom: 16px;
}

.exato-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select) {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--exato-line);
	border-radius: var(--exato-radius-sm);
	background: #fff;
	color: var(--exato-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
}

.exato-form textarea {
	min-height: 80px;
	resize: vertical;
}

.exato-form :is(input, textarea, select):focus {
	outline: 2px solid var(--exato-green);
	outline-offset: 1px;
	border-color: var(--exato-green);
}

.exato-form :is(button, input[type="submit"], .wp-block-button__link) {
	display: inline-block;
	width: 100%;
	margin-top: 24px;
	padding: 12px 20px;
	border: none;
	border-radius: var(--exato-radius-sm);
	background: var(--exato-green);
	color: #fff;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.exato-form :is(button, input[type="submit"], .wp-block-button__link):hover {
	background: var(--exato-green-dark);
}

.exato-form__note {
	margin: 12px 0 0;
	color: var(--exato-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.exato-form__embed > :first-child,
.exato-form__placeholder > :first-child {
	margin-top: 0;
}

.exato-form__placeholder {
	opacity: 0.92;
}

.exato-form__placeholder :is(input, textarea)[disabled] {
	background: var(--exato-surface);
	color: var(--exato-muted);
}

/* --------------------------------------------------------- utilidades */

.exato-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.exato-arrow::after {
	content: " \2192";
	font-weight: 700;
}
