/* ============================================================
   Consultoria de Investimentos — design system v0.1
   Palette derived from logo green #104533
   ============================================================ */
:root {
  --green:        #104533;  /* logo green: mark, buttons, rules */
  --green-deep:   #0B2A1F;  /* headlines, hero base */
  --green-mid:    #1B5A45;  /* hover states */
  --sage:         #7A9A8C;  /* tags, secondary text on dark */
  --sage-light:   #C9D6CF;  /* hairlines on dark */
  --brass:        #B08D57;  /* single warm accent, used sparingly */
  --ink:          #2A2F2D;  /* body text */
  --ink-soft:     #5C6360;  /* secondary text */
  --ivory:        #F7F6F1;  /* page ground */
  --ivory-deep:   #EEECE4;  /* tinted sections */
  --white:        #FFFFFF;
  --rule:         #DAD8CF;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* esconder vence qualquer display de classe (quadros, janelas de acesso) */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--green-deep); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.08; max-width: 18ch; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; max-width: 24ch; }
h3 { font-size: 22px; line-height: 1.3; }
h3.sub { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 20px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin: 0 0 18px; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 56ch; }
.note { font-size: 13px; color: var(--ink-soft); margin-top: 28px; font-style: italic; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-size: 14px; font-weight: 500; letter-spacing: .04em; border: 1px solid transparent; transition: all .2s ease; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); }
.btn-light { background: var(--white); color: var(--green-deep); }
.btn-light:hover { background: var(--ivory-deep); }
.link-arrow { font-weight: 500; font-size: 15px; color: var(--green); border-bottom: 1px solid var(--sage); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,246,241,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 34px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; font-family: "Montserrat", var(--sans); color: var(--green); line-height: 1.1; }
.brand-firm { font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.brand-name { font-weight: 300; font-size: 17px; letter-spacing: .02em; }
.nav { display: flex; gap: 34px; margin-left: auto; font-family: "Montserrat", var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .06em; }
.nav a { position: relative; padding: 6px 0; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 34px; }
.lang { font-family: "Montserrat", var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .06em; color: var(--ink); }
.header-actions .btn { padding: 11px 20px; font-family: "Montserrat", var(--sans); font-weight: 400; letter-spacing: .06em; }
.header-actions .nav-link, .header-actions .lang { position: relative; padding: 6px 0; font-family: "Montserrat", var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .06em; color: var(--ink); }
.header-actions .nav-link::after, .header-actions .lang::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.header-actions .nav-link:hover::after, .header-actions .lang:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-right: -8px; padding: 0 8px; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 1px; background: var(--green-deep); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 96px; }
.hero .eyebrow { color: var(--sage-light); }
.hero-text { color: var(--white); font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.4; letter-spacing: 0; max-width: none; margin: 0 0 1.1em; }
.hero-text:last-child { margin-bottom: 0; }
.hero .hero-services { margin-top: 56px; gap: 24px; }
.hero .hero-services li { border-top: 0; padding: 28px 28px 26px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .hero-services h3 { font-size: clamp(21px, 1.8vw, 25px); }
.hero .hero-services .svc-index { color: #EAD9B0; }
.hero .hero-services h3 { color: #FFFFFF; }
.hero .hero-services p { color: #F2F4F1; font-family: var(--serif); font-weight: 300; font-size: 17px; line-height: 1.55; }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--ivory-deep); }
#insights { padding-bottom: 40px; }
#dados { padding-top: 40px; }
.section-head { margin-bottom: 56px; }
.section-head:has(> .eyebrow:only-child) { margin-bottom: 24px; }
.section-head.centered { text-align: center; }
.section-head.centered .eyebrow { margin-bottom: 0; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

.grid { display: grid; gap: 32px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.services li { border-top: 1px solid var(--green); padding-top: 24px; }
.svc-index { display: block; font-family: var(--serif); font-size: 14px; color: var(--brass); letter-spacing: .1em; margin-bottom: 22px; }
.services h3 { font-size: clamp(22px, 2vw, 27px); max-width: 22ch; margin-bottom: 14px; }
.services p { font-size: 16px; color: var(--ink-soft); margin: 0; max-width: 40ch; }


/* principal */
.principal { display: block; }
.principal-side { margin-bottom: 48px; }
.principal-side { text-align: center; }
.principal-head { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 0; }
.narrative-cv { margin-top: 12px; }
.principal-mark { width: 88px; opacity: .95; }
.principal-side h2 { margin: 0; max-width: none; }
.narrative p { font-size: 17px; line-height: 1.7; max-width: none; margin-bottom: 1.2em; }
.narrative-lead { font-family: var(--serif); font-size: 24px !important; line-height: 1.4 !important; color: var(--green-deep); margin-bottom: 1.4em !important; }
.credential { font-size: 14px; color: var(--green); border-left: 2px solid var(--brass); padding-left: 14px; margin-bottom: 22px; }
.timeline { margin-bottom: 44px; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.tl-date { font-size: 13px; color: var(--ink-soft); padding-top: 3px; font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-weight: 500; color: var(--green-deep); }
.timeline div span { display: block; font-size: 14px; color: var(--ink-soft); }
.timeline.compact li { padding: 12px 0; }

/* insights */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
/* acesso restrito: uma só janela, à direita do título de Publicações */
.access { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.access .access-toggle { background: var(--green); color: var(--white); }
.access .access-toggle:hover { background: var(--green-mid); }
.access .btn { padding: 11px 20px; font-family: "Montserrat", var(--sans); font-weight: 400; letter-spacing: .06em; }
.access-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 5; width: 320px; max-width: 80vw; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 14px 40px rgba(11,42,31,.12); padding: 18px; }
.access-panel label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.access-row { display: flex; gap: 8px; }
.access-row input { flex: 1; min-width: 0; font: 300 16px/1.5 var(--sans); color: var(--ink); background: var(--ivory); border: 1px solid var(--rule); padding: 9px 12px; outline: none; }
.access-row input:focus { border-color: var(--green); }
.access-msg { margin: 10px 0 0; font-size: 13px; color: var(--brass); min-height: 1em; }
.insight-list a.is-locked .ins-arrow::before { content: "🔒"; font-size: 14px; margin-right: 6px; }
.panel-actions { display: flex; align-items: center; gap: 20px; }
.chip { font: 500 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: transparent; border: 1px solid var(--rule); color: var(--ink-soft); padding: 10px 14px; cursor: pointer; }
.chip.is-active, .chip:hover { border-color: var(--green); color: var(--green); }
.insight-list li a { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid var(--rule); transition: padding-left .2s; }
.insight-list li:last-child a { border-bottom: 1px solid var(--rule); }
.insight-list li a:hover { padding-left: 8px; }
.ins-date { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ins-body strong { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--green-deep); display: block; margin-bottom: 8px; }
.tags em { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-right: 14px; }
.ins-arrow { color: var(--green); font-size: 20px; text-align: right; }
.insight-list .placeholder { opacity: .45; }

/* dados (embedded dashboard bundle) */
.dashboard-frame { display: block; width: 100%; height: 960px; border: 0; background: transparent; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 56px 0 18px; }
.panel-head .eyebrow { margin: 0; }
.panel-frame { display: block; width: 100%; height: 900px; border: 1px solid var(--rule); border-radius: 10px; background: #0b0d10; }

/* compliance */
.compliance { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
/* one type setting for every line of text in the section: intro, document
   links and legal considerations share size, weight and colour */
.compliance-intro, .doc-list li a, .legal ul li { font: 300 16px/1.6 var(--sans); color: var(--ink); }
.compliance-intro { margin-top: 4px; max-width: 46ch; }
.legal h3.sub { color: var(--green); letter-spacing: .16em; margin: 0 0 18px; } /* same look as the section eyebrow */
.doc-list { margin-top: 32px; }
.doc-list li a { display: block; padding: 14px 0; border-top: 1px solid var(--rule); }
.doc-list li:last-child a { border-bottom: 1px solid var(--rule); }
.doc-list li a::after { content: "↓"; float: right; color: var(--sage); }
.legal ul li { padding-left: 0; margin-bottom: 14px; }

/* resources */
.resources ul li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.resources ul li:last-child { border-bottom: 1px solid var(--rule); }
.resources a:hover { color: var(--green); }

/* contact */
.contact { background: var(--green-mid); color: var(--white); padding: 40px 0; }
.contact .eyebrow { color: var(--sage-light); }
.contact h2 { color: var(--white); margin-bottom: 20px; }
.contact address { margin-top: 12px; }
.contact p { color: rgba(255,255,255,.78); max-width: 40ch; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
address { font-style: normal; line-height: 1.7; margin-top: 16px; color: rgba(255,255,255,.85); }
address a { border-bottom: 1px solid rgba(255,255,255,.3); }
.form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form label:nth-child(n+3), .form .btn { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-light); }
.form input, .form textarea { font: 300 16px/1.5 var(--sans); color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); padding: 9px 12px; outline: none; }
.form input:focus, .form textarea:focus { border-color: var(--sage-light); }
.form .btn { justify-self: start; margin-top: 4px; }

/* footer */
.site-footer { background: var(--ivory); color: var(--ink-soft); border-top: 1px solid var(--rule); padding: 64px 0 32px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.footer-logo { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.footer-mark { height: 64px; width: auto; }
.footer-wordmark { width: 300px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 11px; /* h4s sit on the wordmark's first line */ }
.footer-cols h4 { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; }
.footer-cols a { display: block; padding: 4px 0; }
.footer-cols a:hover { color: var(--green); }
.footer-legal { display: flex; justify-content: center; text-align: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; font-size: 12px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .compliance, .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { padding-top: 0; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; left: 0; right: 0; margin: 0; padding: 8px var(--gutter) 16px; background: var(--ivory); border-bottom: 1px solid var(--rule); box-shadow: 0 14px 30px rgba(11,42,31,.08); }
  .nav.is-open a { padding: 12px 0; border-top: 1px solid var(--rule); }
  .nav.is-open a:first-child { border-top: 0; }
}
@media (max-width: 680px) {
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .form { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .services { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .timeline li, .insight-list li a { grid-template-columns: 1fr; gap: 6px; }
  .ins-arrow { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- print (report use) ---------- */
@media print {
  .site-header, .hero-bg, .filters, .access, .form, .site-footer .footer-cols { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { color: var(--green-deep); min-height: auto; }
  .hero-text { color: var(--green-deep); }
  .section { padding: 24pt 0; break-inside: avoid; }
  .contact { background: none; color: #000; }
}
