:root {
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --surface-2: #EAE5DA;
  --ink: #12283B;
  --ink-muted: #5E6B76;
  --accent: #B5692B;
  --accent-ink: #FFFFFF;
  --border: rgba(18, 40, 59, 0.14);
  --shadow: 0 1px 2px rgba(18, 40, 59, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1A26;
    --surface: #16283A;
    --surface-2: #1D3348;
    --ink: #F4F1EA;
    --ink-muted: #9CAAB4;
    --accent: #D98A4A;
    --accent-ink: #16283A;
    --border: rgba(244, 241, 234, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1A26;
  --surface: #16283A;
  --surface-2: #1D3348;
  --ink: #F4F1EA;
  --ink-muted: #9CAAB4;
  --accent: #D98A4A;
  --accent-ink: #16283A;
  --border: rgba(244, 241, 234, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding-inline: 24px;
}
h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
p { line-height: 1.65; color: var(--ink-muted); margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin-inline: auto; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  background: #12283B;
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  z-index: 10;
}
header.site nav.links a { color: rgba(244, 241, 234, 0.75); }
header.site nav.links a:hover, header.site nav.links a[aria-current="page"] { color: #D98A4A; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 84px; width: auto; }
nav.links { display: flex; gap: 24px; flex-wrap: wrap; }
nav.links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}
nav.links a:hover { color: var(--accent); }
nav.links a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero {
  padding-block: 72px 56px;
  display: grid;
  gap: 24px;
  max-width: 720px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; }
.hero .lead { font-size: 18px; max-width: 52ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }

/* Page header (non-home pages) */
.page-head { padding-block: 48px 40px; max-width: 720px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.16; }
.page-head .lead { font-size: 17px; margin-top: 14px; max-width: 52ch; }

/* Section shell */
section { padding-block: 56px; border-top: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3vw, 30px); }
.section-head .lead { max-width: 44ch; }

/* Diferenciais */
.diff-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.diff-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.diff-row .num {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.diff-row h3 { font-size: 17px; margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 600; }
.diff-row p { font-size: 15px; }

/* Cards (serviços, guias, análises) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { font-size: 18px; font-family: 'Source Serif 4', serif; }
.card p { font-size: 14.5px; }
.card .tag {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Listas de artigo (Serviços detalhado, Guias, Análises) */
.entry-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.entry {
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 8px;
}
.entry h3 { font-size: 19px; }
.entry p { font-size: 15px; max-width: 68ch; }
.entry .tag { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* Sobre */
.sobre { max-width: 640px; display: grid; gap: 16px; }
.creds { display: grid; gap: 10px; margin-top: 8px; }
.cred-item { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); }
.cred-item .dot { color: var(--accent); }

/* Contato */
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.contact-card h3 { font-size: 17px; }
.contact-card .value { font-size: 15px; color: var(--ink); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-block: 32px 40px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.footer-links a { font-size: 13px; color: var(--ink-muted); text-decoration: underline; }

.draft-flag {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 16px;
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .contact-options { grid-template-columns: 1fr; }
  nav.links { gap: 14px; }
  .brand img { height: 60px; }
}
