/* Voz do Bairro — forest-sage neighborhood bulletin */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --forest: #2d4a30;
  --sage: #5a7a5c;
  --sage-light: #8fa892;
  --sage-pale: #e8f0e8;
  --sage-mist: #f4f7f4;
  --earth: #8b7355;
  --earth-light: #c4a882;
  --cream: #faf9f6;
  --ink: #1a2e1c;
  --ink-muted: #4a5f4c;
  --border: #c5d4c6;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1140px;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow: 0 2px 12px rgba(45, 74, 48, 0.08);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sage); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Stacked Header ── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--forest);
  padding: 28px 0 0;
}

.header-stack {
  text-align: center;
  padding-bottom: 20px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-tagline {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 6px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.header-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Category Tags Row Nav */
.nav-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--sage-pale);
  border-top: 1px solid var(--border);
}

.nav-tags a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-tags a:hover,
.nav-tags a.active {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--forest);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--forest);
  margin: 0 auto 16px;
}

/* ── Hero: Stacked Headlines (no image) ── */
.hero-stacked {
  padding: 48px 0 36px;
  background: linear-gradient(165deg, var(--sage-mist) 60%, var(--sage-pale) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-stacked .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 4px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.15;
  max-width: 820px;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ink-muted);
  font-style: italic;
  max-width: 680px;
  margin-top: 8px;
}

.hero-date {
  font-size: 0.8125rem;
  color: var(--earth);
  margin-top: 16px;
  font-weight: 600;
}

/* ── 8-col Asymmetric Grid ── */
.grid-asymmetric {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 24px;
  padding: 40px 0 56px;
}

.col-main { grid-column: 1 / 6; }
.col-side { grid-column: 6 / 9; }
.col-full { grid-column: 1 / 9; }
.col-5 { grid-column: 1 / 6; }
.col-3-right { grid-column: 6 / 9; }

/* ── Featured Story ── */
.featured-story {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-story .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sage-pale);
}

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

.featured-body {
  padding: 28px 32px 32px;
}

.card-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 10px;
}

.featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 14px;
}

.featured-body h2 a:hover { color: var(--sage); }

.featured-excerpt {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.card-meta .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.read-more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--earth);
}

.read-more:hover { color: var(--forest); }

/* ── Vertical Card Feed ── */
.feed-section {
  margin-top: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--sage);
  margin-bottom: 28px;
  display: inline-block;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vertical-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.vertical-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--sage-light);
}

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

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

.vertical-card-body {
  padding: 18px 20px 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vertical-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: 8px;
}

.vertical-card-body h3 a:hover { color: var(--sage); }

.vertical-card-body p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.vertical-card-body .card-meta {
  margin-top: 10px;
}

/* ── Sidebar (left-rail on articles) ── */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage-pale);
}

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

.sidebar-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--sage-pale);
  font-size: 0.9rem;
}

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

.sidebar-links a { font-weight: 500; }

.sidebar-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ── Article Page ── */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0 56px;
}

.article-sidebar { order: -1; }

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-hero-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

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

.article-content {
  font-size: 1.0625rem;
  color: var(--ink);
}

.article-content p {
  margin-bottom: 1.25em;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
  margin: 2em 0 0.75em;
}

.article-content blockquote {
  border-left: 4px solid var(--sage);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--sage-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-muted);
}

.article-author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: var(--sage-mist);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 40px;
}

.article-author-box .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.article-author-box strong {
  display: block;
  font-family: var(--font-display);
  color: var(--forest);
  margin-bottom: 4px;
}

.article-author-box span {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ── Page Content (about, legal, contact) ── */
.page-content {
  padding: 48px 0 64px;
  max-width: 760px;
}

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

.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--forest);
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest);
  margin: 2em 0 0.75em;
}

.page-content p,
.page-content li {
  margin-bottom: 1em;
  color: var(--ink);
}

.page-content ul {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.contact-info {
  background: var(--sage-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-info h3 {
  font-family: var(--font-display);
  color: var(--forest);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--forest);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  background: var(--white);
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* Articles listing */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 40px 0 56px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: var(--shadow); }

.article-card .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sage-pale);
}

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

.article-card .card-body { padding: 22px 24px 26px; }

.article-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: 10px;
}

/* ── Editorial Masthead Footer ── */
.site-footer {
  background: var(--forest);
  color: var(--sage-pale);
  padding: 48px 0 24px;
  margin-top: 24px;
}

.footer-masthead {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--sage-pale);
  font-size: 0.875rem;
  opacity: 0.9;
}

.footer-col a:hover { color: var(--white); opacity: 1; }

.footer-bottom {
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.7;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Cookie Bottom Bar ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--forest);
  color: var(--sage-pale);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

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

.cookie-bar p {
  font-size: 0.875rem;
  max-width: 600px;
  line-height: 1.5;
}

.cookie-bar a { color: var(--earth-light); text-decoration: underline; }

.cookie-bar .btn {
  background: var(--sage-light);
  color: var(--forest);
  flex-shrink: 0;
}

.cookie-bar .btn:hover { background: var(--white); }

/* ── Decorative flat shapes ── */
.shape-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-asymmetric { grid-template-columns: 1fr; }
  .col-main, .col-side, .col-full, .col-5, .col-3-right { grid-column: 1 / -1; }

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

  .article-sidebar { order: 0; }

  .vertical-card {
    grid-template-columns: 1fr;
  }

  .vertical-card .card-thumb { aspect-ratio: 16 / 9; }
  .vertical-card-body { padding: 18px 20px; }

  .articles-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .mobile-menu-btn { display: block; }

  .nav-tags {
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .nav-tags.open { display: flex; }
}

@media (max-width: 600px) {
  .header-meta { flex-direction: column; gap: 4px; }
  .hero-stacked { padding: 32px 0 24px; }
}
