/* Gabriela Correia — site
   Paleta e fontes do design system "Social Orgânico" (terroso, sem vermelho). */

:root {
  --paper: #F3F0EA;
  --paper-2: #EAE4DA;
  --card: #FAF8F4;
  --ink: #211A15;
  --muted: #6E645A;
  --line: #DCD3C6;
  --brown: #8B5A33;
  --brown-ink: #74471F;
  --chocolate: #5E3B24;
  --cafe: #2A211B;
  --caramel: #D1A273;
  --on-dark: #F3F0EA;
  --on-dark-muted: rgba(243, 240, 234, .72);

  --font: "Inter Tight", "Segoe UI", Arial, sans-serif;
  --hand: "Gochi Hand", "Segoe Print", cursive;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.015em; line-height: 1.2; font-weight: 700; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.tight { padding: clamp(48px, 7vw, 80px) 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--cafe); color: var(--on-dark); }
.dark .lead, .dark .muted { color: var(--on-dark-muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown-ink); margin-bottom: 20px;
}
.dark .kicker { color: var(--caramel); }
.hand { font-family: var(--hand); font-weight: 400; color: var(--brown); font-size: 1.05em; letter-spacing: 0; }
.dark .hand { color: var(--caramel); }
.lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--muted); max-width: 640px; margin-top: 24px; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.center.section-head, .section-head.center { margin-left: auto; margin-right: auto; }

/* Botões */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.center .btns { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px; border-radius: 999px;
  font: 600 16px/1.2 var(--font); text-decoration: none; letter-spacing: .005em;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--chocolate); color: var(--on-dark); }
.btn-primary:hover { background: var(--cafe); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-primary { background: var(--caramel); color: var(--cafe); }
.dark .btn-primary:hover { background: var(--on-dark); }
.dark .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.dark .btn-ghost:hover { background: var(--on-dark); color: var(--cafe); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 600; color: var(--brown-ink); text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 234, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a, .nav summary { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); cursor: pointer; }
.nav > a:hover, .nav summary:hover, .nav a[aria-current="page"] { color: var(--brown-ink); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; color: var(--on-dark); }
.nav details { position: relative; }
.nav summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-3px); }
.nav .menu {
  position: absolute; right: -16px; top: calc(100% + 16px); width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px;
  box-shadow: 0 18px 40px rgba(42, 33, 27, .12);
}
.nav .menu a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 15px; text-decoration: none; }
.nav .menu a:hover { background: var(--paper-2); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 600px) { .brand span { display: none; } }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav summary { padding: 12px 0; font-size: 17px; }
  .nav details[open] summary { color: var(--brown-ink); }
  .nav .menu { position: static; width: auto; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; }
  .nav .btn { margin-top: 12px; min-height: 52px; font-size: 16px; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 .hand { display: block; font-size: .56em; line-height: 1.15; margin-top: 18px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-photo figcaption {
  position: absolute; left: -28px; bottom: 28px; max-width: 250px;
  background: var(--card); border-radius: 16px; padding: 16px 18px;
  font-size: 14px; line-height: 1.45; color: var(--muted); box-shadow: 0 16px 36px rgba(42, 33, 27, .14);
}
.hero-photo figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; }
  .hero-photo figcaption { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Faixa de credenciais */
.creds { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.creds li { font-size: 15px; color: var(--muted); line-height: 1.4; }
.creds li b { display: block; color: var(--ink); font-size: 17px; font-weight: 700; }
@media (max-width: 760px) { .creds ul { grid-template-columns: 1fr 1fr; gap: 22px 18px; } }

/* Livros */
.books-hero { margin: 0 auto; max-width: 1040px; }
.books-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 5vw, 56px); }
.books-row figure, .books-hero { margin: 0; }
.books-row figcaption, .books-hero figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 700px) { .books-row { grid-template-columns: 1fr; } }

/* Cartões e grades */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 17px; margin: 0; }
.card .num { font-family: var(--hand); color: var(--brown); font-size: 30px; line-height: 1; display: block; margin-bottom: 18px; }
.dark .card { background: rgba(243, 240, 234, .06); }
.dark .card p { color: var(--on-dark-muted); }
.dark .card .num { color: var(--caramel); }

