/*
Theme Name: Aurum Blog
Theme URI: https://dranaiaramariano.com.br
Version: 1.0
Text Domain: aurum-blog
*/

/* ── Variáveis ── */
:root {
  --creme:          #FAFAF7;
  --verde-floresta: #3C4A35;
  --verde-sage:     #C8DAC0;
  --terracota:      #8A5A38;
  --texto:          #2A2A25;
  --texto-suave:    #6B6358;
}

/* ── @font-face ── */
@font-face {
  font-family: 'Italiana';
  src: url('assets/fonts/Italiana-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mundial';
  src: url('assets/fonts/mundial-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mundial';
  src: url('assets/fonts/mundial-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mundial';
  src: url('assets/fonts/mundial-demibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Mundial', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Blog Header ── */
.blog-header {
  background: var(--creme);
  border-bottom: 1px solid var(--verde-sage);
}
.blog-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.blog-logo-nome {
  font-family: 'Italiana', serif;
  font-size: 24px;
  color: var(--verde-floresta);
}
.blog-logo-crm {
  font-family: 'Mundial', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--texto-suave);
}
.blog-voltar {
  font-family: 'Mundial', sans-serif;
  font-size: 14px;
  color: var(--verde-floresta);
  text-decoration: none;
}
.blog-voltar:hover { text-decoration: underline; }

/* ── Blog Footer ── */
.blog-footer {
  background: var(--verde-floresta);
  padding: 24px;
  text-align: center;
}
.blog-footer p {
  font-family: 'Mundial', sans-serif;
  font-size: 13px;
  color: var(--creme);
  margin: 0;
}
.blog-footer a {
  color: var(--creme);
  text-decoration: underline;
}

/* ── Blog Listagem (front-page.php + archive.php) ── */
.blog-listagem {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px;
}
.blog-listagem-hero {
  text-align: center;
  margin-bottom: 48px;
}
.blog-listagem-hero h1 {
  font-family: 'Italiana', serif;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--verde-floresta);
  margin-bottom: 12px;
}
.blog-listagem-hero p {
  font-family: 'Mundial', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--texto-suave);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--verde-sage);
  display: flex;
  flex-direction: column;
}
.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-categoria {
  display: inline-block;
  background: var(--verde-sage);
  color: var(--verde-floresta);
  font-family: 'Mundial', sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.blog-card h2 {
  font-family: 'Italiana', serif;
  font-size: 22px;
  color: var(--texto);
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-card time {
  font-family: 'Mundial', sans-serif;
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 12px;
  display: block;
}
.blog-card > .blog-card-body > p {
  font-family: 'Mundial', sans-serif;
  font-size: 15px;
  color: var(--texto-suave);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-link {
  font-family: 'Mundial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--verde-floresta);
  text-decoration: none;
  margin-top: auto;
}
.blog-card-link:hover { text-decoration: underline; }

/* Paginação */
.blog-pagination {
  margin-top: 48px;
  text-align: center;
}
.blog-pagination .nav-links a,
.blog-pagination .nav-links span {
  font-family: 'Mundial', sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid var(--verde-sage);
  color: var(--verde-floresta);
  text-decoration: none;
  display: inline-block;
  margin: 0 4px;
}
.blog-pagination .nav-links .current {
  background: var(--verde-floresta);
  color: var(--creme);
  border-color: var(--verde-floresta);
}

/* ── Blog Artigo (single.php) ── */
.blog-artigo {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.blog-breadcrumb {
  font-family: 'Mundial', sans-serif;
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 24px;
}
.blog-breadcrumb a {
  color: var(--verde-floresta);
  text-decoration: none;
}
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-artigo-header h1 {
  font-family: 'Italiana', serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--verde-floresta);
  margin-bottom: 16px;
  line-height: 1.2;
}
.blog-artigo-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.blog-artigo-meta time {
  font-family: 'Mundial', sans-serif;
  font-size: 14px;
  color: var(--texto-suave);
}
.blog-artigo-img-capa {
  margin: 24px 0;
}
.blog-artigo-img-capa img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.blog-artigo-corpo {
  margin-top: 32px;
}
.blog-artigo-corpo p {
  font-family: 'Mundial', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--texto);
  margin-bottom: 20px;
}
.blog-artigo-corpo h2 {
  font-family: 'Italiana', serif;
  font-size: 32px;
  color: var(--verde-floresta);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.blog-artigo-corpo h3 {
  font-family: 'Italiana', serif;
  font-size: 24px;
  color: var(--verde-floresta);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.blog-artigo-corpo ul,
.blog-artigo-corpo ol {
  font-family: 'Mundial', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--texto);
  padding-left: 24px;
  margin-bottom: 20px;
}
.blog-artigo-corpo ul { list-style: disc; }
.blog-artigo-corpo ol { list-style: decimal; }
.blog-artigo-corpo blockquote {
  border-left: 3px solid var(--verde-sage);
  padding-left: 20px;
  font-style: italic;
  margin: 24px 0;
  color: var(--texto-suave);
}
.blog-artigo-corpo img {
  max-width: 100%;
  height: auto;
  margin: 24px auto;
}
/* ── Header wrapper ── */
.blog-artigo-header {
  position: relative;
}
.blog-artigo-header-inner {
  position: relative;
}

/* ── Byline ── */
.blog-artigo-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.blog-artigo-byline-foto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.blog-artigo-byline-nome {
  font-family: 'Mundial', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--texto-suave);
}

/* ── Sobre a autora ── */
.blog-autora {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  border: 1px solid var(--verde-sage);
  padding: 28px;
  margin-top: 48px;
}
.blog-autora-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}
.blog-autora-nome {
  font-family: 'Italiana', serif;
  font-size: 22px;
  color: var(--verde-floresta);
  margin-bottom: 4px;
}
.blog-autora-crm {
  font-family: 'Mundial', sans-serif;
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 12px;
}
.blog-autora-bio {
  font-family: 'Mundial', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--texto);
  line-height: 1.6;
  margin-bottom: 16px;
}
.btn-autora-whatsapp {
  display: inline-block;
  background: var(--verde-floresta);
  color: var(--creme);
  font-family: 'Mundial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  text-decoration: none;
}
.btn-autora-whatsapp:hover { background: var(--terracota); }
.blog-voltar-lista {
  display: inline-block;
  margin-top: 32px;
  font-family: 'Mundial', sans-serif;
  font-size: 14px;
  color: var(--verde-floresta);
  text-decoration: none;
}
.blog-voltar-lista:hover { text-decoration: underline; }

/* ── Ornamentos decorativos espalhados ── */
.blog-botanico-deco {
  position: absolute;
  height: 240px;
  width: auto;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}
.blog-botanico-deco--mid {
  top: 38%;
  right: -20px;
  transform: rotate(18deg);
}
.blog-botanico-deco--baixo {
  bottom: 27%;
  left: -15px;
  transform: scaleX(-1) rotate(-12deg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .blog-header-inner { padding: 16px 24px; }
  .blog-listagem { padding: 40px 24px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .blog-autora { flex-direction: column; text-align: center; }
  .blog-autora-foto { margin: 0 auto; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
}
