/* Paleta Bebaby
   - Fundo claro
   - Texto em preto
   - Rosa e lilás como destaque
*/

:root {
  --bb-bg: #fdfbff;           /* fundo clarinho puxando pro lilás */
  --bb-bg-soft: #f9f5ff;      /* bloco suave */
  --bb-text: #111111;         /* quase preto */
  --bb-rosa: #ec4899;         /* rosa destaque */
  --bb-rosa-soft: #fce7f3;    /* rosa clarinho */
  --bb-lilas: #a855f7;        /* lilás forte */
  --bb-lilas-soft: #ede9fe;   /* lilás clarinho */
  --bb-border: #e5e7eb;
  --bb-max-width: 1080px;
  --bb-radius-lg: 18px;
  --bb-radius-xl: 26px;
}

/* Reset simples */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bb-bg);
  color: var(--bb-text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout base */

.bb-container {
  max-width: var(--bb-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.bb-header {
  border-bottom: 1px solid var(--bb-border);
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.bb-logo-main {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-lilas);
}

.bb-logo-sub {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.bb-logo {
  display: flex;
  flex-direction: column;
}

/* Navegação */

.bb-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.bb-nav a {
  color: #111827;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
}

.bb-nav a:hover {
  background: var(--bb-lilas-soft);
  text-decoration: none;
}

.bb-nav-active {
  background: var(--bb-rosa-soft);
  color: var(--bb-rosa) !important;
}

/* Dropdown simples para categorias (versão inicial desktop) */

.bb-nav-categories {
  position: relative;
  font-size: 0.9rem;
}

.bb-nav-categories > span {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bb-bg-soft);
}

.bb-nav-categories ul {
  position: absolute;
  right: 0;
  top: 120%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 10px;
  list-style: none;
  display: none;
  min-width: 220px;
}

.bb-nav-categories:hover ul {
  display: block;
}

.bb-nav-categories li a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111827;
}

.bb-nav-categories li a:hover {
  background: var(--bb-lilas-soft);
}

/* Hero */

.bb-hero {
  padding: 48px 0 40px;
  background: radial-gradient(circle at top left, #fdf2ff, #f9f5ff 48%, #ffffff 100%);
}

.bb-hero-small {
  padding: 32px 0 24px;
  background: radial-gradient(circle at top left, #fdf2ff, #f9f5ff 40%, #ffffff 100%);
}

.bb-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
}

.bb-hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.bb-hero p {
  font-size: 1rem;
  color: #4b5563;
}

.bb-hero-text {
  max-width: 640px;
}

.bb-hero-side {
  display: flex;
  justify-content: flex-end;
}

.bb-hero-card {
  background: #ffffff;
  border-radius: var(--bb-radius-xl);
  padding: 20px 20px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--bb-lilas-soft);
}

.bb-hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.bb-hero-card ul {
  list-style: none;
  font-size: 0.92rem;
}

.bb-hero-card li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  color: #4b5563;
}

.bb-hero-card li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.6rem;
  color: var(--bb-rosa);
}

/* Botões */

.bb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
}

.bb-button-primary {
  background: linear-gradient(135deg, var(--bb-rosa), var(--bb-lilas));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35);
}

.bb-button-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.4);
  text-decoration: none;
}

.bb-hero-cta {
  margin-top: 20px;
}

.bb-hero-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Seções */

.bb-section {
  padding: 36px 0;
}

.bb-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bb-section-header h2 {
  font-size: 1.3rem;
}

.bb-link-more {
  font-size: 0.9rem;
}

/* Cards de posts */

.bb-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.bb-post-card {
  background: #ffffff;
  border-radius: var(--bb-radius-lg);
  padding: 16px 16px 14px;
  border: 1px solid var(--bb-border);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.bb-post-card h2,
.bb-post-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.bb-post-excerpt {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 8px;
}

.bb-post-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.bb-post-readmore {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bb-rosa);
}

/* Breadcrumb */

.bb-breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 6px;
}

/* Página de post */

.bb-post-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  background: #ffffff;
  border-radius: var(--bb-radius-xl);
  border: 1px solid var(--bb-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.bb-post-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.bb-post-category {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bb-rosa);
  margin-bottom: 8px;
}

.bb-post-info {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 18px;
}

.bb-post-content {
  font-size: 1rem;
  color: #374151;
}

.bb-post-content p {
  margin-bottom: 12px;
}

.bb-post-content h2 {
  font-size: 1.3rem;
  margin: 18px 0 8px;
}

.bb-post-content h3 {
  font-size: 1.1rem;
  margin: 14px 0 6px;
}

/* Comentários (estrutura inicial) */

.bb-comments {
  margin-top: 32px;
  border-top: 1px solid var(--bb-border);
  padding-top: 20px;
}

.bb-comments h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.bb-comment-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.bb-comment-form input,
.bb-comment-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid var(--bb-border);
  font-size: 0.92rem;
}

.bb-comment-form textarea {
  min-height: 80px;
  resize: vertical;
}

