/* ============================================================
   SD ADVOCACIA
   PADRÃO VISUAL DOS ARTIGOS
   Arquivo: css/blog.css
   ============================================================ */


/* ============================================================
   1. VARIÁVEIS
   ============================================================ */

:root {
    --sd-borgonha: #380c0f;
    --sd-borgonha-claro: #5a171d;

    --sd-verde: #0b2b26;
    --sd-verde-claro: #17483f;

    --sd-dourado: #C9A55A;
    --sd-dourado-claro: #D4B675;

    --sd-preto: #0C0C0C;
    --sd-grafite: #4F4F4F;
    --sd-cinza: #737373;
    --sd-cinza-claro: #E8E4DF;

    --sd-offwhite: #F2EDE7;
    --sd-creme: #F8F5F0;
    --sd-branco: #FFFFFF;

    --article-width: 780px;
}


/* ============================================================
   2. BASE
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--sd-offwhite);
    color: var(--sd-grafite);
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}


/* ============================================================
   3. HERO DOS ARTIGOS
   ============================================================ */

.article-hero {
    position: relative;
    color: white;
    padding: 155px 24px 85px;
    overflow: hidden;
}

.article-hero.admin {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(201,165,90,.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #071d19 0%,
            var(--sd-verde) 55%,
            #123a33 100%
        );
}

.article-hero.criminal {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(201,165,90,.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #240609 0%,
            var(--sd-borgonha) 55%,
            #511319 100%
        );
}

.article-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -240px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(201,165,90,.13);
    border-radius: 50%;
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-bottom: 32px;

    color: rgba(255,255,255,.62);

    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
}

.article-breadcrumb a {
    color: rgba(255,255,255,.72);
    transition: color .2s ease;
}

.article-breadcrumb a:hover {
    color: var(--sd-dourado);
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: var(--sd-dourado);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.article-category::before {
    content: "";
    display: block;

    width: 34px;
    height: 1px;

    background: var(--sd-dourado);
}

.article-hero h1 {
    max-width: 940px;
    margin: 0;

    color: white;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5.3vw, 70px);
    font-weight: 600;
    line-height: .99;
    letter-spacing: -.025em;
}

.article-subtitle {
    max-width: 790px;

    margin-top: 28px;
    margin-bottom: 0;

    color: rgba(255,255,255,.78);

    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;

    margin-top: 32px;

    color: rgba(255,255,255,.6);

    font-size: 12px;
}

.article-meta strong {
    color: rgba(255,255,255,.9);
    font-weight: 500;
}


/* ============================================================
   4. CONTAINER DO ARTIGO
   ============================================================ */

.article-page {
    padding: 75px 24px 100px;
}

.article-layout {
    display: grid;

    grid-template-columns:
        minmax(0, var(--article-width))
        285px;

    gap: 70px;

    justify-content: center;
    align-items: start;

    max-width: 1160px;
    margin: 0 auto;
}


/* ============================================================
   5. TIPOGRAFIA DO CONTEÚDO
   ============================================================ */

.article-content {
    min-width: 0;
}

.article-content p {
    margin: 0 0 24px;

    color: #454545;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
}

.article-content .article-lead {
    margin-bottom: 36px;

    color: #282828;

    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.48;
}

.article-content h2 {
    position: relative;

    margin: 58px 0 24px;
    padding-top: 4px;

    color: var(--sd-borgonha);

    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
}

.article-content h2::before {
    content: "";

    display: block;

    width: 45px;
    height: 2px;

    margin-bottom: 17px;

    background: var(--sd-dourado);
}

.article-content h3 {
    margin: 38px 0 15px;

    color: var(--sd-borgonha);

    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.25;
}

.article-content strong {
    color: #292929;
    font-weight: 600;
}

.article-content em {
    color: #555;
}


/* ============================================================
   6. LISTAS
   ============================================================ */

.article-content ul,
.article-content ol {
    margin: 8px 0 30px;
    padding-left: 0;

    list-style: none;
}

.article-content li {
    position: relative;

    margin-bottom: 13px;
    padding-left: 27px;

    color: #454545;

    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.75;
}

.article-content ul li::before {
    content: "";

    position: absolute;

    left: 4px;
    top: 11px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--sd-dourado);
}

.article-content ol {
    counter-reset: article-counter;
}

.article-content ol li {
    counter-increment: article-counter;
    padding-left: 42px;
}

.article-content ol li::before {
    content: counter(article-counter);

    position: absolute;

    left: 0;
    top: -1px;

    display: flex;

    width: 28px;
    height: 28px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--sd-dourado);
    border-radius: 50%;

    color: var(--sd-borgonha);

    font-size: 11px;
    font-weight: 600;
}


/* ============================================================
   7. CAIXAS DE DESTAQUE
   ============================================================ */

.article-highlight {
    position: relative;

    margin: 38px 0;
    padding: 28px 30px;

    border-left: 3px solid var(--sd-dourado);

    background: #f8f5ef;
}

.article-highlight strong {
    display: block;

    margin-bottom: 8px;

    color: var(--sd-borgonha);

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 600;
}

.article-highlight p:last-child {
    margin-bottom: 0;
}

.article-alert {
    margin: 38px 0;
    padding: 28px 30px;

    border: 1px solid #ded8ce;
    border-top: 3px solid var(--sd-dourado);

    background: white;

    color: #3f3f3f;

    font-size: 15px;
    line-height: 1.8;
}

