/*
Theme Name: B2B.Target Blog
Theme URI: https://b2btarget.app
Author: B2B.Target
Author URI: https://b2btarget.app
Description: Tema WordPress simples, profissional e responsivo para o blog do B2B.Target. Foco em conteúdo, autoridade e conversão para trial.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b2btarget-blog
Tags: blog, custom-logo, custom-menu, featured-images, responsive-layout, block-styles
*/

:root {
  --bt-bg: #090E1A;
  --bt-bg-soft: #0C1322;
  --bt-bg-elevated: #111B2E;
  --bt-card: #0C1322;
  --bt-card-hover: #101A2C;
  --bt-primary: #3C83F6;
  --bt-primary-strong: #2662D9;
  --bt-text: #F8FAFC;
  --bt-muted: #7588A3;
  --bt-border: #1D283A;
  --bt-border-strong: rgba(60, 131, 246, .36);
  --bt-success: #2EB88A;
  --bt-warning: #E88C30;
  --bt-danger: #811D1D;
  --bt-radius-sm: 12px;
  --bt-radius-md: 18px;
  --bt-radius-lg: 28px;
  --bt-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --bt-container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(60, 131, 246, .22), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(46, 184, 138, .10), transparent 34rem),
    var(--bt-bg);
  color: var(--bt-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--bt-primary); }

p { margin: 0 0 1.15rem; color: rgba(248, 250, 252, .82); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--bt-text);
}

h1 { font-size: clamp(2.25rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

input, textarea, select, button { font: inherit; }

input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-sm);
  background: rgba(255, 255, 255, .04);
  color: var(--bt-text);
  padding: .9rem 1rem;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--bt-primary);
  box-shadow: 0 0 0 4px rgba(60, 131, 246, .14);
}

button, input[type="submit"], .button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bt-primary), var(--bt-primary-strong));
  color: #fff;
  font-weight: 800;
  line-height: 1;
  padding: .95rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(60, 131, 246, .26);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

button:hover, input[type="submit"]:hover, .button:hover, .wp-block-button__link:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 20px 52px rgba(60, 131, 246, .32);
}

.button.button-secondary {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--bt-border);
  box-shadow: none;
  color: var(--bt-text);
}

.button.button-small { padding: .72rem 1rem; font-size: .92rem; }

