/* Alavancagem Brasil — business-digest / startup-charcoal */
:root {
  --primary: #1F2937;
  --accent: #F59E0B;
  --bg: #FAFAF8;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --container: 960px;
  --radius: 8px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

/* Cookie top strip */
.cookie-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.cookie-strip.is-visible { transform: translateY(0); }
.cookie-strip p { margin: 0; flex: 1; }
.cookie-strip a { color: var(--accent); text-decoration: underline; }

body.has-cookie { padding-top: 0; }
body.has-cookie.cookie-visible { padding-top: 44px; }

/* Header — logo left, nav right */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}

body.cookie-visible .site-header { top: 44px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--primary); }

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-desktop { display: flex; gap: var(--space-lg); }

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
}

/* Vertical mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--border);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav-drawer.is-open { transform: translateX(0); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  line-height: 1;
}

.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

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

/* Buttons — subtle ghost */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

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

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

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

/* Hero carousel — single, no autoplay */
.hero-carousel {
  position: relative;
  margin: var(--space-lg) 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) 0 0 var(--radius);
}

.carousel-caption {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-caption .tag {
  margin-bottom: var(--space-sm);
}

.carousel-caption h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

.carousel-caption p {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  font-size: 0.875rem;
}

.carousel-nav {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  gap: var(--space-xs);
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.carousel-dots {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-xl);
  display: flex;
  gap: var(--space-xs);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active { background: var(--accent); }

/* Tags — underline text */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Date format */
.date {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 8-col asymmetric grid */
.grid-8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-lg);
}

.col-5 { grid-column: span 5; }
.col-3 { grid-column: span 3; }
.col-8 { grid-column: span 8; }

/* Lead story */
.lead-story {
  margin: var(--space-xl) 0;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.lead-story .lead-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.lead-story .lead-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.lead-story h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: var(--space-sm) 0;
  font-weight: 700;
}

.lead-story .dek {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.lead-story .excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.lead-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

/* Article list — horizontal rows */
.article-feed { margin: var(--space-xl) 0; }

.article-feed h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

/* Cards — horizontal thumb */
.card-horizontal {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.card-horizontal:last-child { border-bottom: none; }

.card-horizontal .thumb {
  border-radius: var(--radius);
  overflow: hidden;
}

.card-horizontal .thumb img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
}

.card-horizontal h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

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

.card-horizontal p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
}

/* Editorial intro block */
.editorial-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.editorial-block h2 {
  font-size: 1.125rem;
  margin: 0 0 var(--space-md);
}

.editorial-block p {
  margin: 0 0 var(--space-md);
  font-size: 0.9375rem;
}

.editorial-block p:last-child { margin-bottom: 0; }

/* Article page — sidebar layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-2xl);
  margin: var(--space-xl) 0 var(--space-2xl);
}

.article-main h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: var(--space-sm) 0 var(--space-md);
}

.article-main .dek {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.article-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-body p {
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.article-body h2 {
  font-size: 1.125rem;
  margin: var(--space-xl) 0 var(--space-md);
}

.article-body blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--accent);
  background: var(--white);
  font-style: italic;
  color: var(--muted);
}

/* Sidebar — author widget only */
.sidebar-author {
  position: sticky;
  top: 80px;
}

.author-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
}

.author-widget img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  object-fit: cover;
}

.author-widget h3 {
  margin: 0 0 var(--space-xs);
  font-size: 0.9375rem;
}

.author-widget .role {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.author-widget p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  text-align: left;
}

/* Footer author note */
.article-footer-author {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.article-footer-author strong { color: var(--text); }

.updated-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-md);
}

/* Related articles */
.related-section {
  margin: var(--space-2xl) 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.related-section h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 var(--space-md);
}

/* Page headers */
.page-header {
  margin: var(--space-xl) 0 var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.5rem;
  margin: 0 0 var(--space-sm);
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Content pages */
.content-page {
  max-width: 680px;
  margin: var(--space-xl) auto var(--space-2xl);
}

.content-page h2 {
  font-size: 1.0625rem;
  margin: var(--space-xl) 0 var(--space-md);
}

.content-page p,
.content-page li {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.content-page ul {
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-xl);
}

.content-page p { margin: 0 0 var(--space-lg); }

/* Contact form */
.contact-form {
  margin-top: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--white);
}

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

/* Footer — stacked links */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--space-2xl);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.8125rem;
  color: #9CA3AF;
  margin-bottom: var(--space-xl);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

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

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

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid #374151;
  font-size: 0.75rem;
  color: #9CA3AF;
}

.footer-bottom a { color: var(--accent); }

/* Articles listing page */
.articles-page .article-feed { margin-top: var(--space-lg); }

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

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }

  .carousel-slide {
    grid-template-columns: 1fr;
  }

  .carousel-slide img {
    height: 180px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .grid-8 { grid-template-columns: 1fr; }
  .col-5, .col-3, .col-8 { grid-column: span 1; }

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

  .sidebar-author { position: static; }

  .card-horizontal {
    grid-template-columns: 100px 1fr;
  }

  .card-horizontal .thumb img {
    width: 100px;
    height: 70px;
  }

  .lead-story h1 { font-size: 1.375rem; }
}
