/* Trilha Carreira — carreirabr.digital */
:root {
  --primary: #334155;
  --accent: #60A5FA;
  --bg: #F5F8FC;
  --text: #172033;
  --muted: #8A97AA;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 16px rgba(23, 32, 51, 0.08);
  --shadow-hover: 0 8px 24px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --line-height: 1.65;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
  color: var(--text);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

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

.header-top {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.header-meta {
  display: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.header-nav {
  padding: 0.65rem 0;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-pills a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-pills a:hover {
  color: var(--primary);
  background: var(--bg);
}

.nav-pills a.active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: inherit;
}

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

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

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

/* Hero — split-image-text */
.hero {
  padding: 2rem 0;
}

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

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

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

.hero-content h1 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Cards — shadowed, vertical-cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

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

.card-body {
  padding: 1.25rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: var(--text);
}

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

.card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

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

.byline-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

/* Editorial columns homepage */
.editorial-section {
  padding: 2.5rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.35rem;
  margin: 0;
}

.editorial-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.editorial-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.editorial-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-card .card-body {
  padding: 1.5rem;
}

.featured-card .card-title {
  font-size: 1.35rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-list .card {
  display: grid;
  grid-template-columns: 1fr;
}

.article-list .card-thumb {
  max-height: 200px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* Article — split-content-rail */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.article-main {
  min-width: 0;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

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

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Page content */
.page-content {
  padding: 2rem 0 3rem;
}

.page-content h1 {
  margin-bottom: 1rem;
}

.page-content .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.content-block {
  max-width: 720px;
}

.contact-form {
  max-width: 560px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  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;
}

/* Footer — three-column */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

/* Cookie — bottom-bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(23, 32, 51, 0.08);
  padding: 1rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.cookie-actions .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Utility */
.text-muted {
  color: var(--muted);
}

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

/* Breakpoint: 480px */
@media (min-width: 480px) {
  h1 { font-size: 2rem; }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .article-list .card {
    grid-template-columns: 200px 1fr;
  }

  .article-list .card-thumb {
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Breakpoint: 768px */
@media (min-width: 768px) {
  .header-meta {
    display: block;
  }

  .hero-split {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-columns {
    grid-template-columns: 8fr 4fr;
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-header h1 {
    font-size: 2.25rem;
  }

  .page-content h1 {
    font-size: 2rem;
  }
}

/* Breakpoint: 1024px */
@media (min-width: 1024px) {
  body {
    font-size: 1.0625rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .editorial-section {
    padding: 3rem 0;
  }

  .article-list .card {
    grid-template-columns: 280px 1fr;
  }

  .featured-card .card-title {
    font-size: 1.5rem;
  }
}
