/* Frete News — regional-press | practical-guides | muted-green */
:root {
  --primary: #386641;
  --accent: #A7C957;
  --bg: #F2F7F0;
  --text: #1B2E1A;
  --muted: #6B8F5E;
  --border: #C5D4BE;
  --white: #FFFFFF;
  --overlay: rgba(27, 46, 26, 0.72);
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Palatino Linotype", Palatino, Georgia, serif;
  --container: 960px;
  --radius: 2px;
  --space-xs: 0.35rem;
  --space-sm: 0.65rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

/* Double-row header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.site-logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.header-meta {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.header-meta time {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.header-bottom {
  padding: var(--space-xs) 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  list-style: none;
}

.main-nav a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero — full-width overlay */
.hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  background: var(--primary);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl) var(--space-md);
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 28ch;
  margin-bottom: var(--space-sm);
}

.hero-title a {
  color: var(--white);
}

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

.hero-excerpt {
  font-size: 0.95rem;
  max-width: 42ch;
  opacity: 0.9;
  line-height: 1.55;
}

.hero-meta {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  opacity: 0.8;
}

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

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

/* Magazine columns */
.magazine-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Editorial columns homepage */
.editorial-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.editorial-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.editorial-aside {
  border-left: 1px solid var(--border);
  padding-left: var(--space-lg);
}

/* Cards — bordered */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

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

.card-body {
  padding: var(--space-md);
}

.card-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

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

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

.card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.card-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Inline byline */
.byline {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.byline img,
.byline svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  margin-right: 0.25rem;
}

/* Section headings */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 2px solid var(--primary);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.page-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* Article layout — sidebar left */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.article-sidebar {
  order: -1;
}

.sidebar-block {
  margin-bottom: var(--space-lg);
}

.sidebar-block h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
  line-height: 1.4;
}

.sidebar-list a {
  color: var(--text);
}

.sidebar-list a:hover {
  color: var(--primary);
}

.sidebar-categories a {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  margin: 0 0.25rem 0.35rem 0;
  border-radius: var(--radius);
}

.sidebar-categories a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Article content */
.article-header {
  margin-bottom: var(--space-lg);
}

.article-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--muted);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.article-meta .updated {
  font-style: italic;
}

.article-hero-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius);
  background: var(--bg);
}

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

.article-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--primary);
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-xs);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-md) 1.25rem;
}

.article-body li {
  margin-bottom: var(--space-xs);
}

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

.article-body strong {
  font-weight: 700;
  color: var(--text);
}

/* Pull quote for magazine feel */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: var(--space-md) 0;
  margin: var(--space-lg) 0;
  line-height: 1.4;
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Buttons — outlined */
.btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

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

/* Static pages */
.static-page {
  padding: var(--space-xl) 0;
  max-width: 680px;
}

.static-page.wide {
  max-width: var(--container);
}

.static-body {
  font-size: 0.95rem;
  line-height: 1.7;
}

.static-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-lg) 0 var(--space-sm);
}

.static-body p {
  margin-bottom: var(--space-md);
}

.static-body ul {
  margin: 0 0 var(--space-md) 1.25rem;
}

.static-body li {
  margin-bottom: var(--space-xs);
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

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

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

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

.articles-grid .card:last-child {
  grid-column: 1 / -1;
  max-width: 50%;
}

/* Author bio box */
.author-box {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--space-xl);
}

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

.author-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.author-box .role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.author-box p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Footer — three column */
.site-footer {
  margin-top: auto;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-col h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.footer-col p,
.footer-col li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.footer-col li {
  margin-bottom: var(--space-xs);
}

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

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

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* Cookie bar — bottom */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--space-md);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 12px rgba(27, 46, 26, 0.08);
}

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

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

.cookie-text {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

.aside-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

/* Feed list — 7 items */
.feed-list {
  list-style: none;
}

.feed-list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

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

.feed-num {
  font-weight: 700;
  color: var(--accent);
  min-width: 1.25rem;
}

.feed-list a {
  color: var(--text);
  line-height: 1.35;
}

.feed-list a:hover {
  color: var(--primary);
}

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

  .header-bottom .main-nav {
    display: none;
    flex-direction: column;
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
  }

  .header-bottom .main-nav.is-open {
    display: flex;
  }

  .editorial-columns,
  .article-layout,
  .magazine-columns,
  .articles-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .editorial-aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
  }

  .article-sidebar {
    order: 0;
  }

  .articles-grid .card:last-child {
    max-width: 100%;
  }

  .grid-8 > * {
    grid-column: span 8;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 240px;
  }

  .hero img,
  .hero svg {
    min-height: 240px;
  }
}