.bb-comments-list {
  margin-top: 16px;
}

.bb-comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--bb-border);
}

.bb-comment-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.bb-comment-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

.bb-comment-text {
  font-size: 0.92rem;
  color: #374151;
}

/* Footer */

.bb-footer {
  border-top: 1px solid var(--bb-border);
  padding: 20px 0;
  margin-top: 20px;
  background: #ffffff;
}

.bb-footer-inner {
  font-size: 0.85rem;
  color: #6b7280;
}

.bb-footer-note {
  margin-top: 4px;
}

/* Responsivo */

@media (max-width: 768px) {
  .bb-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: auto;
    padding: 10px 0 8px;
  }

  .bb-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }


  .bb-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .bb-hero-card {
    margin-top: 12px;
  }

  .bb-section {
    padding: 26px 0;
  }

  .bb-post-wrapper {
    padding: 18px 14px 28px;
    border-radius: 18px;
  }
}


/* CTA em cima do banner - tamanho padrão (desktop) */
.bb-post-banner-cta {
  gap: 8px !important;
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
}

.bb-post-banner-cta select {
  background: #111827;
  color: #f9fafb;
  border-radius: 999px;
  border: 1px solid #f97373;
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
  outline: none;
  cursor: pointer;
}

.bb-post-banner-cta .bb-button-primary {
  font-size: 0.85rem !important;
  padding: 7px 16px !important;
}

/* Versão mobile: mesma carinha, só menorzinha */
@media (max-width: 640px) {
  .bb-post-banner-cta {
    gap: 6px !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .bb-post-banner-cta select {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }

  .bb-post-banner-cta .bb-button-primary {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
  }
}
/* Quebra palavras e links muito longos dentro do conteúdo do post */
.bb-post-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.bb-post-content a {
  word-break: break-all;
}

/* Garante que qualquer palavra/link gigante quebre dentro do post */
.bb-post-content,
.bb-post-content a {
  overflow-wrap: anywhere;  /* quebra em qualquer ponto possível */
  word-break: break-word;   /* fallback pra navegadores mais antigos */
}

/* Segurança extra: impede qualquer overflow horizontal dentro do card do post */
.bb-post-wrapper {
  overflow-x: hidden;
}

.bb-post-wrapper,
.bb-post-wrapper * {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Banner de cookies Bebaby */
.bb-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9999;

  max-width: 960px;
  width: calc(100% - 32px);

  background: #111827;
  color: #f9fafb;
  border-radius: var(--bb-radius-xl);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);

  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bb-cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.5;
}

.bb-cookie-banner-text strong {
  font-size: 0.9rem;
}

.bb-cookie-banner-text a.bb-cookie-link {
  color: var(--bb-rosa);
  text-decoration: underline;
}

.bb-cookie-banner-buttons {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Aproveita os botões padrão do site */
.bb-cookie-banner .bb-button {
  cursor: pointer;
  border: none;
}

.bb-cookie-banner .bb-button-secondary {
  background: transparent;
  border: 1px solid #4b5563;
  color: #e5e7eb;
}

/* Responsivo: empilhar no mobile */
@media (max-width: 640px) {
  .bb-cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .bb-cookie-banner-buttons {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Formulários Bebaby */
.bb-form {
  max-width: 520px;
}

.bb-form-group {
  margin-bottom: 14px;
}

.bb-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.bb-form-group input[type="text"],
.bb-form-group input[type="email"],
.bb-form-group input[type="tel"],
.bb-form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.bb-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.bb-form-group input:focus,
.bb-form-group textarea:focus {
  border-color: #f472b6;
  background: #ffffff;
  box-shadow: 0 0 0 1px #f472b6, 0 10px 25px rgba(148, 163, 184, 0.25);
}

.bb-form-group input::placeholder,
.bb-form-group textarea::placeholder {
  color: #9ca3af;
  font-size: 0.85rem;
}

.bb-footer-links {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 4px 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bb-footer-links a {
  color: #6b21a8;
  text-decoration: none;
}

.bb-footer-links a:hover {
  text-decoration: underline;
}

.bb-post-card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 10px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Apenas para leitores de tela (acessibilidade) */
.bb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bb-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .bb-post-banner-cta {
    padding: 2px 6px !important;
    gap: 4px !important;
    font-size: 0.6rem !important;
  }

  .bb-post-banner-cta select {
    padding: 1px 4px !important;
    font-size: 0.6rem !important;
  }

  .bb-post-banner-cta .bb-button,
  .bb-post-banner-cta .bb-button-primary {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
  }
}\n\n/* Acessibilidade: links claros e distinguíveis dentro do post */
.bb-post-wrapper a {
  color: #1d4ed8; /* azul bem visível em fundo branco */
}

.bb-post-content a {
  text-decoration: underline;
}

/* Opcional: no hover/focus, dar ainda mais destaque */
.bb-post-wrapper a:hover,
.bb-post-wrapper a:focus {
  color: #1e40af;
}\n\n\n\n