/* ===========================================================
   Mentoria MAG — guias & blog
   Estilo: blog militar moderno, suave e aconchegante
   Tons quentes (papel/creme), dourado fosco, verde-oliva.
   Títulos em serifa editorial (Newsreader), sentence case.
   =========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --paper: #f4eee2;
  --paper-2: #fbf7ef;
  --ink: #2b2722;
  --ink-soft: #574f44;
  --muted: #837a6c;
  --gold: #9c7c3c;
  --gold-2: #b6924a;
  --gold-soft: rgba(156, 124, 60, 0.12);
  --gold-line: rgba(156, 124, 60, 0.28);
  --olive: #3f5436;
  --olive-2: #4f6a43;
  --line: rgba(43, 39, 34, 0.10);
  --soft-shadow: 0 14px 38px rgba(43, 39, 34, 0.07);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--olive-2); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 em, h2 em { color: var(--gold); font-style: italic; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 238, 226, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0;
  color: var(--ink);
}
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
}
.navlinks a { text-decoration: none; color: var(--ink-soft); }
.navlinks a:hover { color: var(--gold); }

/* ===== Hero (claro e quente) ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(156, 124, 60, 0.14), transparent 62%),
    radial-gradient(760px 420px at -8% 110%, rgba(63, 84, 54, 0.12), transparent 58%),
    linear-gradient(180deg, #f7f1e6 0%, var(--paper) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(43, 39, 34, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 10%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 75% 10%, #000 20%, transparent 70%);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 480px;
  display: grid;
  align-items: center;
  padding: 70px 0 64px;
}
.kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive-2);
}

h1 {
  max-width: 16ch;
  margin: 22px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
}
.lead {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
}

/* ===== Botões ===== */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--olive);
  color: #f6f1e6;
  box-shadow: 0 12px 26px rgba(63, 84, 54, 0.22);
}
.btn-primary:hover { background: var(--olive-2); }
.btn-secondary {
  color: var(--ink);
  border-color: var(--gold-line);
  background: rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover { background: #fff; color: var(--gold); }

/* ===== Seções ===== */
.section { padding: 64px 0; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.section-title {
  max-width: 22ch;
  margin: 0 0 22px;
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 500;
}
.section-intro {
  max-width: 70ch;
  margin: -6px 0 30px;
  color: var(--muted);
  font-size: 17.5px;
}

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 22px 50px rgba(43, 39, 34, 0.10);
}
.card h3 { margin: 0 0 9px; font-size: 21px; font-weight: 600; }
.card p, .card li { color: var(--ink-soft); }
.card strong { color: var(--gold); font-weight: 600; }
.card ul { padding-left: 18px; margin: 10px 0 0; }
.card li { margin-bottom: 5px; }

/* ===== Seção escura (verde-oliva aconchegante) ===== */
.dark { background: var(--olive); color: #f1ece0; }
.dark .section-title, .dark h3 { color: #fbf7ef; }
.dark .section-intro, .dark .card p, .dark .card li { color: rgba(241, 236, 224, 0.82); }
.dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.dark .card strong { color: var(--gold-2); }
.dark a { color: #e7d9b0; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  padding: 18px 22px;
}
.faq details[open] { border-color: var(--gold-line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--gold); font-size: 20px; }
.faq details[open] summary::before { content: "\2013"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* ===== CTA ===== */
.cta-band {
  border-radius: 22px;
  padding: 46px;
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(182, 146, 74, 0.18), transparent 60%),
    linear-gradient(140deg, #3f5436 0%, #2f4129 100%);
  color: #f3eee2;
  box-shadow: var(--soft-shadow);
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 500; color: #fbf7ef; }
.cta-band p { max-width: 60ch; color: rgba(243, 238, 226, 0.82); }
.cta-band .btn-secondary { color: #f3eee2; border-color: rgba(243, 238, 226, 0.35); background: rgba(255, 255, 255, 0.06); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ===== Diversos ===== */
.breadcrumbs { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; }
.breadcrumbs a { color: var(--ink-soft); }
.notice { margin-top: 26px; color: var(--muted); font-size: 13px; max-width: 70ch; }
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.keyword-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 24px; list-style: none; }
.keyword-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ===========================================================
   BLOG
   =========================================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* Corpo do artigo (leitura) */
.prose {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--ink);
}
.prose > p { margin: 0 0 22px; color: var(--ink-soft); }
.prose h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
}
.prose h3 { margin: 30px 0 10px; font-size: 22px; font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold-line);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
}
.prose a { color: var(--olive-2); text-decoration: underline; }
.prose .lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 28px;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* Listagem do blog */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: 0 22px 50px rgba(43, 39, 34, 0.10); }
.post-card .tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.post-card h3 { margin: 10px 0 8px; font-size: 23px; font-weight: 600; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.post-card .more { margin-top: 16px; color: var(--olive-2); font-weight: 600; font-size: 15px; }

/* ===== Responsivo ===== */
@media (max-width: 820px) {
  .nav { gap: 12px; }
  .navlinks { gap: 16px; font-size: 13.5px; overflow-x: auto; }
  .hero-inner { min-height: 420px; padding: 54px 0 48px; }
  .grid, .grid-2, .post-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px; }
  .prose { font-size: 17.5px; }
}


/* Botao compartilhar */
.share-row { margin-top: 20px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  color: var(--gold); border-radius: 999px; padding: 10px 20px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.share-btn:hover { background: rgba(156,124,60,0.18); transform: translateY(-1px); }
.share-btn svg { width: 17px; height: 17px; }
.share-ok { color: var(--olive-2); }
