/* ============================================
   ETIENNE CONSONI — CV
   ============================================ */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Tokens --- */
:root {
  --font: 'Helvetica Neue', Arial, sans-serif;
  --color-black: #111111;
  --color-text:  #1a1a1a;
  --color-muted: #333333;
  --color-line:  #111111;

  --page-width:   1000px;
  --pad-outer:    48px;
  --col-left-w:   240px;
  --col-gap:      40px;

  --font-size-text: 14px;
  --font-size-li:   14px;
}

/* --- Body & Page --- */
body {
  background: #e8e8e8;
  font-family: var(--font);
  font-size: 9.5px;
  color: var(--color-text);
  line-height: 1.5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.page {
  max-width: var(--page-width);
  width: 100%;
  margin: 32px auto;
  background: #ffffff;
  padding: var(--pad-outer);
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
}

/* ============================================
   HEADER — Nome
   ============================================ */
.cv-header {
  margin-bottom: 24px;
}

.cv-name {
  font-family: var(--font);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-black);
}

/* ============================================
   BODY — duas colunas
   ============================================ */
.cv-body {
  display: flex;
  gap: var(--col-gap);
  align-items: flex-start;
}

/* ============================================
   COLUNA ESQUERDA
   ============================================ */
.col-left {
  width: var(--col-left-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================
   COLUNA DIREITA
   ============================================ */
.col-right {
  flex: 1;
  min-width: 0;
}

/* ============================================
   SEÇÕES — título com linha
   ============================================ */
.section {
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-line);
  margin-bottom: 10px;
}

/* ============================================
   SOBRE
   ============================================ */
.about-text {
  font-size: var(--font-size-text);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  font-weight: 500;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   FORMAÇÃO
   ============================================ */
.education-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.edu-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.edu-school {
  font-size: var(--font-size-text);
  font-weight: 400;
  color: var(--color-muted);
  white-space: nowrap;
  text-align: right;
}

.edu-degree {
  font-size: var(--font-size-text);
  font-weight: 500;
  line-height: 1.4;
}

.edu-degree strong {
  font-weight: 700;
}

.edu-year {
  font-size: var(--font-size-text);
  color: var(--color-muted);
}

/* ============================================
   IDIOMAS
   ============================================ */
.lang-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid #d0d0d0;
}

.lang-item:last-child {
  border-bottom: none;
}

.lang-name {
  font-size: var(--font-size-text);
  font-weight: 400;
  color: var(--color-text);
}

.lang-level {
  font-size: var(--font-size-text);
  font-weight: 700;
  color: var(--color-black);
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: flex;
  gap: 12px;
}

.skill-col {
  flex: 1;
  min-width: 0;
}

.skill-group-title {
  font-size: var(--font-size-text);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1;
  margin-top: 8px;
  margin-bottom: 2px;
  letter-spacing: -0.03em;
}

.skill-col:first-child .skill-group-title:first-child,
.skill-col:last-child .skill-group-title:first-child {
  margin-top: 0;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  font-size: var(--font-size-li);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.skill-list li::before {
  /* content: ". "; */
  content: "￭";
  font-size: 8px;
  padding-right: 4px;
  position: relative;
  top: -0.6em;
}

/* ============================================
   EXPERIÊNCIAS — empresa
   ============================================ */
.company-block {
  margin-bottom: 14px;
}

.company-block--last {
  margin-bottom: 0;
}

.company-name {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.01em;
  line-height: 1.1;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 6px;
}

/* ============================================
   EXPERIÊNCIAS — cargo
   ============================================ */
.role-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.role-row:last-child {
  margin-bottom: 0;
}

.role-period {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.2;
  white-space: normal;
  width: 60px;
  flex-shrink: 0;
  padding-top: 1px;
  letter-spacing: -4%;
  font-weight: 500;
}

.role-content {
  flex: 1;
  min-width: 0;
}

.role-title {
  font-size: var(--font-size-text);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.role-title em {
  font-style: normal;
  font-weight: 700;
}

.role-desc {
  font-size: var(--font-size-text);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ============================================
   Versão compacta para experiências antigas
   ============================================ */
.company-block.compact {
  margin-bottom: 8px;
}

.company-block.compact .company-name {
  font-size: 14px;
  margin-bottom: 0px; 
}

.company-block.compact .role-row {
  gap: 8px;
  margin-bottom: 0;
}

.company-block.compact .role-title {
  font-size: var(--font-size-text);
  margin-bottom: 0;
}

.company-block.compact .role-period {
  padding-top: 1px;
  width: 70px;
  font-size: 12px;
}

.company-block.compact .role-desc {
  display: none;
}

/* ============================================
   RESPONSIVIDADE (Mobile)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --pad-outer: 24px;
  }

  body {
    background: #ffffff;
  }

  .page {
    margin: 0;
    box-shadow: none;
  }

  .cv-name {
    font-size: 40px;
  }

  .cv-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .col-left, .col-right {
    display: contents; 
  }

  .section {
    width: 100%;
  }

  #sobre { order: 1; margin-bottom: 24px; }
  #formacao { order: 2; margin-bottom: 24px; }
  #experiencias { order: 3; margin-bottom: 24px; }
  #idiomas { order: 4; margin-bottom: 24px; }
  #habilidades { order: 5; margin-bottom: 24px; }

  .edu-row {
    justify-content: space-between;
  }

  .skills-grid {
    flex-direction: column;
    gap: 0;
  }

  .skill-group-title {
    /* font-size: 14px; */
    margin-top: 16px;
    margin-bottom: 8px;
  }

  .skill-col:last-child .skill-group-title:first-child {
    margin-top: 16px;
  }

  .skill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    /* row-gap: 6px; */
  }

  /* .skill-list li {
    line-height: 0.8;
    letter-spacing: -0.03em;
  } */
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  body {
    background: none;
  }

  .page {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    padding: 28px 36px;
  }
}