/* Plano Central — brasiliabr.info
   Design: business-digest | high-contrast-bw | compact-news */

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f7;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-border: #dddddd;
  --color-accent: #c41e3a;
  --color-accent-hover: #a01830;
  --color-inverse: #ffffff;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
  --header-height: 64px;
  --header-height-shrink: 48px;
  --gap: 1.5rem;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 1rem 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

/* ── Compact Topbar Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-text);
  transition: all var(--transition);
}

.site-header.is-shrunk {
  box-shadow: var(--shadow);
}

.site-header.is-shrunk .header-inner {
  min-height: var(--header-height-shrink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  transition: min-height var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-header.is-shrunk .logo svg {
  width: 26px;
  height: 26px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-header.is-shrunk .logo-text {
  font-size: 1.0625rem;
}

.logo-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header.is-shrunk .logo-tagline {
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-text);
  border-radius: var(--radius);
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-inverse);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-inverse);
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-decoration: none;
}

.tag-politica { background: #111; color: #fff; }
.tag-urbanismo { background: #333; color: #fff; }
.tag-cultura { background: var(--color-accent); color: #fff; }
.tag-agenda { background: #555; color: #fff; }

/* ── Hero Split ── */
.hero-split {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-split .grid-12 {
  align-items: center;
}

.hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.hero-excerpt {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

/* ── Hero Grid Homepage ── */
.hero-grid {
  padding: 2rem 0;
}

.hero-grid .section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-text);
}

.featured-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.15);
  color: var(--color-text);
}

.featured-card .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
}

.featured-card .card-image img,
.featured-card .card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card .card-body {
  padding: 1.25rem;
}

.featured-card h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.featured-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* ── Article List Horizontal Rows ── */
.article-list {
  list-style: none;
  margin: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.article-row:first-child {
  padding-top: 0;
}

.article-row-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.article-row-thumb img,
.article-row-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row-content h3 {
  margin-bottom: 0.375rem;
}

.article-row-content h3 a {
  text-decoration: none;
}

.article-row-content h3 a:hover {
  color: var(--color-accent);
}

.article-row-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.article-row-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Sidebar Right Rail ── */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.sidebar-block {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-block h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-list {
  list-style: none;
  margin: 0;
}

.sidebar-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.sidebar-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-list a {
  text-decoration: none;
  font-weight: 600;
}

.sidebar-list .sidebar-date {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* ── Author Card ── */
.author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-text);
}

.author-avatar img,
.author-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Pull Quote Article ── */
.article-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--color-text);
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.25rem;
  max-width: 720px;
  margin-bottom: 1rem;
}

.article-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 1rem;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  max-width: 600px;
}

.article-body {
  font-size: 0.9375rem;
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.125rem;
}

.article-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.article-featured-image img,
.article-featured-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-text);
}

.related-articles h2 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

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

.related-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition);
}

.related-card:hover {
  transform: translateY(-2px);
  color: var(--color-text);
}

.related-card .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-card .card-body {
  padding: 1rem;
}

.related-card h3 {
  font-size: 0.9375rem;
}

/* ── Page Sections ── */
.page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

.content-section {
  padding: 2rem 0 3rem;
}

.content-section h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.content-section h2:first-child {
  margin-top: 0;
}

.prose {
  max-width: 720px;
}

.prose-wide {
  max-width: 800px;
}

/* ── Contact Form ── */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
}

.contact-info p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* ── Footer Two Column ── */
.site-footer {
  background: var(--color-text);
  color: var(--color-inverse);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--color-inverse);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ccc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  color: var(--color-inverse);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: #888;
}

.footer-links ul {
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.75rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Cookie Bottom Bar ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: var(--color-inverse);
  padding: 1rem 1.25rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-text a {
  color: var(--color-inverse);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-bar .btn-accent {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

.cookie-bar .btn-outline {
  color: var(--color-inverse);
  border-color: #666;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

.cookie-bar .btn-outline:hover {
  background: #333;
  color: var(--color-inverse);
  border-color: #333;
}

/* ── Feed Section ── */
.feed-section {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.feed-list .article-row {
  grid-template-columns: 140px 1fr;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.mb-2 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .col-8, .col-4 { grid-column: span 12; }
  .sidebar { position: static; }
  .hero-split .col-4 { order: -1; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-text);
    padding: 1rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .site-header.is-shrunk .main-nav {
    top: var(--header-height-shrink);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row-thumb {
    max-width: 280px;
  }

  h1 { font-size: 1.625rem; }
  .hero-content h1 { font-size: 1.75rem; }
  .article-header h1 { font-size: 1.75rem; }
  .pull-quote { font-size: 1.25rem; }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
