/* ========================================================================
   blog.css — AQS Company Blog (estilos compartilhados)
   Mesma identidade visual do index.html
   ======================================================================== */

:root {
  --bg: #050B1E;
  --bg-2: #0A1628;
  --bg-3: #0F1F3A;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --ink: #F8FAFC;
  --ink-muted: #94A3B8;
  --ink-soft: #CBD5E1;
  --primary: #1E40FF;
  --primary-2: #4F6BFF;
  --primary-glow: rgba(30,64,255,0.35);
  --accent: #FACC15;
  --success: #10B981;
  --cyan: #06B6D4;
  --gradient: linear-gradient(135deg, #1E40FF 0%, #4F6BFF 50%, #7C3AED 100%);
  --gradient-mesh: radial-gradient(800px 400px at 20% 10%, rgba(30,64,255,.18), transparent 60%), radial-gradient(700px 350px at 90% 0%, rgba(124,58,237,.14), transparent 60%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 12px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 8px 24px rgba(30,64,255,0.4);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 64px;
  --container: 1240px;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #FAFBFC;
  --bg-3: #F1F5F9;
  --surface: rgba(10,22,40,0.03);
  --surface-2: rgba(10,22,40,0.05);
  --border: rgba(10,22,40,0.08);
  --border-2: rgba(10,22,40,0.14);
  --ink: #0A1628;
  --ink-muted: #64748B;
  --ink-soft: #475569;
  --gradient-mesh: radial-gradient(800px 400px at 20% 10%, rgba(30,64,255,.08), transparent 60%), radial-gradient(700px 350px at 90% 0%, rgba(124,58,237,.06), transparent 60%);
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
  --shadow: 0 8px 24px rgba(10,22,40,0.08);
  --shadow-lg: 0 16px 40px rgba(10,22,40,0.12);
}

/* ============ RESET ============ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--easing), color .4s var(--easing);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--primary); color: #fff; }

h1,h2,h3,h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.mono { font-family: 'JetBrains Mono', monospace; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary-2);
  font-family: 'JetBrains Mono', monospace;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-2); box-shadow: 0 0 12px var(--primary);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,11,30,0.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
[data-theme="light"] header { background: rgba(255,255,255,0.7); }
header.scrolled { border-bottom-color: var(--border); background: rgba(5,11,30,0.85); }
[data-theme="light"] header.scrolled { background: rgba(255,255,255,0.92); }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo-text .aqs { font-family: 'Plus Jakarta Sans'; font-weight: 900; font-size: 1.05rem; color: var(--ink); letter-spacing: -.04em; }
.logo-text .company { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: .55rem; color: var(--ink-muted); letter-spacing: .26em; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: all .2s;
}
.theme-toggle:hover { border-color: var(--border-2); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }

.menu-btn { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 99px; font-weight: 600;
  font-size: .92rem; transition: all .25s var(--easing); white-space: nowrap;
  position: relative; overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--easing); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { color: var(--ink); border: 1px solid var(--border-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary-2); color: var(--primary-2); background: var(--surface-2); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ============ BLOG HERO ============ */
.blog-hero {
  padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
  position: relative;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient-mesh); pointer-events: none;
}
.blog-hero .container-narrow, .blog-hero .container { position: relative; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; margin: 18px 0 16px; }
.blog-hero p.lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 640px; }

