/* Currículo — componentes próprios sobre o design system da home (styles.css).
   Conteúdo sempre na coluna de --max (1300px), com a mesma margem lateral das outras páginas. */

.cv-sec,
.cv-hero {
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2));
}

.cv-sec__inner,
.cv-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Topo ── */
.cv-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(140px, 14vw, 190px);
  padding-bottom: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(234, 46, 0, 0.22), transparent 32rem),
    var(--black);
  color: var(--white);
}

.cv-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.cv-hero__copy {
  padding-bottom: clamp(56px, 7vw, 100px);
}

.cv-hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 8.6vw, 136px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.cv-hero__name span {
  display: block;
  color: var(--orange);
}

.cv-hero__tagline {
  max-width: 620px;
  margin: 32px 0 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.cv-hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.cv-contact:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.cv-hero__portrait {
  position: relative;
  align-self: end;
}

.cv-hero__portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
}

.cv-hero__portrait img {
  position: relative;
  width: 100%;
  height: auto;
  filter: saturate(0) contrast(1.04);
}

/* ── Seções ── */
.cv-sec {
  padding-block: clamp(84px, 10vw, 150px);
}

.cv-sec--paper {
  background: var(--paper);
  color: var(--ink);
}

.cv-sec--white {
  background: var(--white);
  color: var(--ink);
}

.cv-sec--dark {
  background: var(--black);
  color: var(--white);
}

.cv-sec__head {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.cv-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 92px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

/* ── Sobre ── */
.cv-sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.cv-sobre-grid .cv-sec__head {
  margin-bottom: 0;
}

.cv-sobre {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-sobre p {
  margin: 0;
  color: #4d4a46;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

.cv-sobre p:first-child {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.cv-sobre strong {
  color: var(--ink);
  font-weight: 700;
}

.cv-sobre p:first-child strong {
  color: var(--orange);
}

/* ── Experiência ── */
.cv-timeline {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.cv-job {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 12px clamp(24px, 5vw, 80px);
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  transition: background-color 240ms ease;
}

.cv-job__company {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cv-job__period {
  margin-top: 4px;
  color: #77716a;
  font-size: 13px;
}

.cv-job__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cv-job__role {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.cv-job__desc {
  max-width: 760px;
  margin: 0;
  color: #57524d;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Voluntário ── */
.cv-vol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cv-vol-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: #151515;
  transition:
    border-color 240ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-vol-card:hover {
  border-color: rgba(234, 46, 0, 0.6);
  transform: translateY(-4px);
}

.cv-vol-card__org {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.cv-vol-card__period {
  margin-top: 6px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.cv-vol-card__desc {
  margin: auto 0 0;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Formação ── */
.cv-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.cv-panel {
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.cv-panel__title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.cv-edu-list {
  display: flex;
  flex-direction: column;
}

.cv-edu-list > div {
  padding: 20px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.cv-edu__year {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cv-edu__degree {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cv-edu__school {
  margin-top: 2px;
  color: #77716a;
  font-size: 14px;
}

.cv-cert-group + .cv-cert-group {
  margin-top: 28px;
}

.cv-cert-group__label {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cv-cert-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-cert-group li {
  position: relative;
  padding-left: 16px;
  color: #4d4a46;
  font-size: 14px;
  line-height: 1.45;
}

.cv-cert-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ── CTA (card laranja da home) ── */
.cv-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mentorship .button--outline:hover {
  color: var(--orange);
}

/* ── Responsivo ── */
@media (max-width: 1100px) {
  .cv-vol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-two-col,
  .cv-sobre-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cv-hero__inner {
    grid-template-columns: 1fr;
  }

  .cv-hero__copy {
    padding-bottom: 0;
  }

  .cv-hero__portrait {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .cv-job {
    grid-template-columns: 1fr;
  }

  .cv-vol-grid,
  .cv-cert-group ul {
    grid-template-columns: 1fr;
  }

  .cv-vol-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-vol-card:hover {
    transform: none;
  }
}

/* Mesma empresa, cargos em sequência (promoção) */
.cv-job__content--steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 26px;
}

.cv-job__content--steps::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(17, 17, 17, 0.14);
}

.cv-job__step {
  position: relative;
}

.cv-job__step::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--white);
}

.cv-job__step:first-child::before {
  background: var(--orange);
}

.cv-job__step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 10px;
}

.cv-job__step-head .cv-job__role {
  margin-bottom: 0;
}

.cv-job__step-period {
  color: #77716a;
  font-size: 13px;
}

.cv-job__step:first-child .cv-job__step-period {
  color: var(--orange);
  font-weight: 700;
}
