/* =====================================================
   BLOG PRÓ SORRIR - estilos premium isolados
   Não depende de styles.css; tudo self-contained.
   ===================================================== */

:root {
  --b-blue: #2196C4;
  --b-blue-dark: #155E80;
  --b-blue-darker: #0E4862;
  --b-gold: #C8960C;
  --b-gold-soft: #F5E5B5;
  --b-text: #1A2535;
  --b-text-mid: #4B5A6E;
  --b-text-light: #6B7A8F;
  --b-bg: #F7F9FC;
  --b-bg-soft: #EDF4F9;
  --b-white: #FFFFFF;
  --b-border: #E0E8F0;
  --b-radius: 14px;
  --b-radius-lg: 22px;
  --b-shadow-sm: 0 2px 10px rgba(20,40,80,.05);
  --b-shadow-md: 0 8px 30px rgba(20,40,80,.08);
  --b-shadow-lg: 0 18px 60px rgba(20,40,80,.12);
  --b-grad-brand: linear-gradient(135deg, #155E80 0%, #2196C4 60%, #5BC2E7 100%);
  --b-grad-soft: linear-gradient(135deg, #EDF4F9 0%, #F7F9FC 100%);
  --b-trans: 200ms cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--b-bg);
  color: var(--b-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--b-blue-dark); text-decoration: none; transition: color var(--b-trans); }
a:hover { color: var(--b-blue); }

.b-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.b-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.b-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--b-border);
}
.b-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.b-header__brand img { height: 44px; width: auto; }
.b-header__nav {
  display: flex; gap: 28px; align-items: center;
}
.b-header__nav a {
  color: var(--b-text); font-weight: 500; font-size: .95rem;
  position: relative;
}
.b-header__nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--b-blue);
  transition: width var(--b-trans);
}
.b-header__nav a:hover { color: var(--b-blue-dark); }
.b-header__nav a:hover::after { width: 100%; }
.b-header__nav a.is-active { color: var(--b-blue-dark); font-weight: 600; }
.b-header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--b-grad-brand); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 6px 20px rgba(33,150,196,.3);
  transition: transform var(--b-trans), box-shadow var(--b-trans);
}
.b-header__cta:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 28px rgba(33,150,196,.4); }
@media (max-width: 768px) {
  .b-header__nav { display: none; }
  .b-header__inner { height: 64px; }
  .b-header__brand img { height: 38px; }
  .b-header__cta { padding: 8px 14px; font-size: .82rem; }
}

/* ===== HERO LISTAGEM ===== */
.b-hero {
  background: var(--b-grad-brand);
  color: #fff; padding: 80px 0 70px;
  position: relative; overflow: hidden;
}
.b-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 30%, rgba(91,194,231,.4), transparent 70%),
    radial-gradient(600px 400px at 10% 80%, rgba(200,150,12,.18), transparent 70%);
  pointer-events: none;
}
.b-hero__inner { position: relative; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 24px; }
.b-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 20px;
}
.b-hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5BC2E7; box-shadow: 0 0 12px #5BC2E7;
}
.b-hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; line-height: 1.1;
  margin-bottom: 16px;
}
.b-hero__title em {
  font-style: italic; color: #FFE9A8;
}
.b-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  opacity: .95; max-width: 620px; margin: 0 auto;
}

/* ===== GRID DE POSTS ===== */
.b-section { padding: 80px 0; }
.b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.b-card {
  background: var(--b-white);
  border-radius: var(--b-radius-lg);
  overflow: hidden;
  box-shadow: var(--b-shadow-sm);
  border: 1px solid var(--b-border);
  transition: transform var(--b-trans), box-shadow var(--b-trans), border-color var(--b-trans);
  display: flex; flex-direction: column;
  color: inherit;
}
.b-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--b-shadow-lg);
  border-color: rgba(33,150,196,.4);
  color: inherit;
}
.b-card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--b-bg-soft);
}
.b-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.b-card:hover .b-card__media img { transform: scale(1.05); }
.b-card__cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--b-blue-dark);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.b-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.b-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--b-text-light); margin-bottom: 12px;
}
.b-card__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--b-text-light); }
.b-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem; font-weight: 600; line-height: 1.3;
  color: var(--b-text); margin-bottom: 10px;
}
.b-card__excerpt {
  font-size: .92rem; color: var(--b-text-mid);
  line-height: 1.6; margin-bottom: 18px; flex: 1;
}
.b-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--b-blue-dark); font-weight: 600; font-size: .9rem;
  margin-top: auto;
}
.b-card__more svg {
  width: 14px; height: 14px;
  transition: transform var(--b-trans);
}
.b-card:hover .b-card__more svg { transform: translateX(4px); }

