/* ──────────────────────────────────────────
   NEXOR AI · Blog — estilos base compartilhados
   Usado pelas páginas auxiliares (privacidade,
   termos, diagnostico, 404). O index.html ainda
   mantém estilos inline próprios da home.
   ────────────────────────────────────────── */

:root {
  --gold:       #B8892A;
  --gold-lt:    #D4A94A;
  --gold-dk:    #2E2105;
  --gold-soft:  rgba(184,137,42,0.10);
  --cream:      #FDFBF3;
  --paper:      #FFFEF8;
  --ink:        #18160F;
  --ink-2:      #3A3520;
  --muted:      #7A7462;
  --line:       rgba(46,33,5,0.10);
  --line-lt:    rgba(46,33,5,0.06);
  --shadow-sm:  0 4px 16px rgba(46,33,5,0.07);
  --shadow-md:  0 12px 36px rgba(46,33,5,0.10);
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold-dk); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--gold-dk); color: var(--cream);
  padding: 8px 14px; z-index: 99999;
  text-decoration: underline;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Top strip */
.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-dk);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 8px;
}
.top-strip .left, .top-strip .right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top-strip a { opacity: .75; transition: opacity .15s; text-decoration: none; }
.top-strip a:hover { opacity: 1; color: var(--gold); }
.top-strip .sep { opacity: .3; }

/* Page header */
.page-head {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.page-head .crumbs {
  font-size: .82rem; color: var(--muted);
  display: flex; gap: 8px; align-items: center; margin-bottom: 14px;
}
.page-head .crumbs a { text-decoration: none; }
.page-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
}
.page-head .deck {
  margin-top: 14px;
  font-size: 1.05rem; line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
}
.page-head .meta {
  margin-top: 14px;
  font-size: .82rem; color: var(--muted);
}

/* Prose */
.prose { max-width: 70ch; line-height: 1.75; font-size: 1.02rem; color: var(--ink-2); }
.prose p { margin: 1em 0; }
.prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 800;
  line-height: 1.15; letter-spacing: -.015em;
  margin: 2em 0 .6em;
  color: var(--ink);
}
.prose h3 {
  font-size: 1.1rem; font-weight: 700;
  margin: 1.5em 0 .4em; color: var(--ink);
}
.prose ul, .prose ol {
  padding-left: 1.4rem; margin: 1em 0;
  display: flex; flex-direction: column; gap: .4em;
}
.prose strong { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { color: #fff; }
.btn-outline {
  background: transparent; color: var(--gold-dk);
  border-color: var(--line);
}
.btn-outline:hover { background: var(--gold-soft); color: var(--gold-dk); }

/* Forms */
.form-card {
  margin-top: 8px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.form-row label {
  font-size: .82rem; font-weight: 600;
  color: var(--ink-2);
}
.form-row input,
.form-row select,
.form-row textarea {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font: inherit; font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--gold); }
.form-row .hint { font-size: .78rem; color: var(--muted); }
.form-feedback {
  margin-top: 12px; padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: .9rem; line-height: 1.5;
}
.form-feedback.success {
  background: rgba(184,137,42,0.08);
  color: var(--gold-dk);
  border: 1px solid rgba(184,137,42,0.25);
}
.form-feedback.error {
  background: rgba(192,57,43,0.07);
  color: #8a2820;
  border: 1px solid rgba(192,57,43,0.25);
}

/* Cards inline (CTA boxes) */
.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(184,137,42,0.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .95rem; line-height: 1.65;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: var(--muted);
}
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

/* Cat pill (category badge) */
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; width: fit-content;
  text-decoration: none;
}
.cat-pill.dark {
  background: var(--gold-soft);
  border: 1px solid rgba(184,137,42,0.25);
  color: var(--gold-dk);
}
.cat-pill.light {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
}

/* Article list card (listagens) */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.article-card .thumb {
  width: 180px; height: 130px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--gold-soft);
  flex-shrink: 0;
}
.article-card .info { display: flex; flex-direction: column; gap: 8px; }
.article-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
}
.article-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}
.article-card .meta {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.article-card .meta .sep { opacity: .4; }
.badge-soon {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(184,137,42,0.12);
  border: 1px solid rgba(184,137,42,0.25);
  color: var(--gold-dk);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Cat hub grid (cards de categorias) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.cat-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  min-height: 160px;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(184,137,42,0.4);
  color: inherit;
}
.cat-card .num {
  font-family: 'DM Mono', monospace;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.cat-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}
.cat-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.55;
}
.cat-card .arrow {
  margin-top: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
}

/* Tag cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-2);
  text-decoration: none;
  transition: .15s;
}
.tag:hover {
  background: var(--gold-soft);
  border-color: rgba(184,137,42,0.3);
  color: var(--gold-dk);
}
.tag.active {
  background: var(--gold-dk);
  border-color: var(--gold-dk);
  color: #fff;
}

/* Section heads (listagens) */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink);
}
.section-head p {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
  font-size: .92rem;
}

/* Newsletter inline (small) */
.newsletter-inline {
  margin-top: 32px;
  border-radius: var(--r-md);
  padding: 28px;
  background: linear-gradient(160deg, #2e2105, #1a1308);
  border: 1px solid rgba(184,137,42,0.2);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.newsletter-inline h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
}
.newsletter-inline p {
  font-size: .9rem;
  color: rgba(253,251,243,0.78);
  line-height: 1.55;
}
.newsletter-inline form {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.newsletter-inline input {
  flex: 1;
  min-width: 200px;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  padding: 0 14px;
  outline: none; font: inherit; font-size: .9rem;
}
.newsletter-inline input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-inline input:focus { border-color: rgba(184,137,42,0.6); }
.newsletter-inline .btn {
  min-height: 46px;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .newsletter-inline { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-card .thumb { width: 100%; height: 200px; }
}

/* Empty/Soon state */
.coming-soon {
  text-align: center;
  padding: 56px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
}
.coming-soon h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  color: var(--ink);
}
.coming-soon p {
  max-width: 56ch; margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 600px) {
  .shell { padding: 14px; }
  .page-head { padding: 28px 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
