:root {
  --bg: rgb(250, 248, 242);
  --card-bg: #ffffff;
  --text: rgb(34, 32, 27);
  --muted: rgb(86, 81, 74);
  --accent: rgb(179, 146, 77);
  --border: rgba(34, 32, 27, 0.12);
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Mulish", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

h1, h2 {
  font-family: var(--font-heading);
}

header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.4rem;
  margin: 0;
}

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

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

.controls input,
.controls select {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--card-bg);
  color: var(--text);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #eee;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.badge {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: capitalize;
}

.card-body h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.state-msg {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 0.95rem;
}

.article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.article img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
  background: #eee;
}

.article h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 600;
}

.article .article-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.article .content {
  line-height: 1.7;
  font-size: 1rem;
  white-space: pre-wrap;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* WhatsApp bar */
.whatsapp-bar {
  background: rgb(34, 32, 27);
  color: rgba(255,255,255,0.7);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.whatsapp-btn:hover { background: #1fb855; }

/* Footer */
.site-footer {
  background: rgb(34, 32, 27);
  color: rgba(255,255,255,0.65);
  margin-top: 60px;
  padding: 48px 24px 32px;
  font-size: 0.88rem;
  font-family: var(--font-body);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.footer-brand p { line-height: 1.6; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-title {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col p { margin: 0; line-height: 1.6; }
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  transition: border-color 0.15s, color 0.15s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* Botão Voltar para o site — no header */
.back-to-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s;
}
.back-to-site-btn:hover { background: var(--accent); }
@media (max-width: 600px) {
  .back-to-site-btn { font-size: 12px; padding: 8px 12px; }
}
