/* Impulso Cidade — sparkbr.click */
:root {
  --blue: #2563EB;
  --orange: #F97316;
  --bg: #F8FAFC;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --radius: 6px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 1280px;
  --nav-height: 72px;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}

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

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

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

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

/* Split Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.split-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

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

.brand-logo span { color: var(--blue); }

.brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--orange); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.menu-toggle { display: flex; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu a {
  color: var(--text);
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero / Featured Story */
.featured-hero {
  padding: 2.5rem 0 3rem;
}

.featured-grid {
  display: grid;
  gap: 2rem;
}

.featured-main {
  position: relative;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.featured-main img,
.featured-main .hero-svg {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.featured-content {
  padding: 1.75rem;
}

.featured-label {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.featured-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.featured-main h1 a { color: var(--text); }
.featured-main h1 a:hover { color: var(--blue); }

.featured-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-row strong { color: var(--text); }

@media (min-width: 900px) {
  .featured-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

/* Wide Magazine Grid */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--blue);
}

.section-header h2 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 600;
}

.magazine-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .magazine-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .magazine-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Mixed Newsroom Cards */
.card {
  background: var(--surface);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

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

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--blue); }

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

.card-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Newsroom Split */
.newsroom-split {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .newsroom-split { grid-template-columns: 2fr 1fr; }
}

.editorial-picks {
  background: var(--surface);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.editorial-picks h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.pick-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.pick-item:last-child { border-bottom: none; padding-bottom: 0; }

.pick-item h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.pick-item h4 a { color: var(--text); }
.pick-item h4 a:hover { color: var(--orange); }

.pick-item span { font-size: 0.8rem; color: var(--text-muted); }

/* Page layouts */
.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
}

.content-narrow {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.content-narrow h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.content-narrow h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.content-narrow p {
  margin-bottom: 1.25rem;
}

.content-narrow ul, .content-narrow ol {
  margin: 0 0 1.25rem 1.5rem;
}

.content-narrow li { margin-bottom: 0.5rem; }

/* Article page */
.article-header {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.article-deck {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--blue);
}

.article-featured-img {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-body {
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

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

.article-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  box-shadow: var(--shadow);
}

.author-bio {
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-bio img,
.author-bio svg { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }

.author-bio h3 { font-size: 1rem; margin-bottom: 0.35rem; }

.author-bio p { font-size: 0.9rem; color: var(--text-muted); }

.related-articles {
  background: var(--surface);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info {
  background: var(--surface);
  padding: 2rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}

.contact-info h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
}

.contact-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

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

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

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.btn:hover { background: var(--orange); color: #fff; }

/* Articles listing */
.articles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tag {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
}

.filter-tag.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .brand-logo { margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--orange);
}

.footer-col ul { list-style: none; }

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

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.1);
  padding: 1.25rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

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

.cookie-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 240px;
}

.cookie-actions { display: flex; gap: 0.5rem; }

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

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

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

.text-center { text-align: center; }

.updated-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
