/* Preço Brasil — preco.info */
:root {
  --primary: #7F5539;
  --accent: #B08968;
  --bg: #FAF3EA;
  --text: #3E2D21;
  --muted: #D4A373;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(62, 45, 33, 0.1);
  --shadow-lg: 0 4px 16px rgba(62, 45, 33, 0.14);
  --radius: 6px;
  --container: 1140px;
  --gap: 0.75rem;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--muted);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

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

.logo span { color: var(--accent); }

.nav-desktop { display: none; }

.nav-desktop ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.menu-toggle {
  background: none;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.85rem;
}

.menu-toggle:hover { background: var(--bg); }

/* Mobile drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(62, 45, 33, 0.45);
  z-index: 200;
}

.drawer-overlay.is-open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 201;
  transition: right 0.3s ease;
  padding: 1.5rem;
  overflow-y: auto;
}

.drawer.is-open { right: 0; }

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  margin-bottom: 1rem;
}

.drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-nav a {
  display: block;
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg);
}

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

/* Hero carousel */
.hero-carousel {
  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  display: none;
  position: relative;
}

.hero-slide.is-active { display: block; }

.hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(62, 45, 33, 0.85));
  padding: 2rem 1.25rem 1rem;
  color: var(--white);
}

.hero-caption h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.hero-caption p { font-size: 0.85rem; opacity: 0.9; }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.hero-nav:hover { background: var(--white); }
.hero-prev { left: 0.75rem; }
.hero-next { right: 0.75rem; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

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

.card-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.card-body { padding: 0.85rem; }

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0.35rem 0;
}

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

.card-meta {
  font-size: 0.8rem;
  color: var(--accent);
}

.card-excerpt {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  color: var(--text);
  opacity: 0.85;
}

/* Vertical cards feed */
.feed-vertical {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

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

.feed-vertical .card-img-wrap { overflow: hidden; }

@media (min-width: 600px) {
  .feed-vertical .card {
    grid-template-columns: 200px 1fr;
  }
}

/* Article stream layout */
.main-content { padding: 1rem 0 2rem; }

.section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.35rem;
  margin-bottom: 0.85rem;
}

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.article-body p { margin-bottom: 1rem; }
.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--primary);
}
.article-body ul, .article-body ol {
  margin: 0 0 1rem 1.25rem;
}
.article-body li { margin-bottom: 0.35rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }

.tag {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sidebar */
.sidebar { }

.author-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
}

.author-widget img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.65rem;
}

.author-widget h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-widget .role {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.author-widget p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Author footer note */
.author-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.author-note img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-note strong { display: block; margin-bottom: 0.15rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
}

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

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

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

.page-content h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.page-content h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
}

.page-content p { margin-bottom: 0.85rem; }
.page-content ul, .page-content ol { margin: 0 0 0.85rem 1.25rem; }
.page-content li { margin-bottom: 0.3rem; }

/* Contact form */
.contact-form { max-width: 520px; }

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

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

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: var(--primary);
}

.form-notice {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--bg);
  padding: 1.5rem 0 1rem;
  margin-top: 1rem;
}

.footer-stack { text-align: center; }

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--bg);
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-meta {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.cookie-note {
  font-size: 0.75rem;
  opacity: 0.7;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(250, 243, 234, 0.25);
  line-height: 1.45;
}

.cookie-note a { color: var(--bg); text-decoration: underline; }

/* Articles grid page */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

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

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

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-caption h2 { font-size: 1.65rem; }
  .article-header h1 { font-size: 2.1rem; }
}

@media (min-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
