/*
Theme Name: Sycron Blog
Theme URI: https://sycronconsultoria.com.br/blog
Author: Sycron Gestão Industrial
Author URI: https://sycronconsultoria.com.br
Description: Tema do blog da Sycron Gestão Industrial, no mesmo padrão visual do site institucional (sycronconsultoria.com.br).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sycron-blog
*/

/* ============ Fonts ============ */
@font-face{
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face{
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

/* ============ Design tokens ============ */
:root{
  --ink-900: #020d1d;   /* fundo escuro principal */
  --ink-800: #07182a;   /* painel escuro secundário */
  --gold: #d79a51;      /* acento principal */
  --gold-light: #e4b270;/* acento em fundo escuro */
  --gold-dark: #9b5e18; /* acento em fundo claro (eyebrow) */
  --body-gray: #52606d;
  --body-gray-2: #61707d;
  --border-light: #dfe4e8;
  --hover-light: #f6f7f8;
  --white-70: rgba(255,255,255,.70);
  --white-72: rgba(255,255,255,.72);
  --white-74: rgba(255,255,255,.74);
  --white-80: rgba(255,255,255,.80);
  --white-08: rgba(255,255,255,.08);
  --white-10: rgba(255,255,255,.10);
  --white-12: rgba(255,255,255,.12);
  --white-15: rgba(255,255,255,.15);
  --white-24: rgba(255,255,255,.24);
  --font-display: Manrope, Inter, Arial, Helvetica, sans-serif;
  --font-sans: Inter, Arial, Helvetica, sans-serif;
  --container-max: 76rem;
}

/* ============ Reset / base ============ */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); }
p{ margin: 0; }
button{ font: inherit; cursor: pointer; }

