/* Múltiplo Brasil — multiplobr.info */
/* Design: data-light-newsroom | deep-navy | 12-col-classic | 1140px */

:root {
  --primary: #132A4A;
  --accent: #4F83CC;
  --bg: #F3F7FC;
  --text: #0D1B2A;
  --muted: #6B87A5;
  --white: #FFFFFF;
  --border: #D4E0ED;
  --radius-soft: 6px;
  --container: 1140px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", monospace;
  --shadow-flat: 0 1px 3px rgba(19, 42, 74, 0.08);
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul,
ol {
  list-style: none;
}

/* Container & Grid */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Typography — mixed-newsroom */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.data-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header — double-row-nav */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.brand-name:hover {
  color: var(--white);
  opacity: 0.9;
}

.brand-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.header-nav {
  padding: 10px 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-list a.active {
  background: var(--accent);
  color: var(--white);
}

.nav-list a.active:hover {
  color: var(--white);
  background: #3d6fb0;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-soft);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

/* Main */
main {
  flex: 1;
  padding: 40px 0 60px;
}

/* Hero — text-only-lead */
.hero-lead {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.hero-lead h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  max-width: 800px;
}

.hero-lead .lead {
  max-width: 680px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Buttons — outlined */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

.btn-outlined {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outlined:hover {
  background: var(--accent);
  color: var(--white);
}

/* Tags — uppercase-small */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 131, 204, 0.1);
  padding: 3px 8px;
  border-radius: 3px;
}

/* Cards — flat */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-flat);
  overflow: hidden;
}

.card-body {
  padding: 20px;
}

/* Image — 16:9-crop */
.img-crop-16-9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--border);
}

.img-crop-16-9 img,
.img-crop-16-9 svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage — editorial-columns */
.editorial-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.column-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.column-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 20px;
}

/* Article list — vertical-cards */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.feed-card:hover {
  box-shadow: 0 4px 12px rgba(19, 42, 74, 0.12);
}

.feed-card .feed-thumb {
  min-height: 112px;
}

.feed-card .feed-content {
  padding: 16px 20px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.feed-card h3 {
  font-size: 1.1rem;
}

.feed-card h3 a {
  color: var(--primary);
}

.feed-card h3 a:hover {
  color: var(--accent);
}

.feed-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Author — inline-byline */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.byline img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.byline a {
  color: var(--primary);
  font-weight: 600;
}

/* Sidebar widgets */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  padding: 20px;
}

.widget h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--primary);
}

.widget-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list a {
  color: var(--text);
}

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

.data-highlight {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.data-highlight-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.data-highlight-spaced {
  margin-top: 16px;
}

.widget-para-spaced {
  margin-top: 12px;
}

/* Article — split-content-rail */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 2.25rem;
  margin: 12px 0 16px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content p {
  margin-bottom: 1.25em;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.75em;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
}

.article-content ul,
.article-content ol {
  margin: 1em 0 1.25em 1.5em;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: rgba(79, 131, 204, 0.06);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary);
}

.article-figure {
  margin: 2em 0;
}

.article-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* Right-rail sidebar */
.sidebar-rail {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Page content — generic */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-content {
  max-width: 760px;
}

.page-content p {
  margin-bottom: 1.25em;
  line-height: 1.7;
}

.page-content h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.75em;
}

.page-content ul,
.page-content ol {
  margin: 1em 0 1.25em 1.5em;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.5em; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin-top: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}

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

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

/* Articles listing page */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-preview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-preview:last-child {
  border-bottom: none;
}

.article-preview h2 {
  font-size: 1.5rem;
  margin: 8px 0 12px;
}

.article-preview h2 a {
  color: var(--primary);
}

.article-preview h2 a:hover {
  color: var(--accent);
}

/* Footer — three-column */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Cookie — bottom-bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-soft);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}

.btn-cookie-accept:hover {
  background: #3d6fb0;
  border-color: #3d6fb0;
}

.btn-cookie-decline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-soft);
  font-size: 0.875rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}

.btn-cookie-decline:hover {
  border-color: var(--white);
}

/* 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(--muted);
}

.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .editorial-columns {
    grid-template-columns: 1fr;
  }

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

  .sidebar-rail {
    position: static;
  }

  .feed-card {
    grid-template-columns: 1fr;
  }

  .feed-card .feed-content {
    padding: 0 16px 16px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  h1 { font-size: 1.75rem; }
  .hero-lead h1 { font-size: 1.85rem; }

  .menu-toggle {
    display: block;
  }

  .header-nav .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0;
  }

  .header-nav .nav-list.open {
    display: flex;
  }

  .header-top .container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-meta {
    display: none;
  }

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

  .cookie-actions {
    justify-content: flex-end;
  }
}
