/* ============================================================
   Davison Digital — Sistema de design
   Baseado na apresentação institucional (PPTX):
   preto-marrom profundo + dourado/bronze + creme, Lora + Inter
   ============================================================ */

:root {
  --dark: #14130f;
  --dark-panel: #37342c;
  --gold: #9c7a45;
  --gold-dark: #7c6136;
  --white: #ffffff;
  --warm-gray: #6e6b66;
  --warm-gray-light: #bdb9af;
  --cream: #f6f4f0;
  --cream-panel: #ede9e0;

  --font-heading: "Lora", "Cambria", Georgia, serif;
  --font-body: "Inter", "Calibri", Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

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

/* ---------- Sections: sanduíche claro/escuro ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark .kicker { color: var(--gold); }
.section-dark p, .section-dark .muted { color: var(--warm-gray-light); }
.section-light { background: var(--cream); color: var(--dark); }
.section-light p, .section-light .muted { color: var(--warm-gray); }
.section-panel-dark { background: var(--dark-panel); }

/* ---------- Kicker / etiqueta ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand-word {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--white);
  text-transform: uppercase;
}
.brand-word span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14px;
  color: var(--warm-gray-light);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px !important;
  letter-spacing: .02em;
}
.nav-cta:hover { background: var(--gold); color: var(--dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-outline-dark { border-color: rgba(20,19,15,.3); color: var(--dark); }
.btn-outline-dark:hover { border-color: var(--dark); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; }
.hero h1 { font-size: 52px; max-width: 780px; }
.hero .lede { font-size: 18px; max-width: 620px; margin-bottom: 32px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--warm-gray-light);
  margin-bottom: 28px;
}
.section-light .hero-tag { border-color: rgba(20,19,15,.15); color: var(--gold-dark); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Numbered items ---------- */
.numbered { display: flex; gap: 20px; }
.numbered .num {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gold);
  min-width: 40px;
  flex-shrink: 0;
}
.numbered h4 { font-size: 17px; margin-bottom: 8px; }
.numbered .muted { font-size: 14px; margin: 0; }

/* ---------- Stat callouts ---------- */
.stat .value {
  font-family: var(--font-heading);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.section-light .stat .value { color: var(--gold-dark); }
.stat .label { font-size: 13px; color: var(--warm-gray-light); max-width: 220px; }
.section-light .stat .label { color: var(--warm-gray); }

/* ---------- Cards ---------- */
.card {
  background: var(--dark-panel);
  padding: 32px 28px;
  border-radius: var(--radius);
}
.section-light .card { background: var(--white); border: 1px solid #e6e2d8; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card .muted { font-size: 14px; margin: 0; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(156,122,69,.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 18px;
}

/* ---------- Badge path cards (home hub) ---------- */
.path-card {
  border: 1px solid rgba(255,255,255,.14);
  padding: 44px 36px;
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
  display: block;
}
.path-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.path-card h3 { font-size: 26px; margin-bottom: 12px; }
.path-card .muted { font-size: 15px; }
.path-card .go { margin-top: 22px; color: var(--gold); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Divider quote ---------- */
.pull-quote {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.5;
  max-width: 720px;
}

/* ---------- Bar chart (simple, CSS-based) ---------- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 220px;
  margin: 32px 0 16px;
}
.bar-chart .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}
.bar-chart .bar {
  width: 100%;
  max-width: 46px;
  background: var(--warm-gray-light);
  border-radius: 3px 3px 0 0;
}
.bar-chart .bar.highlight { background: var(--gold); }
.bar-chart .bar-value { font-size: 12px; color: var(--warm-gray); margin-bottom: 6px; }
.bar-chart .bar-year { font-size: 12px; color: var(--warm-gray); margin-top: 10px; }

/* ---------- Table-ish list (editoras/autores) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.tag-list span {
  font-size: 14px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.section-light .tag-list span { border-bottom-color: rgba(20,19,15,.1); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--warm-gray-light); padding: 72px 0 32px; }
.footer .grid { grid-template-columns: 2fr 1fr 1fr; margin-bottom: 56px; }
.footer h5 { color: var(--white); font-family: var(--font-body); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer .brand img { height: 30px; }
.footer p.muted { font-size: 14px; max-width: 320px; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; margin-bottom: 8px; color: var(--warm-gray); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d8d3c8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--dark);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.radio-group { display: flex; gap: 24px; margin-bottom: 24px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.eyebrow-divider { height: 1px; background: rgba(255,255,255,.08); margin: 96px 0 0; }
.section-light .eyebrow-divider { background: rgba(20,19,15,.08); }

/* ---------- Blog intro (três colunas, centralizado) ---------- */
.blog-intro {
  columns: 3;
  column-gap: 44px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-intro .lede {
  max-width: none;
  break-inside: avoid;
  margin-bottom: 1em;
  font-size: 16px;
}
@media (max-width: 900px) {
  .blog-intro { columns: 2; max-width: 700px; }
}
@media (max-width: 640px) {
  .blog-intro { columns: 1; max-width: 480px; }
}

/* ---------- Blog posts ---------- */
.blog-post-grid { display:flex; flex-direction:column; align-items:center; gap:48px; }
.blog-post { width:100%; max-width:540px; display:flex; flex-direction:column; align-items:center; }
.blog-post-comment { font-family: var(--font-heading); font-size:18px; margin-bottom:16px; text-align:center; }
.blog-post-link { width:100%; display:block; }
.blog-post-link img { width:100%; height:220px; object-fit:cover; margin-bottom:16px; }
.blog-post iframe, .blog-post .instagram-media, .blog-post .fb-post { max-width:100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 32px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .nav-links { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--dark); flex-direction: column; align-items: flex-start; padding: 32px 28px; gap: 22px; display: none; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer .grid { grid-template-columns: 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .bar-chart { height: 160px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { justify-content: center; }
}
