/* Brelo Dados — data-light-newsroom / tech-blue-gray */
:root {
  --primary: #243B53;
  --accent: #00B4D8;
  --bg: #F4FAFC;
  --text: #102A43;
  --muted: #829AB1;
  --border: #D9E2EC;
  --white: #FFFFFF;
  --container: 960px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --shadow-subtle: 0 1px 3px rgba(16, 42, 67, 0.06);
  --transition: 0.2s ease;
}

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
}

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

/* ── Cookie top-strip ── */
.cookie-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.cookie-strip.is-visible {
  display: flex;
  transform: translateY(0);
}
.cookie-strip p { flex: 1; min-width: 200px; max-width: 640px; }
.cookie-strip a { color: var(--accent); text-decoration: underline; }
.cookie-strip__btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  transition: background var(--transition), color var(--transition);
}
.cookie-strip__btn:hover { background: var(--accent); color: var(--primary); }
body.cookie-active { padding-top: 3.25rem; }

/* ── Split-nav header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 900;
}
body.cookie-active .site-header { top: 3.25rem; }

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
  margin-right: auto;
}
.header-brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.header-brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.header-brand__tag {
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-nav a {
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-left: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.header-nav a:hover,
.header-nav a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  color: var(--primary);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition);
}

/* ── Vertical mobile drawer ── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  padding: 4rem 1.5rem 2rem;
  box-shadow: -4px 0 24px rgba(16, 42, 67, 0.12);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-drawer.is-open { right: 0; }
.mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 67, 0.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer__overlay.is-open { opacity: 1; visibility: visible; }
.mobile-drawer nav { display: flex; flex-direction: column; }
.mobile-drawer nav a {
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer nav a:hover { color: var(--accent); }
.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* ── Hero carousel (manual, no autoplay) ── */
.hero-section { padding: 2.5rem 0 1rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}
.hero-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
}
.hero-carousel__slide {
  min-width: 100%;
  position: relative;
}
.hero-carousel__slide img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-carousel__caption {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-carousel__caption .tag { margin-bottom: 0.5rem; }
.hero-carousel__caption h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}
.hero-carousel__caption h2 a { color: inherit; }
.hero-carousel__caption h2 a:hover { color: var(--accent); }
.hero-carousel__caption p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-carousel__controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}
.hero-carousel__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: border-color var(--transition), color var(--transition);
}
.hero-carousel__btn:hover { border-color: var(--accent); color: var(--accent); }
.hero-carousel__btn svg { width: 16px; height: 16px; }

.hero-carousel__dots {
  display: flex;
  gap: 0.375rem;
  padding: 0 1.5rem 1rem;
}
.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.hero-carousel__dot.is-active { background: var(--accent); }

.hero-aside {
  padding-left: 0.5rem;
}
.hero-aside__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero-aside h1 {
  font-size: 2.125rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-aside p {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 38ch;
}
.hero-aside__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}
.stat-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
}
.stat-card span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Bento grid ── */
.bento-section { padding: 2.5rem 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}
.section-header h2 { font-size: 1.5rem; }
.section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bento-grid .bento-item:nth-child(1) { grid-column: span 2; }
.bento-grid .bento-item:nth-child(4) { grid-column: span 2; }

.bento-item {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bento-item h3 { font-size: 1.0625rem; }
.bento-item h3 a { color: inherit; }
.bento-item h3 a:hover { color: var(--accent); }
.bento-item p { font-size: 0.875rem; color: var(--muted); }

/* ── Bracket-label tags ── */
.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tag::before { content: "["; margin-right: 2px; }
.tag::after { content: "]"; margin-left: 2px; }

/* ── Compact dense article list ── */
.article-list { list-style: none; }
.article-list li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.article-list li:last-child { border-bottom: none; }
.article-list__thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.article-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list__content h3 {
  font-size: 1rem;
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
}
.article-list__content h3 a { color: inherit; }
.article-list__content h3 a:hover { color: var(--accent); }
.article-list__meta {
  font-size: 0.8125rem;
  color: var(--muted);
}
.article-list__date {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Editorial-lines cards ── */
.editorial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}
.editorial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 0 0 2px 2px;
}

/* ── Article page: sidebar-article layout ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-size: 2rem;
  margin: 0.75rem 0 1rem;
}
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.article-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: 1.375rem;
  margin: 2rem 0 1rem;
}
.article-body h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--white);
  font-style: italic;
  color: var(--muted);
}

/* ── Sidebar author bio box ── */
.article-sidebar { position: sticky; top: 5rem; }
.author-bio {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.author-bio__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  margin: 0 auto 1rem;
  overflow: hidden;
  background: var(--bg);
}
.author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.author-bio__role {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.author-bio p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}

/* ── Page layouts ── */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); max-width: 60ch; }

.page-content {
  padding-bottom: 3rem;
  max-width: 720px;
}
.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.page-content p, .page-content li {
  margin-bottom: 1rem;
  color: var(--text);
}
.page-content ul, .page-content ol { margin-left: 1.5rem; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background: var(--white);
  color: var(--text);
  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; }

/* ── Subtle ghost button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── Stacked-links footer ── */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  align-items: start;
}
.about-grid img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ── 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); }
.mt-2 { margin-top: 2rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .header-brand { border-right: none; padding-right: 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-aside { padding-left: 0; }
  .hero-aside h1 { font-size: 1.625rem; }
  .hero-aside__stats { grid-template-columns: 1fr; }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid .bento-item:nth-child(1),
  .bento-grid .bento-item:nth-child(4) { grid-column: span 1; }

  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; order: -1; }
  .author-bio { text-align: left; display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: start; }
  .author-bio__avatar { margin: 0; }

  .article-list li { grid-template-columns: 56px 1fr; }
  .article-list__date { display: none; }

  .contact-grid, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
