/*
Theme Name: Escavi
Theme URI: https://escavi.com.br
Author: Joao Dulnik
Author URI: https://github.com/joaodulnik
Description: Tema institucional do Escavi - gestao para terraplanagem.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: escavi
*/

:root {
	--accent: #ffffff;
	--accent-muted: #a1a1aa;
	--dark: #0a0a0a;
	--darker: #000000;
}

body {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	background: var(--darker);
	color: #e4e4e7;
}

/* Páginas legais */
.escavi-legal ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0.75rem 0 1rem;
}

.escavi-legal li {
	margin-bottom: 0.35rem;
}

.escavi-legal h2 {
	font-size: 1.125rem;
	margin-top: 1.75rem;
}

.escavi-legal h3 {
	font-size: 1rem;
	margin-top: 1.25rem;
	color: #fafafa;
}

/* Banner LGPD / cookies */
.escavi-lgpd-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 120;
	padding: 0.75rem;
}

.escavi-lgpd-banner.hidden {
	display: none;
}

.escavi-lgpd-banner-inner {
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(9, 9, 11, 0.96);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
	.escavi-lgpd-banner-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.escavi-lgpd-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.escavi-lgpd-btn-accept {
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	background: #fff;
	color: #09090b;
	font-size: 0.875rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
}

.escavi-lgpd-btn-accept:hover {
	background: #e4e4e7;
}

.escavi-lgpd-btn-outline {
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
}

.escavi-lgpd-btn-outline:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Paginação — locação de equipamentos */
.escavi-locacao-pag-btn {
	padding: 0.45rem 0.85rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: #e4e4e7;
	font-size: 0.875rem;
	cursor: pointer;
	min-width: 2.25rem;
}

.escavi-locacao-pag-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
}

.escavi-locacao-pag-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.escavi-locacao-pag-btn-active {
	background: #fff;
	color: #09090b;
	border-color: #fff;
	font-weight: 600;
}

/* Seções claras na home (quebra visual) */
.escavi-section-light {
	background-color: #f4f4f5;
	color: #18181b;
}

.escavi-section-light h2,
.escavi-section-light h3,
.escavi-section-light .font-semibold {
	color: #09090b;
}

.escavi-section-light .text-slate-400 {
	color: #52525b !important;
}

.escavi-section-light .text-white {
	color: #09090b !important;
}

.escavi-section-light .card-plan {
	background: #fff;
	border: 1px solid #e4e4e7;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.escavi-section-light .card-plan.popular,
.escavi-section-light .card-plan.destaque {
	border-color: #a1a1aa;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.escavi-section-light .escavi-icon-box {
	background: #e4e4e7;
}

.escavi-section-light .escavi-icon-box i {
	color: #18181b !important;
}

.escavi-modulo-card {
	background: #fff;
	border: 1px solid #e4e4e7;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.escavi-section-light .escavi-modulo-card span {
	color: #09090b;
}

.escavi-section-light .escavi-modulo-card p {
	color: #71717a !important;
}

.gradient-hero {
	background-color: #0a0a0a;
	background-image: linear-gradient(
			135deg,
			rgba(0, 0, 0, 0.92) 0%,
			rgba(10, 10, 10, 0.85) 50%,
			rgba(0, 0, 0, 0.92) 100%
		),
		url('assets/hero.jpg');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.card-plan {
	background: linear-gradient(180deg, rgba(24, 24, 27, 0.95) 0%, rgba(9, 9, 11, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-plan.popular {
	border-color: rgba(255, 255, 255, 0.45);
	box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
	margin-top: 0.875rem;
	overflow: visible;
}

.card-plan.escavi-plan-medio {
	border-color: rgba(22, 163, 74, 0.55);
	box-shadow: 0 0 32px rgba(22, 163, 74, 0.15);
}

.escavi-plan-preco {
	padding: 0.75rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.escavi-plan-preco-destaque {
	border-color: rgba(22, 163, 74, 0.35);
	background: rgba(22, 163, 74, 0.08);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
}

.escavi-plan-callout {
	color: #bbf7d0;
	background: rgba(22, 163, 74, 0.12);
	border: 1px solid rgba(22, 163, 74, 0.3);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	line-height: 1.45;
}

.escavi-plan-destaque-item {
	color: #86efac;
	font-weight: 600;
}

.escavi-badge-green {
	background: #15803d;
	color: #fff;
	border: 1px solid #22c55e;
	white-space: nowrap;
	z-index: 2;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
	line-height: 1.25;
	padding: 0.375rem 1rem;
}

.card-plan .escavi-badge-green {
	background: #15803d;
}

.card-plan.destaque {
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}

/* Botões monocromáticos */
.escavi-btn-primary {
	display: inline-block;
	padding: 0.75rem 2rem;
	border-radius: 0.75rem;
	background: #fff;
	color: #09090b;
	font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
}

.escavi-btn-primary:hover {
	background: #e4e4e7;
}

.escavi-btn-block {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: #fff;
	color: #09090b;
	font-weight: 500;
	text-align: center;
	transition: background-color 0.2s;
}

.escavi-btn-block:hover {
	background: #e4e4e7;
}

.escavi-btn-green {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: #16a34a;
	color: #fff;
	font-weight: 500;
	text-align: center;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.escavi-btn-green:hover {
	background: #15803d;
}

.escavi-btn-outline {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	font-weight: 500;
	text-align: center;
	transition: background-color 0.2s;
}

.escavi-btn-outline:hover {
	background: rgba(255, 255, 255, 0.08);
}

.escavi-btn-nav {
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	transition: background-color 0.2s;
}

.escavi-btn-nav:hover {
	background: rgba(255, 255, 255, 0.1);
}

.escavi-btn-nav-primary {
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	background: #fff;
	color: #09090b;
	transition: background-color 0.2s;
}

.escavi-btn-nav-primary:hover {
	background: #e4e4e7;
}

.escavi-icon-box {
	width: 3rem;
	height: 3rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.escavi-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fafafa;
	font-size: 0.75rem;
	font-weight: 600;
}

.card-plan > .escavi-badge {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: -0.875rem;
}

/* Conteúdo SEO locação */
.escavi-seo-text {
	line-height: 1.65;
}

.escavi-seo-city-grid a {
	text-decoration: none;
}

.escavi-breadcrumb a {
	text-decoration: none;
}

.escavi-breadcrumb a:hover {
	color: #fff;
}

/* Conteudo de paginas internas */
.escavi-page-content {
	color: #a1a1aa;
	line-height: 1.75;
}

.escavi-page-content h2,
.escavi-page-content h3 {
	color: #fff;
	font-weight: 700;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

.escavi-page-content a {
	color: #fafafa;
	text-decoration: underline;
}

.escavi-page-content a:hover {
	color: #d4d4d8;
}

/* Modal pré-registro */
.escavi-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.escavi-modal.hidden {
	display: none;
}

.escavi-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.escavi-modal-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 28rem;
	max-height: 90vh;
	overflow-y: auto;
	background: #09090b;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.escavi-modal-fechar {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	border: none;
	background: transparent;
	color: #a1a1aa;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.escavi-modal-fechar:hover {
	color: #fff;
}

.escavi-input {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #000;
	color: #fafafa;
}

.escavi-input:focus {
	outline: 2px solid #fff;
	outline-offset: 1px;
	border-color: #fff;
}
