/* Balcão do Empreendedor — folha de estilos principal
   Revista editorial clara, títulos serifados, tipografia Spectral + Work Sans */

:root {
  --forest: #2E4B3F;
  --forest-deep: #1E3329;
  --forest-soft: #E4EDE7;
  --ocre: #E0A458;
  --ocre-soft: #F6E9D6;
  --ink: #22261F;
  --body: #33382E;
  --muted: #6B7264;
  --paper: #FBF8F1;
  --surface: #FFFFFF;
  --line: #E6E0D3;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }

h1, h2, h3, h4 {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

.gde-wrap { width: min(1140px, 92%); margin: 0 auto; }
.gde-narrow { width: min(780px, 92%); margin: 0 auto; }

.gde-skip {
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.gde-skip:focus { left: 1rem; top: 1rem; }

/* ---------- Aviso editorial no topo ---------- */
.gde-notice {
  background: var(--forest-deep);
  color: #E9EFEA;
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 0.6rem 0;
  text-align: center;
}
.gde-notice strong { color: var(--ocre); font-weight: 600; }
.gde-notice a { color: #fff; }

/* ---------- Cabeçalho ---------- */
.gde-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.gde-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem 0;
}
.gde-brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.gde-brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--forest);
  display: grid; place-items: center;
  color: var(--ocre);
  font-family: 'Spectral', serif; font-weight: 700; font-size: 1.35rem;
}
.gde-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.gde-brand-name { font-family: 'Spectral', serif; font-weight: 600; font-size: 1.2rem; }
.gde-brand-kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.gde-nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.7rem; font: inherit; color: var(--ink); cursor: pointer;
}
.gde-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.gde-nav a { text-decoration: none; color: var(--body); font-weight: 500; font-size: 0.97rem; }
.gde-nav a:hover { color: var(--forest); }

/* ---------- Hero editorial ---------- */
.gde-hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.gde-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.gde-eyebrow {
  display: inline-block;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--forest); font-weight: 600;
  padding-bottom: 0.35rem; border-bottom: 2px solid var(--ocre);
  margin-bottom: 1.2rem;
}
.gde-hero p.gde-lead { font-size: 1.2rem; color: var(--body); max-width: 56ch; }
.gde-hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.gde-btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 6px;
  font-weight: 600; text-decoration: none; font-size: 0.98rem;
  border: 1px solid transparent; transition: background 0.2s, color 0.2s;
}
.gde-btn-solid { background: var(--forest); color: #fff; }
.gde-btn-solid:hover { background: var(--forest-deep); color: #fff; }
.gde-btn-line { border-color: var(--forest); color: var(--forest); background: transparent; }
.gde-btn-line:hover { background: var(--forest-soft); }
.gde-hero-figure { margin: 0; position: relative; }
.gde-hero-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 14px;
  box-shadow: 14px 14px 0 var(--ocre-soft);
}
.gde-hero-figure figcaption {
  margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); font-style: italic;
}

/* faixa de marcos */
.gde-marks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed var(--line);
}
.gde-mark span { display: block; font-family: 'Spectral', serif; font-size: 1.6rem; color: var(--forest); font-weight: 600; }
.gde-mark small { color: var(--muted); font-size: 0.9rem; }

/* ---------- Seções ---------- */
.gde-section { padding: 4rem 0; }
.gde-section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gde-section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.gde-section-head h2 { margin-bottom: 0.5rem; }
.gde-section-head p { color: var(--muted); font-size: 1.05rem; }

/* Temas */
.gde-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gde-theme {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.6rem; position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.gde-theme:hover { transform: translateY(-3px); border-color: var(--forest); }
.gde-theme-num {
  font-family: 'Spectral', serif; font-size: 2.2rem; color: var(--ocre); font-weight: 700;
  line-height: 1; margin-bottom: 0.6rem;
}
.gde-theme h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.gde-theme p { color: var(--body); font-size: 0.97rem; margin-bottom: 0.9rem; }
.gde-theme a { font-weight: 600; font-size: 0.95rem; }

/* ---------- Checklist mensal (CSS puro) ---------- */
.gde-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.gde-checklist { list-style: none; margin: 0; padding: 0; }
.gde-checklist li { border-bottom: 1px solid var(--line); }
.gde-checklist li:last-child { border-bottom: 0; }
.gde-checklist input { position: absolute; opacity: 0; pointer-events: none; }
.gde-checklist label {
  display: flex; gap: 0.9rem; align-items: flex-start; cursor: pointer;
  padding: 0.95rem 0.2rem; transition: background 0.15s;
}
.gde-checklist label:hover { background: var(--forest-soft); }
.gde-checklist label::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px;
  border: 2px solid var(--forest); border-radius: 6px; background: #fff;
  transition: background 0.15s;
}
.gde-checklist input:checked + label::before {
  background: var(--forest);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A458' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}
.gde-checklist input:checked + label span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ocre); }
.gde-checklist small { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 0.15rem; }
.gde-checklist input:focus-visible + label { outline: 2px solid var(--ocre); outline-offset: 2px; }
.gde-aside-note {
  background: var(--ocre-soft); border-left: 4px solid var(--ocre); border-radius: 0 10px 10px 0;
  padding: 1.4rem 1.6rem; font-size: 0.97rem;
}
.gde-aside-note h3 { font-size: 1.15rem; }
.gde-aside-note p:last-child { margin-bottom: 0; }

