/*
Theme Name: Mendonça & Associados
Description: Tema do site da Mendonça & Associados, consultores de imóveis industriais. Cadastro de imóveis com galeria de fotos, botão de WhatsApp e formulário de contato.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mendonca-associados
*/

:root {
	--ink: #0B2447;
	--ink-2: #14388A;
	--ink-deep: #071A38;
	--sun: #FF6B1A;
	--sun-d: #E85A0C;
	--paper: #FFFFFF;
	--concrete: #EDF0F5;
	--line: #D3DAE6;
	--steel: #4F5E78;
	--wa: #0C8A44;
	--wa-d: #096B35;
	--r: 14px;
	--r-s: 8px;
	--shadow: 0 14px 34px -16px rgba(11, 36, 71, .45);
	--font-d: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-b: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font-b); color: #1B2740; background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--font-d); color: var(--ink); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.icon { flex: none; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border: 2px solid transparent; border-radius: var(--r-s); font: 700 1rem/1 var(--font-b); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--sm { padding: .6rem 1rem; font-size: .95rem; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #FF8140; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-d); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.link { font-weight: 600; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand__name { font: 800 1.45rem/1 var(--font-d); color: var(--ink); letter-spacing: -.02em; }
.brand__amp { color: var(--sun); }
.brand__sub { font-size: .78rem; color: var(--steel); margin-top: .25rem; }
.custom-logo { max-height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav .menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.site-nav .menu a { color: var(--ink); font-weight: 600; text-decoration: none; padding: .4rem 0; border-bottom: 3px solid transparent; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { border-bottom-color: var(--sun); }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--ink); cursor: pointer; }

/* Topo da home */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background: linear-gradient(110deg, rgba(7,26,56,.97) 25%, rgba(11,36,71,.78)), var(--hero-img, none) center / cover, var(--ink);
	padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(5.5rem, 10vw, 8rem);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: linear-gradient(115deg, #000 10%, transparent 80%); mask-image: linear-gradient(115deg, #000 10%, transparent 80%);
}
.hero__inner { position: relative; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 6vw, 4.5rem); font-weight: 800; max-width: 17ch; margin-bottom: .45em; }
.hero__text { font-size: 1.2rem; max-width: 52ch; color: #D7E0F2; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.finder { position: relative; z-index: 2; margin-top: -3.2rem; }
.finder__box { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.25rem; border: 1px solid var(--line); }
.finder__box .btn, .filter .btn { height: 52px; }
label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); }
select, input[type=text], input[type=email], input[type=tel], textarea { display: block; width: 100%; margin-top: .35rem; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff; font: inherit; color: inherit; }
select { height: 52px; }
select:focus, input:focus, textarea:focus { border-color: var(--ink-2); outline: 3px solid rgba(20,56,138,.2); outline-offset: 0; }

