/*
Theme Name: TRIA+ Blog
Theme URI: https://triamais.com.br/blog/
Author: Kaspper
Author URI: https://kaspper.com
Description: Tema clássico (PHP puro, sem Elementor/page builder) que replica o layout do blog da TRIA+ em produção — tema claro, tipografia Space Grotesk/Inter, azul da marca e largura 1320px. Feito para rodar isolado em /blog, espelhando o menu do site institucional.
Version: 1.1.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: triamais-blog
*/

/* ============================================================
   TRIA+ — Blog (TEMA CLARO) — porte fiel de /public/blog/blog.css
   ============================================================ */

/* ===== TOKENS (claro) ===== */
:root{
  --bg:        #F5F8FC;
  --surface:   #FFFFFF;
  --line:      rgba(20,32,64,.10);
  --cyan:      #2BC0F5;
  --cyan-2:    #1E7FE0;
  --brand:     #1565C0;
  --purple:    #7C5CFF;
  --green:     #16A34A;
  --amber:     #D9861A;
  --text:      #16233B;
  --muted:     #566179;
  --max:       1320px;
  --radius:    18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; background-color:#F5F8FC}
body{
  margin:0; color:var(--text);
  font-family:"Inter",system-ui,-apple-system,sans-serif; font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  background:linear-gradient(180deg,#FBFCFE 0%,#F1F5FB 100%);
  background-attachment:fixed;
  background-color:#F5F8FC;
}
@media (max-width:900px){ body{background-attachment:scroll} }
h1,h2,h3,h4{font-family:"Space Grotesk","Inter",sans-serif; line-height:1.15; margin:0 0 .4em; color:#4543FF}
h1{font-size:clamp(2rem,5vw,3.4rem); font-weight:700; letter-spacing:-.02em}
h2{font-size:clamp(1.7rem,3.6vw,2.5rem); font-weight:700; letter-spacing:-.01em}
h3{font-size:1.12rem; font-weight:600}
p{margin:0 0 1rem}
a{color:inherit}
img{max-width:100%; display:block}
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px; position:relative; z-index:1}
.accent{background:linear-gradient(90deg,#4543FF,#2BC0F5); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent}
.muted{color:var(--muted)}
.eyebrow{display:inline-block; font-family:"Space Grotesk"; font-weight:600; font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:var(--cyan-2); margin-bottom:14px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}

/* ===== Botões (padrão do site institucional) ===== */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; font-family:"Inter",system-ui,sans-serif; font-weight:700; font-size:14px; min-height:48px; padding:0 24px; border:1px solid transparent; border-radius:999px; text-decoration:none; transition:.2s ease}
.btn-primary{background:linear-gradient(135deg,#4543FF 0%,#2BC0F5 100%); color:#fff; box-shadow:0 8px 20px rgba(69,67,255,.26)}
.btn-primary:hover{background:linear-gradient(135deg,#3a38e6 0%,#18a9e0 100%); transform:translateY(-2px); box-shadow:0 12px 26px rgba(69,67,255,.34)}
.btn-ghost{background:transparent; color:#08234d; border-color:#c3c7f5}
.btn-ghost:hover{border-color:#4543FF; color:#4543FF}

/* ===== Container (header/rodapé iguais ao site) ===== */
.container{width:min(1320px, calc(100% - 64px)); margin:0 auto}

/* ===== Header (igual ao site institucional) ===== */
.site-header{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.94); border-bottom:1px solid rgba(220,231,245,.7); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px)}
.site-header .header-inner{min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:28px}
.site-header .logo{display:inline-flex; align-items:center; text-decoration:none}
.site-header .logo img{height:30px; width:auto; display:block}
.site-header .nav{display:flex; align-items:center; gap:clamp(18px,2.6vw,36px)}
.site-header .nav a{color:#172b4c; font-family:"Inter",system-ui,sans-serif; font-size:13px; font-weight:600; text-decoration:none}
.site-header .nav a:hover,.site-header .nav a.active{color:#0877f9}
.site-header .header-actions{display:flex; align-items:center; gap:12px}
.site-header .btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:42px; padding:0 19px; border:1px solid transparent; border-radius:999px; font-family:"Inter",system-ui,sans-serif; font-size:12px; font-weight:700; text-decoration:none; cursor:pointer; box-shadow:none; transition:.2s ease}
.site-header .btn-primary{color:#fff; background:linear-gradient(135deg,#4543FF 0%,#2BC0F5 100%); box-shadow:0 8px 20px rgba(69,67,255,.26)}
.site-header .btn-primary:hover{background:linear-gradient(135deg,#3a38e6 0%,#18a9e0 100%); transform:translateY(-2px); opacity:1; box-shadow:0 12px 26px rgba(69,67,255,.34)}
.site-header .btn-outline{color:#08234d; background:transparent; border-color:#c3c7f5}
.site-header .btn-outline:hover{border-color:#4543FF; color:#4543FF}
.site-header .menu-toggle{display:none; border:0; background:transparent; color:#08234d; font-size:26px; line-height:1; cursor:pointer}

/* ===== Hero do blog ===== */
.blog-hero{padding:70px 0 34px; text-align:center}
.blog-hero p{max-width:620px; margin:12px auto 0; color:var(--muted)}

/* ===== Cards (listagem) ===== */
.post-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding:20px 0 10px}
.post-card{display:flex; flex-direction:column; text-decoration:none; color:inherit; border-radius:var(--radius); overflow:hidden;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(20,32,64,.07);
  transition:transform .2s ease, border-color .22s ease, box-shadow .22s ease}
.post-card:hover{transform:translateY(-4px); border-color:#4543FF; box-shadow:0 18px 40px rgba(69,67,255,.14)}
.post-card h3{transition:color .2s ease}
.post-card:hover h3{color:#4543FF}
.post-card .cover{aspect-ratio:16/9; width:100%; object-fit:cover; background:#E6EDF7}
.post-card .body{padding:20px 22px 24px; display:flex; flex-direction:column; flex:1}
.post-tag{align-self:flex-start; font-family:"Space Grotesk"; font-weight:600; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--brand); background:rgba(30,127,224,.10); border:1px solid rgba(30,127,224,.22); padding:4px 11px; border-radius:100px; margin-bottom:13px; text-decoration:none}
.post-card h3{margin:0 0 10px; font-size:1.18rem; line-height:1.3; color:#4543FF}
.post-card .excerpt{color:var(--muted); font-size:.96rem; margin:0 0 18px; flex:1}
.post-meta{color:var(--muted); font-size:.82rem; font-family:"Space Grotesk"; display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.post-meta .dot{opacity:.5}

/* ===== Post em destaque ===== */
.section-label{font-family:"Space Grotesk"; font-weight:600; font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:38px 0 18px}
.featured{display:grid; grid-template-columns:1.15fr 1fr; border-radius:var(--radius); overflow:hidden; text-decoration:none; color:inherit;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:0 14px 40px rgba(20,32,64,.10);
  transition:transform .2s ease, border-color .22s ease, box-shadow .22s ease}
.featured:hover{transform:translateY(-3px); border-color:rgba(30,127,224,.35); box-shadow:0 22px 52px rgba(20,32,64,.15)}
.featured .cover{width:100%; height:100%; min-height:290px; object-fit:cover; background:#E6EDF7}
.featured .body{padding:38px 40px; display:flex; flex-direction:column; justify-content:center}
.featured .badges{display:flex; gap:8px; align-items:center; margin-bottom:14px}
.featured h2{margin:6px 0 14px; font-size:clamp(1.5rem,2.6vw,2rem)}
.featured .excerpt{color:var(--muted); font-size:1.02rem; margin:0 0 22px}
.featured .read-more{font-family:"Space Grotesk"; font-weight:600; color:var(--brand); display:inline-flex; align-items:center; gap:7px}
@media(max-width:800px){ .featured{grid-template-columns:1fr} .featured .cover{min-height:0; aspect-ratio:16/9} .featured .body{padding:26px 24px} }

/* ===== Chips de categoria ===== */
.cat-chips{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 4px}
.cat-chips a{font-family:"Space Grotesk";font-weight:600;font-size:.82rem;color:var(--muted);text-decoration:none;padding:7px 15px;border-radius:100px;border:1px solid var(--line);background:#fff;transition:color .2s,border-color .2s,background .2s}
.cat-chips a:hover,.cat-chips a.active{color:var(--brand);border-color:rgba(30,127,224,.35);background:rgba(30,127,224,.08)}

/* ===== Newsletter — barra compacta ===== */
.news-bar{display:flex; align-items:center; justify-content:space-between; gap:16px 34px; flex-wrap:wrap;
  margin:64px 0; padding:22px 26px; border-radius:16px;
  background:linear-gradient(135deg, rgba(30,127,224,.07), rgba(124,92,255,.06));
  border:1px solid rgba(30,127,224,.16)}
.news-bar .nb-text{display:flex; flex-direction:column; gap:3px; min-width:0}
.news-bar .nb-label{font-family:"Space Grotesk"; font-weight:600; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--brand)}
.news-bar .nb-title{font-family:"Space Grotesk"; font-weight:600; font-size:1.06rem; color:var(--text)}
.news-bar .nb-title span{color:var(--muted); font-weight:500; font-size:.92rem}
.news-bar form{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.news-bar input[type=email]{min-width:210px; padding:11px 15px; border-radius:11px; border:1px solid rgba(20,32,64,.18); background:#fff; color:var(--text); font-family:"Inter",sans-serif; font-size:.95rem}
.news-bar input[type=email]::placeholder{color:var(--muted)}
.news-bar input[type=email]:focus{outline:none; border-color:var(--cyan-2)}
.news-bar .btn{padding:11px 22px; font-size:.95rem}
@media(max-width:640px){ .news-bar{padding:18px 20px} .news-bar form,.news-bar input[type=email]{width:100%} }

/* ===== Paginação ===== */
.pagination{display:flex;justify-content:center;gap:8px;margin:46px 0 10px;flex-wrap:wrap}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border-radius:11px;border:1px solid var(--line);background:#fff;color:var(--muted);font-family:"Space Grotesk";font-weight:600;text-decoration:none;transition:color .2s,border-color .2s,background .2s}
.pagination .page-numbers:hover{color:var(--brand);border-color:rgba(30,127,224,.35)}
.pagination .page-numbers.current{background:linear-gradient(90deg,var(--cyan),var(--cyan-2));color:#04121f;border-color:transparent}

/* ===== Busca ===== */
.search-form{display:flex;gap:8px;max-width:420px;margin:18px auto 0}
.search-form input[type=search]{flex:1;padding:12px 16px;border-radius:12px;border:1px solid rgba(20,32,64,.18);background:#fff;font-family:"Inter",sans-serif;font-size:.98rem;color:var(--text)}
.search-form input[type=search]:focus{outline:none;border-color:var(--cyan-2)}
.search-form button{border:0}

/* ===== Artigo ===== */
.article{max-width:800px; margin:0 auto; padding:34px 24px 70px}
.back-link{display:inline-flex; align-items:center; gap:7px; color:var(--muted); text-decoration:none; font-family:"Space Grotesk"; font-weight:600; font-size:.9rem; margin-bottom:24px; transition:color .2s ease}
.back-link:hover{color:var(--brand)}
.article-head .post-tag{margin-bottom:18px}
.article-head h1{margin:0 0 16px}
.article-meta{display:flex; flex-wrap:wrap; gap:10px; align-items:center; color:var(--muted); font-size:.9rem; font-family:"Space Grotesk"; margin-bottom:28px}
.article-cover{width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--radius); border:1px solid var(--line); margin-bottom:36px; background:#E6EDF7}
.article-body{font-size:1.06rem; color:#26324A}
.article-body h2{margin:38px 0 14px; color:#4543FF}
.article-body h3{margin:28px 0 10px; color:#4543FF}
.article-body p{margin:0 0 1.25rem}
.article-body a{color:var(--brand); text-decoration:underline; text-underline-offset:3px}
.article-body ul,.article-body ol{margin:0 0 1.25rem; padding-left:1.3em}
.article-body li{margin-bottom:.5rem}
.article-body strong{color:var(--text)}
.article-body img{border-radius:14px; margin:26px 0; border:1px solid var(--line)}
.article-body blockquote{margin:26px 0; padding:16px 22px; border-left:3px solid var(--cyan-2); background:rgba(30,127,224,.06); border-radius:0 12px 12px 0; color:#33405A; font-size:1.08rem}
.article-body blockquote p{margin:0}
.article-body hr{border:0; border-top:1px solid var(--line); margin:34px 0}

/* tags no fim do artigo */
.article-tags{display:flex;flex-wrap:wrap;gap:8px;margin:34px 0 0}
.article-tags a{font-family:"Space Grotesk";font-weight:600;font-size:.8rem;color:var(--muted);text-decoration:none;padding:6px 13px;border-radius:100px;border:1px solid var(--line);background:#fff}
.article-tags a:hover{color:var(--brand);border-color:rgba(30,127,224,.35)}

/* relacionados */
.related{padding:6px 0 10px}

/* ===== CTA final do artigo (bloco azul p/ destaque) ===== */
.article-cta{margin:48px auto 96px; max-width:800px; text-align:center; border-radius:24px; padding:44px 28px;
  background:linear-gradient(120deg,#4543FF 0%,#2b6ef5 52%,#2BC0F5 100%);
  border:0; box-shadow:0 18px 44px rgba(69,67,255,.28)}
.article-cta h2{margin:0 0 10px; color:#fff}
.article-cta h2 .accent{-webkit-text-fill-color:#fff; background:none}
.article-cta p{color:rgba(255,255,255,.92); max-width:520px; margin:0 auto 24px}
.article-cta .btn-primary{background:#fff; color:#4543FF; box-shadow:0 10px 26px rgba(4,6,30,.18)}
.article-cta .btn-primary:hover{background:#eef0ff; color:#4543FF; transform:translateY(-2px)}

/* ===== Footer (igual ao site institucional) ===== */
.site-footer{padding:56px 0 38px; background:#f7faff; color:#50617c; font-size:.88rem; text-align:left; border-top:0}
.site-footer .footer-grid{display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr 1.3fr; gap:30px}
.site-footer .footer-logo{display:inline-flex; align-items:center; text-decoration:none}
.site-footer .footer-logo img{height:32px; width:auto; display:block}
.site-footer .footer-col h4{margin:0 0 16px; font-size:13px; color:#16233B; font-family:"Space Grotesk","Inter",sans-serif}
.site-footer .footer-col a,.site-footer .footer-col p{display:block; margin:9px 0; color:#50617c; font-size:12px; line-height:1.5; text-decoration:none}
.site-footer .footer-col a:hover{color:#0877f9}
.site-footer .footer-bottom{margin-top:38px; padding-top:22px; border-top:1px solid #dce7f5; color:#71819a; font-size:11px; text-align:left}

/* ===== Botão flutuante WhatsApp ===== */
.wa-float{position:fixed; right:26px; bottom:26px; z-index:9999; width:62px; height:62px; border-radius:50%; background:#25D366; display:grid; place-items:center; box-shadow:0 12px 30px rgba(37,211,102,.4), 0 4px 12px rgba(20,32,64,.2); transition:transform .18s ease, box-shadow .18s ease; text-decoration:none}
.wa-float:hover{transform:scale(1.08); box-shadow:0 16px 40px rgba(37,211,102,.55), 0 4px 12px rgba(20,32,64,.2)}
.wa-float:active{transform:scale(.97)}
.wa-float svg{position:relative; z-index:2}
.wa-float-ring{position:absolute; inset:0; border-radius:50%; background:#25D366; z-index:1; animation:waPulse 2.4s ease-out infinite}
@keyframes waPulse{0%{transform:scale(1);opacity:.55}70%{transform:scale(1.9);opacity:0}100%{transform:scale(1.9);opacity:0}}

/* ===== Banner LGPD (claro) ===== */
.lgpd-bar{position:fixed; left:0; right:0; bottom:0; z-index:9998; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px 24px; padding:18px 24px; background:rgba(255,255,255,.97); border-top:1px solid var(--line); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:0 -10px 30px rgba(20,32,64,.12); transform:translateY(110%); transition:transform .4s ease}
.lgpd-bar.show{transform:translateY(0)}
.lgpd-bar p{margin:0; color:var(--muted); font-size:.9rem; max-width:640px}
.lgpd-bar p b{color:var(--text)}
.lgpd-bar p a{color:var(--brand)}
.lgpd-bar .btn{padding:11px 22px; font-size:.9rem; white-space:nowrap}
@media(max-width:560px){.wa-float{right:18px; bottom:18px; width:56px; height:56px}}
@media(max-width:560px){.lgpd-bar{padding:16px 18px; justify-content:stretch}.lgpd-bar p{max-width:none}.lgpd-bar .btn{width:100%; justify-content:center}}
@media(prefers-reduced-motion:reduce){.wa-float-ring{animation:none; opacity:0}}

/* ===== Responsivo ===== */
@media (max-width:960px){
  .post-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1000px){
  .site-header .header-actions .btn-outline{display:none}
}
@media (max-width:760px){
  .site-header .menu-toggle{display:block; order:3}
  .site-header .nav{display:none; position:absolute; top:82px; left:0; right:0; padding:20px 32px; background:#fff; border-bottom:1px solid #dce7f5; box-shadow:0 24px 40px rgba(20,32,64,.12); flex-direction:column; align-items:flex-start; gap:16px}
  .site-header .nav.open{display:flex}
  .site-header .header-actions .btn{min-height:38px; padding:0 13px; font-size:11px}
  .site-footer .footer-grid{grid-template-columns:1fr 1fr}
  .site-footer .footer-brand{grid-column:1 / -1}
}
@media (max-width:640px){
  .post-grid{grid-template-columns:1fr}
}
@media (max-width:420px){
  .site-header .header-actions .btn-primary{padding:0 10px}
  .site-header .header-actions .btn-primary .whatsapp-label{display:none}
  .site-footer .footer-grid{grid-template-columns:1fr 1fr; gap:24px 16px}
}