/* ---------- Comparativo ---------- */
.gde-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gde-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.gde-table th, .gde-table td { padding: 0.95rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.gde-table thead th { background: var(--forest); color: #fff; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.gde-table tbody th { font-weight: 600; color: var(--ink); background: var(--paper); width: 24%; }
.gde-table tbody tr:last-child td, .gde-table tbody tr:last-child th { border-bottom: 0; }
.gde-table-foot { font-size: 0.88rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- Guia âncora ---------- */
.gde-guide-intro { max-width: 68ch; margin-bottom: 2rem; }
.gde-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.gde-chips a {
  display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--body);
  font-size: 0.88rem; text-decoration: none;
}
.gde-chips a:hover { border-color: var(--forest); color: var(--forest); }
.gde-guide-body { max-width: 74ch; }
.gde-guide-body h3 {
  margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.gde-guide-body h3:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.gde-guide-body ul, .gde-guide-body ol { padding-left: 1.3rem; }
.gde-guide-body li { margin-bottom: 0.45rem; }
.gde-pull {
  font-family: 'Spectral', serif; font-size: 1.35rem; line-height: 1.45; color: var(--forest);
  border-left: 3px solid var(--ocre); padding: 0.4rem 0 0.4rem 1.2rem; margin: 1.8rem 0;
}

/* ---------- Sobre ---------- */
.gde-about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.gde-about-figure { margin: 0; }
.gde-about-figure img { border-radius: 14px; aspect-ratio: 5 / 4; object-fit: cover; }
.gde-about-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; font-style: italic; }
.gde-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.gde-fact { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; font-size: 0.93rem; }
.gde-fact strong { display: block; color: var(--ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }

/* ---------- Blog ---------- */
.gde-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.gde-post {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.gde-post img { aspect-ratio: 16 / 10; object-fit: cover; }
.gde-post-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.gde-post-meta { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.gde-post h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.gde-post h3 a { text-decoration: none; color: var(--ink); }
.gde-post h3 a:hover { color: var(--forest); }
.gde-post p { font-size: 0.95rem; color: var(--body); flex: 1; }
.gde-post-more { font-weight: 600; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.gde-faq { max-width: 800px; }
.gde-faq details { border-bottom: 1px solid var(--line); }
.gde-faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.4rem 1.1rem 0; position: relative;
  font-family: 'Spectral', serif; font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.gde-faq summary::-webkit-details-marker { display: none; }
.gde-faq summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--forest);
  color: var(--forest); display: grid; place-items: center; font-family: 'Work Sans', sans-serif; font-size: 1.1rem;
}
.gde-faq details[open] summary::after { content: "–"; background: var(--forest); color: #fff; }
.gde-faq details p { padding: 0 0 1.2rem; margin: 0; color: var(--body); max-width: 70ch; }
.gde-faq-highlight { background: var(--ocre-soft); padding: 0.2rem 0.5rem; border-radius: 4px; }

/* ---------- Contato ---------- */
.gde-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.gde-contact-info address { font-style: normal; line-height: 1.8; }
.gde-contact-info dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 1rem; }
.gde-contact-info dd { margin: 0.15rem 0 0; color: var(--ink); }
.gde-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; }
.gde-form label { display: block; font-weight: 500; font-size: 0.93rem; margin: 1rem 0 0.35rem; color: var(--ink); }
.gde-form label:first-of-type { margin-top: 0; }
.gde-form input, .gde-form select, .gde-form textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--paper);
}
.gde-form input:focus, .gde-form select:focus, .gde-form textarea:focus { outline: 2px solid var(--ocre); border-color: var(--forest); }
.gde-form textarea { min-height: 140px; resize: vertical; }
.gde-form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin-top: 1.1rem; }
.gde-form-consent input { width: auto; margin-top: 0.3rem; }
.gde-form button { margin-top: 1.3rem; width: 100%; cursor: pointer; font: inherit; }
.gde-form-note { font-size: 0.84rem; color: var(--muted); margin-top: 0.9rem; margin-bottom: 0; }

