/* ===================================================
   TATIANA ALVES NUTRI - BLOG
   Paleta e tipografia herdadas do site principal (/consulta/)
   =================================================== */

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

:root {
  --cream:       #F0E9E3;
  --cream-deep:  #E7DED6;
  --pink-soft:   #FBD1D0;
  --pink-mute:   #E8D4D1;
  --nude:        #D8AF90;
  --terracota:   #BF7771;
  --canela:      #916D4D;
  --text-dark:   #5A3A2E;
  --text-mid:    rgba(90, 58, 46, 0.72);
  --text-soft:   rgba(90, 58, 46, 0.55);

  --font-head: 'Playfair', serif;
  --font-body: 'Hanken Grotesk', sans-serif;

  --r-lg: 24px;
  --r-md: 18px;
  --shadow: 0 18px 40px rgba(90, 58, 46, 0.10);
}

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracota); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; border-radius: 12px; }

/* ---------------- HEADER ---------------- */
.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 24px;
}

.blog-header .logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--canela);
}

.blog-header nav a {
  margin-left: 22px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.blog-header nav a:first-child { margin-left: 0; }

/* ---------------- CONTAINERS ---------------- */
.blog-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.blog-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

/* ---------------- TOPO DA LISTAGEM ---------------- */
.listing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 8px 0 34px;
}

.listing-head-text { max-width: 620px; }

.blog-eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 12px;
}

.blog-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--canela);
  margin-bottom: 14px;
}

.blog-subtitle {
  color: var(--text-mid);
  font-weight: 300;
  font-size: 1.02rem;
  max-width: 520px;
}

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--pink-mute);
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.head-cta:hover {
  background: var(--terracota);
  border-color: var(--terracota);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.head-cta .arrow { transition: transform 0.2s ease; }
.head-cta:hover .arrow { transform: translateX(4px); }

/* ---------------- BENTO (DESTAQUES) ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 232px;
  gap: 16px;
  margin-bottom: 64px;
}

.bento > * { border-radius: var(--r-lg); overflow: hidden; }

/* posicoes */
.b-hero  { grid-column: span 5; grid-row: span 2; }
.b-panel { grid-column: span 4; grid-row: span 1; }
.b-side  { grid-column: span 3; grid-row: span 2; }
.b-mid   { grid-column: span 4; grid-row: span 1; }

/* --- card com imagem de fundo --- */
.bento-img {
  position: relative;
  display: block;
  background: var(--cream-deep);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.bento-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  border-radius: 0;
}

.bento-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(58, 34, 26, 0.86) 0%,
    rgba(58, 34, 26, 0.45) 42%,
    rgba(58, 34, 26, 0.05) 72%
  );
}

.bento-img .bento-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
}

.bento-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}

.bento-img h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.b-hero h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.b-side h3, .b-mid h3 { font-size: 1.08rem; }

.bento-img p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 300;
  margin-top: 8px;
}

.b-side p, .b-mid p { display: none; }

/* --- painel colorido com links --- */
.b-panel {
  background: var(--pink-soft);
  padding: 26px 26px 20px;
  display: flex;
  flex-direction: column;
}

.b-panel .bento-tag {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: none;
}

.b-panel h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.b-panel h3 a { color: inherit; }

.b-panel > p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-mid);
}

.panel-links {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(90, 58, 46, 0.16);
}

.panel-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}

.panel-links a + a { border-top: 1px solid rgba(90, 58, 46, 0.12); }
.panel-links a:hover { color: var(--terracota); text-decoration: none; }
.panel-links .arrow { flex-shrink: 0; transition: transform 0.2s ease; }
.panel-links a:hover .arrow { transform: translateX(4px); }

/* ---------------- FILTRO POR CATEGORIA ---------------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.section-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--canela);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--pink-mute);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover { border-color: var(--terracota); color: var(--terracota); }

.chip[aria-pressed="true"] {
  background: var(--terracota);
  border-color: var(--terracota);
  color: #fff;
}

.chip .chip-count {
  opacity: 0.6;
  font-weight: 400;
  margin-left: 4px;
}

/* ---------------- GRID DE POSTS ---------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pink-mute);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.post-card[hidden] { display: none; }

/* object-position favorece o terco superior: as fotos de origem sao verticais
   e um corte central cortaria o rosto na altura do card. */
.post-card img {
  border-radius: 0;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center 26%;
  width: 100%;
}

.post-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 9px;
}

.post-card h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.13rem;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.post-card p {
  color: var(--text-mid);
  font-weight: 300;
  font-size: 0.89rem;
}

.card-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--terracota);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-card:hover .card-more .arrow { transform: translateX(4px); }
.card-more .arrow { transition: transform 0.2s ease; }

.empty-state {
  text-align: center;
  color: var(--text-mid);
  padding: 40px 0;
  font-weight: 300;
}

/* ---------------- ARTIGO ---------------- */
.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.article-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 14px;
}

.article-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  color: var(--canela);
  margin-bottom: 18px;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.article-meta {
  color: var(--text-mid);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.article-cover {
  margin-bottom: 32px;
  max-width: 320px;
  border-radius: var(--r-md);
}

.article-lead {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--canela);
  margin: 38px 0 14px;
}

.article-body h3 {
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-dark);
  margin: 24px 0 8px;
}

.article-body p { margin-bottom: 16px; font-weight: 300; }

.article-body ul, .article-body ol {
  margin: 0 0 20px 1.2rem;
  font-weight: 300;
}

.article-body li { margin-bottom: 10px; }

.article-cta {
  background: var(--pink-soft);
  border-radius: var(--r-lg);
  padding: 30px;
  text-align: center;
  margin: 44px 0;
}

.article-cta p { font-weight: 500; margin-bottom: 16px; color: var(--text-dark); }

.btn-cta {
  display: inline-block;
  background: var(--terracota);
  color: #fff;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.btn-cta:hover { background: var(--canela); text-decoration: none; }

.faq-block { margin-top: 40px; }

.faq-block details {
  border: 1px solid var(--pink-mute);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}

.faq-block summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-block summary::-webkit-details-marker { display: none; }
.faq-block p { margin-top: 10px; font-weight: 300; }

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--pink-mute);
  font-size: 0.85rem;
  color: var(--text-mid);
}

.article-related { margin-top: 40px; }

.article-related h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--canela);
  margin-bottom: 12px;
}

/* ---------------- FOOTER ---------------- */
.blog-footer {
  text-align: center;
  padding: 34px 24px;
  font-size: 0.82rem;
  color: var(--text-mid);
}

/* ---------------- RESPONSIVO ---------------- */
@media (max-width: 980px) {
  .bento { grid-auto-rows: 210px; }
  .b-hero  { grid-column: span 12; grid-row: span 2; }
  .b-panel { grid-column: span 7; }
  .b-side  { grid-column: span 5; grid-row: span 2; }
  .b-mid   { grid-column: span 7; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .bento { grid-auto-rows: auto; gap: 14px; }
  .bento > * { grid-column: span 12 !important; grid-row: auto !important; }
  .bento-img { min-height: 260px; }
  .b-side p, .b-mid p { display: block; }
  .post-grid { grid-template-columns: 1fr; }
  .listing-head { align-items: flex-start; }
  .filter-bar { align-items: flex-start; }
  .article-cover { max-width: 100%; }
}
