/*
Theme Name: 2B Growth Blog
Theme URI: https://2bcompany.com.br
Author: 2B Company
Author URI: https://2bcompany.com.br
Description: Tema de blog alinhado à identidade visual da 2B Company, focado em artigos longos, SEO e CTAs estratégicos.
Version: 1.0.0
Text Domain: 2b-growth-blog
*/

:root {
  --color-primary: #193456;
  --color-secondary: #1e1e1e;
  --color-bg: #05060a;
  --color-text: #f5f1eb;
  --color-accent: #cc9933;
  --color-accent-strong: #800020;
  --color-muted: #848a9a;

  --font-heading: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 720px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top left, #193456 0, #1e1e1e 40%, #05060a 100%);
  color: var(--color-text);
  line-height: 1.7;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(9, 13, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.9;
}

.header-cta .btn-primary {
  white-space: nowrap;
}

/* Botões */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  background: linear-gradient(135deg, #cc9933, #f5f1eb);
  color: #131313;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* Layout geral */

.site-main-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.site-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1.1fr);
  gap: 3rem;
}

@media (max-width: 960px) {
  .site-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Hero da listagem */

.blog-hero {
  margin-bottom: 2rem;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 0.4rem;
}

.blog-hero-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
}

/* Cards de posts */

.post-card {
  padding: 1.5rem 1.4rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top left, rgba(25, 52, 86, 0.85), rgba(30, 30, 30, 0.95));
  margin-bottom: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(204, 153, 51, 0.8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.post-card-category {
  display: inline-flex;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(85, 107, 47, 0.22);
  color: #d6e6b0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.95;
  margin: 0 0 0.6rem;
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.post-card-readmore {
  margin-top: 0.4rem;
}

/* Sidebar */

.sidebar-widget {
  margin-bottom: 2rem;
  padding: 1.4rem 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(25, 52, 86, 0.9), rgba(5, 6, 10, 0.98));
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.9rem;
}

.sidebar-widget p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Conteúdo do post */

.post-header {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
}

.post-category {
  display: inline-flex;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(85, 107, 47, 0.22);
  color: #d6e6b0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 1rem 0 0.5rem;
}

.post-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: var(--content-width);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 1rem;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-heading);
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}

.post-content p {
  margin: 0 0 1.3rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.3rem 1.3rem;
}

/* CTA dentro do post */

.callout-cta {
  margin: 2.5rem auto;
  max-width: var(--content-width);
  padding: 1.8rem 1.6rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(204, 153, 51, 0.7);
  background: linear-gradient(135deg, rgba(25, 52, 86, 0.95), rgba(30, 30, 30, 0.95));
}

.callout-cta-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.callout-cta-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.1rem;
}

/* Rodapé */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 1.5rem 2.5rem;
  margin-top: 3rem;
  background: rgba(5, 6, 10, 0.96);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.site-footer a {
  color: var(--color-accent);
}

@media (max-width: 720px) {
  .site-header-inner {
    flex-wrap: wrap;
  }
  .header-cta {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
}