/* ============ BLOG GRID / CARDS ============ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; padding: 24px 0 100px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .3s var(--easing);
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.post-card-cover {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px;
}
.post-card-cover .cover-icon {
  position: absolute; top: 18px; right: 18px; opacity: .35;
  width: 64px; height: 64px; color: #fff;
}
.post-card-cover .cover-icon svg { width: 100%; height: 100%; }
.cover-1 { background: linear-gradient(135deg, #1E40FF 0%, #7C3AED 100%); }
.cover-2 { background: linear-gradient(135deg, #0E7490 0%, #1E40FF 100%); }
.cover-3 { background: linear-gradient(135deg, #047857 0%, #06B6D4 100%); }
.cover-4 { background: linear-gradient(135deg, #B45309 0%, #DC2626 100%); }
.cover-5 { background: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%); }
.post-card-tag {
  position: relative;
  font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px; border-radius: 99px; backdrop-filter: blur(8px);
}
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-body h2 { font-size: 1.22rem; font-weight: 800; line-height: 1.3; }
.post-card-body h2 a:hover { color: var(--primary-2); }
.post-card-body p { color: var(--ink-muted); font-size: .92rem; flex: 1; }
.post-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .78rem; color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); }
.post-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary-2); font-weight: 600; font-size: .88rem;
  transition: gap .2s;
}
.post-card-link:hover { gap: 10px; }

/* ============ ARTICLE ============ */
.article-hero { padding: clamp(56px, 7vw, 90px) 0 clamp(32px, 4vw, 48px); position: relative; }
.article-hero::before { content: ""; position: absolute; inset: 0; background: var(--gradient-mesh); pointer-events: none; }
.article-hero .container-narrow { position: relative; }
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .8rem; color: var(--ink-muted); margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}
.breadcrumbs a:hover { color: var(--primary-2); }
.breadcrumbs .sep { opacity: .5; }
.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; margin: 16px 0 20px; }
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: .82rem; color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); }
.article-meta .author { color: var(--ink-soft); font-weight: 600; }

article.post { padding: 8px 0 64px; }
article.post .container-narrow > * + * { margin-top: 1.35em; }
article.post p { color: var(--ink-soft); font-size: 1.06rem; }
article.post h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 2.2em !important; }
article.post h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 1.8em !important; font-weight: 700; }
article.post strong { color: var(--ink); }
article.post a:not(.btn) { color: var(--primary-2); border-bottom: 1px solid rgba(79,107,255,.35); transition: border-color .2s; }
article.post a:not(.btn):hover { border-bottom-color: var(--primary-2); }
article.post ul, article.post ol { padding-left: 1.4em; color: var(--ink-soft); display: grid; gap: .6em; font-size: 1.06rem; }
article.post li::marker { color: var(--primary-2); font-weight: 700; }
article.post blockquote {
  border-left: 3px solid var(--primary-2);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; font-size: 1.08rem; color: var(--ink);
  font-style: italic;
}
article.post .info-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
}
article.post .info-box .box-label {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary-2);
  display: block; margin-bottom: 10px;
}
article.post .info-box p, article.post .info-box ul { font-size: .98rem; }
article.post .info-box * + * { margin-top: .8em; }

article.post table {
  width: 100%; border-collapse: collapse; font-size: .94rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
article.post th {
  background: var(--surface-2); color: var(--ink); text-align: left;
  padding: 12px 16px; font-family: 'Plus Jakarta Sans'; font-weight: 700;
  font-size: .85rem; border-bottom: 1px solid var(--border-2);
}
article.post td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
article.post tr:last-child td { border-bottom: none; }

/* ============ ARTICLE CTA ============ */
.article-cta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  text-align: center; position: relative; overflow: hidden;
  margin-top: 3em !important;
}
.article-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 50% 0%, rgba(30,64,255,.16), transparent 70%);
  pointer-events: none;
}
.article-cta h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 12px; position: relative; }
.article-cta p { font-size: 1rem !important; color: var(--ink-muted) !important; max-width: 520px; margin: 0 auto 24px; position: relative; }
.article-cta .btn { position: relative; }

/* ============ RELATED POSTS ============ */
.related { padding: 48px 0 100px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.6rem; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: all .25s var(--easing);
  display: flex; flex-direction: column; gap: 10px;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.related-card .tag {
  font-family: 'JetBrains Mono', monospace; font-size: .66rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary-2);
}
.related-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }

/* ============ FOOTER ============ */
footer { background: var(--bg); border-top: 1px solid var(--border); color: var(--ink-soft); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand p { font-size: .92rem; margin-top: 16px; max-width: 320px; }
.foot-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-family: 'JetBrains Mono', monospace; color: var(--success);
  margin-top: 18px;
}
.foot-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.foot-col h4 {
  color: var(--ink); font-size: .78rem; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 18px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { font-size: .92rem; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: .82rem; color: var(--ink-muted);
}
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; transition: all .25s; color: var(--ink-soft);
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(37,211,102,.4);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 24px; gap: 4px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { font-size: 1.1rem; padding: 8px 0; }
  .nav-actions .btn { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
}