/* ---------- Rodapé ---------- */
.gde-footer { background: var(--forest-deep); color: #CFD9D2; padding: 3.5rem 0 2rem; margin-top: 2rem; }
.gde-footer a { color: #fff; }
.gde-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.gde-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.gde-footer ul { list-style: none; padding: 0; margin: 0; }
.gde-footer li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.gde-footer p { font-size: 0.93rem; }
.gde-footer .gde-brand-name { color: #fff; }
.gde-footer .gde-brand-kicker { color: #9FB2A6; }
.gde-footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.84rem; color: #A9B8AE; line-height: 1.7;
}
.gde-footer-legal p { margin-bottom: 0.5rem; font-size: 0.84rem; }
.gde-footer-legal strong { color: #E3EAE5; font-weight: 600; }

/* ---------- Aviso de cookies ---------- */
.gde-cookie {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  width: min(760px, 94%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(34,38,31,0.14);
  padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; z-index: 150;
  font-size: 0.9rem;
}
.gde-cookie p { margin: 0; flex: 1; }
.gde-cookie button { cursor: pointer; font: inherit; white-space: nowrap; padding: 0.6rem 1.1rem; }
.gde-cookie[hidden] { display: none; }

/* ---------- Páginas internas (artigo, legal) ---------- */
.gde-page-head { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.gde-page-head .gde-eyebrow { margin-bottom: 1rem; }
.gde-page-head p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.gde-article { padding: 2.5rem 0 4rem; }
.gde-article-meta { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 1.6rem; }
.gde-article-meta strong { color: var(--ink); font-weight: 600; }
.gde-article-figure { margin: 0 0 2rem; }
.gde-article-figure img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.gde-article-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; font-style: italic; }
.gde-article h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.gde-article h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.gde-article ul, .gde-article ol { padding-left: 1.3rem; }
.gde-article li { margin-bottom: 0.45rem; }
.gde-box {
  background: var(--forest-soft); border-radius: 10px; padding: 1.3rem 1.5rem; margin: 1.8rem 0;
  border: 1px solid #CFDDD4;
}
.gde-box h3 { margin-top: 0; font-size: 1.1rem; }
.gde-box p:last-child { margin-bottom: 0; }
.gde-author-box {
  margin-top: 3rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  display: flex; gap: 1.2rem; align-items: flex-start;
}
.gde-author-avatar {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--forest); color: var(--ocre);
  display: grid; place-items: center; font-family: 'Spectral', serif; font-weight: 700; font-size: 1.25rem;
}
.gde-author-box p { margin: 0.2rem 0 0; font-size: 0.93rem; color: var(--body); }
.gde-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.gde-related h2 { font-size: 1.4rem; margin-top: 0; }
.gde-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.gde-related li a { font-weight: 500; }
.gde-legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.gde-legal p, .gde-legal li { font-size: 1rem; }
.gde-breadcrumb { font-size: 0.86rem; color: var(--muted); margin-bottom: 1rem; }
.gde-breadcrumb a { color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .gde-hero-grid, .gde-check-grid, .gde-about-grid, .gde-contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .gde-hero-figure { max-width: 480px; }
  .gde-themes, .gde-posts { grid-template-columns: 1fr 1fr; }
  .gde-footer-grid { grid-template-columns: 1fr 1fr; }
  .gde-marks { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .gde-nav-toggle { display: inline-block; }
  .gde-nav { display: none; width: 100%; }
  .gde-nav.is-open { display: block; }
  .gde-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; }
  .gde-nav li { border-top: 1px solid var(--line); }
  .gde-nav a { display: block; padding: 0.8rem 0.2rem; }
  .gde-header-inner { flex-wrap: wrap; }
  .gde-hero { padding: 2.4rem 0 2.2rem; }
  .gde-hero-figure img { aspect-ratio: 4 / 3; box-shadow: 8px 8px 0 var(--ocre-soft); }
  .gde-marks { grid-template-columns: 1fr; gap: 1rem; }
  .gde-themes, .gde-posts, .gde-facts, .gde-footer-grid { grid-template-columns: 1fr; }
  .gde-section { padding: 2.8rem 0; }
  .gde-form { padding: 1.4rem; }
  .gde-cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .gde-table { min-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gde-theme, .gde-btn { transition: none; }
}
