/* Venda Direta — vendasbr.info */
:root {
  --primary: #102A43;
  --accent: #38BDF8;
  --bg: #F1F7FC;
  --text: #0B1F33;
  --muted: #7B98B3;
  --white: #ffffff;
  --line: rgba(16, 42, 67, 0.12);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --container: 960px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 36px;
  --space-xl: 56px;
  --space-xxl: 88px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header — split-nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.85rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  margin: 4px 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Category tags row */
.category-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
}

.category-nav .container {
  display: flex;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 0;
}

.tag::before { content: "["; margin-right: 2px; }
.tag::after { content: "]"; margin-left: 2px; }

.tag:hover,
.tag.is-active {
  color: var(--accent);
}

/* Buttons — subtle-ghost */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

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

/* Hero carousel-single */
.hero-section {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-carousel {
  position: relative;
}

.hero-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-slide {
  min-width: 100%;
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}

.hero-slide img,
.hero-slide .hero-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-slide-body {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.hero-slide-body h2 {
  margin-bottom: var(--space-sm);
}

.hero-slide-body h2 a {
  text-decoration: none;
  color: inherit;
}

.hero-slide-body h2 a:hover {
  color: var(--accent);
}

.hero-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  justify-content: flex-end;
}

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

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

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: auto;
}

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

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

/* Bento grid — homepage */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xxl);
}

.bento-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
}

.bento-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 0 0 2px 2px;
}

.bento-wide { grid-column: span 8; }
.bento-narrow { grid-column: span 4; }
.bento-half { grid-column: span 6; }
.bento-full { grid-column: span 12; }

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}

/* Compact dense article list */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 0;
}

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

.article-list a {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-sm);
  align-items: start;
}

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

.article-list img,
.article-list .thumb-wrap {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.article-list h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin: 0 0 4px;
  line-height: 1.3;
}

.article-list .meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Editorial lines cards */
.editorial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editorial-card img,
.editorial-card .card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.editorial-card-body {
  padding: var(--space-md);
  border-top: 1px solid var(--line);
}

.editorial-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.editorial-card h3 a {
  text-decoration: none;
  color: inherit;
}

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

/* Author card with avatar */
.author-card {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.author-card img,
.author-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  object-fit: cover;
}

.author-card h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.author-card .role {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.author-card p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text);
}

/* Sidebar article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-xxl);
  align-items: start;
}

.article-main {
  max-width: 640px;
}

.article-header {
  margin-bottom: var(--space-lg);
}

.article-header .tag {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.article-lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.55;
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.article-body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-body ul,
.article-body ol {
  margin-bottom: 1em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-updated {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.sidebar-widget {
  position: sticky;
  top: 100px;
}

.related-block {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.related-block h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

/* Page hero (inner pages) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Articles listing page */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xxl);
}

.articles-grid .editorial-card:nth-child(3) {
  border-radius: var(--radius-sm);
}

.articles-grid .editorial-card:nth-child(5) .card-img {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Contact form */
.contact-form {
  max-width: 520px;
  margin-top: var(--space-lg);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
}

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

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

/* Legal / prose pages */
.prose {
  max-width: 680px;
  padding-bottom: var(--space-xxl);
}

.prose h2 {
  margin-top: var(--space-lg);
}

.prose ul {
  padding-left: 1.4em;
}

/* Footer — stacked-links */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-lg);
  max-width: 40ch;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.cookie-note {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.5;
}

.cookie-note button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
  margin-left: 6px;
}

.cookie-note.is-hidden {
  display: none;
}

/* About page asymmetric blocks */
.about-blocks {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.about-block {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.about-block:first-child {
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
}

.about-block:last-child {
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-lg);
  margin-top: var(--space-xl);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  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-muted { color: var(--muted); }

.mb-md { margin-bottom: var(--space-md); }
.mt-md { margin-top: var(--space-md); }

.footer-inline-link {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-slide.is-active {
    grid-template-columns: 1fr;
  }

  .hero-slide img,
  .hero-slide .hero-visual {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 220px;
  }

  .bento-wide,
  .bento-narrow,
  .bento-half {
    grid-column: span 12;
  }

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

  .sidebar-widget {
    position: static;
  }

  .about-blocks {
    grid-template-columns: 1fr;
  }

  .about-block:last-child {
    margin-top: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-md);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .header-inner {
    position: relative;
  }

  .hero-section {
    padding-top: var(--space-lg);
  }

  .bento-grid {
    gap: var(--space-sm);
  }
}