/* Processo */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.split .photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .photo.sticky { position: sticky; top: 104px; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .photo.sticky { position: static; }
  .split .photo { max-width: 460px; }
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--hand); font-size: 34px; color: var(--brown); line-height: 1; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.checklist li { position: relative; padding-left: 30px; font-size: 17px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(-45deg);
}
.dark .checklist li::before { border-color: var(--caramel); }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }

/* Depoimentos */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--hand); font-size: 64px; line-height: .6; color: var(--caramel); margin-bottom: 10px; }
.quote figcaption { margin-top: 18px; font-size: 15px; color: var(--on-dark-muted); }

/* Bio */
.bio-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.names { font-size: 16px; color: var(--muted); border-left: 2px solid var(--caramel); padding-left: 18px; margin-top: 28px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--brown); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 720px; }
.faq .answer p:last-child { margin: 0; }

/* Artigos */
.article-link {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  background: var(--card); border-radius: 18px; padding: 24px 26px; text-decoration: none;
  font-weight: 600; font-size: 18px; line-height: 1.35; transition: background .2s;
}
.article-link:hover { background: #fff; }
.article-link span:last-child { color: var(--brown); font-size: 22px; line-height: 1; }

/* Tabelas dos artigos */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); margin: 8px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

/* Página de artigo */
.article-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); }
.article-hero h1 { font-size: clamp(36px, 5.2vw, 64px); }
.prose { font-size: 19px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 64px 0 22px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: #3b322b; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose .grid { margin: 8px 0 12px; }
.callout { background: var(--card); border-left: 3px solid var(--brown); border-radius: 0 18px 18px 0; padding: 22px 26px; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.note { font-size: 15px; color: var(--muted); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 860px; margin: 0 auto; }
.cta-final .lead { margin-left: auto; margin-right: auto; }
.cta-final .btns { justify-content: center; }

/* Rodapé */
.site-footer { background: var(--cafe); color: var(--on-dark-muted); padding: 64px 0 40px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(243, 240, 234, .14); }
.site-footer b { color: var(--on-dark); font-size: 20px; letter-spacing: -.02em; display: block; margin-bottom: 8px; }
.site-footer h4 { color: var(--on-dark); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .top { grid-template-columns: 1fr; gap: 28px; } }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(243, 240, 234, .25); color: var(--on-dark);
}
.socials a:hover { background: var(--on-dark); color: var(--cafe); }
.socials svg { width: 19px; height: 19px; }

/* Página /contato (link da bio) */
.links-page { min-height: 100vh; display: flex; flex-direction: column; }
.links-page main { flex: 1; padding: 48px 0 56px; }
.links { max-width: 520px; margin: 0 auto; padding: 0 20px; text-align: center; }
.links .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 3px solid var(--card); box-shadow: 0 10px 30px rgba(42, 33, 27, .15); }
.links h1 { font-size: 30px; letter-spacing: -.02em; }
.links .role { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.links .pitch { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 30px 0 4px; }
.links .pitch .hand { display: block; font-size: .95em; font-weight: 400; margin-top: 6px; }
.links .list { display: grid; gap: 12px; margin: 30px 0 0; }
.links .item {
  display: flex; align-items: center; gap: 16px; text-align: left; text-decoration: none;
  background: var(--card); border-radius: 18px; padding: 16px 18px; min-height: 72px;
  transition: transform .2s, background .2s;
}
.links .item:hover { transform: translateY(-1px); background: #fff; }
.links .item.main { background: var(--chocolate); color: var(--on-dark); }
.links .item.main:hover { background: var(--cafe); }
.links .item .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--brown-ink); flex: none; }
.links .item.main .ico { background: rgba(243, 240, 234, .14); color: var(--on-dark); }
.links .item .ico svg { width: 21px; height: 21px; }
.links .item b { display: block; font-size: 17px; font-weight: 700; }
.links .item small { display: block; font-size: 14px; color: var(--muted); margin-top: 1px; }
.links .item.main small { color: var(--on-dark-muted); }
.links .arrow { margin-left: auto; opacity: .55; font-size: 20px; }
.links .books { margin: 36px -12px 0; }
.links .socials { justify-content: center; margin-top: 30px; }
.links .socials a { border-color: var(--line); color: var(--ink); }
.links .socials a:hover { background: var(--ink); color: var(--paper); }
.links-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 0 20px 28px; }

/* Utilitários */
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
