/* ============================================================
   PureBR – Folha Digital  |  Main Stylesheet
   Archetype: modern-magazine
   ============================================================ */

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1a1a2e;
  --ink-soft:   #3d3d5c;
  --gold:       #c9a84c;
  --gold-light: #f0d98a;
  --cream:      #f9f6ef;
  --white:      #ffffff;
  --border:     #ddd8cc;
  --accent-red: #c0392b;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Helvetica Neue', Arial, sans-serif;
  --max-w:      1180px;
  --col-gap:    28px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Top bar ───────────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: #aaa;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--gold); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--ink);
  padding: 14px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
}
.site-logo img,
.site-logo [data-logo-fallback] {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 640px) {
  .site-logo img,
  .site-logo [data-logo-fallback] { max-height: 32px; }
}

/* ── Navigation ────────────────────────────────────────────── */
.main-nav {
  background: var(--ink);
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.main-nav ul li a {
  display: block;
  color: #e8e8e8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li a.active { background: var(--gold); color: var(--ink); }

/* ── Campaign block ────────────────────────────────────────── */
.campaign-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 28px 0;
  overflow: hidden;
}
.campaign-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}
@media (max-width: 768px) {
  .campaign-inner { grid-template-columns: 1fr; }
}
.campaign-meta {
  background: var(--ink);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.campaign-meta .camp-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}
.campaign-meta .camp-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}
.campaign-meta h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.3;
}
.campaign-meta p {
  font-size: 0.88rem;
  color: #c0bfbf;
  margin-bottom: 0;
}
.campaign-meta .camp-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 3px;
  align-self: flex-start;
  transition: background 0.2s;
}
.campaign-meta .camp-cta:hover { background: var(--gold-light); }
.campaign-creative {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #111;
}
.campaign-creative img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section headings ──────────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 20px;
  display: inline-block;
}

/* ── Article grid ──────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.card-thumb {
  background: #ddd;
  height: 180px;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--ink);
}
.card-title a:hover { color: var(--gold); }
.card-excerpt {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.card-meta {
  font-size: 0.72rem;
  color: #999;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Lead story ────────────────────────────────────────────── */
.lead-story {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--col-gap);
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .lead-story { grid-template-columns: 1fr; }
}
.lead-image { background: #ccc; min-height: 300px; overflow: hidden; }
.lead-image img { width: 100%; height: 100%; object-fit: cover; }
.lead-content { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.lead-content .card-category { margin-bottom: 10px; }
.lead-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 14px;
}
.lead-title a:hover { color: var(--gold); }
.lead-excerpt { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 16px; }
.read-more {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
}

/* ── Sidebar layout ────────────────────────────────────────── */
.content-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--col-gap);
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .content-sidebar { grid-template-columns: 1fr; }
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.88rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a:hover { color: var(--gold); }

/* ── Article page ──────────────────────────────────────────── */
.article-header { margin-bottom: 28px; }
.article-header .card-category { margin-bottom: 10px; }
.article-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
.article-byline {
  font-size: 0.82rem;
  color: #888;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 28px;
}
.article-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 720px;
}
.article-body h2 {
  font-size: 1.4rem;
  margin: 28px 0 12px;
}
.article-body h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
}
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  margin: 24px 0;
  background: #f5f0e8;
  font-style: italic;
  color: var(--ink-soft);
}
.author-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px 24px;
  margin-top: 36px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: bold;
}
.author-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.author-info p { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0; }

/* ── Page content (about, legal, etc.) ────────────────────── */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0 40px;
  margin-bottom: 40px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.page-hero p { font-size: 0.95rem; color: #bbb; max-width: 600px; }

.page-content {
  max-width: 820px;
  margin: 0 auto 60px;
}
.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--ink);
}
.page-content h3 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}
.page-content p { font-size: 0.95rem; line-height: 1.75; }
.page-content ul { font-size: 0.95rem; }

/* ── Contact form ──────────────────────────────────────────── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--gold); color: var(--ink); }

/* ── Articles listing page ─────────────────────────────────── */
.articles-list-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--white);
  margin-bottom: 2px;
}
@media (max-width: 480px) {
  .articles-list-item { grid-template-columns: 1fr; }
}
.list-thumb { height: 90px; overflow: hidden; border-radius: 3px; background: #ddd; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-body { padding: 0 16px 0 0; }
.list-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.list-excerpt { font-size: 0.82rem; color: var(--ink-soft); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #aaa;
  padding: 48px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #333;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .footer-logo {
  max-height: 36px;
  width: auto;
  margin-bottom: 14px;
  object-fit: contain;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.6; color: #888; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.82rem; color: #888; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: #666;
}
.footer-bottom a { color: #777; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Cookie banner ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #ddd;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 999;
  font-size: 0.82rem;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
}
.cookie-banner a { color: var(--gold); }
.cookie-accept {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept:hover { background: var(--gold-light); }

/* ── Utilities ─────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
