/* ──────────────────────────────────────────────────────────────────────────
   Mata Investimentos — Site institucional
   Sistema visual derivado do Kit de Marca (Edição 2026).
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Sweet Gothic Local";
  src: url("assets/fonts/SweetGothic-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sweet Gothic Local";
  src: url("assets/fonts/SweetGothic-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sweet Gothic Local";
  src: url("assets/fonts/SweetGothic-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --green:        #1B3A2F;
  --green-deep:   #102619;
  --green-soft:   #2A5443;
  --sage:         #6B8A7A;
  --gold:         #B89651;
  --gold-soft:    #D4B97A;
  --bone:         #F4EFE6;
  --cream:        #FAF7F1;
  --paper:        #FFFFFF;
  --ink:          #0F1A14;
  --ink-2:        #2A2E2A;
  --ink-3:        #5A5F5A;
  --ink-4:        #8A8F8A;
  --rule:         #D9D2C4;

  --ff-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans:  "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-mata:  "Sweet Gothic Local", "sweet-gothic", "Work Sans", "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1280px;
  --pad-x: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  font-family: var(--ff-sans);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }

img { max-width: 100%; display: block; }

/* ──────────────── Logo component ─────────────── */
.mata-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1;
  color: var(--green);
  font-family: var(--ff-mata);
}
.mata-logo .ml-mata {
  font-family: var(--ff-mata);
  font-weight: 400;
  font-size: 0.75em;
  letter-spacing: -0.08em;
  text-indent: -0.08em;
  line-height: 0.9;
  text-align: center;
  color: inherit;
  transform: scaleY(0.85);
  transform-origin: center bottom;
}
.mata-logo .ml-rule {
  height: 1.5px;
  background: currentColor;
  margin: 0.02em -0.15em 0.09em;
  width: calc(100% + 0.30em);
}
.mata-logo .ml-invest {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.192em;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-align: center;
  color: inherit;
  line-height: 1;
}
.mata-logo.white { color: #fff; }
.logo-nav { height: 48px; width: auto; display: block; }
.logo-footer { height: 48px; width: auto; display: block; }

/* ──────────────── Nav (green header) ─────────────── */
.nav {
  background: var(--green);
  border-bottom: 1px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav .mata-logo { font-size: 26px; color: #fff; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.nav ul a { transition: color 0.2s; }
.nav ul a:hover { color: var(--gold-soft); }
.nav ul a.active { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.nav .access {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 14px;
  transition: background 0.2s, color 0.2s;
}
.nav .access:hover { background: var(--gold); color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: #fff;
}

/* ──────────────── Sections / typography ─────────────── */
section { padding: 80px var(--pad-x); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--green);
  margin-bottom: 28px;
}
.eyebrow.gold { color: var(--gold); border-bottom-color: var(--gold); }
.eyebrow.light { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

h1, .h1 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  color: var(--green);
  letter-spacing: 0;
  text-wrap: balance;
  margin-bottom: 24px;
}
h1 em, .h1 em { font-style: italic; color: var(--gold); }

h2, .h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 16px;
  text-wrap: balance;
}
h2 em, .h2 em { font-style: italic; color: var(--gold); }

h3, .h3 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 10px;
}

p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
p em, .body em { font-style: italic; color: var(--green-soft); }
p strong, p b { color: var(--green); font-weight: 500; }

.lede { font-family: var(--ff-serif); font-size: 22px; line-height: 1.45; color: var(--green); font-weight: 400; text-wrap: pretty; }
.lede em { font-style: italic; color: var(--gold); }

.body-prose p { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* ──────────────── Hero (cream) ─────────────── */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding-top: 100px;
  padding-bottom: 100px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero p { font-size: 16px; line-height: 1.75; max-width: 480px; color: var(--ink-2); }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hero-meta .k {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hero-meta .v {
  font-family: var(--ff-serif);
  font-size: 20px;
  color: var(--green);
}

/* For non-home pages, simpler hero — uses same two-col grid as body sections */
.hero.lite {
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero.lite .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.hero.lite .hero-text {
  max-width: none;
}
.hero.lite .hero-lede {
  padding-top: 8px;
}

/* ──────────────── Pillars / 3-col with dividers ─────────────── */
.pillars { background: var(--paper); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  margin-top: 8px;
}
.pillars-grid > div {
  padding: 0 32px;
  border-right: 1px solid var(--rule);
}
.pillars-grid > div:first-child { padding-left: 0; }
.pillars-grid > div:last-child { padding-right: 0; border-right: none; }
.pillars-grid p { font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* ──────────────── 2-col content block ─────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.two-col .label-col h2 { margin-bottom: 8px; }
.two-col .label-col p { font-size: 14px; color: var(--ink-3); }

/* ──────────────── Definition list (info rows) ─────────────── */
.info-list { width: 100%; border-collapse: collapse; }
.info-list tr td { padding: 16px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
.info-list tr:last-child td { border-bottom: none; }
.info-list td.k {
  width: 32%;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  padding-right: 32px;
}
.info-list td.v {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ──────────────── Team grid ─────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.team-card {
  border-top: 1px solid var(--green);
  padding-top: 24px;
}
.team-card .name {
  font-family: var(--ff-serif);
  font-size: 24px;
  color: var(--green);
  margin-bottom: 4px;
}
.team-card .role {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.team-card .bio {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ──────────────── Document list ─────────────── */
.doc-list {
  border-top: 1px solid var(--rule);
}
.doc-row {
  display: grid;
  grid-template-columns: 96px 1fr 130px 120px;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.doc-row:hover { background: var(--cream); }
.doc-row .date {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-row .title {
  font-family: var(--ff-serif);
  font-size: 18px;
  color: var(--green);
}
.doc-row .title .sub {
  display: block;
  font-family: var(--ff-sans);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0;
}
.doc-row .kind {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-row .download {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 10px 16px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.doc-row .download:hover { background: var(--green); color: #fff; }

/* ──────────────── Doc category groups ─────────────── */
.doc-category {
  margin-bottom: 56px;
}
.doc-category h3 {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--green);
}

/* ──────────────── Contact form ─────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info dl { display: grid; grid-template-columns: auto; gap: 28px; }
.contact-info dt {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}
.contact-info dd {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.contact-info dd a { color: var(--green); border-bottom: 1px solid var(--green); padding-bottom: 1px; }
.contact-info dd a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.form {
  background: var(--cream);
  padding: 40px;
  border: 1px solid var(--rule);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--green);
  padding: 8px 0;
  font-family: var(--ff-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row input:focus,
.form-row textarea:focus { border-bottom-color: var(--gold); }
.form button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.form button:hover { background: var(--green-deep); }
.form-success-msg {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--green);
  line-height: 1.5;
  padding: 48px 0;
  border-top: 1px solid var(--green);
}

/* ──────────────── Footer ─────────────── */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.85);
  border-top: 1px solid var(--gold);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad-x) 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .ff-mark .mata-logo { font-size: 38px; color: #fff; }
.footer .ff-eb {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer .ff-line {
  font-family: var(--ff-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.footer .ff-line b { color: #fff; font-weight: 500; }
.footer .ff-line a { color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.25); }
.footer .ff-line a:hover { color: #fff; border-bottom-color: var(--gold); }
.footer .ff-line ul { list-style: none; }
.footer .ff-line li { margin-bottom: 6px; }

.footer-base {
  background: var(--green);
  color: rgba(255,255,255,0.4);
  padding: 16px var(--pad-x);
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-base-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ──────────────── Responsive ─────────────── */
@media (max-width: 900px) {
  :root { --pad-x: 28px; }
  section { padding: 56px var(--pad-x); }
  .nav-inner { padding: 14px var(--pad-x); }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--green); flex-direction: column; gap: 0; padding: 14px var(--pad-x) 24px; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid var(--gold); }
  .nav ul.open { display: flex; }
  .nav ul li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav ul li:last-child { border-bottom: none; }
  .nav .access { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero.lite .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 28px; border-top: none; padding-top: 0; }
  .pillars-grid > div { padding: 24px 0; border-right: none; border-top: 1px solid var(--rule); }
  .pillars-grid > div:first-child { padding-top: 0; border-top: none; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr; gap: 28px; }
  .doc-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .doc-row .download { justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .form { padding: 24px; }
}