.bt-container {
  width: min(calc(100% - 2rem), var(--bt-container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  background: var(--bt-primary);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(29, 40, 58, .78);
  background: rgba(9, 14, 26, .82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 78px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-width: 190px;
}

.site-branding img { display: block; width: 176px; height: auto; }

.custom-logo-link img { max-height: 48px; width: auto; }

.brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bt-primary), #8BB7FF);
  box-shadow: 0 0 0 6px rgba(60, 131, 246, .12);
}

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav ul { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(248, 250, 252, .76);
  font-weight: 700;
  font-size: .95rem;
  padding: .65rem .9rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.06); color: #fff; }

.header-actions { display: flex; align-items: center; gap: .7rem; }
.header-actions .login-link { color: rgba(248,250,252,.78); font-weight: 800; }

.menu-toggle { display: none; background: transparent; border: 1px solid var(--bt-border); box-shadow: none; padding: .7rem .85rem; }
.menu-toggle:hover { box-shadow: none; }
.menu-toggle span { width: 20px; height: 2px; display: block; background: #fff; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(60, 131, 246, .28);
  border-radius: 999px;
  background: rgba(60, 131, 246, .10);
  color: #BFD7FF;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .48rem .75rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bt-success);
  box-shadow: 0 0 0 6px rgba(46, 184, 138, .12);
}

.hero-title span, .text-gradient {
  background: linear-gradient(135deg, #fff, #9DC2FF 52%, var(--bt-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 680px;
  color: rgba(248, 250, 252, .78);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }

.hero-panel {
  position: relative;
  border: 1px solid rgba(60, 131, 246, .22);
  border-radius: var(--bt-radius-lg);
  background: linear-gradient(180deg, rgba(12, 19, 34, .95), rgba(12, 19, 34, .62));
  padding: 1rem;
  box-shadow: var(--bt-shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% -25% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(60, 131, 246, .25);
  filter: blur(40px);
}

.mock-card { position: relative; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid var(--bt-border); padding: 1rem; }
.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock-kicker { color: var(--bt-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mock-value { font-size: 2rem; font-weight: 950; letter-spacing: -.06em; }
.mock-pipeline { display: grid; gap: .65rem; }
.mock-row { display: grid; grid-template-columns: 88px 1fr 50px; gap: .8rem; align-items: center; color: rgba(248,250,252,.78); font-size: .88rem; }
.mock-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.mock-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bt-primary), var(--bt-success)); }
.mock-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; }
.mock-stat { border: 1px solid var(--bt-border); border-radius: 16px; padding: .8rem; background: rgba(9,14,26,.55); }
.mock-stat strong { display:block; font-size: 1.15rem; }
.mock-stat span { color: var(--bt-muted); font-size: .78rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head p { max-width: 590px; color: var(--bt-muted); }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  height: 100%;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-md);
  background: linear-gradient(180deg, rgba(12, 19, 34, .98), rgba(12, 19, 34, .72));
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.post-card:hover { transform: translateY(-3px); border-color: var(--bt-border-strong); background: var(--bt-card-hover); }

.post-card-inner { padding: 1.15rem; }
.post-card-media { aspect-ratio: 16/9; background: radial-gradient(circle at 22% 20%, rgba(60,131,246,.55), transparent 16rem), #101A2C; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; padding: 1rem; color: rgba(248,250,252,.7); font-weight: 900; letter-spacing: -.04em; }
.post-card-placeholder span { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .55rem .85rem; background: rgba(9,14,26,.36); }

.post-card .entry-title { font-size: 1.35rem; margin-top: .7rem; }
.post-card .entry-title a:hover { color: var(--bt-primary); }
.entry-meta, .entry-footer, .posted-on, .byline { display: flex; flex-wrap: wrap; gap: .35rem .6rem; color: var(--bt-muted); font-size: .88rem; font-weight: 700; }
.entry-meta a, .entry-footer a { color: #BFD7FF; }
.entry-summary { color: rgba(248,250,252,.72); }
.read-more { color: #BFD7FF; font-weight: 900; }

.featured-post { grid-column: 1 / -1; }
.featured-post .post-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.featured-post .post-card-media { aspect-ratio: auto; min-height: 320px; }
.featured-post .entry-title { font-size: clamp(1.9rem, 3vw, 3.1rem); }
.featured-post .post-card-inner { padding: clamp(1.25rem, 3vw, 2rem); align-self: center; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 1rem; }
.widget, .sidebar-card {
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-md);
  background: rgba(12, 19, 34, .78);
  padding: 1.15rem;
}
.widget-title, .sidebar-title { font-size: 1rem; margin-bottom: .8rem; }
.widget ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.widget li { color: rgba(248,250,252,.76); }
.widget a { color: rgba(248,250,252,.86); font-weight: 750; }
.widget a:hover { color: var(--bt-primary); }

.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(60,131,246,.20), rgba(12,19,34,.95));
}
.cta-card::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 170px; height: 170px; border-radius: 999px; background: rgba(60,131,246,.24); filter: blur(20px); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card p { color: rgba(248,250,252,.75); }

.archive-header, .search-header, .page-header {
  padding: 4rem 0 2rem;
}
.archive-description { color: var(--bt-muted); max-width: 720px; }

.single-wrap, .page-wrap {
  padding: 3.2rem 0 4rem;
}
.single-layout { display: grid; grid-template-columns: minmax(0, 780px) 330px; gap: 2rem; align-items: start; justify-content: center; }
.article-shell {
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  background: rgba(12, 19, 34, .72);
  overflow: hidden;
}
.article-hero { aspect-ratio: 16/8.6; background: #101A2C; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-header, .entry-content, .article-footer { padding: clamp(1.25rem, 3vw, 2.25rem); }
.article-header { border-bottom: 1px solid var(--bt-border); }
.article-header h1 { font-size: clamp(2rem, 4vw, 4rem); margin-top: .7rem; }
.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: #9DC2FF; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-content ul, .entry-content ol { color: rgba(248,250,252,.82); padding-left: 1.25rem; }
.entry-content blockquote {
  margin: 1.7rem 0;
  border-left: 4px solid var(--bt-primary);
  border-radius: 14px;
  background: rgba(60,131,246,.08);
  padding: 1rem 1.25rem;
  color: rgba(248,250,252,.88);
}
.entry-content code, .entry-content pre { background: rgba(255,255,255,.06); border: 1px solid var(--bt-border); border-radius: 10px; }
.entry-content code { padding: .12rem .35rem; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.wp-caption, .wp-block-image figcaption { color: var(--bt-muted); font-size: .9rem; }
.article-footer { border-top: 1px solid var(--bt-border); display: grid; gap: 1rem; }
.post-navigation { margin-top: 1rem; }
.nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nav-previous, .nav-next { border: 1px solid var(--bt-border); border-radius: var(--bt-radius-md); padding: 1rem; background: rgba(255,255,255,.03); }
.nav-next { text-align: right; }

.comments-area { margin-top: 1rem; border: 1px solid var(--bt-border); border-radius: var(--bt-radius-md); padding: 1.5rem; background: rgba(12, 19, 34, .70); }
.comment-list { padding-left: 1.25rem; }
.comment-respond { margin-top: 1.5rem; }

.site-footer {
  border-top: 1px solid var(--bt-border);
  background: rgba(6, 10, 19, .75);
  padding: 0 0 2rem;
}
.footer-cta {
  transform: translateY(-1px);
  border-bottom: 1px solid var(--bt-border);
  background: linear-gradient(135deg, rgba(60, 131, 246, .16), rgba(9, 14, 26, .6));
  padding: 2.25rem 0;
}
.footer-cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-cta h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: .45rem; }
.footer-cta p { margin: 0; color: rgba(248,250,252,.72); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(140px, .4fr)); gap: 2rem; padding-top: 2.2rem; }
.footer-logo img { width: 172px; }
.footer-main p { max-width: 500px; color: var(--bt-muted); }
.footer-title { font-size: .95rem; font-weight: 900; margin-bottom: .65rem; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.footer-links a { color: rgba(248,250,252,.72); font-weight: 700; }
.footer-links a:hover { color: var(--bt-primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--bt-border); margin-top: 2rem; padding-top: 1.1rem; color: var(--bt-muted); font-size: .9rem; }

.pagination, .posts-navigation { margin: 2rem 0 0; }
.nav-links, .page-numbers { color: var(--bt-text); }
.page-numbers { display: inline-flex; align-items:center; justify-content:center; min-width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--bt-border); margin-right: .25rem; }
.page-numbers.current { background: var(--bt-primary); border-color: var(--bt-primary); color: #fff; }

.not-found { padding: 5rem 0; text-align: center; }
.not-found p { max-width: 620px; margin-inline: auto; }

.alignwide { max-width: min(100%, 1080px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-separator { border-color: var(--bt-border); }
.wp-block-quote { border-left-color: var(--bt-primary); }
.wp-block-table table { border-color: var(--bt-border); }
.wp-block-table td, .wp-block-table th { border-color: var(--bt-border); }

@media (max-width: 980px) {
  .header-inner { min-height: 70px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 70px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius-md);
    background: rgba(12, 19, 34, .98);
    padding: 1rem;
    box-shadow: var(--bt-shadow);
  }
  body.menu-open .primary-nav { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { width: 100%; }
  .header-actions { display: none; }
  .hero-grid, .content-layout, .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .featured-post .post-card { grid-template-columns: 1fr; }
  .featured-post .post-card-media { min-height: 240px; aspect-ratio: 16/9; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-cta-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .site-branding img { width: 150px; }
  .hero { padding-top: 3rem; }
  .post-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .mock-stat-grid { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 78px 1fr 42px; }
  .nav-links { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--bt-primary);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(60, 131, 246, .2);
  clip: auto !important;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: .875rem;
  font-weight: 800;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: .75rem 1rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}
.search-form { display: grid; gap: .7rem; }
.search-form .search-submit { width: 100%; }
.updated:not(.published) { display: none; }
