/* ============================================================
   Medlyn Milani Advocacia — CSS das páginas internas
   Tokens do Manual de Marca 2026 (idênticos ao index.html)
   ============================================================ */
:root {
  --bg: #FBF9F4;
  --bg-elev: #F4F0E8;
  --bg-dark: #1F1D1A;
  --bg-dark-alt: #2A2723;
  --ink: #1F1D1A;
  --ink-soft: #3A3833;
  --ink-mute: #6B665E;
  --line: #E5DFD3;
  --accent: #8B7355;
  --accent-deep: #6E5A40;
  --accent-soft: #C8AE85;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
  --narrow: 800px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 12px rgba(31,29,26,0.08), 0 2px 4px rgba(31,29,26,0.04);
  --shadow-lg: 0 20px 50px rgba(31,29,26,0.12), 0 8px 16px rgba(31,29,26,0.06);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 1.8em; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 1.5em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent-deep); }
p, li { color: var(--ink-soft); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 22px; margin: 0 0 1.2em; }
li { margin-bottom: 8px; }
strong { color: var(--ink); }
blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lead { font-size: 1.12rem; line-height: 1.65; }

/* ---------- Header ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,249,244,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
  color: var(--accent-soft);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.brand__role { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.topo nav { display: flex; gap: 26px; align-items: center; }
.topo nav a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: var(--transition);
}
.topo nav a:hover, .topo nav a[aria-current="page"] { color: var(--accent-deep); }

/* ---------- Menu mobile (hambúrguer) ---------- */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  flex-shrink: 0;
  order: 3;
  touch-action: manipulation;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .topo__inner { flex-wrap: wrap; position: relative; row-gap: 0; }
  .menu-toggle { display: flex; }
  .btn--sm { order: 2; font-size: 0.78rem; padding: 12px 16px; min-height: 44px; }
  .brand__role { display: none; }

  .topo nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 4px 24px 12px;
  }
  .topo nav.is-open { display: flex; }
  .topo nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .topo nav a:last-child { border-bottom: none; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--dark { background: var(--bg-dark); color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.btn--dark:hover { background: var(--bg-dark-alt); }
.btn--sm { padding: 11px 22px; font-size: 0.84rem; }

/* ---------- Hero de página ---------- */
.page-hero { padding: 72px 0 48px; }
.page-hero p.lead { max-width: 720px; }
.breadcrumb { font-size: 0.8rem; color: var(--ink-mute); margin-bottom: 22px; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }

/* ---------- Conteúdo ---------- */
.conteudo { padding: 24px 0 88px; }
.artigo-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 0.8rem; color: var(--ink-mute);
  padding-bottom: 22px; margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Caixa CTA ---------- */
.cta-box {
  margin: 44px 0;
  padding: 34px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cta-box h3 { margin-top: 0; }
.cta-box p { margin-bottom: 18px; }
.cta-box .micro { font-size: 0.78rem; color: var(--ink-mute); margin: 12px 0 0; }

/* ---------- FAQ (linhas finas) ---------- */
.faq-lista { border-top: 1px solid var(--line); margin: 8px 0 32px; }
details {
  border-bottom: 1px solid var(--line);
}
details summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 4px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: var(--transition);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform var(--transition);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details summary:hover { color: var(--accent-deep); }
details .resposta { padding: 0 4px 24px; }
details .resposta p:last-child { margin-bottom: 0; }

/* ---------- Cards (índice do blog / listas) ---------- */
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 32px 0; }
@media (max-width: 760px) { .grade { grid-template-columns: 1fr; } }
.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  text-decoration: none;
  transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.card__num {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
}
.card h3, .card h2 { margin-top: 0; font-size: 1.25rem; }
.card p { margin-bottom: 10px; font-size: 0.95rem; }
.card .leia { font-size: 0.84rem; font-weight: 500; color: var(--accent-deep); }

/* ---------- Timeline (sobre) ---------- */
.timeline { margin: 32px 0; padding-left: 4px; }
.timeline li {
  list-style: none;
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 1px solid var(--accent-soft);
  margin: 0;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline strong { display: block; font-family: var(--serif); font-size: 1.08rem; }
.timeline span { font-size: 0.92rem; color: var(--ink-mute); }

/* ---------- Aviso legal ---------- */
.aviso {
  margin: 40px 0 0;
  padding: 18px 22px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ---------- Footer ---------- */
.rodape {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 40px;
  font-size: 0.88rem;
}
.rodape a { color: rgba(255,255,255,0.85); text-decoration: none; }
.rodape a:hover { color: var(--accent-soft); }
.rodape__top {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 28px; margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.rodape__brand { font-family: var(--serif); font-size: 1.15rem; color: var(--white); }
.rodape__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.rodape__legal { font-size: 0.76rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 20px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-fixo {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  touch-action: manipulation;
}
.wa-fixo:hover { background: var(--accent-deep); transform: translateY(-2px); }
.wa-fixo svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