.site-container{
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}
.section-pad{ padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow{
  color: var(--gold-dark);
  letter-spacing: .17em;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow-light{ color: var(--gold-light); }

.display-title, .section-title{
  text-wrap: balance;
  font-family: var(--font-display);
}
.display-title{
  letter-spacing: -.045em;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 650;
  line-height: 1.05;
  color: #fff;
}
.section-title{
  color: var(--ink-800);
  letter-spacing: -.035em;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 630;
  line-height: 1.1;
}

.focus-ring:focus-visible{
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.technical-grid{
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ============ Header ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink-900);
  border-bottom: 1px solid var(--white-10);
}
.site-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}
.site-header__logo img{ height: 34px; width: auto; }
.site-header__logo{ display: flex; align-items: center; gap: .6rem; }

.primary-nav{ display: none; align-items: center; gap: 1.75rem; }
.primary-nav a{
  font-size: .78rem;
  font-weight: 500;
  color: var(--white-74);
  transition: color .16s;
}
.primary-nav a:hover, .primary-nav a.current{ color: #fff; }
.primary-nav a.is-blog{ color: var(--gold-light); }

.header-actions{ display: flex; align-items: center; gap: .75rem; }
.header-actions .btn-solid{ display: none; }
.btn{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all .16s;
}
.btn-solid{ background: var(--gold); color: var(--ink-900); }
.btn-solid:hover{ filter: brightness(1.06); }
.btn-outline{ border-color: var(--white-24); color: #fff; background: transparent; }
.btn-outline:hover{ background: var(--white-08); }

.menu-toggle{
  display: inline-flex;
  background: none;
  border: none;
  color: #fff;
  padding: .4rem;
}
.menu-toggle svg{ width: 22px; height: 22px; }

.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink-900);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.mobile-nav.is-open{ transform: translateX(0); }
.mobile-nav__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--white-10);
}
.mobile-nav__close{ background: none; border: none; color: #fff; }
.mobile-nav nav{ display: flex; flex-direction: column; padding: 0 1.5rem; }
.mobile-nav nav a{
  padding-block: 1rem;
  border-bottom: 1px solid var(--white-08);
  font-weight: 500;
  color: var(--white-80);
}
.mobile-nav nav a.is-blog{ color: var(--gold-light); }
.mobile-nav__footer{ margin-top: auto; padding: 1.5rem; }
body.nav-open{ overflow: hidden; }

@media (min-width: 1024px){
  .primary-nav{ display: flex; }
  .menu-toggle{ display: none; }
  .header-actions .btn-solid{ display: inline-flex; }
}

/* ============ Page header (blog) ============ */
.blog-hero{
  background: var(--ink-900);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.blog-hero__eyebrow{ margin-bottom: 1rem; }
.blog-hero p.lead{
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--white-72);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============ Post grid ============ */
.post-grid{
  display: grid;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  grid-template-columns: 1fr;
}
@media (min-width: 640px){
  .post-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .post-grid{ grid-template-columns: repeat(3, 1fr); }
}
.post-card{
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: background-color .16s;
}
.post-card:hover{ background: var(--hover-light); }
.post-card__media{
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink-800);
}
.post-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card__media img{ transform: scale(1.04); }
.post-card__body{ padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__cat{ font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--gold-dark); text-transform: uppercase; }
.post-card__title{ font-size: 1.15rem; font-weight: 650; line-height: 1.35; color: var(--ink-800); }
.post-card__excerpt{ font-size: .9rem; line-height: 1.6; color: var(--body-gray); flex: 1; }
.post-card__meta{ font-size: .78rem; color: #94a3ad; margin-top: .25rem; }
.post-card__more{
  margin-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.post-card__more svg{ width: 14px; height: 14px; transition: transform .16s; }
.post-card:hover .post-card__more svg{ transform: translate(2px,-2px); }

.empty-state{ padding-block: 4rem; text-align: center; color: var(--body-gray); }

/* pagination */
.pagination{
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding-block: 3rem;
}
.pagination a, .pagination span{
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-800);
}
.pagination .current{ background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.pagination a:hover{ border-color: var(--gold); color: var(--gold-dark); }

/* ============ Single post ============ */
.single-post{ padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.single-post__head{ max-width: 46rem; margin-inline: auto; margin-bottom: 2.5rem; }
.single-post__cat{ font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 1rem; display: block; }
.single-post__title{ color: var(--ink-800); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 660; letter-spacing: -.03em; line-height: 1.15; }
.single-post__meta{ margin-top: 1rem; font-size: .85rem; color: var(--body-gray-2); display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.single-post__meta span:not(:last-child)::after{ content: "•"; margin-left: .75rem; color: var(--border-light); }
.single-post__media{ margin-bottom: 2.5rem; aspect-ratio: 16/8; overflow: hidden; background: var(--ink-800); }
.single-post__media img{ width: 100%; height: 100%; object-fit: cover; }

.entry-content{
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #33414c;
}
.entry-content > * + *{ margin-top: 1.5rem; }
.entry-content h2{ color: var(--ink-800); font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; margin-top: 2.5rem; }
.entry-content h3{ color: var(--ink-800); font-size: 1.3rem; font-weight: 650; margin-top: 2rem; }
.entry-content a{ color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover{ color: var(--gold); }
.entry-content ul, .entry-content ol{ padding-left: 1.4rem; list-style: revert; }
.entry-content blockquote{
  border-left: 3px solid var(--gold);
  padding: .25rem 0 .25rem 1.25rem;
  color: var(--body-gray);
  font-style: italic;
}
.entry-content img{ width: 100%; height: auto; }
.entry-content figcaption{ font-size: .82rem; color: #94a3ad; margin-top: .5rem; }
.entry-content pre{ background: var(--ink-900); color: #fff; padding: 1rem 1.25rem; overflow-x: auto; font-size: .85rem; }
.entry-content code{ background: var(--hover-light); padding: .15em .4em; font-size: .9em; }

.post-tags{ max-width: 46rem; margin: 2.5rem auto 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.post-tags a{ font-size: .78rem; padding: .35rem .75rem; border: 1px solid var(--border-light); color: var(--body-gray); }
.post-tags a:hover{ border-color: var(--gold); color: var(--gold-dark); }

.post-nav{
  max-width: 46rem;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.post-nav > div{ background: #fff; padding: 1.25rem 1.5rem; }
.post-nav .label{ font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: #94a3ad; text-transform: uppercase; }
.post-nav .title{ margin-top: .4rem; font-weight: 600; color: var(--ink-800); font-size: .92rem; }
.post-nav .next{ text-align: right; }
@media (max-width: 560px){
  .post-nav{ grid-template-columns: 1fr; }
  .post-nav .next{ text-align: left; }
}

.author-box{
  max-width: 46rem;
  margin: 3rem auto 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--hover-light);
  border: 1px solid var(--border-light);
}
.author-box img{ width: 56px; height: 56px; border-radius: 999px; object-fit: cover; }
.author-box .name{ font-weight: 650; color: var(--ink-800); }
.author-box .role{ font-size: .82rem; color: var(--body-gray); }

/* ============ CTA band ============ */
.cta-band{
  background: var(--ink-900);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-band h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; letter-spacing: -.02em; }
.cta-band p{ margin-top: .75rem; color: var(--white-72); }
.cta-band .btn{ margin-top: 1.75rem; }

/* ============ Footer ============ */
.site-footer{ background: var(--ink-900); color: #fff; }
.site-footer__grid{
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .site-footer__grid{ grid-template-columns: 1.35fr .65fr .8fr; gap: 2rem; }
}
.site-footer__brand img{ height: 30px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p{ color: var(--white-70); font-size: .9rem; line-height: 1.6; max-width: 26rem; }
.site-footer h4{ font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white-70); margin-bottom: 1rem; }
.site-footer ul{ display: flex; flex-direction: column; gap: .65rem; }
.footer-link{ color: var(--white-72); transition: color .16s; font-size: .88rem; }
.footer-link:hover{ color: #fff; }
.site-footer__bottom{
  border-top: 1px solid var(--white-10);
  padding-block: 1.25rem;
  font-size: .78rem;
  color: var(--white-70);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.site-footer__bottom a{ color: var(--white-70); }
.site-footer__bottom a:hover{ color: #fff; }

/* ============ Utilities ============ */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