.article-source {
    margin-top: 60px;
    padding: 25px 28px;

    border: 1px solid #ded9d2;

    background: #ebe7e1;

    color: #555;

    font-size: 13px;
    line-height: 1.75;
}

.article-source p {
    margin: 8px 0 0;

    font-size: 13px;
    line-height: 1.75;
}


/* ============================================================
   8. FAQ
   ============================================================ */

.article-faq {
    margin-top: 70px;
    padding-top: 45px;

    border-top: 1px solid #d8d3cb;
}

.article-faq > h2 {
    margin-top: 12px;
}

.faq-label {
    color: var(--sd-dourado);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.faq-item {
    padding: 25px 0;

    border-bottom: 1px solid #ddd8d0;
}

.faq-item h3 {
    margin: 0 0 12px;

    color: var(--sd-borgonha);

    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 600;
}

.faq-item p {
    margin-bottom: 0;
}


/* ============================================================
   9. SIDEBAR / AUTORA
   ============================================================ */

.article-sidebar {
    position: sticky;
    top: 115px;
}

.author-card {
    overflow: hidden;

    border: 1px solid #ded9d2;

    background: white;

    box-shadow:
        0 15px 45px rgba(0,0,0,.06);
}

.author-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.author-photo.admin {
    background:
        radial-gradient(
            circle at 50% 30%,
            #17483f 0%,
            var(--sd-verde) 70%
        );
}

.author-photo.criminal {
    background:
        radial-gradient(
            circle at 50% 30%,
            #5a171d 0%,
            var(--sd-borgonha) 70%
        );
}

.author-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;

    object-fit: cover;
    object-position: center center;

    display: block;

    transform: none;
}

.author-info {
    padding: 27px;
}

.author-name {
    margin: 0;

    color: var(--sd-borgonha);

    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 600;
}

.author-oab {
    margin-top: 4px;

    color: var(--sd-dourado);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.author-description {
    margin-top: 17px;

    color: #666;

    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
}

.author-divider {
    width: 38px;
    height: 1px;

    margin: 19px 0;

    background: var(--sd-dourado);
}


/* ============================================================
   10. CTA DO ARTIGO
   ============================================================ */

.article-cta {
    margin-top: 70px;
    padding: 42px;

    background: var(--sd-borgonha);

    color: white;
}

.article-cta.admin {
    background: var(--sd-verde);
}

.article-cta.criminal {
    background: var(--sd-borgonha);
}

.article-cta span {
    color: var(--sd-dourado);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.article-cta h2 {
    margin: 10px 0 15px;
    padding: 0;

    color: white;

    font-size: 31px;
}

.article-cta h2::before {
    display: none;
}

.article-cta p {
    color: rgba(255,255,255,.76);
}

.article-cta a {
    display: inline-block;

    margin-top: 7px;
    padding: 13px 22px;

    background: linear-gradient(
        135deg,
        var(--sd-dourado),
        var(--sd-dourado-claro)
    );

    color: #1b1b1b;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.article-cta a:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);
}


/* ============================================================
   11. NAVEGAÇÃO VOLTAR AO BLOG
   ============================================================ */

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 50px;

    color: var(--sd-borgonha);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.back-to-blog::before {
    content: "←";

    color: var(--sd-dourado);

    font-size: 17px;
}

.back-to-blog:hover {
    color: var(--sd-dourado);
}


/* ============================================================
   12. TEMA ADMINISTRATIVO
   ============================================================ */

body.area-administrativo .article-content h2,
body.area-administrativo .article-content h3,
body.area-administrativo .faq-item h3,
body.area-administrativo .back-to-blog {
    color: var(--sd-verde);
}

body.area-administrativo .article-content ol li::before {
    color: var(--sd-verde);
}

body.area-administrativo .article-highlight strong {
    color: var(--sd-verde);
}


/* ============================================================
   13. TEMA CRIMINAL
   ============================================================ */

body.area-criminal .article-content h2,
body.area-criminal .article-content h3,
body.area-criminal .faq-item h3,
body.area-criminal .back-to-blog {
    color: var(--sd-borgonha);
}


/* ============================================================
   14. RESPONSIVO
   ============================================================ */

@media (max-width: 1024px) {

    .article-layout {
        grid-template-columns: minmax(0, 760px);
        gap: 55px;
    }

    .article-sidebar {
        position: static;
        max-width: 420px;
    }

    .author-card {
        display: grid;
        grid-template-columns: 180px 1fr;
    }

    .author-photo {
        height: 100%;
        min-height: 270px;
    }
}


@media (max-width: 768px) {

    .article-hero {
        padding:
            125px
            20px
            60px;
    }

    .article-hero h1 {
        font-size: 42px;
        line-height: 1.04;
    }

    .article-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-page {
        padding:
            50px
            20px
            75px;
    }

    .article-content .article-lead {
        font-size: 23px;
    }

    .article-content h2 {
        margin-top: 48px;
        font-size: 31px;
    }

    .article-content h3 {
        font-size: 24px;
    }

    .article-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-highlight,
    .article-alert {
        padding: 23px;
    }

    .article-cta {
        padding: 30px 25px;
    }
}


@media (max-width: 560px) {

    .article-hero h1 {
        font-size: 36px;
    }

    .article-breadcrumb {
        font-size: 10px;
    }

    .article-meta {
        font-size: 11px;
    }

    .author-card {
        display: block;
    }

    .author-photo {
        height: 370px;
    }

    .article-content h2 {
        font-size: 29px;
    }

    .article-content .article-lead {
        font-size: 21px;
    }
}