/* Talita Martins Advocacia — design system compartilhado para páginas internas
   (páginas-pilar e artigos de Insights). A home usa seu próprio arquivo bundlado;
   este CSS existe para manter a mesma identidade visual nas páginas novas. */

:root {
  --bg-cream: #F9F8F6;
  --bg-cream-2: #F5F4F0;
  --bg-cream-3: #ECE9E4;
  --bg-cream-4: #F2F0EC;
  --navy: #0F1B29;
  --ink: #1A1A1A;
  --body-text: #4a4640;
  --muted: #6D675F;
  --light-gray: #D1D5DB;
  --gold: #C5A059;
  --gold-dark: #B38E46;
  /* WCAG AA-safe versions of the gold tones, for text on light backgrounds.
     --gold/--gold-dark stay at their original brightness for use on --navy,
     where they already clear 4.5:1; on cream they fall to ~2.3-2.9:1.
     Darkened against the deepest cream in use (--bg-cream-3, #ECE9E4) so
     they clear 4.5:1 on every light background, not just the lightest one. */
  --gold-text: #7A6337;
  --gold-dark-text: #7D6331;
  --border: #E4E1D8;
  --border-dark: #24313f;

  --font-display: 'Cormorant Garamond', serif;
  --font-alt: 'Playfair Display', serif;
  --font-label: 'Montserrat', sans-serif;
  --font-body: 'Newsreader', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(24px, 6vw, 96px);
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; object-fit: contain; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .name { font-family: var(--font-label); font-size: 15px; letter-spacing: 0.18em; color: var(--ink); font-weight: 600; }
.logo-text .sub { font-family: var(--font-label); font-size: 9px; letter-spacing: 0.35em; color: var(--muted); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a {
  position: relative;
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; color: var(--ink);
  text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease;
}
.site-nav a:hover { color: var(--gold-dark-text); border-bottom-color: var(--gold-dark-text); }
.site-nav a:not(:last-child)::after {
  content: ''; position: absolute; right: -15px; top: 50%; margin-top: -1.5px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold);
}

.lang-switch { display: flex; align-items: center; gap: 8px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.15em; color: var(--ink); }
.lang-switch .active { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.lang-switch .sep { color: var(--muted); }
.lang-switch .inactive { color: var(--muted); cursor: pointer; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 0 clamp(24px, 6vw, 96px);
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.1em; color: var(--muted);
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-dark-text); }

/* ---------- Sections & type ---------- */
.section { padding: 90px clamp(24px, 6vw, 96px); }
.section-tight { padding: 60px clamp(24px, 6vw, 96px); }
.bg-cream { background: var(--bg-cream); }
.bg-cream-2 { background: var(--bg-cream-2); }
.bg-cream-3 { background: var(--bg-cream-3); }
.bg-cream-4 { background: var(--bg-cream-4); }
.bg-navy { background: var(--navy); color: var(--bg-cream); }

.eyebrow {
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.28em; color: var(--gold-dark-text); font-weight: 500;
  display: block;
}
.bg-navy .eyebrow { color: var(--gold); }

.page-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.16; color: var(--ink); margin: 18px 0 0; max-width: 780px;
}
h2.section-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.26; color: var(--ink); margin: 0 0 0;
}
.bg-navy h2.section-title, .bg-navy .page-title { color: var(--bg-cream); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

h3.card-title { font-family: var(--font-alt); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 0; }

p.lede {
  font-family: var(--font-body); font-weight: 300; font-size: 19.5px; line-height: 1.75; color: var(--body-text);
  max-width: 640px; margin: 22px 0 0;
}
p.body-copy { font-family: var(--font-body); font-weight: 300; font-size: 17.5px; line-height: 1.8; color: var(--body-text); max-width: 720px; margin: 18px 0 0; }
.bg-navy p.body-copy, .bg-navy p.lede { color: var(--light-gray); }

.microcopy { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 20px 32px;
  border: 1px solid var(--ink); font-family: var(--font-label); font-size: 12px; letter-spacing: 0.2em;
  color: var(--ink); text-decoration: none; transition: all 0.35s ease; background: transparent;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--bg-cream); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.2em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink);
  padding-bottom: 4px; transition: color 0.3s ease, border-color 0.3s ease;
}
.btn-ghost:hover { color: var(--gold-dark-text); border-color: var(--gold-dark-text); }
.bg-navy .btn-ghost { color: var(--bg-cream); border-color: var(--bg-cream); }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Content blocks ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.block-list { display: flex; flex-direction: column; gap: 28px; margin-top: 34px; }
.block-item { display: flex; gap: 22px; align-items: flex-start; }
.block-num { font-family: var(--font-display); font-size: 26px; color: var(--gold-text); flex: none; width: 44px; }
.bg-navy .block-num { color: var(--gold); }
.block-item h3 { font-family: var(--font-alt); font-weight: 500; font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.bg-navy .block-item h3 { color: var(--bg-cream); }
.block-item p { font-family: var(--font-body); font-weight: 300; font-size: 16.5px; line-height: 1.75; color: var(--body-text); margin: 0; }
.bg-navy .block-item p { color: var(--light-gray); }

/* related / card links */
.card-link {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: border-color 0.3s ease, transform 0.3s ease;
}
.card-link:hover { border-color: var(--gold); }
.card-link .tag { font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.2em; color: var(--gold-dark-text); font-weight: 500; }
.card-link h4 { font-family: var(--font-alt); font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--ink); margin: 0; }
.card-link p { font-family: var(--font-body); font-weight: 300; font-size: 15.5px; line-height: 1.65; color: var(--body-text); margin: 0; }