/* Seções */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tint { background: var(--concrete); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section__head h2 { margin: 0; }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--steel); }
.page-head { background: var(--ink); color: #fff; padding: 3rem 0 2.6rem; border-bottom: 5px solid var(--sun); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin: 0; }
.page-head--tight { padding: 2rem 0; }
.crumbs { margin: 0 0 .6rem; font-size: .95rem; }
.crumbs a { color: #BFD0F2; }
.badges { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1rem 0 0; }
.badge-place { display: inline-flex; gap: .3rem; align-items: center; color: #D7E0F2; }

/* Cartões de imóveis */
.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--concrete); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--steel); }
.tag { position: absolute; left: .8rem; top: .8rem; background: var(--sun); color: var(--ink); font: 700 .85rem/1 var(--font-b); padding: .45rem .7rem; border-radius: 6px; }
.tag--done { background: var(--ink); color: #fff; left: auto; right: .8rem; }
.tag--inline { position: static; display: inline-block; }
.card--done .card__img { filter: grayscale(.6); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__title { font-size: 1.2rem; margin: 0 0 .5rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__place, .card__meta { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; color: var(--steel); font-size: .98rem; }

/* Filtro */
.filter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; margin-bottom: 2.2rem; max-width: 720px; }
.nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-numbers { padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s); text-decoration: none; font-weight: 600; color: var(--ink); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Serviços e idiomas */
.services { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.service { border-top: 4px solid var(--ink); padding-top: 1rem; }
.service p { color: var(--steel); margin: 0; }
.langs h2 { margin-bottom: 1.2rem; }
.langs__tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.langs__tabs button { padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 .98rem/1 var(--font-b); cursor: pointer; }
.langs__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.langs__panel { font: 500 clamp(1.25rem, 2.4vw, 1.7rem)/1.4 var(--font-d); color: var(--ink); max-width: 46ch; }

.cta { background: var(--ink-2); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta h2 { color: #fff; max-width: 22ch; }
.cta p { color: #D7E0F2; max-width: 50ch; margin-bottom: 1.6rem; }

/* Imóvel individual */
.single { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
.gallery__main { display: block; width: 100%; padding: 0; border: 0; background: var(--concrete); border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; }
.gallery__img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; }
.gallery__thumb { padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; width: 96px; height: 72px; flex: none; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--sun); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.facts div { background: var(--concrete); border-radius: var(--r-s); padding: 1rem 1.2rem; }
.facts dt { font-size: .9rem; color: var(--steel); }
.facts dd { margin: .2rem 0 0; font: 800 1.5rem/1.1 var(--font-d); color: var(--ink); }
.single__aside { position: sticky; top: 100px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--sun); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: .8rem; }
.contact-card h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--steel); }

/* Texto, contato, formulário */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: var(--r-s); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact__list li { display: flex; gap: .6rem; align-items: center; }
.form { display: grid; gap: 1rem; background: var(--concrete); padding: 1.6rem; border-radius: var(--r); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__trap { position: absolute; left: -9999px; }
.notice { margin: 0; padding: .8rem 1rem; border-radius: var(--r-s); font-weight: 600; }
.notice--ok { background: #DDF3E5; color: #0B5A2B; }
.notice--err { background: #FCE1DC; color: #8A1F10; }

/* Rodapé */
.site-footer { background: var(--ink-deep); color: #C5D0E6; padding-top: 3.5rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr; }
.site-footer__brand { font: 800 1.35rem/1.1 var(--font-d); color: #fff; margin-bottom: .6rem; }
.site-footer__title { font: 700 1.05rem/1 var(--font-d); color: #fff; margin-bottom: 1rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-footer .menu { flex-direction: column; gap: .7rem; }
.site-footer__list li { display: flex; gap: .6rem; align-items: center; }
.site-footer__legal { margin-top: 2.5rem; padding: 1.2rem 0 1.6rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; }
.site-footer__legal p { margin: 0; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: .6rem; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: .95rem; border-radius: 999px; box-shadow: 0 10px 26px -8px rgba(7,26,56,.6); animation: wa-ring 2.2s ease-out 1.5s 3; }
.wa-float:hover { background: var(--wa-d); }
.wa-float__label { display: none; padding-right: .5rem; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(12,138,68,.55), 0 10px 26px -8px rgba(7,26,56,.6); } 100% { box-shadow: 0 0 0 20px rgba(12,138,68,0), 0 10px 26px -8px rgba(7,26,56,.6); } }

/* Ampliação de fotos */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(5,15,35,.94); }
.lb.is-open { display: flex; }
.lb__img { max-width: 92vw; max-height: 80vh; border-radius: 6px; }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.28); }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; }
.lb__next { right: 16px; top: 50%; }

@media (min-width: 900px) { .wa-float__label { display: inline; } .wa-float { padding: .85rem 1.1rem; } }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem; flex-direction: column; align-items: stretch; gap: 1rem; }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: .2rem; }
	.site-nav .menu a { display: block; padding: .7rem 0; }
	.single, .contact, .site-footer__grid { grid-template-columns: 1fr; }
	.single__aside { position: static; }
	.finder__box, .filter { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } .section__head { flex-direction: column; align-items: start; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Faixa de capa da página inicial */
.cover { background: var(--ink-deep); }
.cover__img { display: block; width: 100%; max-width: 1500px; height: auto; margin-inline: auto; }
@media (max-width: 700px) { .cover__img { height: 150px; object-fit: cover; object-position: 50% 50%; } }

/* Página Galeria */
.photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.photos__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--concrete); cursor: zoom-in; aspect-ratio: 4 / 3; }
.photos__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photos__btn:hover img { transform: scale(1.03); }
.photos__cap { margin: .55rem 0 0; font-size: .95rem; color: var(--steel); }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; padding: 0 4.5rem; text-align: center; color: #fff; font-size: 1rem; }

/* Negócios realizados */
.deal-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.deal-filter button { padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 .95rem/1 var(--font-b); cursor: pointer; }
.deal-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.deal-count { margin: 0 0 1.5rem; color: var(--steel); }
.deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.deal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.deal[hidden] { display: none; }
.deal__media { aspect-ratio: 4 / 3; background: var(--concrete); }
.deal__media img { width: 100%; height: 100%; object-fit: cover; }
.deal__body { padding: .9rem 1rem 1.1rem; }
.deal__tipo { display: inline-block; margin: 0 0 .5rem; padding: .35rem .6rem; border-radius: 6px; background: var(--concrete); color: var(--ink); font: 700 .8rem/1 var(--font-b); }
.deal__local { margin: 0 0 .3rem; font: 800 1.1rem/1.2 var(--font-d); color: var(--ink); }
.deal__desc { margin: 0; color: var(--steel); font-size: .97rem; }
.deal__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--steel); }