/* ===== ARTIGO INDIVIDUAL ===== */
.b-article-hero {
  background: var(--b-grad-soft);
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--b-border);
}
.b-crumbs {
  font-size: .85rem; color: var(--b-text-light);
  margin-bottom: 22px;
}
.b-crumbs a { color: var(--b-text-mid); }
.b-crumbs a:hover { color: var(--b-blue); }
.b-crumbs .sep { margin: 0 8px; opacity: .6; }
.b-crumbs [aria-current] { color: var(--b-text); font-weight: 500; }
.b-article-hero__cat {
  display: inline-block;
  background: var(--b-blue);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.b-article-hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600; line-height: 1.15;
  color: var(--b-text); margin-bottom: 18px;
  max-width: 800px;
}
.b-article-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: .9rem; color: var(--b-text-light);
  margin-bottom: 32px;
}
.b-article-hero__meta .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--b-text-light);
}
.b-article-hero__cover {
  border-radius: var(--b-radius-lg);
  overflow: hidden;
  box-shadow: var(--b-shadow-md);
  aspect-ratio: 1200 / 630;
  background: var(--b-bg-soft);
}
.b-article-hero__cover img { width: 100%; height: 100%; object-fit: cover; }

.b-article-body { padding: 60px 0 30px; }
.b-article-body > * + * { margin-top: 1.2rem; }
.b-article-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600; line-height: 1.25;
  color: var(--b-text);
  margin-top: 2.5rem !important;
  margin-bottom: 1rem;
  scroll-margin-top: 90px;
}
.b-article-body h2:first-child { margin-top: 0 !important; }
.b-article-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--b-blue-dark);
  margin-top: 1.8rem !important;
  margin-bottom: .6rem;
}
.b-article-body p {
  font-size: 1.02rem; color: var(--b-text-mid); line-height: 1.8;
}
.b-article-body strong { color: var(--b-text); font-weight: 600; }
.b-article-body em { color: var(--b-blue-dark); font-style: italic; }
.b-article-body ul, .b-article-body ol {
  padding-left: 22px; color: var(--b-text-mid);
}
.b-article-body li { margin-bottom: .5rem; line-height: 1.7; }
.b-article-body li::marker { color: var(--b-blue); font-weight: 700; }

.b-toc {
  background: var(--b-bg-soft);
  border-left: 4px solid var(--b-blue);
  border-radius: 0 var(--b-radius) var(--b-radius) 0;
  padding: 22px 26px;
  margin-bottom: 40px !important;
}
.b-toc__title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--b-blue-dark); margin-bottom: 12px;
}
.b-toc ol {
  padding-left: 18px; margin: 0;
  font-size: .95rem; counter-reset: tocount;
}
.b-toc li {
  list-style: none; counter-increment: tocount;
  margin-bottom: 6px; position: relative; padding-left: 26px;
}
.b-toc li::before {
  content: counter(tocount, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--b-blue);
  font-size: .82rem; font-variant-numeric: tabular-nums;
}
.b-toc a { color: var(--b-text-mid); }
.b-toc a:hover { color: var(--b-blue-dark); text-decoration: underline; }