.insight-card { display: flex; flex-direction: column; gap: 20px; text-decoration: none; color: inherit; }
.insight-card .thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-cream-3); display:flex; align-items:center; justify-content:center; }
.insight-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.insight-card:hover .thumb img { transform: scale(1.05); }
.insight-card .tag { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; color: var(--gold-text); font-weight: 500; }
.insight-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.32; color: var(--ink); margin: 0; min-height: 60px; text-wrap: balance; transition: color 0.3s ease; }
.insight-card:hover h3 { color: var(--gold-dark-text); }
.insight-card p { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--body-text); margin: 0; min-height: 112px; text-wrap: balance; }
.insight-card .read-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.15em; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 4px; align-self: flex-start; margin-top: auto; padding-top: 4px; }

/* ---------- FAQ (details/summary) ---------- */
.faq-list { border-top: 1px solid var(--border); margin-top: 24px; max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0;
  cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-body); font-size: 20px; font-weight: 300; color: var(--gold-text); flex: none; transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { font-family: var(--font-body); font-weight: 300; font-size: 16.5px; line-height: 1.75; color: var(--body-text); margin: 0 0 26px; max-width: 620px; }

/* ---------- Article-specific ---------- */
.article-meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); margin-top: 20px; }
.article-hero-image { width: 100%; aspect-ratio: 16/8; overflow: hidden; background: var(--bg-cream-3); margin-top: 44px; }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin-top: 12px; }
.article-body h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px,2.6vw,30px); color: var(--ink); margin: 44px 0 16px; }
.article-body p { font-family: var(--font-body); font-weight: 300; font-size: 18px; line-height: 1.85; color: var(--body-text); margin: 0 0 20px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { font-family: var(--font-body); font-weight: 300; font-size: 18px; line-height: 1.85; color: var(--body-text); margin-bottom: 10px; }
.article-body a { color: var(--gold-dark-text); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--ink); }

ul.plain-list { margin: 16px 0 0; padding-left: 22px; }
ul.plain-list li { font-family: var(--font-body); font-weight: 300; font-size: 18px; line-height: 1.85; color: var(--body-text); margin-bottom: 10px; }

.callout-box {
  border: 1px solid var(--border); padding: 36px; display: flex; flex-direction: column; gap: 18px;
  margin-top: 48px; max-width: 720px; background: var(--bg-cream-2);
}
.callout-box h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--ink); margin: 0; }
.callout-box p { font-family: var(--font-body); font-weight: 300; font-size: 16.5px; line-height: 1.75; color: var(--body-text); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); padding: 90px clamp(24px, 6vw, 96px) 0; display: flex; flex-direction: column; gap: 70px; margin-top: 100px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col { flex: 1 1 200px; min-width: 200px; display: flex; flex-direction: column; gap: 14px; }
.footer-col.brand { flex: 1.2 1 240px; min-width: 220px; }
.footer-col .brand-row { display: flex; align-items: center; gap: 14px; }
.footer-col .brand-row .name { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.26em; color: var(--bg-cream); font-weight: 500; }
.footer-col .brand-row .sub { font-family: var(--font-label); font-size: 8px; letter-spacing: 0.32em; color: #9aa4ae; margin-top: 3px; }
.footer-col p { font-family: var(--font-body); font-weight: 300; font-size: 15.5px; line-height: 1.7; color: var(--light-gray); margin: 0; max-width: 260px; }
.footer-col .label { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; color: var(--gold); font-weight: 500; margin-bottom: 6px; }
.footer-col a { font-family: var(--font-body); font-size: 15.5px; color: var(--light-gray); text-decoration: none; }
.footer-col a:hover { color: var(--bg-cream); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding: 28px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom span { font-family: var(--font-body); font-size: 13.5px; color: #8a94a0; }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom .links a { font-family: var(--font-body); font-size: 13.5px; color: #8a94a0; text-decoration: none; }
.footer-bottom .links a:hover { color: var(--light-gray); }

@media (max-width: 640px) {
  .site-header { gap: 14px; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
