/* ============================================================
   PulseBR — Jornal Comunitário Digital
   Arquétipo: community-journal
   Paleta: branco-creme, verde-escuro, laranja-quente, cinza-ardósia
   Grid: coluna única com blocos temáticos, sem sidebar fixa
   ============================================================ */

:root {
  --bg:         #faf8f5;
  --surface:    #ffffff;
  --ink:        #2c2c2c;
  --muted:      #6b6b6b;
  --green:      #1e4d3b;
  --green-lt:   #2d6e54;
  --orange:     #d4500a;
  --orange-lt:  #e8621a;
  --sand:       #e8e2d9;
  --border:     #ddd8d0;
  --font-head:  'Georgia', 'Palatino Linotype', serif;
  --font-body:  'Trebuchet MS', 'Lucida Sans', Arial, sans-serif;
  --max-w:      1100px;
  --pad:        1.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; height: auto; }

/* ── TOPBAR ── */
.topbar {
  background: var(--green);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  padding: 0.35rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-date { letter-spacing: 0.04em; }
.topbar-links { display: flex; gap: 1.2rem; }
.topbar-links a { color: rgba(255,255,255,0.75); font-size: 0.72rem; }
.topbar-links a:hover { color: #fff; }

/* ── MASTHEAD ── */
.masthead {
  background: var(--surface);
  border-bottom: 4px solid var(--green);
  padding: 1.2rem var(--pad);
}

.masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.masthead-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-logo-img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.masthead-name {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.masthead-name em {
  color: var(--orange);
  font-style: normal;
}

.masthead-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.masthead-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.masthead-search input {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-right: none;
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--ink);
  border-radius: 2px 0 0 2px;
  width: 200px;
}

.masthead-search button {
  padding: 0.45rem 0.8rem;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  border-radius: 0 2px 2px 0;
}

/* ── NAV ── */
.site-nav {
  background: var(--green);
}

.site-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.site-nav a:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.6rem var(--pad);
  margin-left: auto;
}

/* ── CONTAINER ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── CAMPAIGN BLOCK ── */
#campaign-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  margin: 1.5rem 0;
  overflow: hidden;
}

.campaign-creative-wrap {
  width: 100%;
  background: #1a1a1a;
  overflow: hidden;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campaign-creative-wrap img {
  width: 100%;
  object-fit: cover;
  max-height: 400px;
}

.campaign-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  padding: 1rem 1.2rem;
  align-items: start;
}

.campaign-logo-col {
  grid-row: 1 / 4;
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
}

.campaign-logo-img {
  max-height: 36px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
}

.campaign-headline {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.campaign-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.campaign-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.campaign-cta:hover { background: var(--orange-lt); color: #fff; }

/* ── HOMEPAGE: TEMA DO DIA ── */
.tema-do-dia {
  background: var(--green);
  color: #fff;
  padding: 1.8rem var(--pad);
  margin: 1.5rem 0;
}

.tema-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}

.tema-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.7rem;
  max-width: 720px;
}

.tema-title a { color: #fff; }
.tema-title a:hover { color: rgba(255,255,255,0.8); }

.tema-excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

.tema-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.tema-author { color: rgba(255,255,255,0.85); font-weight: 600; }

/* ── BLOCOS TEMÁTICOS ── */
.bloco {
  margin: 2rem 0;
}

.bloco-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green);
}

.bloco-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bloco-link {
  font-size: 0.72rem;
  color: var(--orange);
  margin-left: auto;
  font-weight: 600;
}

.bloco-link:hover { color: var(--orange-lt); }

/* ── NOTÍCIA CARD ── */
.noticia-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.noticia-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.noticia-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.noticia-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.noticia-title a:hover { color: var(--orange); }

.noticia-excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.noticia-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── LISTA COMPACTA ── */
.lista-compacta {
  list-style: none;
}

.lista-compacta li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.lista-compacta li:last-child { border-bottom: none; }

.lista-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: right;
  font-family: var(--font-head);
}

.lista-text { flex: 1; }

.lista-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.lista-item-title a:hover { color: var(--orange); }

.lista-item-meta {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── FAIXA OPINIÃO ── */
.faixa-opiniao {
  background: var(--sand);
  padding: 1.5rem var(--pad);
  margin: 2rem 0;
}

.faixa-opiniao-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.faixa-opiniao-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.opiniao-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.opiniao-item {
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
}

.opiniao-item-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.opiniao-item-title a:hover { color: var(--orange); }

.opiniao-item-author {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── ARTICLE PAGE ── */
.article-wrap {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 var(--pad);
}

.art-section-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

.art-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.art-deck {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 0.9rem;
}

.art-byline {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.art-byline strong { color: var(--ink); }

.art-body p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.3rem;
  color: var(--ink);
}

.art-body h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.7rem;
  color: var(--green);
}

.art-body blockquote {
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  background: var(--sand);
  border-left: 4px solid var(--green);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

.art-author-box {
  background: var(--sand);
  padding: 1rem 1.2rem;
  margin-top: 2rem;
  border-top: 3px solid var(--green);
}

.art-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.art-author-bio {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── RELATED ── */
.related-section {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 var(--pad);
}

.related-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green);
}

.related-list { list-style: none; }
.related-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.related-list li:last-child { border-bottom: none; }
.related-list a:hover { color: var(--orange); }

/* ── STATIC PAGES ── */
.page-wrap {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 var(--pad);
}

.page-heading {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.page-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--green);
}

.prose p { font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.1rem; }
.prose h2 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--green); margin: 1.8rem 0 0.6rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.4rem; }
.prose li { font-size: 0.93rem; line-height: 1.65; margin-bottom: 0.3rem; }
.prose a { color: var(--orange); text-decoration: underline; }

/* ── CONTACT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 1.5rem 0;
}

.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-body);
}
.form-field textarea { min-height: 130px; resize: vertical; }

.btn-send {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-send:hover { background: var(--green-lt); }

/* ── ARTICLES LIST ── */
.arquivo-list { margin: 1.5rem 0; }
.arquivo-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.arquivo-item:last-child { border-bottom: none; }
.arquivo-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  padding-top: 0.2rem;
  min-width: 80px;
}
.arquivo-info { flex: 1; }
.arquivo-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.arquivo-title a:hover { color: var(--orange); }
.arquivo-meta { font-size: 0.72rem; color: var(--muted); }

/* ── FOOTER ── */
.site-footer {
  background: var(--green);
  color: rgba(255,255,255,0.7);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-about-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-about-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}

.footer-logo-img {
  max-height: 36px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.8rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .noticia-row { grid-template-columns: 1fr 1fr; }
  .opiniao-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav-inner { flex-wrap: wrap; }
  .site-nav a { display: none; }
  .site-nav a.active { display: block; }
  .site-nav.open a { display: block; width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: block; }
  .masthead-search { display: none; }
  .noticia-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .tema-title { font-size: 1.4rem; }
  .site-logo-img { max-height: 36px; }
  .topbar-links { display: none; }
}
