/*
Theme Name: SentrIQ Editorial
Theme URI: https://blog.sentriq.com.br
Author: SentrIQ
Description: Tema editorial leve e acessível para o blog SentrIQ.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: sentriq-blog
*/

:root {
  --sq-ink: #111827;
  --sq-muted: #596579;
  --sq-navy: #102e59;
  --sq-blue: #1e4f88;
  --sq-wine: #7f3933;
  --sq-orange: #e85b27;
  --sq-paper: #ffffff;
  --sq-soft: #f3f6fa;
  --sq-line: #dce3ec;
  --sq-radius: 20px;
  --sq-shadow: 0 18px 50px rgba(16, 46, 89, .10);
  --sq-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sq-ink); background: var(--sq-soft); font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--sq-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--sq-orange); }
img { display: block; max-width: 100%; height: auto; }
.sq-container { width: min(calc(100% - 40px), var(--sq-width)); margin-inline: auto; }
.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; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px 16px; color: #fff; background: var(--sq-ink); border-radius: 8px; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--sq-line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--sq-ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: linear-gradient(145deg, var(--sq-wine), var(--sq-orange)); border-radius: 13px; box-shadow: 0 8px 20px rgba(232,91,39,.22); }
.brand small { display: block; color: var(--sq-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--sq-muted); text-decoration: none; font-weight: 650; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--sq-orange); }
.header-cta, .sq-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; color: #fff; background: var(--sq-orange); border: 0; border-radius: 999px; font-weight: 750; text-decoration: none; box-shadow: 0 10px 24px rgba(232,91,39,.24); }
.header-cta:hover, .sq-button:hover { color: #fff; background: #ca4517; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--sq-line); background: #fff; border-radius: 12px; font-size: 20px; }
.locale-switcher ul { display: flex; gap: 3px; margin: 0; padding: 3px; list-style: none; border: 1px solid var(--sq-line); border-radius: 999px; }
.locale-switcher a { display: grid; place-items: center; min-width: 30px; height: 28px; color: var(--sq-muted); border-radius: 999px; font-size: 11px; font-weight: 800; text-decoration: none; }
.locale-switcher a[aria-current="page"] { color: #fff; background: var(--sq-navy); }

.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(112deg, #713a36 0%, #30354c 48%, #123d70 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-inner { position: relative; z-index: 1; padding: 86px 0 78px; max-width: 850px; }
.eyebrow { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 22px 0 18px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 720px; margin: 0; color: #e5eaf1; font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .sq-button.secondary { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.36); box-shadow: none; }

.section { padding: 70px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2, .archive-header h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p, .archive-header p { max-width: 620px; margin: 8px 0 0; color: var(--sq-muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; background: var(--sq-paper); border: 1px solid var(--sq-line); border-radius: var(--sq-radius); box-shadow: var(--sq-shadow); }
.post-card-media { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #733f3a, #183f70); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-placeholder { display: grid; place-items: end start; width: 100%; height: 100%; padding: 22px; color: rgba(255,255,255,.86); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-category { color: var(--sq-orange); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.post-card h2 { margin: 12px 0; font-size: 23px; line-height: 1.18; letter-spacing: -.025em; }
.post-card h2 a { color: var(--sq-ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--sq-blue); }
.post-card p { margin: 0 0 22px; color: var(--sq-muted); }
.post-meta { margin-top: auto; color: var(--sq-muted); font-size: 13px; font-weight: 650; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--sq-line); border-radius: 10px; background: #fff; text-decoration: none; }
.pagination .current { color: #fff; background: var(--sq-navy); }

.archive-header { padding: 58px 0 30px; }
.single-wrap { padding: 58px 0 80px; }
.article-shell { display: grid; grid-template-columns: minmax(0, 780px) 280px; gap: 70px; align-items: start; }
.article-header .post-category { display: inline-block; margin-bottom: 16px; }
.article-header h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.05em; }
.article-deck { margin: 22px 0; color: var(--sq-muted); font-size: 21px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 18px 0; color: var(--sq-muted); border-block: 1px solid var(--sq-line); font-size: 14px; }
.article-featured { overflow: hidden; margin: 32px 0; border-radius: var(--sq-radius); }
.article-featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-content { font-size: 18px; line-height: 1.78; }
.article-content h2 { margin-top: 2em; font-size: 34px; line-height: 1.15; letter-spacing: -.035em; }
.article-content h3 { margin-top: 1.7em; font-size: 25px; line-height: 1.25; }
.article-content a { text-decoration: underline; }
.article-content blockquote { margin: 32px 0; padding: 20px 24px; border-left: 4px solid var(--sq-orange); background: #fff; }
.article-content pre { overflow: auto; padding: 20px; border-radius: 14px; background: #0f172a; color: #e2e8f0; }
.article-aside { position: sticky; top: 110px; padding: 24px; background: #fff; border: 1px solid var(--sq-line); border-radius: var(--sq-radius); }
.article-aside h2 { margin-top: 0; font-size: 20px; }
.article-aside p { color: var(--sq-muted); }
.breadcrumbs { margin-bottom: 24px; color: var(--sq-muted); font-size: 14px; }

.site-footer { color: #dce6f3; background: #0d223f; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding: 58px 0 40px; }
.site-footer .brand { color: #fff; }
.site-footer p { max-width: 500px; color: #aebdd0; }
.site-footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 9px; }
.site-footer a { color: #dce6f3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; color: #9fb0c5; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.empty-state { padding: 50px; text-align: center; background: #fff; border: 1px solid var(--sq-line); border-radius: var(--sq-radius); }
.search-form { display: flex; gap: 10px; max-width: 620px; }
.search-field { min-width: 0; flex: 1; min-height: 46px; padding: 0 14px; border: 1px solid var(--sq-line); border-radius: 12px; font: inherit; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .locale-switcher { margin-left: 8px; }
  .main-nav { display: none; position: absolute; inset: 76px 0 auto; padding: 20px; background: #fff; border-bottom: 1px solid var(--sq-line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-shell { grid-template-columns: 1fr; gap: 34px; }
  .article-aside { position: static; }
}

@media (max-width: 620px) {
  .sq-container { width: min(calc(100% - 28px), var(--sq-width)); }
  .hero-inner { padding: 64px 0 58px; }
  .section { padding: 50px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card h2 { font-size: 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .article-content { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
