/*
Theme Name: Tema Imobiliária
Theme URI: https://exemplo.com.br/tema-imobiliaria
Author: Sua Equipe de Desenvolvimento
Author URI: https://exemplo.com.br
Description: Tema WordPress ultraleve, limpo e de alta performance, projetado com foco mobile-first e integração nativa ao plugin Imobiliária Core.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: tema-imobiliaria
*/

/* ==========================================================================
   Variables & Theme Base Settings
   ========================================================================== */
:root {
	--theme-primary: #10b981;
	--theme-primary-hover: #059669;
	--theme-dark: #0f172a;
	--theme-gray-dark: #334155;
	--theme-gray-medium: #64748b;
	--theme-gray-light: #f8fafc;
	--theme-border: #e2e8f0;
	--theme-white: #ffffff;
	--theme-font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--theme-heading-font: 'Playfair Display', Georgia, serif;
	--theme-radius: 10px;
	--theme-whatsapp: #25d366;
	--theme-whatsapp-hover: #1da851;
	--theme-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

html {
	scroll-behavior: smooth;
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--theme-font);
	background-color: #f8fafc;
	color: var(--theme-gray-dark);
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--theme-heading-font);
	color: var(--theme-dark);
	font-weight: 700;
	line-height: 1.3;
}

a {
	color: var(--theme-primary);
	text-decoration: none;
	transition: all 0.2s ease;
}

