/* ==========================================================================
   Blog + small accessibility helpers
   Loaded after style.css, so it reuses the theme colors and fonts.
   ========================================================================== */

/* Skip link becomes visible on keyboard focus */
.sr-only-focusable:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 10px 16px;
    margin: 0;
    clip: auto;
    background: #fff;
    color: #222;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

/* ---------- Breadcrumb ---------- */
.blog-breadcrumb .breadcrumb {
    background: transparent;
    padding: 18px 0 6px;
    margin: 0;
    font-size: 13px;
}
.blog-breadcrumb .breadcrumb > .active {
    color: #777;
}

/* ---------- Shared meta line ---------- */
.blog-meta {
    font-size: 13px;
    color: #777;
    margin: 0 0 10px;
}
.blog-meta span[aria-hidden] {
    margin: 0 4px;
}

/* ---------- Home: latest posts ---------- */
.blog-recentes {
    padding: 50px 0 30px;
    margin-top: 30px;
    background: #f5f6f8;
    border-top: 1px solid #e6e8eb;
}
.blog-recentes__topo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
}
.blog-recentes__topo h2 {
    margin: 0;
    font-size: 26px;
}
.blog-recentes__grade {
    display: flex;
    flex-wrap: wrap;
}
.blog-recentes__grade > [class*="col-"] {
    display: flex;
    margin-bottom: 20px;
}
.blog-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 24px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}
.blog-card__titulo {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 10px;
}
.blog-card__resumo {
    flex: 1 1 auto;
    color: #555;
}

/* ---------- Blog list ---------- */
.blog-lista__topo {
    margin-bottom: 30px;
}
.blog-lista__intro {
    font-size: 16px;
    color: #555;
}
.blog-item {
    padding: 0 0 26px;
    margin: 0 0 26px;
    border-bottom: 1px solid #e6e8eb;
}
.blog-item__titulo {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 8px;
}
.blog-item__resumo {
    font-size: 15px;
    color: #444;
}
.blog-paginacao .pagination {
    margin-top: 0;
}

/* ---------- Post ---------- */
.post {
    max-width: 760px;
    margin-bottom: 40px;
}
.post-categoria {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 700;
    color: #777;
    margin: 10px 0 6px;
}
.post-titulo {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 14px;
}
.post-resumo {
    font-size: 19px;
    line-height: 1.55;
    color: #444;
    margin-bottom: 12px;
}
.post-cabecalho {
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e6e8eb;
}

.post-sumario {
    background: #f5f6f8;
    border-left: 3px solid currentColor;
    padding: 16px 20px 10px;
    margin: 0 0 30px;
}
.post-sumario__titulo {
    font-weight: 700;
    margin: 0 0 6px;
}
.post-sumario ol {
    padding-left: 20px;
    margin: 0;
}
.post-sumario li {
    margin-bottom: 6px;
}

.post-conteudo {
    font-size: 17px;
    line-height: 1.75;
    color: #2b2b2b;
}
.post-conteudo h2,
.post-conteudo h3,
.post-conteudo h4 {
    line-height: 1.3;
    margin: 1.8em 0 .6em;
    scroll-margin-top: 90px;
}
.post-conteudo h2 { font-size: 26px; }
.post-conteudo h3 { font-size: 21px; }
.post-conteudo h4 { font-size: 18px; }
.post-conteudo p,
.post-conteudo ul,
.post-conteudo ol {
    margin: 0 0 1.1em;
}
.post-conteudo li {
    margin-bottom: .4em;
}
.post-conteudo a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.post-conteudo blockquote {
    font-size: 17px;
    margin: 1.5em 0;
    padding: 14px 20px;
    background: #f5f6f8;
    border-left: 4px solid currentColor;
}
.post-conteudo blockquote p:last-child {
    margin-bottom: 0;
}
.post-conteudo code {
    font-size: .9em;
    padding: 2px 5px;
    background: #f1f2f4;
    color: inherit;
    border-radius: 3px;
}
.post-conteudo pre {
    font-size: 14px;
    padding: 14px;
    overflow-x: auto;
}
.post-conteudo pre code {
    padding: 0;
    background: none;
}
.post-conteudo hr {
    margin: 2em 0;
}

.tabela-responsiva {
    overflow-x: auto;
    margin: 0 0 1.4em;
}
.tabela-responsiva table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.tabela-responsiva th,
.tabela-responsiva td {
    border: 1px solid #e0e3e7;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.tabela-responsiva th {
    background: #f5f6f8;
}

.post-rodape {
    margin-top: 40px;
}
.post-autor-box {
    background: #f5f6f8;
    padding: 20px 22px;
    border-radius: 3px;
    font-size: 15px;
}
.post-autor-box p:last-child {
    margin-bottom: 0;
}

.post-navegacao {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}
.post-navegacao a {
    flex: 1 1 260px;
    display: block;
    padding: 14px 18px;
    border: 1px solid #e0e3e7;
    border-radius: 3px;
    transition: border-color .2s ease;
}
.post-navegacao a:hover {
    border-color: currentColor;
    text-decoration: none;
}
.post-navegacao span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #777;
    margin-bottom: 4px;
}
.post-navegacao__proximo {
    text-align: right;
}

.post-relacionados {
    max-width: 760px;
    padding-top: 26px;
    margin-bottom: 40px;
    border-top: 1px solid #e6e8eb;
}
.post-relacionados h2 {
    font-size: 22px;
    margin-top: 0;
}
.post-relacionados ul {
    list-style: none;
    padding: 0;
}
.post-relacionados li {
    margin-bottom: 14px;
}
.post-relacionados li a {
    font-weight: 700;
    display: block;
}
.post-relacionados li span {
    font-size: 14px;
    color: #666;
}

/* ---------- Property page call to action ---------- */
.imovel-interesse {
    margin-top: 30px;
    padding: 18px 20px;
    background: #f5f6f8;
    border-radius: 3px;
}
.imovel-interesse h2 {
    font-size: 20px;
    margin-top: 0;
}
.imovel-interesse p {
    margin: 0;
}

/* ---------- About page ---------- */
.pagina-sobre__destaque {
    font-size: 17px;
    line-height: 1.7;
}
.pagina-sobre h2 {
    font-size: 22px;
    margin-top: 30px;
}

@media (max-width: 767px) {
    .post-titulo { font-size: 27px; }
    .post-resumo { font-size: 17px; }
    .post-conteudo { font-size: 16px; }
    .blog-recentes { padding-top: 35px; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .post-navegacao a {
        transition: none;
    }
    .blog-card:hover {
        transform: none;
    }
}
