/*
Theme Name: Simulados CNH Blog
Theme URI: https://conteudo.simuladoscnh.com.br/
Author: Simulados CNH
Description: Tema editorial do Simulados CNH, alinhado ao site e ao aplicativo.
Version: 1.0.2
Text Domain: simulados-cnh-blog
*/

:root {
    --scnh-lime: #7ed957;
    --scnh-lime-soft: #dff4cf;
    --scnh-lime-pale: #f2fbec;
    --scnh-ink: #33404c;
    --scnh-ink-deep: #1f241e;
    --scnh-muted: #748079;
    --scnh-cream: #f5f3ec;
    --scnh-warm-white: #fbfaf6;
    --scnh-white: #ffffff;
    --scnh-aqua: #d9f3ef;
    --scnh-lavender: #efe3f6;
    --scnh-yellow: #f7efc6;
    --scnh-line: rgba(51, 64, 76, .13);
    --scnh-shadow: 0 22px 60px rgba(51, 64, 76, .11);
    --scnh-radius: 28px;
    --scnh-ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--scnh-ink);
    background: var(--scnh-warm-white);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
svg { display: block; }
p, h1, h2, h3 { margin-top: 0; }
.shell { width: min(1210px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 18px; border-radius: 12px; background: var(--scnh-ink-deep); color: #fff; }
.skip-link:focus { transform: none; }

.announcement { min-height: 40px; border-bottom: 1px solid #d9e8d0; background: #edf9e7; font-size: 14px; }
.announcement__inner { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.announcement__tag { padding: 3px 8px; border-radius: 999px; background: #daf0cc; color: #467f2c; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.announcement a { font-weight: 600; white-space: nowrap; }
.announcement a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid transparent; background: rgba(251, 250, 246, .93); backdrop-filter: blur(18px); transition: border-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { border-color: var(--scnh-line); box-shadow: 0 8px 30px rgba(51, 64, 76, .06); }
.nav-wrap { height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; }
.brand__logo { display: block; width: 150px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-inline: auto; font-size: 14px; }
.desktop-nav a, .login-link { transition: opacity .2s ease; }
.desktop-nav a:hover, .login-link:hover { opacity: .62; }
.desktop-nav .is-current { font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 17px; font-size: 14px; }
.menu-button { display: none; width: 42px; height: 42px; margin-left: auto; border: 0; border-radius: 50%; background: var(--scnh-cream); place-items: center; }
.menu-button span { grid-area: 1/1; width: 19px; height: 2px; background: var(--scnh-ink); transition: transform .2s ease; }
.menu-button span:first-child { transform: translateY(-4px); }
.menu-button span:last-child { transform: translateY(4px); }
.menu-button[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-menu { position: absolute; z-index: 90; top: 100%; left: 0; right: 0; height: calc(100dvh - 64px); overflow-y: auto; padding: 28px 32px; background: var(--scnh-warm-white); box-shadow: 0 18px 30px rgba(51, 64, 76, .08); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav > a:not(.button) { padding: 15px 0; border-bottom: 1px solid var(--scnh-line); font-size: 22px; font-weight: 600; }
.mobile-menu .button { margin-top: 22px; }

.button { min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; line-height: 1; transition: transform .25s var(--scnh-ease), box-shadow .25s var(--scnh-ease), background .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(126, 217, 87, .55); outline-offset: 4px; }
.button--dark { background: var(--scnh-ink-deep); color: #fff; box-shadow: 0 10px 24px rgba(31, 36, 30, .12); }
.button--dark:hover { background: #111510; box-shadow: 0 16px 34px rgba(31, 36, 30, .18); }
.button--lime { background: var(--scnh-lime); color: var(--scnh-ink-deep); }
.button--lime:hover { background: #70cb4a; }
.button--small { min-height: 44px; padding-inline: 18px; border-radius: 13px; }
.button--large { min-height: 58px; padding-inline: 30px; }

.blog-hero { padding: 72px 0 74px; }
.blog-hero__panel { min-height: 500px; padding: clamp(38px, 6vw, 78px); border-radius: 42px; display: grid; grid-template-columns: 1.12fr .65fr; gap: 70px; align-items: end; background: var(--scnh-cream); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; color: #63705f; font-size: 13px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--scnh-lime); box-shadow: 0 0 0 6px rgba(126, 217, 87, .16); }
.blog-hero h1, .archive-hero h1, .article-hero h1 { margin-bottom: 0; color: #26322f; font-size: clamp(3.55rem, 7vw, 7rem); font-weight: 500; letter-spacing: -.07em; line-height: .89; }
.blog-hero h1 em { color: #63b63f; font-style: normal; }
.blog-hero__side p { margin-bottom: 26px; color: #485956; font-size: 19px; line-height: 1.45; }
.blog-hero__side a:not(.button) { display: inline-flex; gap: 7px; align-items: center; border-bottom: 2px solid var(--scnh-lime); font-weight: 600; }

.category-strip { padding-bottom: 58px; }
.category-strip__inner { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.category-strip strong { margin-right: 8px; color: var(--scnh-ink-deep); font-size: 13px; }
.category-chip { padding: 10px 14px; border: 1px solid var(--scnh-line); border-radius: 999px; background: #fff; color: #596864; font-size: 13px; font-weight: 600; transition: background .2s ease, border-color .2s ease; }
.category-chip:hover { border-color: var(--scnh-lime); background: var(--scnh-lime-pale); }

.posts-section { padding: 35px 0 115px; }
.section-heading { margin-bottom: 46px; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.section-heading h2 { max-width: 760px; margin: 0; color: #17302e; font-size: clamp(2.55rem, 5vw, 4.7rem); font-weight: 500; letter-spacing: -.065em; line-height: .97; }
.section-heading p { max-width: 410px; margin: 0; color: var(--scnh-muted); line-height: 1.5; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { min-width: 0; overflow: hidden; border-radius: var(--scnh-radius); display: flex; flex-direction: column; background: var(--scnh-cream); transition: transform .3s var(--scnh-ease), box-shadow .3s var(--scnh-ease); }
.post-card:nth-child(3n+2) { background: var(--scnh-lime-pale); }
.post-card:nth-child(3n+3) { background: var(--scnh-aqua); }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(51, 64, 76, .1); }
.post-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--scnh-lime-soft), var(--scnh-aqua)); }
.post-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s var(--scnh-ease); }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__media--placeholder { display: grid; place-items: center; background: radial-gradient(circle at 78% 24%, rgba(255, 255, 255, .72) 0 9%, transparent 10%), linear-gradient(135deg, var(--scnh-lime-soft), var(--scnh-aqua)); }
.post-card__media--placeholder::before { content: ""; width: 70px; height: 70px; border-radius: 22px; background: var(--scnh-lime); box-shadow: 0 15px 35px rgba(51, 64, 76, .12); }
.post-card__media--placeholder::after { content: ""; position: absolute; width: 34px; height: 24px; border-block: 4px solid var(--scnh-ink-deep); box-shadow: inset 0 -6px 0 -2px var(--scnh-lime); opacity: .86; }
.post-card__body { min-height: 310px; padding: 27px; display: flex; flex-direction: column; }
.post-card__meta { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #60706b; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.post-card__category { color: #4e952f; }
.post-card h2 { margin: 0 0 14px; color: var(--scnh-ink-deep); font-size: 24px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card__excerpt { margin: 0 0 24px; color: #5d6a66; line-height: 1.53; }
.post-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--scnh-ink-deep); font-weight: 700; }
.post-card__link span { color: #56a238; transition: transform .2s ease; }
.post-card:hover .post-card__link span { transform: translateX(4px); }
.empty-state { padding: 60px; border-radius: var(--scnh-radius); background: var(--scnh-cream); text-align: center; }

.pagination { margin-top: 54px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--scnh-line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--scnh-lime); background: var(--scnh-lime-pale); }

.archive-hero { padding: 72px 0 48px; }
.archive-hero__panel { padding: clamp(38px, 6vw, 72px); border-radius: 40px; background: var(--scnh-lime-pale); }
.archive-hero h1 { max-width: 970px; font-size: clamp(3.3rem, 6vw, 6.1rem); }
.archive-hero p { max-width: 700px; margin: 25px 0 0; color: #52645f; font-size: 18px; line-height: 1.5; }
.breadcrumb { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--scnh-muted); font-size: 13px; }
.breadcrumb span { opacity: .55; }

.article-hero { padding: 70px 0 56px; }
.article-hero__panel { padding: clamp(38px, 6vw, 76px); border-radius: 42px; background: var(--scnh-cream); }
.article-hero__content { max-width: 1040px; }
.article-hero h1 { max-width: 1050px; font-size: clamp(3.25rem, 6.5vw, 6.6rem); }
.article-hero__excerpt { max-width: 760px; margin: 28px 0 0; color: #485956; font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.5; }
.article-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 9px; }
.article-meta span, .article-meta a { padding: 9px 13px; border: 1px solid rgba(51, 64, 76, .12); border-radius: 999px; background: rgba(255, 255, 255, .58); color: #596864; font-size: 12px; font-weight: 600; }
.article-cover { padding-bottom: 70px; }
.article-cover img { width: 100%; max-height: 690px; border-radius: 34px; display: block; object-fit: cover; box-shadow: var(--scnh-shadow); }
.article-section { padding: 30px 0 110px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) 270px; gap: 85px; align-items: start; justify-content: center; }
.article-prose { min-width: 0; }
.article-prose > p:first-child { color: var(--scnh-ink-deep); font-size: 22px; line-height: 1.5; }
.article-prose h2 { scroll-margin-top: 120px; margin: 68px 0 20px; color: #19322f; font-size: clamp(2rem, 3.8vw, 3.15rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.04; }
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 { margin: 38px 0 13px; color: var(--scnh-ink-deep); font-size: 23px; letter-spacing: -.025em; }
.article-prose h4 { margin: 30px 0 10px; color: var(--scnh-ink-deep); font-size: 19px; }
.article-prose p, .article-prose li { color: #586664; font-size: 17px; line-height: 1.76; }
.article-prose p { margin-bottom: 20px; }
.article-prose ul, .article-prose ol { margin: 0 0 28px; padding-left: 24px; }
.article-prose li { margin-bottom: 9px; padding-left: 5px; }
.article-prose a { border-bottom: 1px solid var(--scnh-lime); color: #375d31; font-weight: 600; }
.article-prose strong { color: var(--scnh-ink-deep); }
.article-prose blockquote { margin: 38px 0; padding: 27px 30px; border: 0; border-radius: 24px; background: var(--scnh-lime-pale); color: var(--scnh-ink-deep); }
.article-prose blockquote p { color: inherit; font-size: 20px; }
.article-prose figure { margin: 42px 0; }
.article-prose figure img { border-radius: 22px; }
.article-prose figcaption { margin-top: 10px; color: var(--scnh-muted); font-size: 13px; text-align: center; }
.article-prose .wp-block-button__link { border: 0; border-radius: 14px; background: var(--scnh-ink-deep); color: #fff; }
.article-aside { position: sticky; top: 110px; }
.aside-card { padding: 27px; border-radius: 24px; background: var(--scnh-lime-pale); }
.aside-card + .aside-card { margin-top: 14px; background: var(--scnh-aqua); }
.aside-card__label { display: block; margin-bottom: 42px; color: #4d942f; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.aside-card h2 { margin: 0 0 12px; color: var(--scnh-ink-deep); font-size: 25px; font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.aside-card p { margin: 0 0 22px; color: #586963; line-height: 1.5; }
.aside-card .button { width: 100%; }

.related { padding: 100px 0 115px; border-top: 1px solid var(--scnh-line); }
.related__heading { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.related__heading h2 { margin: 0; color: #17302e; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.06em; }
.related__heading a { border-bottom: 2px solid var(--scnh-lime); font-weight: 600; }

.final-cta { padding: 10px 0 80px; }
.final-cta__panel { min-height: 430px; padding: clamp(40px, 7vw, 80px); border-radius: 40px; display: grid; grid-template-columns: 1.25fr .55fr; gap: 80px; align-items: end; background: var(--scnh-ink-deep); color: #fff; }
.section-pill { width: max-content; padding: 10px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; background: var(--scnh-lime); color: var(--scnh-ink-deep); font-size: 13px; font-weight: 700; }
.final-cta h2 { max-width: 820px; margin: 25px 0 18px; font-size: clamp(3rem, 6vw, 5.3rem); font-weight: 500; letter-spacing: -.065em; line-height: .93; }
.final-cta p { max-width: 660px; margin-bottom: 0; color: rgba(255, 255, 255, .66); font-size: 18px; }
.final-cta__actions { display: grid; gap: 15px; }
.final-cta__actions span { color: rgba(255, 255, 255, .52); font-size: 12px; text-align: center; }

.footer { padding: 70px 0 30px; background: var(--scnh-cream); }
.footer__top { padding-bottom: 55px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--scnh-line); }
.footer__top p { max-width: 420px; margin: 0; color: var(--scnh-muted); text-align: right; }
.footer__links { padding: 55px 0 70px; display: grid; grid-template-columns: 1.2fr 1.3fr .8fr .8fr; gap: 50px; }
.footer__links > div { display: grid; align-content: start; gap: 13px; }
.footer__links strong { margin-bottom: 5px; color: var(--scnh-ink-deep); font-size: 13px; }
.footer__links a { color: var(--scnh-muted); font-size: 14px; }
.footer__links a:hover { color: var(--scnh-ink-deep); }
.footer__bottom { padding-top: 25px; border-top: 1px solid var(--scnh-line); display: flex; justify-content: space-between; gap: 25px; color: var(--scnh-muted); font-size: 12px; }

.not-found { padding: 80px 0 120px; }
.not-found__panel { min-height: 520px; padding: 70px; border-radius: 42px; display: flex; flex-direction: column; align-items: start; justify-content: center; background: var(--scnh-cream); }
.not-found__panel span { color: #63b63f; font-size: 90px; font-weight: 500; letter-spacing: -.08em; }
.not-found__panel h1 { max-width: 720px; margin: 10px 0 18px; color: var(--scnh-ink-deep); font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 500; letter-spacing: -.065em; line-height: .94; }
.not-found__panel p { max-width: 560px; color: var(--scnh-muted); font-size: 18px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.alignwide { margin-left: auto; margin-right: auto; max-width: 1100px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

@media (max-width: 980px) {
    .blog-hero__panel { grid-template-columns: 1fr; gap: 40px; min-height: 520px; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 48px; }
    .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .aside-card + .aside-card { margin-top: 0; }
    .final-cta__panel { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 820px) {
    .shell { width: min(100% - 36px, 680px); }
    .desktop-nav, .nav-actions { display: none; }
    .menu-button { display: grid; }
    .section-heading { align-items: start; flex-direction: column; }
    .footer__links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .shell { width: calc(100% - 28px); }
    .announcement { font-size: 11px; }
    .announcement__inner { gap: 7px; }
    .announcement__tag { display: none; }
    .nav-wrap { height: 64px; }
    .blog-hero, .archive-hero, .article-hero { padding-top: 30px; }
    .blog-hero__panel, .archive-hero__panel, .article-hero__panel { padding: 30px 22px; border-radius: 27px; }
    .blog-hero h1, .archive-hero h1, .article-hero h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
    .blog-hero__side p { font-size: 17px; }
    .category-strip { padding-bottom: 35px; }
    .posts-section { padding: 25px 0 82px; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-card__body { min-height: 275px; padding: 24px; }
    .post-card h2 { font-size: 23px; }
    .article-cover { padding-bottom: 42px; }
    .article-cover img { border-radius: 22px; }
    .article-section { padding: 20px 0 75px; }
    .article-prose > p:first-child { font-size: 20px; }
    .article-prose h2 { margin-top: 54px; font-size: 2.25rem; }
    .article-prose p, .article-prose li { font-size: 16px; }
    .article-aside { grid-template-columns: 1fr; }
    .related { padding-block: 72px; }
    .related__heading { align-items: start; flex-direction: column; }
    .final-cta { padding-bottom: 28px; }
    .final-cta__panel { min-height: 440px; padding: 40px 23px; border-radius: 27px; }
    .final-cta h2 { font-size: 3rem; }
    .footer__top { align-items: start; flex-direction: column; }
    .footer__top p { text-align: left; }
    .footer__links { grid-template-columns: 1fr; gap: 34px; }
    .footer__bottom { flex-direction: column; }
    .not-found__panel { padding: 36px 23px; border-radius: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