a:hover {
	color: var(--theme-primary-hover);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container, .site-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Subtítulo / Divisores Globais de Seção */
.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header h2 {
	font-size: 2.2rem;
	margin-bottom: 12px;
	color: var(--theme-dark);
}

.divider {
	width: 70px;
	height: 4px;
	background: var(--theme-primary);
	margin: 0 auto;
	border-radius: 2px;
}

/* ==========================================================================
   Header & Navegação
   ========================================================================== */
.site-header {
	background: var(--theme-white);
	border-bottom: 1px solid var(--theme-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-branding .custom-logo,
.site-branding img {
	max-height: 48px;
	max-width: 200px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.site-title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--theme-dark);
}

/* Menu Mobile Toggle */
.menu-toggle {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: var(--theme-dark);
	border-radius: 2px;
	transition: 0.3s;
}

.main-nav {
	display: none;
	position: absolute;
	top: 80px;
	left: 0;
	width: 100%;
	background: var(--theme-white);
	border-bottom: 1px solid var(--theme-border);
	padding: 20px;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.main-nav.is-active {
	display: block;
}

.main-nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.main-nav a {
	font-weight: 600;
	color: var(--theme-dark);
	font-size: 1.05rem;
}

.header-actions {
	display: none; /* Oculto no mobile para manter o topo ultra-clean (apenas Logo + Toggle) */
	align-items: center;
	gap: 10px;
}

.btn-anuncie-header {
	background: var(--imob-primary, #10b981);
	color: var(--imob-primary-contrast, #ffffff) !important;
	padding: 9px 16px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: transform 0.2s, opacity 0.2s;
}

.btn-anuncie-header:hover {
	transform: translateY(-1px);
	opacity: 0.95;
}

.btn-whatsapp-header {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--theme-whatsapp);
	color: var(--theme-white) !important;
	padding: 10px 18px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 0.9rem;
	transition: background 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp-header:hover {
	background: var(--theme-whatsapp-hover);
	transform: translateY(-2px);
}

.mobile-menu-cta {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e2e8f0;
}

.btn-anuncie-mobile {
	background: var(--imob-primary, #10b981);
	color: var(--imob-primary-contrast, #ffffff) !important;
	padding: 12px 20px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

@media (min-width: 1024px) {
	.menu-toggle { display: none; }
	.main-nav {
		position: static;
		display: flex !important;
		width: auto;
		background: none;
		border: none;
		padding: 0;
		box-shadow: none;
	}
	.main-nav ul {
		flex-direction: row;
		gap: 25px;
		white-space: nowrap;
	}
	.header-actions {
		display: flex !important;
		white-space: nowrap;
	}
	.mobile-menu-cta { display: none !important; }
}

/* ==========================================================================
   1. Hero Section (Banner Principal)
   ========================================================================== */
.hero {
	min-height: 540px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
	color: var(--theme-white);
	position: relative;
}

.hero-content {
	max-width: 900px;
	margin: 0 auto;

}

.hero-content h1 {
	font-size: 2.6rem;
	color: var(--theme-white);
	margin-bottom: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-content p {
	font-size: 1.15rem;
	margin-bottom: 25px;
	color: #e2e8f0;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.btn-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--theme-whatsapp);
	color: #ffffff !important;
	padding: 14px 28px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1.05rem;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	transition: all 0.2s ease;
}

.btn-whatsapp:hover {
	background: var(--theme-whatsapp-hover);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.hero-search-wrapper {
	margin-top: 30px;
	background: rgba(255, 255, 255, 0.95);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.25);
	backdrop-filter: blur(5px);
}

/* ==========================================================================
   2. Seção Sobre Nós
   ========================================================================== */
.about {
	padding: 80px 0;
	background: var(--theme-white);
}

.about-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

@media (min-width: 992px) {
	.about-content {
		grid-template-columns: 1.2fr 1fr;
	}
}

.about-text p {
	font-size: 1.05rem;
	margin-bottom: 15px;
	color: var(--theme-gray-dark);
}

.about-stats {
	display: flex;
	gap: 25px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.stat-item {
	display: flex;
	flex-direction: column;
}

.stat-number {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--theme-primary);
	line-height: 1;
}

.stat-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--theme-gray-medium);
	text-transform: uppercase;
	margin-top: 4px;
}

.about-image img {
	border-radius: 14px;
	box-shadow: var(--theme-shadow);
	width: 100%;
	object-fit: cover;
}

/* ==========================================================================
   3. Seção Nossos Serviços
   ========================================================================== */
.services {
	padding: 80px 0;
	background: #f1f5f9;
}

.services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.service-card {
	background: var(--theme-white);
	padding: 35px 25px;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
	transition: all 0.3s ease;
	border: 1px solid var(--theme-border);
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.08);
	border-color: var(--theme-primary);
}

.service-card i {
	font-size: 2.5rem;
	color: var(--theme-primary);
	margin-bottom: 18px;
}

.service-card h3 {
	font-size: 1.25rem;
	margin-bottom: 12px;
}

.service-card p {
	font-size: 0.95rem;
	color: var(--theme-gray-medium);
}

/* ==========================================================================
   4. Seção Imóveis em Destaque
   ========================================================================== */
.properties {
	padding: 80px 0;
	background: var(--theme-white);
}

.properties-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.properties-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.properties-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.btn-more {
	display: inline-block;
	background: var(--theme-dark);
	color: var(--theme-white) !important;
	padding: 14px 32px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1rem;
	transition: all 0.2s ease;
}

.btn-more:hover {
	background: var(--theme-primary);
	transform: translateY(-2px);
}

/* ==========================================================================
   5. Seção Mapa de Imóveis
   ========================================================================== */
.properties-map-section {
	padding: 60px 0;
	background: #f8fafc;
}

/* ==========================================================================
   6. Seção de Contato
   ========================================================================== */
.contact {
	padding: 80px 0;
	background: var(--theme-dark);
	color: var(--theme-white);
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
}

@media (min-width: 992px) {
	.contact-container {
		grid-template-columns: 1fr 1fr;
	}
}

.contact-info h2 {
	font-size: 2.2rem;
	color: var(--theme-white);
	margin-bottom: 12px;
}

.contact-info p {
	color: #94a3b8;
	font-size: 1.05rem;
	margin-bottom: 30px;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.contact-item i {
	font-size: 1.4rem;
	color: var(--theme-primary);
	width: 45px;
	height: 45px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-item h4 {
	font-size: 0.9rem;
	color: #94a3b8;
	margin: 0;
	font-family: var(--theme-font);
	text-transform: uppercase;
}

.contact-item p, .contact-item a {
	color: var(--theme-white);
	font-weight: 600;
	margin: 0;
}

.social-links {
	display: flex;
	gap: 12px;
}

.social-icon {
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--theme-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	transition: all 0.2s ease;
}

.social-icon:hover {
	background: var(--theme-primary);
	color: var(--theme-white);
	transform: translateY(-3px);
}

.contact-form {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 35px;
	border-radius: 14px;
}

.contact-form h3 {
	color: var(--theme-white);
	margin-bottom: 20px;
	font-size: 1.4rem;
}

.form-group {
	margin-bottom: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.06);
	color: var(--theme-white);
	font-size: 0.95rem;
	font-family: var(--theme-font);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: #94a3b8;
}

.btn-submit {
	width: 100%;
	padding: 14px;
	background: var(--theme-primary);
	color: var(--theme-white);
	border: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn-submit:hover {
	background: var(--theme-primary-hover);
}

/* ==========================================================================
   7. Seção Venda/Alugue e Simuladores de Financiamento
   ========================================================================== */
.sell-property {
	padding: 80px 0;
	background: #f1f5f9;
}

.sell-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 25px;
}

@media (min-width: 768px) {
	.sell-options {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.sell-options {
		grid-template-columns: repeat(4, 1fr);
	}
}

.sell-option {
	background: var(--theme-white);
	padding: 30px 20px;
	border-radius: 12px;
	border: 1px solid var(--theme-border);
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.sell-icon {
	font-size: 2.2rem;
	color: var(--theme-primary);
	margin-bottom: 15px;
}

.sell-option h3 {
	font-size: 1.2rem;
	margin-bottom: 10px;
}

.sell-option p {
	font-size: 0.9rem;
	color: var(--theme-gray-medium);
	margin-bottom: 20px;
	flex-grow: 1;
}

.finance-buttons .btn {
	display: inline-block;
	width: 100%;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.88rem;
	text-align: center;
}

.finance-buttons .btn-primary {
	background: var(--theme-primary);
	color: var(--theme-white) !important;
}

.finance-buttons .btn-secondary {
	background: var(--theme-dark);
	color: var(--theme-white) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: #090d16;
	color: #94a3b8;
	padding: 50px 0 20px;
	margin-top: auto;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-bottom: 30px;
}

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

.footer-col h3 {
	color: var(--theme-white);
	font-size: 1.1rem;
	margin-bottom: 15px;
}

.footer-bottom {
	border-top: 1px solid #1e293b;
	padding-top: 20px;
	text-align: center;
	font-size: 0.85rem;
}

/* ==========================================================================
   Efeitos Elegantes de Entrada e Revelação com Scroll (Reveal Animations)
   ========================================================================== */
.imob-reveal {
	opacity: 0;
	will-change: transform, opacity;
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.imob-reveal-up {
	transform: translate3d(0, 45px, 0);
}

.imob-reveal-down {
	transform: translate3d(0, -45px, 0);
}

.imob-reveal-left {
	transform: translate3d(-50px, 0, 0);
}

.imob-reveal-right {
	transform: translate3d(50px, 0, 0);
}

.imob-reveal-zoom {
	transform: scale(0.92);
}

.imob-reveal.active {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger Delays para Sequência Suave */
.imob-delay-1 { transition-delay: 0.12s; }
.imob-delay-2 { transition-delay: 0.24s; }
.imob-delay-3 { transition-delay: 0.36s; }
.imob-delay-4 { transition-delay: 0.48s; }
.imob-delay-5 { transition-delay: 0.60s; }
