/*
Theme Name: Imóveis Bom Jardim
Description: Tema do site da Imóveis Bom Jardim. Use junto com o plugin "Imóveis Bom Jardim".
Version: 0.4.1
Requires at least: 6.4
Requires PHP: 7.4
Author: Lucas Loureiro
License: GPL-2.0-or-later
Text Domain: bom-jardim
*/

:root {
	--bj-red: #c62b26;
	--bj-red-dark: #8e1b17;
	--bj-red-soft: #fbe9e8;
	--bj-ink: #1f1f1f;
	--bj-black: #141414;
	--bj-muted: #5c5754;
	--bj-line: #e2deda;
	--bj-bg: #f7f5f2;
	--bj-green: #1f7a4c;
	--bj-display: "Archivo", "Arial Narrow", sans-serif;
	--bj-body: "Source Sans 3", system-ui, sans-serif;
	--bj-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bj-bg); color: var(--bj-black); font-family: var(--bj-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--bj-red); }
:focus-visible { outline: 3px solid var(--bj-red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--bj-display); color: var(--bj-ink); line-height: 1.12; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.bj-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.bj-skip:focus { left: 8px; }

/* Botões */
.bj-btn { text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.bj-btn-primary { background: var(--bj-red); color: #fff; }
.bj-btn-primary:hover { background: var(--bj-red-dark); color: #fff; }
.bj-btn-whatsapp { background: var(--bj-green); color: #fff; }
.bj-btn-whatsapp:hover { color: #fff; filter: brightness(0.92); }

/* Logo */
.bj-logo { display: inline-flex; align-items: center; gap: 12px; }
.bj-logo-text { display: flex; flex-direction: column; line-height: 0.95; font-family: var(--bj-display); font-stretch: 75%; font-weight: 800; letter-spacing: 0.01em; }

/* Cabeçalho */
.bj-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--bj-line); }
.admin-bar .bj-header { top: 32px; }
.bj-header-inner { max-width: var(--bj-max); margin: 0 auto; padding: 0 20px; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bj-brand { text-decoration: none; flex-shrink: 0; }
.bj-nav { display: flex; align-items: center; gap: 28px; }
.bj-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.bj-menu a { text-decoration: none; font-weight: 600; padding: 8px 0; white-space: nowrap; }
.bj-menu .current-menu-item > a, .bj-menu a[aria-current="page"] { color: var(--bj-red); }
.bj-nav-contact { display: flex; align-items: center; gap: 16px; }
.bj-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bj-nav-contact .bj-btn { min-height: 46px; border-radius: 999px; padding: 0 18px; }
.bj-menu-toggle { display: none; }

@media (min-width: 1201px) { .bj-phone { display: none; } }
@media (max-width: 1200px) {
	.bj-header-inner { min-height: 68px; }
	.bj-menu-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 1px solid var(--bj-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--bj-black); cursor: pointer; }
	.bj-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--bj-line); padding: 8px 20px 20px; flex-direction: column; align-items: stretch; gap: 12px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
	.bj-nav.is-open { display: flex; }
	.bj-menu { flex-direction: column; gap: 0; }
	.bj-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--bj-line); font-size: 18px; }
	.bj-nav-contact { flex-direction: column; align-items: stretch; }
	.bj-nav-contact .bj-btn, .bj-phone { justify-content: center; min-height: 50px; }
}
@media (max-width: 782px) { .admin-bar .bj-header { top: 46px; } }

/* Página inicial */
.bj-home { display: block; }
.bj-kicker { margin: 0 0 12px; font-weight: 700; color: var(--bj-red); }
.bj-kicker-light { color: #f2a09b; }
.bj-hero { background: #fff; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; max-width: none; padding: 56px max(20px, calc((100% - var(--bj-max)) / 2 + 20px)) 64px; }
.bj-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
.bj-hero-lead { font-size: 20px; color: var(--bj-muted); margin: 0 0 24px; max-width: 46ch; }
.bj-hero .ibj-search { background: var(--bj-bg); border: 0; }
.bj-trust { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--bj-muted); font-weight: 600; font-size: 15px; }
.bj-trust li { display: inline-flex; align-items: center; gap: 6px; }
.bj-trust svg { color: var(--bj-green); }
.bj-hero-photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; min-height: 420px; background: #b8c4a8; }
.bj-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 35%; display: block; }

.bj-section { max-width: var(--bj-max); margin: 0 auto; padding: 72px 20px 0; }
.bj-section-tight { padding-top: 56px; }
.bj-section-head { margin-bottom: 24px; }
.bj-section-head h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 6px; }
.bj-section-head p { margin: 0; color: var(--bj-muted); font-size: 18px; }