.b-callout {
  display: flex; gap: 14px;
  background: linear-gradient(135deg, #EDF6FB 0%, #F7FAFC 100%);
  border: 1px solid #B7D9E8;
  border-left: 4px solid var(--b-blue);
  border-radius: var(--b-radius);
  padding: 20px 22px;
  margin: 28px 0 !important;
}
.b-callout__icon {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--b-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.b-callout__body { color: var(--b-text); font-size: .95rem; line-height: 1.6; }
.b-callout__body strong { display: block; margin-bottom: 4px; color: var(--b-blue-dark); }
.b-callout--alert {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFFCF2 100%);
  border-color: #F0D060;
  border-left-color: var(--b-gold);
}
.b-callout--alert .b-callout__icon { background: var(--b-gold); }
.b-callout--alert .b-callout__body strong { color: #8B6800; }

.b-table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0 !important;
  border-radius: var(--b-radius);
  overflow: hidden;
  box-shadow: var(--b-shadow-sm);
  font-size: .92rem;
  background: #fff;
}
.b-table th {
  background: var(--b-blue-dark); color: #fff;
  text-align: left; padding: 12px 16px; font-weight: 600;
}
.b-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--b-border);
  color: var(--b-text-mid);
}
.b-table tr:last-child td { border-bottom: none; }
.b-table tr:nth-child(even) td { background: var(--b-bg); }

/* ===== CTA WHATSAPP ===== */
.b-cta {
  margin: 50px 0 30px !important;
  background: var(--b-grad-brand);
  border-radius: var(--b-radius-lg);
  padding: 32px 36px;
  color: #fff;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--b-shadow-md);
  position: relative; overflow: hidden;
}
.b-cta::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.b-cta__text { flex: 1; min-width: 240px; position: relative; }
.b-cta__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem; font-weight: 600; margin-bottom: 6px;
}
.b-cta__sub { font-size: .95rem; opacity: .92; line-height: 1.5; }
.b-cta__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff !important;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform var(--b-trans), box-shadow var(--b-trans);
  position: relative;
}
.b-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,.5); }
.b-cta__btn svg { width: 22px; height: 22px; }

/* ===== SHARE / RELACIONADOS ===== */
.b-share {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 24px 0; margin-top: 30px;
  border-top: 1px solid var(--b-border);
  border-bottom: 1px solid var(--b-border);
  font-size: .9rem; color: var(--b-text-mid);
}
.b-share__btns { display: flex; gap: 10px; }
.b-share__btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--b-bg-soft); color: var(--b-blue-dark);
  transition: all var(--b-trans);
}
.b-share__btn:hover { background: var(--b-blue); color: #fff; transform: translateY(-2px); }
.b-share__btn svg { width: 18px; height: 18px; }

.b-related { padding: 60px 0 80px; background: var(--b-bg); }
.b-related__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600; color: var(--b-text);
  text-align: center; margin-bottom: 36px;
}

/* ===== FOOTER ===== */
.b-footer {
  background: #0E1F2D; color: #B7C4D2;
  padding: 50px 0 26px;
}
.b-footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 768px) {
  .b-footer__inner { grid-template-columns: 1fr; gap: 30px; }
}
.b-footer__brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.b-footer__brand p { font-size: .9rem; line-height: 1.6; max-width: 420px; }
.b-footer h4 {
  color: #fff; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.b-footer ul { list-style: none; }
.b-footer li { margin-bottom: 8px; font-size: .9rem; }
.b-footer a { color: #B7C4D2; }
.b-footer a:hover { color: #fff; }
.b-footer__bottom {
  padding-top: 22px; text-align: center;
  font-size: .82rem; color: #6F8093;
}

/* ===== FLOAT WHATSAPP ===== */
.b-wa-float {
  position: fixed; bottom: 22px; right: 22px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  z-index: 100;
  transition: transform var(--b-trans);
}
.b-wa-float:hover { transform: scale(1.08); color: #fff; }
.b-wa-float svg { width: 30px; height: 30px; }
.b-wa-float::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid #25D366;
  opacity: .6; animation: b-pulse 2s ease-out infinite;
}
@keyframes b-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
  .b-section { padding: 50px 0; }
  .b-hero { padding: 60px 0 50px; }
  .b-cta { padding: 26px 24px; flex-direction: column; align-items: stretch; text-align: center; }
  .b-cta__btn { justify-content: center; }
  .b-article-body { padding: 40px 0 20px; }
  .b-article-body h2 { margin-top: 2rem !important; }
}
