/*
Theme Name: Enpraxis Blog
Theme URI: https://blog.enpraxis.com.br
Author: Enpraxis
Description: Tema editorial oficial do Blog Enpraxis, alinhado ao novo site institucional.
Version: 1.2.2
Text Domain: enpraxis-blog
*/

:root {
  --orange: #f04a18;
  --orange-light: #ff8a1f;
  --red: #c92012;
  --ink: #0b0b0c;
  --ink-soft: #171719;
  --paper: #f5f4f2;
  --white: #fff;
  --muted: #69696f;
  --line: #e5e2de;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 15, 18, .09);
  --font: "Poppins", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(20,20,20,.07);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 168px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 27px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 13px; font-weight: 600; color: #353538; transition: color .2s; }
.main-nav a:hover, .main-nav .is-current { color: var(--orange); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 9px; color: var(--white);
  background: linear-gradient(115deg, #d9270d, #ffad00); font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(231, 61, 13, .22);
}
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

.blog-hero {
  position: relative; overflow: hidden; padding: 92px 0 86px; color: var(--white);
  background: radial-gradient(circle at 88% 18%, rgba(255,101,0,.35), transparent 32%),
              linear-gradient(130deg, #090909 10%, #1a0a08 58%, #6c1205 100%);
}
.blog-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -220px; width: 440px; height: 440px;
  border: 75px solid rgba(255,117,36,.11); border-radius: 50%;
}
.eyebrow { margin: 0 0 13px; color: var(--orange-light); font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.blog-hero h1 { position: relative; z-index: 1; max-width: 800px; margin: 0; font-size: clamp(40px, 6vw, 74px); line-height: 1.04; letter-spacing: -.04em; }
.blog-hero p:not(.eyebrow) { position: relative; z-index: 1; max-width: 670px; margin: 25px 0 0; color: rgba(255,255,255,.76); font-size: 18px; }

.category-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.category-list { display: flex; gap: 10px; padding: 20px 0; overflow-x: auto; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: #3e3e42; font-size: 12px; font-weight: 600; transition: .2s; }
.category-chip:hover { color: var(--white); border-color: var(--orange); background: var(--orange); }

.content-section { padding: 78px 0 100px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.section-head p { max-width: 450px; margin: 0; color: var(--muted); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(240,74,24,.3); box-shadow: var(--shadow); }
.post-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; background: #dedbd7; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__image img { transform: scale(1.035); }
.post-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #151515, #7c1608); }
.post-card__body { padding: 24px; }
.post-card__category { display: inline-block; margin-bottom: 12px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2, .post-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.28; letter-spacing: -.025em; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.post-card__meta { display: flex; gap: 9px; margin-top: 20px; color: #8b8987; font-size: 11px; font-weight: 600; }
.post-card:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.1fr .9fr; }
.post-card:first-child .post-card__image { aspect-ratio: auto; min-height: 390px; }
.post-card:first-child .post-card__body { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.post-card:first-child h2, .post-card:first-child h3 { font-size: 32px; }

.pagination { margin-top: 52px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 9px; background: var(--white); font-size: 13px; font-weight: 700; }
.pagination .current, .pagination a:hover { color: var(--white); background: var(--orange); }

.archive-hero { padding: 72px 0; color: var(--white); background: linear-gradient(125deg, #090909, #571005); }
.archive-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; }
.archive-hero p { max-width: 700px; margin: 18px 0 0; color: rgba(255,255,255,.7); }

.single-hero { padding: 66px 0 48px; background: var(--white); }
.single-hero__inner { max-width: 920px; }
.single-hero h1 { margin: 11px 0 20px; font-size: clamp(38px, 5.6vw, 70px); line-height: 1.06; letter-spacing: -.045em; }
.single-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.single-featured { width: min(1180px, calc(100% - 40px)); max-height: 650px; margin: 0 auto; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: center; gap: 70px; padding: 70px 0 100px; }
.article-content { min-width: 0; color: #29292d; font-family: Arial, sans-serif; font-size: 18px; line-height: 1.88; overflow-wrap: anywhere; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2, .article-content h3 { color: var(--ink); font-family: var(--font); line-height: 1.25; letter-spacing: -.025em; }
.article-content h2 { margin: 48px 0 17px; font-size: 31px; }
.article-content h3 { margin: 38px 0 14px; font-size: 24px; }
.article-content p { margin: 0 0 24px; }
.article-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.article-content img { margin: 34px auto; border-radius: 16px; }
.article-content blockquote { margin: 36px 0; padding: 10px 0 10px 28px; border-left: 4px solid var(--orange); color: #525258; font-size: 21px; font-style: italic; }
.article-content iframe { max-width: 100%; }
.article-sidebar { align-self: start; position: sticky; top: 120px; }
.sidebar-box { padding: 25px; background: var(--ink); color: var(--white); border-radius: 18px; }
.sidebar-box h2 { margin: 0 0 10px; font-size: 20px; }
.sidebar-box p { margin: 0 0 20px; color: rgba(255,255,255,.68); font-size: 13px; }
.orange-button { display: inline-flex; padding: 12px 17px; border-radius: 8px; color: var(--white); background: linear-gradient(115deg, var(--red), var(--orange-light)); font-size: 12px; font-weight: 800; }
.post-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 42px; }
.post-tags a { padding: 7px 11px; color: #38383c; background: #eeece9; border-radius: 7px; font-family: var(--font); font-size: 12px; font-weight: 600; text-decoration: none; }
.post-tags a:hover { color: var(--white); background: var(--orange); }
.post-author-card { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.post-author-card img { width: 82px; height: 82px; flex: 0 0 82px; margin: 0; border-radius: 50%; object-fit: cover; object-position: center top; }
.post-author-card div { display: flex; flex-direction: column; gap: 2px; }
.post-author-card span { color: var(--muted); font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-author-card a { color: var(--ink); font-family: var(--font); font-size: 22px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--line); }
.post-nav-card { position: relative; display: flex; min-height: 190px; overflow: hidden; border-radius: 16px; color: var(--white); background: #2a1712; text-decoration: none !important; isolation: isolate; }
.post-nav-card img, .post-nav-card__placeholder, .post-nav-card__shade { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.post-nav-card img { object-fit: cover; transition: transform .45s ease; }
.post-nav-card__placeholder { background: radial-gradient(circle at 85% 20%, rgba(255,138,31,.45), transparent 34%), linear-gradient(135deg, #171719, #7b1609); }
.post-nav-card__shade { z-index: 1; background: linear-gradient(180deg, rgba(5,5,5,.12), rgba(5,5,5,.88)); }
.post-nav-card__content { position: relative; z-index: 2; display: flex; align-self: flex-end; flex-direction: column; gap: 7px; width: 100%; padding: 22px; }
.post-nav-card__content small { color: rgba(255,255,255,.76); font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-nav-card__content strong { color: var(--white); font-family: var(--font); font-size: 17px; line-height: 1.35; }
.post-nav-card--next .post-nav-card__content { text-align: right; }
.post-nav-card:hover img { transform: scale(1.05); }
.post-nav-card:only-child { grid-column: 1 / -1; }

.comments-area { margin-top: 55px; padding-top: 42px; border-top: 1px solid var(--line); }
.comments-area__eyebrow { margin-bottom: 8px; color: var(--orange); font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.comments-title, .comment-reply-title { margin: 0 0 12px; color: var(--ink); font-family: var(--font); font-size: clamp(27px, 4vw, 36px); line-height: 1.18; letter-spacing: -.03em; }
.comments-intro, .comment-notes, .logged-in-as { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.comment-list { list-style: none; margin: 30px 0 42px; padding: 0; }
.comment-list .children { list-style: none; margin: 18px 0 0 34px; padding: 0; }
.comment-body { margin-bottom: 18px; padding: 23px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.comment-meta { margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 14px; }
.comment-author .avatar { width: 38px; height: 38px; border-radius: 50%; }
.comment-metadata { margin: 5px 0 0 48px; color: #8b8987; font-size: 11px; }
.comment-content { color: #38383c; font-size: 15px; line-height: 1.7; }
.comment-content p:last-child { margin-bottom: 0; }
.reply a { color: var(--orange); font-size: 12px; font-weight: 700; }
.comment-navigation { margin: 24px 0; }
.comment-respond { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.comment-form > p { margin: 0; }
.comment-form-comment, .comment-notes, .logged-in-as, .form-submit, .comment-form-cookies-consent { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 6px; color: #353538; font-family: var(--font); font-size: 12px; font-weight: 700; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid #d9d6d2; border-radius: 9px; background: #faf9f7; color: var(--ink); outline: none;
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { min-height: 48px; padding: 0 14px; }
.comment-form textarea { min-height: 155px; padding: 13px 14px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,74,24,.1); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.comment-form-cookies-consent label { margin: 0; color: var(--muted); font-weight: 400; }
.comment-submit { min-height: 48px; border: 0; padding: 0 22px; border-radius: 9px; color: var(--white); background: linear-gradient(115deg, var(--red), var(--orange-light)); font-family: var(--font); font-size: 13px; font-weight: 800; cursor: pointer; }
.no-comments { padding: 16px; color: var(--muted); background: var(--white); border-radius: 10px; }
.comment-composer { margin-top: 30px; }
.comment-composer > summary { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 210px; min-height: 50px; padding: 0 18px; border-radius: 9px; color: var(--white); background: linear-gradient(115deg, var(--red), var(--orange-light)); font-family: var(--font); font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; box-shadow: 0 9px 22px rgba(217,39,13,.18); }
.comment-composer > summary::-webkit-details-marker { display: none; }
.comment-composer > summary span { font-size: 22px; line-height: 1; transition: transform .2s ease; }
.comment-composer[open] > summary span { transform: rotate(45deg); }
.comment-composer__panel { margin-top: 18px; }

.search-form { display: flex; max-width: 560px; margin-top: 28px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px 0 0 9px; outline: none; }
.search-field:focus { border-color: var(--orange); }
.search-submit { border: 0; padding: 0 20px; color: var(--white); background: var(--orange); border-radius: 0 9px 9px 0; font-weight: 700; cursor: pointer; }
.empty-state { grid-column: 1 / -1; padding: 55px; text-align: center; background: var(--white); border-radius: var(--radius); }

.site-footer { padding: 68px 0 28px; color: var(--white); background: #050505; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 60px; }
.footer-brand img { width: 145px; margin-bottom: 24px; }
.footer-brand p { max-width: 370px; color: #97979f; font-size: 13px; }
.site-footer h2 { margin: 0 0 18px; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 10px 0; }
.site-footer a { color: #b4b4ba; font-size: 13px; }
.site-footer a:hover { color: var(--orange-light); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #242426; color: #717178; font-size: 11px; }

@media (max-width: 980px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 22px 20px; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 10px 0; font-size: 15px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card:first-child { grid-column: 1 / -1; }
  .article-wrap { grid-template-columns: minmax(0, 740px); }
  .article-sidebar { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand img { width: 145px; }
  .blog-hero { padding: 68px 0 64px; }
  .blog-hero p:not(.eyebrow) { font-size: 16px; }
  .content-section { padding: 55px 0 75px; }
  .section-head { align-items: start; flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card:first-child { display: block; grid-column: auto; }
  .post-card:first-child .post-card__image { min-height: 230px; aspect-ratio: 16/10; }
  .post-card:first-child .post-card__body { padding: 24px; }
  .post-card:first-child h2, .post-card:first-child h3 { font-size: 23px; }
  .single-hero { padding: 48px 0 36px; }
  .single-featured { width: calc(100% - 28px); border-radius: 16px; }
  .article-wrap { padding: 48px 0 75px; }
  .article-content { font-size: 17px; line-height: 1.78; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-card--next .post-nav-card__content { text-align: left; }
  .post-author-card { padding: 16px; }
  .post-author-card img { width: 70px; height: 70px; flex-basis: 70px; }
  .post-author-card a { font-size: 19px; }
  .comment-respond { padding: 22px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form > p { grid-column: 1; }
  .comment-list .children { margin-left: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
}