.bj-band { background: #fff; margin-top: 72px; padding: 64px 0; }
.bj-inner { max-width: var(--bj-max); margin: 0 auto; padding: 0 20px; }
.bj-band h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 28px; }
.bj-steps { list-style: none; counter-reset: bj; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bj-steps li { counter-increment: bj; }
.bj-steps li::before { content: counter(bj); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--bj-red-soft); color: var(--bj-red); font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.bj-steps h3 { font-family: var(--bj-body); font-size: 21px; margin: 0 0 6px; letter-spacing: 0; }
.bj-steps p { margin: 0; color: var(--bj-muted); }

.bj-about { background: var(--bj-ink); border-radius: 24px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.bj-about h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); margin: 0 0 16px; }
.bj-about-text p:last-child { color: #d6d3d0; font-size: 18px; margin: 0; max-width: 60ch; }
.bj-about-card { background: #fff; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 110px; }
.bj-about-card h3 { font-family: var(--bj-body); font-size: 23px; margin: 0; letter-spacing: 0; }
.bj-about-card p { margin: 0; color: var(--bj-muted); }

.bj-faq-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; }
.bj-faq-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; }
.bj-faq-head p { margin: 0; color: var(--bj-muted); }
.bj-faq { display: flex; flex-direction: column; gap: 12px; }
.bj-faq details { background: #fff; border: 1px solid var(--bj-line); border-radius: 16px; }
.bj-faq summary { list-style: none; cursor: pointer; min-height: 64px; padding: 16px 56px 16px 22px; font-weight: 700; font-size: 18px; position: relative; display: flex; align-items: center; }
.bj-faq summary::-webkit-details-marker { display: none; }
.bj-faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--bj-muted); border-bottom: 2px solid var(--bj-muted); transform: translateY(-70%) rotate(45deg); }
.bj-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.bj-faq details p { margin: 0; padding: 0 22px 20px; color: var(--bj-muted); max-width: 70ch; }

.bj-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.bj-contact-info { display: flex; flex-direction: column; gap: 12px; }
.bj-contact-info h2 { margin-bottom: 8px; }
.bj-contact-item { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 18px; border: 1px solid var(--bj-line); border-radius: 14px; background: var(--bj-bg); text-decoration: none; }
.bj-contact-item span { display: flex; flex-direction: column; }
.bj-contact-item strong { font-size: 14px; color: var(--bj-muted); }
.bj-contact-wa { background: var(--bj-green); border-color: var(--bj-green); color: #fff; }
.bj-contact-wa strong { color: #d7eee1; }
.bj-contact-wa:hover { color: #fff; filter: brightness(0.94); }
.bj-map { border-radius: 18px; overflow: hidden; min-height: 320px; background: var(--bj-line); }
.bj-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Páginas comuns */
.bj-page { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.bj-page h1 { font-size: clamp(30px, 4vw, 44px); }
.bj-content { font-size: 18px; line-height: 1.7; }
.bj-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Rodapé */
.bj-footer { background: var(--bj-black); color: #c8c4c0; margin-top: 72px; font-size: 16px; }
.ibj-page + .bj-footer, .bj-page + .bj-footer, .bj-home + .bj-footer { margin-top: 0; }
.bj-footer a { color: #fff; text-decoration: none; }
.bj-footer a:hover { color: #f2a09b; }
.bj-footer-inner { max-width: var(--bj-max); margin: 0 auto; padding: 56px 20px 32px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.bj-footer-about p { margin: 12px 0 0; }
.bj-footer-col h2 { font-family: var(--bj-body); font-size: 15px; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.bj-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bj-footer-bottom { max-width: var(--bj-max); margin: 0 auto; padding: 20px 20px 28px; border-top: 1px solid #333; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.bj-social { display: flex; gap: 20px; }

/* Celular e tablet */
@media (max-width: 1000px) {
	.bj-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
	.bj-hero-photo { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
	.bj-steps { grid-template-columns: 1fr; gap: 24px; }
	.bj-about { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
	.bj-faq-wrap { grid-template-columns: 1fr; gap: 20px; }
	.bj-contact { grid-template-columns: 1fr; }
	.bj-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
	body { font-size: 17px; }
	.bj-hero-photo { border-radius: 18px; }
	.bj-hero-lead { font-size: 18px; }
	.bj-section { padding-top: 48px; }
	.bj-band { margin-top: 48px; padding: 44px 0; }
	.bj-footer { padding-bottom: 88px; }
}
